w3c / vc-data-integrity

W3C Data Integrity Specification
https://w3c.github.io/vc-data-integrity/
Other
40 stars 18 forks source link

What's a "document"? #208

Closed jyasskin closed 6 months ago

jyasskin commented 11 months ago

https://www.w3.org/TR/vc-data-integrity/#dfn-unsecured-data-document and https://www.w3.org/TR/vc-data-integrity/#dfn-secured-data-document don't say what operations they support. We have some steps like "Set output.proof to the value of proof." and "Let unsecuredDocument be a copy of securedDocument with the proof value removed." that imply these are similar to JavaScript objects, but I couldn't find any direct statements to that effect.

jyasskin commented 8 months ago

This is fixed by #226, which includes:

The algorithms defined below operate on documents represented as JSON objects. This specification follows [JSON-LD-API] in representing a JSON object as an [Infra] map. An unsecured data document is a JSON object with no "proof" key. A secured data document is a JSON object with a "proof" key.

msporny commented 6 months ago

PR #226 has been merged, thank you for the PR @jyasskin! Closing.