You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.
If I remove the document id altogether, then my reveal document is properly formed and verifies - but I have mangled with potentially critical data in the system:
I've also noticed that credentialSubject keeps the original id in the derived document, is this expected?
Yes any node in the graph (JSON-LD document) that already has an ID will be preserved as you derive sub-graphs, if the node does not have an ID then one is assigned.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
So following this problem when verifying a derived document: mattrglobal/node-bbs-signatures#211,
I have found that the issue is coming from this piece of information from my initial document:
There are 2 levels to the issue.
If I remove the document
id
altogether, then my reveal document is properly formed and verifies - but I have mangled with potentially critical data in the system:If I remove the
urn:uuid
prefix, then the derived document verifies, but it lacks the expected information from the reveal document:What put me on the trail to identify this problem is this line: https://github.com/mattrglobal/jsonld-signatures-bbs/blob/master/src/BbsBlsSignatureProof2020.ts#L131, however I am not sure this is the actual final culprit. From what I can see in the sample demo, https://github.com/mattrglobal/jsonld-signatures-bbs/blob/master/sample/ts-node/src/demo_single.ts, the original id of the initial document is preserved, so it does not seem to be expected that we should modify the id to essentially create a new document.
For all intent and purposes, this derived document (with the original id) will not verify:
The text was updated successfully, but these errors were encountered: