-
Notifications
You must be signed in to change notification settings - Fork 533
Add vcdm 2.0 model and context #3436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
jamshale
merged 29 commits into
openwallet-foundation:main
from
OpSecId:vcdm-2.0-data-model-support
Feb 26, 2025
Merged
Changes from 4 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
7ba9b99
add vcdm 2.0 model and context
PatStLouis 9879a4a
add backwards compatibility checks: limit proof type and add issuance…
PatStLouis 262ae0a
seperate test fixtures, lint
PatStLouis 5951683
replace issuanceDate tests
PatStLouis 3383cd5
Merge branch 'openwallet-foundation:main' into vcdm-2.0-data-model-su…
PatStLouis 909e187
Merge branch 'openwallet-foundation:main' into vcdm-2.0-data-model-su…
PatStLouis db5d959
remove askar issuanceDate sorting
PatStLouis b9a8049
Merge branch 'vcdm-2.0-data-model-support' of github.com:OpSecId/arie…
PatStLouis 0025828
rename credential context constant
PatStLouis ede1d4b
linting
PatStLouis 19df824
updated linting
PatStLouis 41c7b14
remove askar sorting step
PatStLouis a7c4243
add vcdm 2.0 tests, fix presentation route default cryptosuite
PatStLouis 286a18c
Fix broken tests, add v2 context to test document loader
PatStLouis 12b8298
Lint
PatStLouis 830201c
Debugging unit tests
PatStLouis c46c816
Merge branch 'openwallet-foundation:main' into vcdm-2.0-data-model-su…
PatStLouis efdd239
Merge branch 'vcdm-2.0-data-model-support' of github.com:OpSecId/arie…
PatStLouis c16c4a0
rename test function to v2
PatStLouis 2c09df6
add list of support cryptosuites for vcdm 2.0
PatStLouis 2f17be3
add list of supported cryptosuites for vcdm 2.0
PatStLouis a08d72c
fix presentation fixture
PatStLouis 286d345
fix created format check
PatStLouis 09d3d74
fix tset fixtures
PatStLouis 1cfe448
lint
PatStLouis 1765caa
add authentication proof purpose
PatStLouis 0030342
Merge branch 'main' into vcdm-2.0-data-model-support
PatStLouis 4e0536a
add holder proof type derivation when creating a vp
PatStLouis 7e26e37
linting
PatStLouis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
acapy_agent/protocols/issue_credential/v2_0/formats/ld_proof/tests/fixtures.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| TEST_DID_SOV = "did:sov:LjgpST2rjsoxYegQDRm7EL" | ||
| TEST_DID_KEY = "did:key:z6Mkgg342Ycpuk263R9d8Aq6MUaxPn1DDeHyGo38EefXmgDL" | ||
|
|
||
| LD_PROOF_VC_DETAIL = { | ||
| "credential": { | ||
| "@context": [ | ||
| "https://www.w3.org/2018/credentials/v1", | ||
| "https://www.w3.org/2018/credentials/examples/v1", | ||
| ], | ||
| "type": ["VerifiableCredential", "UniversityDegreeCredential"], | ||
| "credentialSubject": {"test": "key"}, | ||
| "issuanceDate": "2021-04-12", | ||
| "issuer": TEST_DID_KEY, | ||
| }, | ||
| "options": { | ||
| "proofType": "Ed25519Signature2018", | ||
| "created": "2019-12-11T03:50:55", | ||
| }, | ||
| } | ||
| LD_PROOF_VC_DETAIL_BBS = { | ||
| "credential": { | ||
| "@context": [ | ||
| "https://www.w3.org/2018/credentials/v1", | ||
| "https://www.w3.org/2018/credentials/examples/v1", | ||
| ], | ||
| "type": ["VerifiableCredential", "UniversityDegreeCredential"], | ||
| "credentialSubject": {"test": "key"}, | ||
| "issuanceDate": "2021-04-12", | ||
| "issuer": TEST_DID_KEY, | ||
| }, | ||
| "options": { | ||
| "proofType": "BbsBlsSignature2020", | ||
| "created": "2019-12-11T03:50:55", | ||
| }, | ||
| } | ||
| LD_PROOF_VC_DETAIL_ED25519_2020 = { | ||
| "credential": { | ||
| "@context": [ | ||
| "https://www.w3.org/2018/credentials/v1", | ||
| "https://www.w3.org/2018/credentials/examples/v1", | ||
| ], | ||
| "type": ["VerifiableCredential", "UniversityDegreeCredential"], | ||
| "credentialSubject": {"test": "key"}, | ||
| "issuanceDate": "2021-04-12", | ||
| "issuer": TEST_DID_KEY, | ||
| }, | ||
| "options": { | ||
| "proofType": "Ed25519Signature2020", | ||
| "created": "2019-12-11T03:50:55", | ||
| }, | ||
| } | ||
| LD_PROOF_VC = { | ||
| "@context": [ | ||
| "https://www.w3.org/2018/credentials/v1", | ||
| "https://www.w3.org/2018/credentials/examples/v1", | ||
| ], | ||
| "type": ["VerifiableCredential", "UniversityDegreeCredential"], | ||
| "credentialSubject": {"test": "key"}, | ||
| "issuanceDate": "2021-04-12", | ||
| "issuer": TEST_DID_KEY, | ||
| "proof": { | ||
| "proofPurpose": "assertionMethod", | ||
| "created": "2019-12-11T03:50:55", | ||
| "type": "Ed25519Signature2018", | ||
| "verificationMethod": "did:key:z6Mkgg342Ycpuk263R9d8Aq6MUaxPn1DDeHyGo38EefXmgDL#z6Mkgg342Ycpuk263R9d8Aq6MUaxPn1DDeHyGo38EefXmgDL", | ||
| "jws": "eyJhbGciOiAiRWREU0EiLCAiYjY0IjogZmFsc2UsICJjcml0IjogWyJiNjQiXX0..Q6amIrxGiSbM7Ce6DxlfwLCjVcYyclas8fMxaecspXFUcFW9DAAxKzgHx93FWktnlZjM_biitkMgZdStgvivAQ", | ||
| }, | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.