andrewwhitehead / anoncreds-w3c-mapping

Python scripts for mapping between Anoncreds presentations and W3C credentials
5 stars 3 forks source link

Align with Data Integrity Proof data model #11

Open swcurran opened 11 months ago

swcurran commented 11 months ago

For the Proof section, the suggestion from @msporny / Data Integrity Proof folks is to align with the Data Integrity Proof data model. Something like this:

"proof": {
  "type": "DataIntegrityProof",
  "cryptosuite": "anoncreds-2022",
  "proofValue": "uAAA..FlM"
}
msporny commented 11 months ago

This is in order to align with this section of the spec: https://w3c.github.io/vc-data-integrity/#dataintegrityproof

Here are some examples of how other cryptosuites are using the DataIntegrityProof value:

https://w3c.github.io/vc-di-ecdsa/#dataintegrityproof https://w3c.github.io/vc-di-eddsa/#dataintegrityproof

The benefit here is that, if you use this pattern, you won't have to import any other JSON-LD context for your cryptographic suite. You just use the VC v2.0 context and you're done.