Skip to content
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

Updated raw ECDSA-JCS test vectors and a bit of explanatory text. #62

Merged
merged 1 commit into from
Jun 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1 +1 @@
76a77cf0331cef09562cb471efb7513ead132a07b83b3d9aea2a5149ba8ac34259b7cb6251b8991add1ce0bc83107e3db9dbbab5bd2c28f687db1a03abc92f19
1cb0435d142d1cc97e10b0f330cc5a637b25aeeeabc8d63f278df951c48712ff59b7cb6251b8991add1ce0bc83107e3db9dbbab5bd2c28f687db1a03abc92f19
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"created":"2023-02-24T23:36:38Z","cryptosuite":"ecdsa-jcs-2019","proofPurpose":"assertionMethod","type":"DataIntegrityProof","verificationMethod":"https://vc.example/issuers/5678#zDnaepBuvsQ8cpsWrVKw8fbpGpvPeNSjVPTWoq6cRqaYzBKVP"}
{"@context":["https://www.w3.org/ns/credentials/v2","https://www.w3.org/ns/credentials/examples/v2"],"created":"2023-02-24T23:36:38Z","cryptosuite":"ecdsa-jcs-2019","proofPurpose":"assertionMethod","type":"DataIntegrityProof","verificationMethod":"https://vc.example/issuers/5678#zDnaepBuvsQ8cpsWrVKw8fbpGpvPeNSjVPTWoq6cRqaYzBKVP"}
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@
"cryptosuite": "ecdsa-jcs-2019",
"created": "2023-02-24T23:36:38Z",
"verificationMethod": "https://vc.example/issuers/5678#zDnaepBuvsQ8cpsWrVKw8fbpGpvPeNSjVPTWoq6cRqaYzBKVP",
"proofPurpose": "assertionMethod"
"proofPurpose": "assertionMethod",
"@context": [
"https://www.w3.org/ns/credentials/v2",
"https://www.w3.org/ns/credentials/examples/v2"
]
}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
76a77cf0331cef09562cb471efb7513ead132a07b83b3d9aea2a5149ba8ac342
1cb0435d142d1cc97e10b0f330cc5a637b25aeeeabc8d63f278df951c48712ff
2 changes: 1 addition & 1 deletion TestVectors/ecdsa-jcs-2019-p256/sigBTC58JCSECDSAP256.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
z7pnwfec5k9N26YDUjjDxjJEijAdEoAbJY2n3CTx3CYvzzRxcV5UkmECmLmQcA8eYTsDQ6GHCFDSk7Yb1hd4uN5a
z3Uid91ZWFdE5NHJcePnZsN6j16r13euxdo3ceCotGxowPnsBENxUFxYYiqD23GduZ3fM16oqCntTgpJChaW4FVVs
2 changes: 1 addition & 1 deletion TestVectors/ecdsa-jcs-2019-p256/sigHexJCSECDSAP256.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
05e27fa5aa9cc1bb37c18794e35c35d588d30b839e4f7f59c81bfbd81047c9c66d1d31063135b38860e66265586582f6521550aa4f22fa9558666532439a38cd
7befc76b324ffb93073c7b9c59a11ec548f6e034da6be2f40044e7f2c4e2b60646c50b158666a802a83979cc31751619888d43cd1a3e103b73deaeb5dc8a4a3a
6 changes: 5 additions & 1 deletion TestVectors/ecdsa-jcs-2019-p256/signedJCSECDSAP256.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
"created": "2023-02-24T23:36:38Z",
"verificationMethod": "https://vc.example/issuers/5678#zDnaepBuvsQ8cpsWrVKw8fbpGpvPeNSjVPTWoq6cRqaYzBKVP",
"proofPurpose": "assertionMethod",
"proofValue": "z7pnwfec5k9N26YDUjjDxjJEijAdEoAbJY2n3CTx3CYvzzRxcV5UkmECmLmQcA8eYTsDQ6GHCFDSk7Yb1hd4uN5a"
"@context": [
"https://www.w3.org/ns/credentials/v2",
"https://www.w3.org/ns/credentials/examples/v2"
],
"proofValue": "z3Uid91ZWFdE5NHJcePnZsN6j16r13euxdo3ceCotGxowPnsBENxUFxYYiqD23GduZ3fM16oqCntTgpJChaW4FVVs"
}
}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8ba1ac588bdcb2675b84d55abeda3352504bcd190d8028ecece9de84288b8d69499c10c65ed76c821a1b4c51588b371d3e0be671cc1881035d463158c80921973dab3534d4f8dfacf4ff2725a4115eb718e49d66de0e90e7365cd6062abf2259
9c51c298a3d8710f862724236ebc4a541f4a8b06ceffb151b149ac1078ca4ee43bb7940bc111e546b8922aff12a04fe63e0be671cc1881035d463158c80921973dab3534d4f8dfacf4ff2725a4115eb718e49d66de0e90e7365cd6062abf2259
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"created":"2023-02-24T23:36:38Z","cryptosuite":"ecdsa-jcs-2019","proofPurpose":"assertionMethod","type":"DataIntegrityProof","verificationMethod":"https://vc.example/issuers/5678#z82LkuBieyGShVBhvtE2zoiD6Kma4tJGFtkAhxR5pfkp5QPw4LutoYWhvQCnGjdVn14kujQ"}
{"@context":["https://www.w3.org/ns/credentials/v2","https://www.w3.org/ns/credentials/examples/v2"],"created":"2023-02-24T23:36:38Z","cryptosuite":"ecdsa-jcs-2019","proofPurpose":"assertionMethod","type":"DataIntegrityProof","verificationMethod":"https://vc.example/issuers/5678#z82LkuBieyGShVBhvtE2zoiD6Kma4tJGFtkAhxR5pfkp5QPw4LutoYWhvQCnGjdVn14kujQ"}
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@
"cryptosuite": "ecdsa-jcs-2019",
"created": "2023-02-24T23:36:38Z",
"verificationMethod": "https://vc.example/issuers/5678#z82LkuBieyGShVBhvtE2zoiD6Kma4tJGFtkAhxR5pfkp5QPw4LutoYWhvQCnGjdVn14kujQ",
"proofPurpose": "assertionMethod"
"proofPurpose": "assertionMethod",
"@context": [
"https://www.w3.org/ns/credentials/v2",
"https://www.w3.org/ns/credentials/examples/v2"
]
}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8ba1ac588bdcb2675b84d55abeda3352504bcd190d8028ecece9de84288b8d69499c10c65ed76c821a1b4c51588b371d
9c51c298a3d8710f862724236ebc4a541f4a8b06ceffb151b149ac1078ca4ee43bb7940bc111e546b8922aff12a04fe6
2 changes: 1 addition & 1 deletion TestVectors/ecdsa-jcs-2019-p384/sigBTC58JCSECDSAP384.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
zFYhRwKuucKxM7dnL69VpnwmU9UD2wc5HfFjXfxKH82pEybv18EfxaT8m53kyMfrDQneYnsLCZ35UE2KwZTkd4zN7vNHdVseyjW5apJJ9NkfpUiTGUayG2yaZvWu6Gd8EDYk
zwFY3RRmsM6Y83nckzihfjaMbPZK5bx8BqGiu57vs8edbMyX6R9bA1Pvy9tuYAfDGrsDHUZgW9bzrhe55sDDUB37ZGXKvzj7CLcxY93GXtLwGJdZ3Suv1try3T6KFkuMTRgs
2 changes: 1 addition & 1 deletion TestVectors/ecdsa-jcs-2019-p384/sigHexJCSECDSAP384.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2a3a6157c6d26ed20574155b6884916d0528b2057d89b7b855e40ee471708058d0bd7e39559bc0586e6b460f74f69d5d85d5dcee2cdbaea3febf8241ef425e974a9486025fca0c1dc1c7b1fedd25a17032d98bae98bd23e6962865c2fb1d7b19
9d7ce3dfc41bf407b16bdc5dd95c8884da82ee1c026b3b74d4a428cb0767e51e3b2c6412f663695bc323b784685ffe18941de2530c2295b678957bb2a1d3efeb0eafc8049a8dafccec5442e6b2e6ca710cd1e8a6a9befd95388ddf3e0faa61f8
6 changes: 5 additions & 1 deletion TestVectors/ecdsa-jcs-2019-p384/signedJCSECDSAP384.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
"created": "2023-02-24T23:36:38Z",
"verificationMethod": "https://vc.example/issuers/5678#z82LkuBieyGShVBhvtE2zoiD6Kma4tJGFtkAhxR5pfkp5QPw4LutoYWhvQCnGjdVn14kujQ",
"proofPurpose": "assertionMethod",
"proofValue": "zFYhRwKuucKxM7dnL69VpnwmU9UD2wc5HfFjXfxKH82pEybv18EfxaT8m53kyMfrDQneYnsLCZ35UE2KwZTkd4zN7vNHdVseyjW5apJJ9NkfpUiTGUayG2yaZvWu6Gd8EDYk"
"@context": [
"https://www.w3.org/ns/credentials/v2",
"https://www.w3.org/ns/credentials/examples/v2"
],
"proofValue": "zwFY3RRmsM6Y83nckzihfjaMbPZK5bx8BqGiu57vs8edbMyX6R9bA1Pvy9tuYAfDGrsDHUZgW9bzrhe55sDDUB37ZGXKvzj7CLcxY93GXtLwGJdZ3Suv1try3T6KFkuMTRgs"
}
}
12 changes: 10 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3355,13 +3355,17 @@ <h3>Representation: ecdsa-jcs-2019 with curve P-256</h3>
<pre class="example nohighlight" title="Signature of Combined Hashes base-58-btc"
data-include="TestVectors/ecdsa-jcs-2019-p256/sigBTC58JCSECDSAP256.txt" data-include-format="text"></pre>

