w3c / vc-test-suite

Verifiable Credentials WG Test Suite
https://w3c.github.io/vc-test-suite/
BSD 3-Clause "New" or "Revised" License
68 stars 39 forks source link

ZKP verifiable credential #44

Closed yancyribbens closed 5 years ago

yancyribbens commented 5 years ago

How should the verifier know if a derived zkp verifiable credential is missing a credentialSchema as opposed to a non derived verifiable credential that does not require credentialSchema?

brentzundel commented 5 years ago

How should the verifier know if a derived zkp verifiable credential is missing a credentialSchema as opposed to a non derived verifiable credential that does not require credentialSchema?

For a derived zkp verifiable credential, the signature scheme may require additional information in order for a verifier to process it. The credentialSchema property is the standard way to provide this additional information. If it is absent, the verifier will not be able to process the credential signature. If the verifier knows how to process the type of signature in a credential, they will also know if additional information is necessary for that processing, and will know to look for a credentialSchema property to find that information.

Does this answer your question?

dmitrizagidulin commented 5 years ago

From today's VCWG call:

One way to tell when the credentialSchema property is required is -- look at the type field in the proof section. If the type is a ZKP type (like the anon credential one), then the schema is required.