ElevenID
ElevenID LLC
Login
All Posts
Flows
4 of 4
8 min read

Selective Disclosure

Selective disclosure lets a holder share only the claims a verifier needs - without leaking the rest. SD-JWT and zero-knowledge predicates are the two primary mechanisms in MIP.


Selective disclosure is the ability for a holder to reveal only a subset of the claims in a credential, while still proving the unrevealed claims exist and were signed by the original issuer. It is the practical implementation of the minimum disclosure principle: share what's needed, protect everything else.

SD-JWT: Selective Disclosure Without ZK

SD-JWT hashes each claim individually with a random salt and embeds the hashes in the JWT payload. At presentation time, the holder includes only the salt+value pairs for the claims they choose to disclose. The verifier checks that the disclosed value hashes match the committed hash in the payload - but unrevealed claims leave no trace in the presentation.

Zero-Knowledge Predicates

Zero-knowledge predicates go further: they let a holder prove a logical statement about a claim without revealing the claim's value at all. "My birth_date satisfies age >= 18" can be proven cryptographically - the verifier learns only whether the predicate is satisfied, not the actual birth date. MIP Credential Templates declare which claims support ZK predicates; Presentation Policies can require them.

SD-JWT disclosure - only selected claims are revealed

text
// Credential has: given_name, family_name, birth_date, department, employment_status
// Verifier needs: employment_status = active, department = Engineering (as predicates)
// Holder discloses: only employment_status and department

Presentation = [compact-sd-jwt]
  . [issuer-signature]
  ~ WyJlbHVWNU9nM2dTTklJOHFBIiwgImVtcGxveW1lbnRfc3RhdHVzIiwgImFjdGl2ZSJd
  ~ WyJRZ19PNjR6cUF4ZTlyNlF4IiwgImRlcGFydG1lbnQiLCAiRW5naW5lZXJpbmciXQ

// given_name, family_name, birth_date are NOT included
// Verifier cannot infer or reconstruct them