<p>Assemble the signed credential with the following two steps:</p>
<p>Assemble the signed credential with the following three steps:</p>
<ol>
<li>
Add the <code>proofValue</code> field with the previously computed base-58-btc
value to the proof options document.
</li>
<li>
Set the proof options <code>@context</code> field to the value of the
<var>unsecuredDocument.@context</var>.
</li>
<li>
Set the <code>proof</code> field of the credential to the augmented proof
option document.
</li>
Expand Down Expand Up @@ -3426,13 +3430,17 @@ <h3>Representation: ecdsa-jcs-2019 with curve P-384</h3>
<pre class="example nohighlight" title="Signature of Combined Hashes base-58-btc"
data-include="TestVectors/ecdsa-jcs-2019-p384/sigBTC58JCSECDSAP384.txt" data-include-format="text"></pre>

<p>Assemble the signed credential with the following two steps:</p>
<p>Assemble the signed credential with the following three steps:</p>
<ol>
<li>
Add the <code>proofValue</code> field with the previously computed base-58-btc
value to the proof options document.
</li>
<li>
Set the proof options <code>@context</code> field to the value of the
<var>unsecuredDocument.@context</var>.
</li>
<li>
Set the <code>proof</code> field of the credential to the augmented proof
option document.
</li>
Expand Down
Loading