4.4 · PrivacyWorking
Selective disclosure is not zero knowledge
Both let a holder show less than the whole credential, so they are often treated as one thing. They are not. Hash-based selective disclosure hides the values you withhold, but sends the same signature every time. Zero-knowledge schemes send a proof that is new each time, and the signature never leaves the wallet. The table sets out what follows from that difference.
How to choose. If the threat is a verifier learning more than it needs, hash-based selective disclosure is enough, and it is the most widely deployed. If the threat is verifiers comparing records, single-use copies close it at the cost of issuing and storing many copies. If the threat includes the issuer and a verifier pooling what they know, only the zero-knowledge columns close it.
SD-JWT only conceals the value of claims that are not revealed. It does not meet the security properties for anonymous credentials
This issue applies to all salted hash-based approaches, including mDL/mDoc [ISO.18013-5] and SD-CWT [SD-CWT].
| Hash-based (SD-JWT, mdoc) | Hash-based, single-use copies | Blinded signatures (AnonCreds, BBS) | Circuit proofs over an existing signature | |
|---|---|---|---|---|
| What the verifier receives | The signed token or object, and the revealed values RFC9901 §4 | The same, from a fresh copy OPENID4VCI-1.0 §14.6 | A proof derived from the signature, and the revealed values W3C-VC-DATA-MODEL-2.0 §5.7 | A proof that the wallet holds a valid credential meeting a condition EUDI-TS13 §3 |
| Signature reused | Every time RFC9901 §10.1 | Once per copy RFC9901 §10.1 | Never: each proof is new W3C-VC-DATA-MODEL-2.0 §5.7 | Never: the credential is the secret input EUDI-TS13 §3 |
| Linkable by one verifier, or two comparing records | Yes RFC9901 §10.1 | No RFC9901 §10.1 | No W3C-VC-DATA-MODEL-2.0 §5.7 W3C-VC-DI-BBS-1.0 §6.2 | No EUDI-TS13 §3.1 |
| Linkable by the issuer and a verifier together | Yes RFC9901 §10.1 | Yes RFC9901 §10.1 | No W3C-VC-DATA-MODEL-2.0 §5.7 | No EUDI-TS13 §3.1 |
| Predicates | Only answers computed in advance ISO-WG10-18013-5-ED2-WD §13.4.6 | As for one credential | Yes ANONCREDS-1.0 §9.1 | Any condition the circuit expresses EUDI-TS13 §3 |
| Standing in the register | A standards-track RFC RFC9901 §4 | A final specification OPENID4VCI-1.0 §14.6 | A draft by its own status ANONCREDS-1.0 §9.1; a candidate recommendation draft W3C-VC-DI-BBS-1.0 §6.2 | An exploratory technical specification EUDI-TS13 §3 |
- The rows on linking are the privacy rows: 4.2 Unlinkability, in four directions explains the four directions.
- Neither approach hides the values you reveal.
- ANONCREDS-1.0 AnonCreds Specification
- EUDI-TS13 EUDI Wallet TS13: Specification for the implementation of Zero-Knowledge Proofs based on arithmetic circuits in the EUDI Wallet
- ISO-WG10-18013-5-ED2-WD ISO/IEC 18013-5 second edition, CD ballot resolution v4, published by ISO/IEC JTC 1/SC 17/WG 10
- OPENID4VCI-1.0 OpenID for Verifiable Credential Issuance 1.0
- RFC9901 Selective Disclosure for JSON Web Tokens
- W3C-VC-DATA-MODEL-2.0 Verifiable Credentials Data Model v2.0
- W3C-VC-DI-BBS-1.0 Data Integrity BBS Cryptosuites v1.0