3.2 · Credential formatsWorking
SD-JWT and SD-JWT VC
Selective Disclosure for JavaScript Object Notation (JSON) Web Tokens (SD-JWT) signs a token in which each value the holder may withhold is replaced by the hash of a salted copy of it. The holder receives the salted copies, called disclosures, separately, and sends only those a verifier needs. The verifier hashes them and finds the hashes in the signed token. The credential format built on it adds a type identifier, rules for finding the issuer’s key, and type and display metadata.
Take RFC 9901’s own example apart: hash each Disclosure, check both signatures, and see the claims the verifier ends with.
A form where every answer sits under a scratch-off panel, and the signature covers each panel’s fingerprint.
Where it breaks:
- Every verifier sees the same signature and the same fingerprints, so two verifiers comparing notes can tell it was the same credential, unless the issuer gave the holder several single-use copies (4.2 Unlinkability, in four directions).
- Decoy fingerprints can hide how many answers there are.
The issuer signs the token with the digests in it RFC9901 §4.1; each disclosure is a salt, a name and a value RFC9901 §4.2; a key-binding token proves the holder’s key is present RFC9901 §4.3.
Its limits on unlinkability RFC9901 §10.1, and decoy digests RFC9901 §10.4.
The credential format names its type with a “vct” value DRAFT-IETF-OAUTH-SD-JWT-VC-19 §2.2.2.1 and publishes type metadata DRAFT-IETF-OAUTH-SD-JWT-VC-19 §5.
- The verifier sees the disclosures sent, the signed token and its digests, and so the number of claims, unless there are decoys. Two verifiers can match the same signature.
- It does not prove anything about a claim it does not disclose: “over 18” must be issued as its own claim.
- DRAFT-IETF-OAUTH-SD-JWT-VC-19 SD-JWT-based Verifiable Digital Credentials (SD-JWT VC)
- RFC9901 Selective Disclosure for JSON Web Tokens