-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
keep credential status encoding to be non-constant time to prevent br…
…eaking older credentials Signed-off-by: lovesh <[email protected]>
- Loading branch information
Showing
30 changed files
with
41 additions
and
35 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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
2 changes: 1 addition & 1 deletion
2
tests/anonymous-credentials/serialized-objects/bbdt16-presentation-0.9.0.json
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
tests/anonymous-credentials/serialized-objects/bbdt16_credential1-0.7.0.json
This file contains 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 |
---|---|---|
@@ -1 +1 @@ | ||
{"cryptoVersion":"0.7.0","credentialSchema":{"id":"data:application/json;charset=utf-8,","type":"JsonSchemaValidator2018","version":"0.5.0","details":"{\"jsonSchema\":{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"definitions\":{\"encryptableCompString\":{\"type\":\"string\"},\"encryptableString\":{\"type\":\"string\"}},\"properties\":{\"credentialSubject\":{\"properties\":{\"BMI\":{\"minimum\":0,\"multipleOf\":0.01,\"type\":\"number\"},\"SSN\":{\"$ref\":\"#/definitions/encryptableString\"},\"city\":{\"type\":\"string\"},\"country\":{\"type\":\"string\"},\"email\":{\"type\":\"string\"},\"fname\":{\"type\":\"string\"},\"height\":{\"minimum\":0,\"multipleOf\":0.1,\"type\":\"number\"},\"lname\":{\"type\":\"string\"},\"score\":{\"minimum\":-100,\"multipleOf\":0.1,\"type\":\"number\"},\"secret\":{\"type\":\"string\"},\"timeOfBirth\":{\"minimum\":0,\"type\":\"integer\"},\"userId\":{\"$ref\":\"#/definitions/encryptableCompString\"},\"weight\":{\"minimum\":0,\"multipleOf\":0.1,\"type\":\"number\"}},\"type\":\"object\"},\"proof\":{\"properties\":{\"type\":{\"type\":\"string\"}},\"type\":\"object\"}},\"type\":\"object\"},\"parsingOptions\":{\"defaultDecimalPlaces\":0,\"defaultMinimumDate\":-17592186044415,\"defaultMinimumInteger\":-4294967295,\"useDefaults\":false}}"},"credentialSubject":{"fname":"John","lname":"Smith","email":"[email protected]","SSN":"123-456789-0","userId":"user:123-xyz-#","country":"USA","city":"New York","timeOfBirth":1662010849619,"height":181.5,"weight":210.4,"BMI":23.25,"score":-13.5,"secret":"my-secret-that-wont-tell-anyone"},"proof":{"type":"Bls12381BBDT16MACDock2024","proofValue":"SYdh21D8qNH8m6Zp2d8HYRdna29rcR2LHrvTubzLbotAwLWEH9WNK8K4oaxW9yykG63Tjc3vp2Zt7NrSn53xvmHevSXLWGd3oVASxBCaKqKHUkTmh4oHokaJaVDKgqwt1bvWVsCY47nXgEwJt7pAVRdvq"}} | ||
{"cryptoVersion":"0.7.0","credentialSchema":{"id":"data:application/json;charset=utf-8,","type":"JsonSchemaValidator2018","version":"0.5.0","details":"{\"jsonSchema\":{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"definitions\":{\"encryptableCompString\":{\"type\":\"string\"},\"encryptableString\":{\"type\":\"string\"}},\"properties\":{\"credentialSubject\":{\"properties\":{\"BMI\":{\"minimum\":0,\"multipleOf\":0.01,\"type\":\"number\"},\"SSN\":{\"$ref\":\"#/definitions/encryptableString\"},\"city\":{\"type\":\"string\"},\"country\":{\"type\":\"string\"},\"email\":{\"type\":\"string\"},\"fname\":{\"type\":\"string\"},\"height\":{\"minimum\":0,\"multipleOf\":0.1,\"type\":\"number\"},\"lname\":{\"type\":\"string\"},\"score\":{\"minimum\":-100,\"multipleOf\":0.1,\"type\":\"number\"},\"secret\":{\"type\":\"string\"},\"timeOfBirth\":{\"minimum\":0,\"type\":\"integer\"},\"userId\":{\"$ref\":\"#/definitions/encryptableCompString\"},\"weight\":{\"minimum\":0,\"multipleOf\":0.1,\"type\":\"number\"}},\"type\":\"object\"},\"proof\":{\"properties\":{\"type\":{\"type\":\"string\"}},\"type\":\"object\"}},\"type\":\"object\"},\"parsingOptions\":{\"defaultDecimalPlaces\":0,\"defaultMinimumDate\":-17592186044415,\"defaultMinimumInteger\":-4294967295,\"useDefaults\":false}}"},"credentialSubject":{"fname":"John","lname":"Smith","email":"[email protected]","SSN":"123-456789-0","userId":"user:123-xyz-#","country":"USA","city":"New York","timeOfBirth":1662010849619,"height":181.5,"weight":210.4,"BMI":23.25,"score":-13.5,"secret":"my-secret-that-wont-tell-anyone"},"proof":{"type":"Bls12381BBDT16MACDock2024","proofValue":"ZGyG7MQrQvWs8cLYphyW6MTD86gPSG73EQKJ7RgHNZ8adscJ73gVwQ4nPqFfFbGub5QBi5iyWtKYqow6DosAdg6An4F6PcYkRqcvWcuVLitHy5si4PtTdQtb1XsiXmsoF2zBToATx94dwnhaW8LG3FFhE"}} |
2 changes: 1 addition & 1 deletion
2
tests/anonymous-credentials/serialized-objects/bbdt16_credential2-0.7.0.json
This file contains 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 |
---|---|---|
@@ -1 +1 @@ | ||
{"cryptoVersion":"0.7.0","credentialSchema":{"id":"data:application/json;charset=utf-8,","type":"JsonSchemaValidator2018","version":"0.5.0","details":"{\"jsonSchema\":{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"definitions\":{\"encryptableCompString\":{\"type\":\"string\"},\"encryptableString\":{\"type\":\"string\"}},\"properties\":{\"credentialSubject\":{\"properties\":{\"fname\":{\"type\":\"string\"},\"isbool\":{\"type\":\"boolean\"},\"lname\":{\"type\":\"string\"},\"location\":{\"properties\":{\"city\":{\"type\":\"string\"},\"country\":{\"type\":\"string\"}},\"type\":\"object\"},\"physical\":{\"properties\":{\"BMI\":{\"minimum\":0,\"multipleOf\":0.01,\"type\":\"number\"},\"height\":{\"minimum\":0,\"multipleOf\":0.1,\"type\":\"number\"},\"weight\":{\"minimum\":0,\"multipleOf\":0.1,\"type\":\"number\"}},\"type\":\"object\"},\"score\":{\"minimum\":-100,\"multipleOf\":0.1,\"type\":\"number\"},\"sensitive\":{\"properties\":{\"SSN\":{\"$ref\":\"#/definitions/encryptableString\"},\"email\":{\"type\":\"string\"},\"secret\":{\"type\":\"string\"},\"userId\":{\"$ref\":\"#/definitions/encryptableCompString\"}},\"type\":\"object\"},\"timeOfBirth\":{\"minimum\":0,\"type\":\"integer\"}},\"type\":\"object\"},\"proof\":{\"properties\":{\"type\":{\"type\":\"string\"}},\"type\":\"object\"}},\"type\":\"object\"},\"parsingOptions\":{\"defaultDecimalPlaces\":0,\"defaultMinimumDate\":-17592186044415,\"defaultMinimumInteger\":-4294967295,\"useDefaults\":false}}"},"credentialSubject":{"fname":"John","lname":"Smith","isbool":true,"sensitive":{"secret":"my-secret-that-wont-tell-anyone","email":"[email protected]","SSN":"123-456789-0","userId":"user:123-xyz-#"},"location":{"country":"USA","city":"New York"},"timeOfBirth":1662010849619,"physical":{"height":181.5,"weight":210,"BMI":23.25},"score":-13.5},"proof":{"type":"Bls12381BBDT16MACDock2024","proofValue":"RZZQMAgNiS1LgJCAUx6QMeosiszTk8qEUY8uBagTtATdfeSeYaA61iqPoDde9QBrdd231bbjnnTNyLiim4WZj4bM1SzKv3xkamw5CDY5PK1EPyhRJ66qLRCqrH3d3vPt1g2TFvUzt7jNV3ZvErfsSgTHw"}} | ||
{"cryptoVersion":"0.7.0","credentialSchema":{"id":"data:application/json;charset=utf-8,","type":"JsonSchemaValidator2018","version":"0.5.0","details":"{\"jsonSchema\":{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"definitions\":{\"encryptableCompString\":{\"type\":\"string\"},\"encryptableString\":{\"type\":\"string\"}},\"properties\":{\"credentialSubject\":{\"properties\":{\"fname\":{\"type\":\"string\"},\"isbool\":{\"type\":\"boolean\"},\"lname\":{\"type\":\"string\"},\"location\":{\"properties\":{\"city\":{\"type\":\"string\"},\"country\":{\"type\":\"string\"}},\"type\":\"object\"},\"physical\":{\"properties\":{\"BMI\":{\"minimum\":0,\"multipleOf\":0.01,\"type\":\"number\"},\"height\":{\"minimum\":0,\"multipleOf\":0.1,\"type\":\"number\"},\"weight\":{\"minimum\":0,\"multipleOf\":0.1,\"type\":\"number\"}},\"type\":\"object\"},\"score\":{\"minimum\":-100,\"multipleOf\":0.1,\"type\":\"number\"},\"sensitive\":{\"properties\":{\"SSN\":{\"$ref\":\"#/definitions/encryptableString\"},\"email\":{\"type\":\"string\"},\"secret\":{\"type\":\"string\"},\"userId\":{\"$ref\":\"#/definitions/encryptableCompString\"}},\"type\":\"object\"},\"timeOfBirth\":{\"minimum\":0,\"type\":\"integer\"}},\"type\":\"object\"},\"proof\":{\"properties\":{\"type\":{\"type\":\"string\"}},\"type\":\"object\"}},\"type\":\"object\"},\"parsingOptions\":{\"defaultDecimalPlaces\":0,\"defaultMinimumDate\":-17592186044415,\"defaultMinimumInteger\":-4294967295,\"useDefaults\":false}}"},"credentialSubject":{"fname":"John","lname":"Smith","isbool":true,"sensitive":{"secret":"my-secret-that-wont-tell-anyone","email":"[email protected]","SSN":"123-456789-0","userId":"user:123-xyz-#"},"location":{"country":"USA","city":"New York"},"timeOfBirth":1662010849619,"physical":{"height":181.5,"weight":210,"BMI":23.25},"score":-13.5},"proof":{"type":"Bls12381BBDT16MACDock2024","proofValue":"bmmenNYXjPNaZ3RArxpME4ev9jUvp98BSivuL6myVNjwxHXA1se27RnNgndJoyJPay3H7omJiXHjqE6YL8TruyB2bEUCG2n61QzTQfitgJH6gVNumznNMDNeWv5x3qMCr4HTiHFGmWtsMVFgNuYFyyKcV"}} |
2 changes: 1 addition & 1 deletion
2
tests/anonymous-credentials/serialized-objects/bbdt16_credential3-0.7.0.json
This file contains 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 |
---|---|---|
@@ -1 +1 @@ | ||
{"cryptoVersion":"0.7.0","credentialSchema":{"id":"data:application/json;charset=utf-8,","type":"JsonSchemaValidator2018","version":"0.5.0","details":"{\"jsonSchema\":{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"definitions\":{\"encryptableCompString\":{\"type\":\"string\"},\"encryptableString\":{\"type\":\"string\"}},\"properties\":{\"credentialStatus\":{\"properties\":{\"id\":{\"type\":\"string\"},\"revocationCheck\":{\"type\":\"string\"},\"revocationId\":{\"type\":\"string\"},\"type\":{\"type\":\"string\"}},\"type\":\"object\"},\"credentialSubject\":{\"properties\":{\"fname\":{\"type\":\"string\"},\"lessSensitive\":{\"properties\":{\"department\":{\"properties\":{\"location\":{\"properties\":{\"geo\":{\"properties\":{\"lat\":{\"minimum\":-90,\"multipleOf\":0.001,\"type\":\"number\"},\"long\":{\"minimum\":-180,\"multipleOf\":0.001,\"type\":\"number\"}},\"type\":\"object\"},\"name\":{\"type\":\"string\"}},\"type\":\"object\"},\"name\":{\"type\":\"string\"}},\"type\":\"object\"},\"location\":{\"properties\":{\"city\":{\"type\":\"string\"},\"country\":{\"type\":\"string\"}},\"type\":\"object\"}},\"type\":\"object\"},\"lname\":{\"type\":\"string\"},\"rank\":{\"minimum\":0,\"type\":\"integer\"},\"sensitive\":{\"properties\":{\"SSN\":{\"$ref\":\"#/definitions/encryptableString\"},\"email\":{\"type\":\"string\"},\"phone\":{\"type\":\"string\"},\"very\":{\"properties\":{\"secret\":{\"type\":\"string\"}},\"type\":\"object\"}},\"type\":\"object\"}},\"type\":\"object\"},\"proof\":{\"properties\":{\"type\":{\"type\":\"string\"}},\"type\":\"object\"}},\"type\":\"object\"},\"parsingOptions\":{\"defaultDecimalPlaces\":0,\"defaultMinimumDate\":-17592186044415,\"defaultMinimumInteger\":-4294967295,\"useDefaults\":false}}"},"credentialSubject":{"fname":"John","lname":"Smith","sensitive":{"very":{"secret":"my-secret-that-wont-tell-anyone"},"email":"[email protected]","phone":"801009801","SSN":"123-456789-0"},"lessSensitive":{"location":{"country":"USA","city":"New York"},"department":{"name":"Random","location":{"name":"Somewhere","geo":{"lat":-23.658,"long":2.556}}}},"rank":6},"credentialStatus":{"type":"DockVBAccumulator2022","id":"dock:accumulator:accumId123","revocationCheck":"membership","revocationId":"user:A-123"},"proof":{"type":"Bls12381BBDT16MACDock2024","proofValue":"TAUnE6nupiVrRyVPUgHR2jAH1AxmE6gNFPRWtm1sLq1qLprbWPczCzGfk8aj5ip3mjBdBtRDahqkzJUdqRL8BTC4tEG4rWYTgMeoBRbP9oFQwk2CWeeFtpZjv17KzjJNVezQdamQgk1h1DJH7czxqt9yj"}} | ||
{"cryptoVersion":"0.7.0","credentialSchema":{"id":"data:application/json;charset=utf-8,","type":"JsonSchemaValidator2018","version":"0.5.0","details":"{\"jsonSchema\":{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"definitions\":{\"encryptableCompString\":{\"type\":\"string\"},\"encryptableString\":{\"type\":\"string\"}},\"properties\":{\"credentialStatus\":{\"properties\":{\"id\":{\"type\":\"string\"},\"revocationCheck\":{\"type\":\"string\"},\"revocationId\":{\"type\":\"string\"},\"type\":{\"type\":\"string\"}},\"type\":\"object\"},\"credentialSubject\":{\"properties\":{\"fname\":{\"type\":\"string\"},\"lessSensitive\":{\"properties\":{\"department\":{\"properties\":{\"location\":{\"properties\":{\"geo\":{\"properties\":{\"lat\":{\"minimum\":-90,\"multipleOf\":0.001,\"type\":\"number\"},\"long\":{\"minimum\":-180,\"multipleOf\":0.001,\"type\":\"number\"}},\"type\":\"object\"},\"name\":{\"type\":\"string\"}},\"type\":\"object\"},\"name\":{\"type\":\"string\"}},\"type\":\"object\"},\"location\":{\"properties\":{\"city\":{\"type\":\"string\"},\"country\":{\"type\":\"string\"}},\"type\":\"object\"}},\"type\":\"object\"},\"lname\":{\"type\":\"string\"},\"rank\":{\"minimum\":0,\"type\":\"integer\"},\"sensitive\":{\"properties\":{\"SSN\":{\"$ref\":\"#/definitions/encryptableString\"},\"email\":{\"type\":\"string\"},\"phone\":{\"type\":\"string\"},\"very\":{\"properties\":{\"secret\":{\"type\":\"string\"}},\"type\":\"object\"}},\"type\":\"object\"}},\"type\":\"object\"},\"proof\":{\"properties\":{\"type\":{\"type\":\"string\"}},\"type\":\"object\"}},\"type\":\"object\"},\"parsingOptions\":{\"defaultDecimalPlaces\":0,\"defaultMinimumDate\":-17592186044415,\"defaultMinimumInteger\":-4294967295,\"useDefaults\":false}}"},"credentialSubject":{"fname":"John","lname":"Smith","sensitive":{"very":{"secret":"my-secret-that-wont-tell-anyone"},"email":"[email protected]","phone":"801009801","SSN":"123-456789-0"},"lessSensitive":{"location":{"country":"USA","city":"New York"},"department":{"name":"Random","location":{"name":"Somewhere","geo":{"lat":-23.658,"long":2.556}}}},"rank":6},"credentialStatus":{"type":"DockVBAccumulator2022","id":"dock:accumulator:accumId123","revocationCheck":"membership","revocationId":"user:A-123"},"proof":{"type":"Bls12381BBDT16MACDock2024","proofValue":"SzRVJBkFmjYw2nTWHceYaUo31ZR1SNrBL87HemGiSFLyBY1EWQEBqFe9EDLJsR8Tzz59MvHPkrmxpWxLR3jGRGssfcNaLz8667VcUmPjgxyWe9U19EqMFGQCxJNnc1HqqeunGBBCyPoQTmHj6q5pkZ3K4"}} |
Oops, something went wrong.