-
Notifications
You must be signed in to change notification settings - Fork 160
Signinig & Verification: Incorrect canonicalization of credential status #1592
Comments
- Excluding "credentialStatus.type" from VC which is causing document canonizing issue (hyperledger-archives#1592) - closes hyperledger-archives#1593 Signed-off-by: sudesh.shetty <sudesh.shetty@securekey.com>
Revert Fix #1594 once this issue resolved |
- Excluding "credentialStatus.type" from VC which is causing document canonizing issue (hyperledger-archives#1592) - closes hyperledger-archives#1593 Signed-off-by: sudesh.shetty <sudesh.shetty@securekey.com>
- Excluding "credentialStatus.type" from VC which is causing document canonizing issue (hyperledger-archives#1592) - closes hyperledger-archives#1593 Signed-off-by: sudesh.shetty <sudesh.shetty@securekey.com>
- Excluding "credentialStatus.type" from VC which is causing document canonizing issue (hyperledger-archives#1592) - closes hyperledger-archives#1593 Signed-off-by: sudesh.shetty <sudesh.shetty@securekey.com>
- Excluding "credentialStatus.type" from VC which is causing document canonizing issue (hyperledger-archives#1592) - closes hyperledger-archives#1593 Signed-off-by: sudesh.shetty <sudesh.shetty@securekey.com>
If we check JSON-LD normalization at JSON-LD Playground, we will get the result WITH credential status (as in
So we need to investigate JSON-LD normalization algorithm in the specification and any test suite available to see at what side (Go, JS) is the issue. |
Note the difference between the Go and JS library is that the Go library includes:
|
The type
jsonld-signatures properly drops that undefined term on the floor. There's a long standing issue in jsonld.js for adding a feature to warn users (or throw errors) when this happens so they can be aware that they forgot to define terms: digitalbazaar/jsonld.js#199 This should be resolved by:
And, ideally, for usability purposes:
|
I should add -- if a context is added that defines |
Thanks @dlongley ! |
Thank you @dlongley ! |
Previously: we weren't dropping undefined terms from RDFs. Fix: changed normalization aproach through json-gold library so that it returns parsing error whenever invalid data found in dataset. Added error handling logic for invalid RDF data errors where aries json ld processor is going to remove the invalid data from dataset and try again recursively. (Following digitalbazaar/jsonld.js#199) closes hyperledger-archives#1592 Signed-off-by: sudesh.shetty <sudesh.shetty@securekey.com>
Previously: we weren't dropping undefined terms from RDFs. Fix: changed normalization aproach through json-gold library so that it returns parsing error whenever invalid data found in dataset. Added error handling logic for invalid RDF data errors where aries json ld processor is going to remove the invalid data from dataset and try again recursively. (Following digitalbazaar/jsonld.js#199) closes hyperledger-archives#1592 Signed-off-by: sudesh.shetty <sudesh.shetty@securekey.com>
Previously: we weren't dropping undefined terms from RDFs. Fix: changed normalization aproach through json-gold library so that it returns parsing error whenever invalid data found in dataset. Added error handling logic for invalid RDF data errors where aries json ld processor is going to remove the invalid data from dataset and try again recursively. (Following digitalbazaar/jsonld.js#199) closes hyperledger-archives#1592 Signed-off-by: sudesh.shetty <sudesh.shetty@securekey.com>
Previously: we weren't dropping undefined terms from RDFs. Fix: changed normalization aproach through json-gold library so that it returns parsing error whenever invalid data found in dataset. Added error handling logic for invalid RDF data errors where aries json ld processor is going to remove the invalid data from dataset and try again recursively. (Following digitalbazaar/jsonld.js#199) closes hyperledger-archives#1592 Signed-off-by: sudesh.shetty <sudesh.shetty@securekey.com>
Previously: we weren't dropping undefined terms from RDFs. Fix: changed normalization aproach through json-gold library so that it returns parsing error whenever invalid data found in dataset. Added error handling logic for invalid RDF data errors where aries json ld processor is going to remove the invalid data from dataset and try again recursively. (Following digitalbazaar/jsonld.js#199) closes hyperledger-archives#1592 Signed-off-by: sudesh.shetty <sudesh.shetty@securekey.com>
During interop tests noticed an issues with canonicalization of verifiable credentials with credentials status.
Sample Doc :
After canonicalization using JSON LD LIB (https://github.com/digitalbazaar/jsonld-signatures/tree/master/lib)
Using Aries Framework Go:
The text was updated successfully, but these errors were encountered: