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

Wind4 greg sd primitives #98

Closed
wants to merge 32 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
20116a5
Fix trailing spaces in document.
msporny Oct 21, 2023
e07acc2
Update abstract.
Wind4Greg Oct 9, 2023
7dea74a
Replace terminology section with ref to DI terms.
Wind4Greg Oct 9, 2023
2e4c5f9
Rewrite the introduction.
Wind4Greg Oct 9, 2023
7a8a641
Update conformance section.
Wind4Greg Oct 9, 2023
316c884
Rewrite multi key section.
Wind4Greg Oct 9, 2023
024a939
Replace/rewrite "Proof Representations" section.
Wind4Greg Oct 9, 2023
5547611
Remove old algorithm section, clean up indentation
Wind4Greg Oct 9, 2023
7dc1890
Added start of new algorithms section.
Wind4Greg Oct 9, 2023
f2e9fd0
Add high level algorithm text.
Wind4Greg Oct 9, 2023
6dd9b60
Add bbs-2023 section descriptive text
Wind4Greg Oct 9, 2023
b041107
Added "Add Base Proof".
Wind4Greg Oct 9, 2023
4e1b75d
Added "Base Proof Transformation" section.
Wind4Greg Oct 9, 2023
b74171a
Add "Base Proof Hashing" section.
Wind4Greg Oct 9, 2023
0dcd1cc
Add "Base Proof Configuration" section
Wind4Greg Oct 9, 2023
32ff814
Add "Base Proof Serialization" section
Wind4Greg Oct 9, 2023
fcb673a
Added "Add Derived Proof" section.
Wind4Greg Oct 9, 2023
b2adc58
Added "Verify Derived Proof".
Wind4Greg Oct 10, 2023
d4328cd
Added details for serializeBaseProofValue.
Wind4Greg Oct 10, 2023
4778d9d
Added `createDisclosureData`.
Wind4Greg Oct 10, 2023
34d4155
Add parseBaseProofValue.
Wind4Greg Oct 10, 2023
2fc5bba
Fix indentation.
Wind4Greg Oct 10, 2023
d3d60c8
Added serializeDerivedProofValue
Wind4Greg Oct 10, 2023
c641d8a
Added compressLabelMap
Wind4Greg Oct 10, 2023
34213a3
Added createVerifyData.
Wind4Greg Oct 10, 2023
485fda9
Add decompressLabelMap and parseDerivedProof
Wind4Greg Oct 10, 2023
2341f63
Added createShuffledIdLabelMapFunction
Wind4Greg Oct 10, 2023
352f0ee
Added test vectors and explanations.
Wind4Greg Oct 11, 2023
474731f
Fix grammar in new BBS algorithms sections.
msporny Oct 31, 2023
492f2da
Use HMAC as a noun in algorithms.
msporny Oct 31, 2023
c9fd54a
Remove trailing spaces.
msporny Oct 31, 2023
e1aad1e
Merge branch 'main' into Wind4Greg-sd-primitives
msporny Oct 31, 2023
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
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"cSpell.words": [
"unlinkable"
]
}
5 changes: 5 additions & 0 deletions TestVectors/BBSKeyMaterial.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"publicKeyHex": "a4ef1afa3da575496f122b9b78b8c24761531a8a093206ae7c45b80759c168ba4f7a260f9c3367b6c019b4677841104b10665edbe70ba3ebe7d9cfbffbf71eb016f70abfbb163317f372697dc63efd21fc55764f63926a8f02eaea325a2a888f",
"privateKeyHex": "66d36e118832af4c5e28b2dfe1b9577857e57b042a33e06bdea37b811ed09ee0",
"hmacKeyString": "00112233445566778899AABBCCDDEEFF00112233445566778899AABBCCDDEEFF"
}
29 changes: 29 additions & 0 deletions TestVectors/addBaseDocCanon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[
"_:c14n0 <https://windsurf.grotto-networking.com/selective#boardName> \"CompFoil170\" .\n",
"_:c14n0 <https://windsurf.grotto-networking.com/selective#brand> \"Wailea\" .\n",
"_:c14n0 <https://windsurf.grotto-networking.com/selective#year> \"2022\"^^<http://www.w3.org/2001/XMLSchema#integer> .\n",
"_:c14n1 <https://windsurf.grotto-networking.com/selective#sailName> \"Lahaina\" .\n",
"_:c14n1 <https://windsurf.grotto-networking.com/selective#size> \"7.8E0\"^^<http://www.w3.org/2001/XMLSchema#double> .\n",
"_:c14n1 <https://windsurf.grotto-networking.com/selective#year> \"2023\"^^<http://www.w3.org/2001/XMLSchema#integer> .\n",
"_:c14n2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.w3.org/2018/credentials#VerifiableCredential> .\n",
"_:c14n2 <https://www.w3.org/2018/credentials#credentialSubject> _:c14n6 .\n",
"_:c14n3 <https://windsurf.grotto-networking.com/selective#boardName> \"Kanaha Custom\" .\n",
"_:c14n3 <https://windsurf.grotto-networking.com/selective#brand> \"Wailea\" .\n",
"_:c14n3 <https://windsurf.grotto-networking.com/selective#year> \"2019\"^^<http://www.w3.org/2001/XMLSchema#integer> .\n",
"_:c14n4 <https://windsurf.grotto-networking.com/selective#sailName> \"Lahaina\" .\n",
"_:c14n4 <https://windsurf.grotto-networking.com/selective#size> \"7\"^^<http://www.w3.org/2001/XMLSchema#integer> .\n",
"_:c14n4 <https://windsurf.grotto-networking.com/selective#year> \"2020\"^^<http://www.w3.org/2001/XMLSchema#integer> .\n",
"_:c14n5 <https://windsurf.grotto-networking.com/selective#sailName> \"Kihei\" .\n",
"_:c14n5 <https://windsurf.grotto-networking.com/selective#size> \"5.5E0\"^^<http://www.w3.org/2001/XMLSchema#double> .\n",
"_:c14n5 <https://windsurf.grotto-networking.com/selective#year> \"2023\"^^<http://www.w3.org/2001/XMLSchema#integer> .\n",
"_:c14n6 <https://windsurf.grotto-networking.com/selective#boards> _:c14n0 .\n",
"_:c14n6 <https://windsurf.grotto-networking.com/selective#boards> _:c14n3 .\n",
"_:c14n6 <https://windsurf.grotto-networking.com/selective#sailNumber> \"Earth101\" .\n",
"_:c14n6 <https://windsurf.grotto-networking.com/selective#sails> _:c14n1 .\n",
"_:c14n6 <https://windsurf.grotto-networking.com/selective#sails> _:c14n4 .\n",
"_:c14n6 <https://windsurf.grotto-networking.com/selective#sails> _:c14n5 .\n",
"_:c14n6 <https://windsurf.grotto-networking.com/selective#sails> _:c14n7 .\n",
"_:c14n7 <https://windsurf.grotto-networking.com/selective#sailName> \"Lahaina\" .\n",
"_:c14n7 <https://windsurf.grotto-networking.com/selective#size> \"6.1E0\"^^<http://www.w3.org/2001/XMLSchema#double> .\n",
"_:c14n7 <https://windsurf.grotto-networking.com/selective#year> \"2023\"^^<http://www.w3.org/2001/XMLSchema#integer> .\n"
]
29 changes: 29 additions & 0 deletions TestVectors/addBaseDocHMACCanon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[
"_:b0 <https://windsurf.grotto-networking.com/selective#sailName> \"Lahaina\" .\n",
"_:b0 <https://windsurf.grotto-networking.com/selective#size> \"6.1E0\"^^<http://www.w3.org/2001/XMLSchema#double> .\n",
"_:b0 <https://windsurf.grotto-networking.com/selective#year> \"2023\"^^<http://www.w3.org/2001/XMLSchema#integer> .\n",
"_:b1 <https://windsurf.grotto-networking.com/selective#sailName> \"Lahaina\" .\n",
"_:b1 <https://windsurf.grotto-networking.com/selective#size> \"7.8E0\"^^<http://www.w3.org/2001/XMLSchema#double> .\n",
"_:b1 <https://windsurf.grotto-networking.com/selective#year> \"2023\"^^<http://www.w3.org/2001/XMLSchema#integer> .\n",
"_:b2 <https://windsurf.grotto-networking.com/selective#boardName> \"CompFoil170\" .\n",
"_:b2 <https://windsurf.grotto-networking.com/selective#brand> \"Wailea\" .\n",
"_:b2 <https://windsurf.grotto-networking.com/selective#year> \"2022\"^^<http://www.w3.org/2001/XMLSchema#integer> .\n",
"_:b3 <https://windsurf.grotto-networking.com/selective#sailName> \"Kihei\" .\n",
"_:b3 <https://windsurf.grotto-networking.com/selective#size> \"5.5E0\"^^<http://www.w3.org/2001/XMLSchema#double> .\n",
"_:b3 <https://windsurf.grotto-networking.com/selective#year> \"2023\"^^<http://www.w3.org/2001/XMLSchema#integer> .\n",
"_:b4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.w3.org/2018/credentials#VerifiableCredential> .\n",
"_:b4 <https://www.w3.org/2018/credentials#credentialSubject> _:b6 .\n",
"_:b5 <https://windsurf.grotto-networking.com/selective#sailName> \"Lahaina\" .\n",
"_:b5 <https://windsurf.grotto-networking.com/selective#size> \"7\"^^<http://www.w3.org/2001/XMLSchema#integer> .\n",
"_:b5 <https://windsurf.grotto-networking.com/selective#year> \"2020\"^^<http://www.w3.org/2001/XMLSchema#integer> .\n",
"_:b6 <https://windsurf.grotto-networking.com/selective#boards> _:b2 .\n",
"_:b6 <https://windsurf.grotto-networking.com/selective#boards> _:b7 .\n",
"_:b6 <https://windsurf.grotto-networking.com/selective#sailNumber> \"Earth101\" .\n",
"_:b6 <https://windsurf.grotto-networking.com/selective#sails> _:b0 .\n",
"_:b6 <https://windsurf.grotto-networking.com/selective#sails> _:b1 .\n",
"_:b6 <https://windsurf.grotto-networking.com/selective#sails> _:b3 .\n",
"_:b6 <https://windsurf.grotto-networking.com/selective#sails> _:b5 .\n",
"_:b7 <https://windsurf.grotto-networking.com/selective#boardName> \"Kanaha Custom\" .\n",
"_:b7 <https://windsurf.grotto-networking.com/selective#brand> \"Wailea\" .\n",
"_:b7 <https://windsurf.grotto-networking.com/selective#year> \"2019\"^^<http://www.w3.org/2001/XMLSchema#integer> .\n"
]
127 changes: 127 additions & 0 deletions TestVectors/addBaseTransform.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
{
"mandatoryPointers": [
"/credentialSubject/sailNumber",
"/credentialSubject/sails/1",
"/credentialSubject/boards/0/year",
"/credentialSubject/sails/2"
],
"mandatory": {
"dataType": "Map",
"value": [
[
0,
"_:b0 <https://windsurf.grotto-networking.com/selective#sailName> \"Lahaina\" .\n"
],
[
1,
"_:b0 <https://windsurf.grotto-networking.com/selective#size> \"6.1E0\"^^<http://www.w3.org/2001/XMLSchema#double> .\n"
],
[
2,
"_:b0 <https://windsurf.grotto-networking.com/selective#year> \"2023\"^^<http://www.w3.org/2001/XMLSchema#integer> .\n"
],
[
8,
"_:b2 <https://windsurf.grotto-networking.com/selective#year> \"2022\"^^<http://www.w3.org/2001/XMLSchema#integer> .\n"
],
[
12,
"_:b4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.w3.org/2018/credentials#VerifiableCredential> .\n"
],
[
13,
"_:b4 <https://www.w3.org/2018/credentials#credentialSubject> _:b6 .\n"
],
[
14,
"_:b5 <https://windsurf.grotto-networking.com/selective#sailName> \"Lahaina\" .\n"
],
[
15,
"_:b5 <https://windsurf.grotto-networking.com/selective#size> \"7\"^^<http://www.w3.org/2001/XMLSchema#integer> .\n"
],
[
16,
"_:b5 <https://windsurf.grotto-networking.com/selective#year> \"2020\"^^<http://www.w3.org/2001/XMLSchema#integer> .\n"
],
[
17,
"_:b6 <https://windsurf.grotto-networking.com/selective#boards> _:b2 .\n"
],
[
19,
"_:b6 <https://windsurf.grotto-networking.com/selective#sailNumber> \"Earth101\" .\n"
],
[
20,
"_:b6 <https://windsurf.grotto-networking.com/selective#sails> _:b0 .\n"
],
[
23,
"_:b6 <https://windsurf.grotto-networking.com/selective#sails> _:b5 .\n"
]
]
},
"nonMandatory": {
"dataType": "Map",
"value": [
[
3,
"_:b1 <https://windsurf.grotto-networking.com/selective#sailName> \"Lahaina\" .\n"
],
[
4,
"_:b1 <https://windsurf.grotto-networking.com/selective#size> \"7.8E0\"^^<http://www.w3.org/2001/XMLSchema#double> .\n"
],
[
5,
"_:b1 <https://windsurf.grotto-networking.com/selective#year> \"2023\"^^<http://www.w3.org/2001/XMLSchema#integer> .\n"
],
[
6,
"_:b2 <https://windsurf.grotto-networking.com/selective#boardName> \"CompFoil170\" .\n"
],
[
7,
"_:b2 <https://windsurf.grotto-networking.com/selective#brand> \"Wailea\" .\n"
],
[
9,
"_:b3 <https://windsurf.grotto-networking.com/selective#sailName> \"Kihei\" .\n"
],
[
10,
"_:b3 <https://windsurf.grotto-networking.com/selective#size> \"5.5E0\"^^<http://www.w3.org/2001/XMLSchema#double> .\n"
],
[
11,
"_:b3 <https://windsurf.grotto-networking.com/selective#year> \"2023\"^^<http://www.w3.org/2001/XMLSchema#integer> .\n"
],
[
18,
"_:b6 <https://windsurf.grotto-networking.com/selective#boards> _:b7 .\n"
],
[
21,
"_:b6 <https://windsurf.grotto-networking.com/selective#sails> _:b1 .\n"
],
[
22,
"_:b6 <https://windsurf.grotto-networking.com/selective#sails> _:b3 .\n"
],
[
24,
"_:b7 <https://windsurf.grotto-networking.com/selective#boardName> \"Kanaha Custom\" .\n"
],
[
25,
"_:b7 <https://windsurf.grotto-networking.com/selective#brand> \"Wailea\" .\n"
],
[
26,
"_:b7 <https://windsurf.grotto-networking.com/selective#year> \"2019\"^^<http://www.w3.org/2001/XMLSchema#integer> .\n"
]
]
},
"hmacKeyString": "00112233445566778899AABBCCDDEEFF00112233445566778899AABBCCDDEEFF"
}
4 changes: 4 additions & 0 deletions TestVectors/addHashData.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"proofHash": "109514ed8101a836d240819e30630f48639bf7f1f247074e928eaad99e5775d4",
"mandatoryHash": "e8bf46bff3db96eabc3a9410795dc94bc3537165e082f4a3e58841982fd7d4b3"
}
26 changes: 26 additions & 0 deletions TestVectors/addPointerValues.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[
{
"pointer": "/sailNumber",
"value": "Earth101"
},
{
"pointer": "/sails/1",
"value": {
"size": 6.1,
"sailName": "Lahaina",
"year": 2023
}
},
{
"pointer": "/boards/0/year",
"value": 2022
},
{
"pointer": "/sails/2",
"value": {
"size": 7,
"sailName": "Lahaina",
"year": 2020
}
}
]
13 changes: 13 additions & 0 deletions TestVectors/addProofConfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"type": "DataIntegrityProof",
"cryptosuite": "bbs-2023",
"created": "2023-08-15T23:36:38Z",
"verificationMethod": "did:key:zUC7DerdEmfZ8f4pFajXgGwJoMkV1ofMTmEG5UoNvnWiPiLuGKNeqgRpLH2TV4Xe5mJ2cXV76gRN7LFQwapF1VFu6x2yrr5ci1mXqC1WNUrnHnLgvfZfMH7h6xP6qsf9EKRQrPQ#zUC7DerdEmfZ8f4pFajXgGwJoMkV1ofMTmEG5UoNvnWiPiLuGKNeqgRpLH2TV4Xe5mJ2cXV76gRN7LFQwapF1VFu6x2yrr5ci1mXqC1WNUrnHnLgvfZfMH7h6xP6qsf9EKRQrPQ",
"proofPurpose": "assertionMethod",
"@context": [
"https://www.w3.org/ns/credentials/v2",
{
"@vocab": "https://windsurf.grotto-networking.com/selective#"
}
]
}
5 changes: 5 additions & 0 deletions TestVectors/addProofConfigCanon.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
_:c14n0 <http://purl.org/dc/terms/created> "2023-08-15T23:36:38Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> .
_:c14n0 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://w3id.org/security#DataIntegrityProof> .
_:c14n0 <https://w3id.org/security#cryptosuite> "bbs-2023" .
_:c14n0 <https://w3id.org/security#proofPurpose> <https://w3id.org/security#assertionMethod> .
_:c14n0 <https://w3id.org/security#verificationMethod> <did:key:zUC7DerdEmfZ8f4pFajXgGwJoMkV1ofMTmEG5UoNvnWiPiLuGKNeqgRpLH2TV4Xe5mJ2cXV76gRN7LFQwapF1VFu6x2yrr5ci1mXqC1WNUrnHnLgvfZfMH7h6xP6qsf9EKRQrPQ#zUC7DerdEmfZ8f4pFajXgGwJoMkV1ofMTmEG5UoNvnWiPiLuGKNeqgRpLH2TV4Xe5mJ2cXV76gRN7LFQwapF1VFu6x2yrr5ci1mXqC1WNUrnHnLgvfZfMH7h6xP6qsf9EKRQrPQ> .
9 changes: 9 additions & 0 deletions TestVectors/addRawBaseSignatureInfo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"bbsSignature": "93c7abe23fdf4856654bc858e607b7659af82b564340731454884724ec01e25360ac49e39cf0df7631535373042caed256abed6e81884e71a21590fef8dbe07e177dcedd8cfe94e4574c4ab51a22bdf9",
"mandatoryPointers": [
"/credentialSubject/sailNumber",
"/credentialSubject/sails/1",
"/credentialSubject/boards/0/year",
"/credentialSubject/sails/2"
]
}
56 changes: 56 additions & 0 deletions TestVectors/addSignedSDBase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"@context": [
"https://www.w3.org/ns/credentials/v2",
{
"@vocab": "https://windsurf.grotto-networking.com/selective#"
}
],
"type": [
"VerifiableCredential"
],
"credentialSubject": {
"sailNumber": "Earth101",
"sails": [
{
"size": 5.5,
"sailName": "Kihei",
"year": 2023
},
{
"size": 6.1,
"sailName": "Lahaina",
"year": 2023
},
{
"size": 7,
"sailName": "Lahaina",
"year": 2020
},
{
"size": 7.8,
"sailName": "Lahaina",
"year": 2023
}
],
"boards": [
{
"boardName": "CompFoil170",
"brand": "Wailea",
"year": 2022
},
{
"boardName": "Kanaha Custom",
"brand": "Wailea",
"year": 2019
}
]
},
"proof": {
"type": "DataIntegrityProof",
"cryptosuite": "bbs-2023",
"created": "2023-08-15T23:36:38Z",
"verificationMethod": "did:key:zUC7DerdEmfZ8f4pFajXgGwJoMkV1ofMTmEG5UoNvnWiPiLuGKNeqgRpLH2TV4Xe5mJ2cXV76gRN7LFQwapF1VFu6x2yrr5ci1mXqC1WNUrnHnLgvfZfMH7h6xP6qsf9EKRQrPQ#zUC7DerdEmfZ8f4pFajXgGwJoMkV1ofMTmEG5UoNvnWiPiLuGKNeqgRpLH2TV4Xe5mJ2cXV76gRN7LFQwapF1VFu6x2yrr5ci1mXqC1WNUrnHnLgvfZfMH7h6xP6qsf9EKRQrPQ",
"proofPurpose": "assertionMethod",
"proofValue": "u2V0Cg9hAWFCTx6viP99IVmVLyFjmB7dlmvgrVkNAcxRUiEck7AHiU2CsSeOc8N92MVNTcwQsrtJWq-1ugYhOcaIVkP742-B-F33O3Yz-lORXTEq1GiK9-dhAWCAAESIzRFVmd4iZqrvM3e7_ABEiM0RVZneImaq7zN3u_4R4HS9jcmVkZW50aWFsU3ViamVjdC9zYWlsTnVtYmVyeBovY3JlZGVudGlhbFN1YmplY3Qvc2FpbHMvMXggL2NyZWRlbnRpYWxTdWJqZWN0L2JvYXJkcy8wL3llYXJ4Gi9jcmVkZW50aWFsU3ViamVjdC9zYWlscy8y"
}
}
4 changes: 4 additions & 0 deletions TestVectors/derivedAdjIndexes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"adjMandatoryIndexes":[0,1,2,5,6,7,8,9,10,11,13,14,15],
"adjSelectiveIndexes":[3,4,8,11,12,13]
}
8 changes: 8 additions & 0 deletions TestVectors/derivedDisclosureData.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"bbsProof":"b29c719aba8103c713c5facba9b690930ad458816645adc1a53b251010bc3b128d72580239f66ff4e9739e28425794e881b5737fb3abce02b2655d4fb3babebd515685ce7567eab5bd01360e8131150576357509db309294569d822d56e1c581420a8af29b7c7984d50fd5c79a06d64a2586da8a24e93c3742d09f2c0e24d7fe4891927c7ffe408d563a64f586737867a1f020f742fc6eaa1d37eda426c9c75566de8be54822f69749fc462c86caaaf4f9f73ee1b08726f378432e382322a3cc0e87d5b23fc36364bc5c94cfb8a305be6f912bd7152e7a48d4d41571c653d58e5fea8a8238e05aea910e5b62c9d15b8d527c0d59f619fbab6a8799b1ce1da13c6516c23eefc03b247672878c34949943e02f4b3991139276c89a00c4ee64bbce570201ac3502fb4769e6b869919320ad9f3121dfeeecdb2914cfc7d4a386b6153f54b18b4148742ec7b66c81cff0b1de88d2d299f35f2ff817fb422fe0bbf65b5cd7deb939a10cc524f08eff46f31b5631afbd0551d9816e32fb2e4bb7214ce76136057c1298e2a161b5ec3280f0530130ab9600426c7e521d1b893850ae83cf4f211987c93f3a41c16b0cbac29e5dcf88eb65892518f643d5c2acd4888045d4",
"labelMap":{"dataType":"Map",
"value":[["c14n0","b2"],["c14n1","b4"],["c14n2","b7"],["c14n3","b6"],["c14n4","b5"],["c14n5","b0"]]
},
"mandatoryIndexes":[0,1,2,5,6,7,8,9,10,11,13,14,15],
"adjSelectiveIndexes":[3,4,8,11,12,13]
}
6 changes: 6 additions & 0 deletions TestVectors/derivedGroupIndexes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"combinedIndexes": [0, 1, 2, 6, 7, 8, 12, 13, 14, 15, 16, 17, 18, 19, 20, 23, 24, 25, 26],
"mandatoryIndexes": [0, 1, 2, 8, 12, 13, 14, 15, 16, 17, 19, 20, 23 ],
"nonMandatoryIndexes": [3, 4, 5, 6, 7, 9, 10, 11, 18, 21, 22, 24, 25, 26],
"selectiveIndexes": [6, 7, 8, 12, 13, 17, 18, 24, 25, 26]
}
10 changes: 10 additions & 0 deletions TestVectors/derivedRecoveredBaseData.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"bbsSignature": "93c7abe23fdf4856654bc858e607b7659af82b564340731454884724ec01e25360ac49e39cf0df7631535373042caed256abed6e81884e71a21590fef8dbe07e177dcedd8cfe94e4574c4ab51a22bdf9",
"hmacKey": "00112233445566778899aabbccddeeff00112233445566778899aabbccddeeff",
"mandatoryPointers": [
"/credentialSubject/sailNumber",
"/credentialSubject/sails/1",
"/credentialSubject/boards/0/year",
"/credentialSubject/sails/2"
]
}
Loading