Skip to content

Commit

Permalink
Update JCS test vectors for proper handling of context.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wind4Greg committed Dec 9, 2024
1 parent dd2ca81 commit d3cab17
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion TestVectors/eddsa-jcs-2022/combinedHashJCS.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c46b3487ab7087c4f426b546c449094ff57b8fefa6fd85e83f1b31e24c230da859b7cb6251b8991add1ce0bc83107e3db9dbbab5bd2c28f687db1a03abc92f19
66ab154f5c2890a140cb8388a22a160454f80575f6eae09e5a097cabe539a1db59b7cb6251b8991add1ce0bc83107e3db9dbbab5bd2c28f687db1a03abc92f19
2 changes: 1 addition & 1 deletion TestVectors/eddsa-jcs-2022/proofCanonJCS.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"created":"2023-02-24T23:36:38Z","cryptosuite":"eddsa-jcs-2022","proofPurpose":"assertionMethod","type":"DataIntegrityProof","verificationMethod":"did:key:z6MkrJVnaZkeFzdQyMZu1cgjg7k1pZZ6pvBQ7XJPt4swbTQ2#z6MkrJVnaZkeFzdQyMZu1cgjg7k1pZZ6pvBQ7XJPt4swbTQ2"}
{"@context":["https://www.w3.org/ns/credentials/v2","https://www.w3.org/ns/credentials/examples/v2"],"created":"2023-02-24T23:36:38Z","cryptosuite":"eddsa-jcs-2022","proofPurpose":"assertionMethod","type":"DataIntegrityProof","verificationMethod":"did:key:z6MkrJVnaZkeFzdQyMZu1cgjg7k1pZZ6pvBQ7XJPt4swbTQ2#z6MkrJVnaZkeFzdQyMZu1cgjg7k1pZZ6pvBQ7XJPt4swbTQ2"}
6 changes: 5 additions & 1 deletion TestVectors/eddsa-jcs-2022/proofConfigJCS.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@
"cryptosuite": "eddsa-jcs-2022",
"created": "2023-02-24T23:36:38Z",
"verificationMethod": "did:key:z6MkrJVnaZkeFzdQyMZu1cgjg7k1pZZ6pvBQ7XJPt4swbTQ2#z6MkrJVnaZkeFzdQyMZu1cgjg7k1pZZ6pvBQ7XJPt4swbTQ2",
"proofPurpose": "assertionMethod"
"proofPurpose": "assertionMethod",
"@context": [
"https://www.w3.org/ns/credentials/v2",
"https://www.w3.org/ns/credentials/examples/v2"
]
}
2 changes: 1 addition & 1 deletion TestVectors/eddsa-jcs-2022/proofHashJCS.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c46b3487ab7087c4f426b546c449094ff57b8fefa6fd85e83f1b31e24c230da8
66ab154f5c2890a140cb8388a22a160454f80575f6eae09e5a097cabe539a1db
2 changes: 1 addition & 1 deletion TestVectors/eddsa-jcs-2022/sigBTC58JCS.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
zboydVv31kj6jP37GMBZwYyjbvrqr9MWeY9NCEfYUwLcKwkdqAcB44dqEcqaMi8mfdvT2Vbnvdrv6XRaYzgpuPWn
z2HnFSSPPBzR36zdDgK8PbEHeXbR56YF24jwMpt3R1eHXQzJDMWS93FCzpvJpwTWd3GAVFuUfjoJdcnTMuVor51aX
2 changes: 1 addition & 1 deletion TestVectors/eddsa-jcs-2022/sigHexJCS.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1e04ce056c39eb657691a7f2187aa8514d7587fbf9ab0ec14774a32d5930151ac242f77f8e3ada94748cbc4bf81de97a1d1c1a224da24cf1956117f34543b407
407cd12654b33d718ecbb99179a1506daaa849450bf3fc523cce3e1c96f8b80351da3f253d725c6f00b07c9e5448d50b3ef78012b9ab54255116d069c6dd2808
6 changes: 5 additions & 1 deletion TestVectors/eddsa-jcs-2022/signedJCS.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
"created": "2023-02-24T23:36:38Z",
"verificationMethod": "did:key:z6MkrJVnaZkeFzdQyMZu1cgjg7k1pZZ6pvBQ7XJPt4swbTQ2#z6MkrJVnaZkeFzdQyMZu1cgjg7k1pZZ6pvBQ7XJPt4swbTQ2",
"proofPurpose": "assertionMethod",
"proofValue": "zboydVv31kj6jP37GMBZwYyjbvrqr9MWeY9NCEfYUwLcKwkdqAcB44dqEcqaMi8mfdvT2Vbnvdrv6XRaYzgpuPWn"
"@context": [
"https://www.w3.org/ns/credentials/v2",
"https://www.w3.org/ns/credentials/examples/v2"
],
"proofValue": "z2HnFSSPPBzR36zdDgK8PbEHeXbR56YF24jwMpt3R1eHXQzJDMWS93FCzpvJpwTWd3GAVFuUfjoJdcnTMuVor51aX"
}
}

0 comments on commit d3cab17

Please sign in to comment.