hyperledger / anoncreds-rs

anoncreds-rs
https://wiki.hyperledger.org/display/anoncreds
Apache License 2.0
73 stars 55 forks source link

Use a single cryptosuite identifier and tag proofValue with subtype #317

Closed andrewwhitehead closed 8 months ago

andrewwhitehead commented 8 months ago

Fixes #315

This changes the cryptosuite value to "anoncreds-2023".

The proofValue of the DataIntegrityProof is encoded as a 2-element list with the subtype as the first element: 1=credential signature, 2=credential presentation, 3=presentation proof (aggregate proof). This makes for a small and compatible representation, although other options could be considered, such as a map ({"CredentialSignature": {...}}).