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

Document integration with other forms of verification #22

Open
KDean-GS1 opened this issue May 22, 2022 · 1 comment
Open

Document integration with other forms of verification #22

KDean-GS1 opened this issue May 22, 2022 · 1 comment

Comments

@KDean-GS1
Copy link

This is primarily to do with Verifiable Credentials, but it applies equally to XML Digital Signature, JSON Web Signature, and other forms of digital proof.

If I were to incorporate SAIDs into VCs, I am now dealing with two parts of the document that are affected by the replacement of a string of '#' characters with the SAID.

In order to maintain compatibility with other forms digital proof, the way I would see it working would be to generate the SAID first and then generate the proof. Standard VC validation would neither know nor care that the document ID is a SAID and would happily validate against the proof but SAID validation would have to be VC-aware and remove the proof before verifying the SAID.

@SmithSamuelM
Copy link
Contributor

SmithSamuelM commented May 25, 2022

We can add an informative appendix that instructs a user how to compute the SAID before computing the proof.

Unfortunately, the w3c VC specification us of JSON and JSON-LD does not attach proofs either as a true attachment or by wrapping the VC and the proof in an outer envelope but puts the proof as a top-level field in the VC block itself.

So as you suggest, this means that the proof must be calculated on the VC without the proof and then inserted. But because the SAID is also calculated on the VC it must be calculated after the proof is removed but before the proof is calculated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants