Everything inside the VP is revealed (all or nothing)
02
Disclose what the question needs — and nothing more
A credential is not one document: it is a bundle of claims
Disclose what the question needs — and nothing more
Why it won
Commit–reveal · claim-level granularity · plain hashing
the SD-JWT / RFC 9901 line
The Holder sees exactly which claims were asked for
Every SD scheme protects one side: the Holder learns exactly which claims were requested — say, a bank scoring a loan
What leaks
Decision criteria · business rules · research focus
… and it is protected by law
Trade secrets (GDPR Rec. 63) · model confidentiality (Basel III Pillar 3)
Colluding Holders compare requests ⇒ model extraction
| Year | Approach | Claim-level granularity | Holder privacy | Verifier privacy | Issuer binding | Primitive§ | Bound by Holder | Cost⋆ | Adopted in SSI | Open source |
|---|---|---|---|---|---|---|---|---|---|---|
| 2022 | Atomic credentials | (✓)‖ | ✓ | ✗ | ✓ | Signatures | ✓ | low | ✓ | ✓ |
| 2025 | Hash-based / SD-JWT | ✓ | ✓ | ✗ | ✓ | Hash commitments | ✓ | low | ✓¶ | ✓ |
| 2023 | Merkle-tree based | ✓ | ✓ | ✗ | ✓ | Hash trees | ✓ | low | (✓) | ✗ |
| 2018 | Attribute-based enc. | ✓ | ✓ | ✗ | ✓ | ABE | ✓ | high | ✗ | ✗ |
| 2019 | Threshold cryptography | ✓ | ✓ | ✗ | ✓ | Threshold sig. | ✓ | high | ✗ | ✓ |
| 2004 | CL signatures | ✓ | ✓ | ✗ | ✓ | ZKP (SRSA) | ✓ | high | (✓) | ✓ |
| 2023 | BBS+ signatures | ✓ | ✓ | ✗ | ✓ | Pairings + ZKP | ✓ | med | ✓ | ✓ |
| 2023 | zk-creds (zkSNARK) | ✓ | ✓ | ✗† | ✓ | zkSNARK | ✓ | high | ✗ | ✓ |
| 1998 | Private Information Retrieval | ✓ | ✗ | ✓ | ✗ | PIR | ✗ | med | ✗ | ✓ |
| 2026 | COD-ssi (this work) | ✓ | ✓ | ✓ | ✓ | OPRF + AEAD | ✓ | med | ✓‡ | ✓ |
§ ABE: attribute-based encryption · ZKP: zero-knowledge proof · OPRF: oblivious PRF · AEAD: authenticated encryption ⋆ Presentation-time cost, relative to a plain signed credential ‖ One VC per claim, hence no intra-credential flexibility ¶ Dominant deployed choice † The proved predicate itself discloses the Verifier's decision logic ‡ Drop-in on top of hash-based SD
03
Encrypt every claim, share keys obliviously
Setup
Enforcement without knowledge
The Holder still caps how much leaves the wallet, while having no idea what left
An OPRF splits a PRF evaluation: the client brings the input
UC-secure under one-more Diffie–Hellman in the ROM (Jarecki et al. 2014; Beullens et al. 2025) · COD-ssi is OPRF-agnostic
The Holder samples a fresh
Issuance is untouched
Unlinkable across presentations
Verification
Setting
Known limit
A malicious Holder can misbuild the VP and mount a selective-failure attack (backup)
Four properties (Def. 1)
| Property | Reduces to | |
|---|---|---|
| 1. | Confidentiality | AEAD IND-CPA, OPRF |
| 2. | Authenticity, integrity | AEAD INT-CTXT |
| 3a. | Client privacy (Verifier) | OPRF pseudorandomness |
| 3b. | Server privacy (Holder) | OPRF client privacy |
| 4. | Issuer verifiability | SD in the ROM |
3a + 3b: the OT-like dual guarantee of COD
Security is composition: no new hardness assumption anywhere
04
An ordinary laptop, a JavaScript prototype, 1000 runs per configuration
Testbed
Instantiation
Three levels measured
claim · credential · presentation — including
Per-claim averages over all runs: independent of the number of claims
05
In a credential exchange, the question is data too
Main takeaway
In a credential exchange the question is data too. COD-ssi is the first scheme that keeps it private — without giving up the Holder's disclosure bound.
What we work on at CRI-Lab, KAUST
Fully funded position
Covered tuition fees · monthly stipend
Relocation · on-campus housing
Medical insurance · visa support
Interested? Come by and talk to me after the session, or write to our PI, Prof. Roberto Di Pietro: roberto.dipietro@kaust.edu.sa
paper
extended version
prototypeNotation, algorithms, costs, proofs, attacks, caveats
| Symbol | Definition | Meaning |
|---|---|---|
did:<method>:<id> |
A DID controlled by name | |
| — | Secret key bound to |
|
| VC | A [SD] verifiable credential | |
| — | Metadata, Issuer signature | |
| Claim–value dictionary | ||
| Claim–digest dictionary (signed) | ||
| string | Claim name (path), and value | |
| Credential data: the plain claims | ||
| Claim digest and its salt | ||
| The SD random oracle (SHA-3) | ||
| VP | A verifiable presentation | |
| — | List of VCs on the same DID | |
| — | Metadata, Holder signature | |
| Presentation data (encrypted) | ||
| Encrypted claims of one VC | ||
| Eligible claims; disclosure quota |
| Symbol | Definition | Meaning |
|---|---|---|
| The (O)PRF (2HashDH); keyed | ||
| — | Key, input, output spaces | |
| Fresh VP master secret (Holder) | ||
| 2HashDH hash-to-group | ||
| 2HashDH finaliser | ||
| — | Blinded request, response, blinding factor | |
| Claim-specific symmetric key | ||
| AEAD encryption (AES-GCM) | ||
| AEAD decryption | ||
| nonce | Fresh 96-bit initialisation vector | |
| Ciphertext, authentication tag | ||
| — | Adversary | |
secp256k1 |
OPRF group; exponentiation in |
|
| — | Issuer, Holder, Verifier |
1 · VP creation (Holder)
In: SD credentials
Out:
Sample a fresh
For each
then add
Construct
2 · VP verification (Verifier)
In: VP,
Out: the decrypted claims of interest
Standard checks first: VP and VC signatures, subject binding, expiry, revocation
Then,
Quota: the Holder simply stops answering after
What the Holder learns
Only
What the Verifier learns
The
Where it runs
Holder ↔ Verifier only: the Issuer plays no part at presentation time
| Phase | Party | Group ops | Sym. ops | Comm. |
|---|---|---|---|---|
| VP creation | Holder | — | ||
| VP validation | Verifier | — | — | |
| OPRF disclosure | Verifier | |||
| Holder | — | |||
| Storage ( |
— | — | — |
Exp: exponentiation in
Reading
Creation is linear in
Gold: the standard SD structure · cyan: the material COD-ssi adds, substituting the classic SD presentation data
Setting. Group
Protocol. Client holds
Security. One-more Diffie–Hellman in the ROM ⇒ UC-secure evaluation, optimal round complexity
Why an OPRF and not plain OT?
The Holder never holds
Why the commitment as input?
Freshness matters
Let
Premises. 2HashDH is UC-secure in the ROM; AES-GCM is IND-CPA and INT-CTXT; SHA-3-based SD is secure in the ROM.
Composition
An AEAD achieving IND-CPA + INT-CTXT realises the authenticated-encryption functionality under UC composition ⇒ AES-GCM inherits UC-style composability, and the overall protocol satisfies Definition 1. Full treatment in the extended version (arXiv:2604.10685).
The missing binding. Nothing cryptographically ties
The attack.
Mitigations
i. Issuer-assisted
Issuer signs commitments binding
ii. Trusted environment
VP generated inside an enclave no Issuer, but a trusted-software assumption
iii. ZK proof
Proof of correct encryption full binding, no added trust, significant cost
Setting: access to electronic health records for research
What COD-ssi gives
Patients release no more than the attributes effectively queried, and the researcher's selection stays hidden
The balance
Data minimisation enforced without surrendering research confidentiality: under classical SD, the two are in direct conflict
Every existing family leaves the Verifier's request in the clear
The presentation is normally Holder-initiated, but COD-ssi adapts:
Invariant across all three
COD runs exclusively between Holder and Verifier at presentation time; the Issuer's role never extends beyond standard credential issuance
Properties 3a and 3b jointly capture the OT-like privacy structure of COD. A construction-independent formalisation, Verifier-Privacy-Preserving Selective Disclosure, would cover instantiations beyond the OPRF-based design.
Verifier-privacy game
A malicious Holder prepares a presentation, observes the disclosure, and must tell which of two equal-size attribute subsets the Verifier selected. Verifier privacy ≡ negligible distinguishing advantage, modulo the policy-observable leakage.
Symmetric game
Bounds the Verifier's advantage in learning unqueried claims, recovering client privacy and confidentiality
Why it matters
Games over an abstract VP scheme syntax make alternative designs comparable, rather than tying the notion to 2HashDH
VC creation and verification times (left scale), VC and
The non-oblivious baseline: SD request and response times (left scale, note the units), sizes (right scale). Against the OPRF plot, COD-ssi costs more computation (elliptic curve vs plain hashing) but sends smaller responses: group elements replace plaintext claims and nonces.
| Component | Instantiation |
|---|---|
| Language | JavaScript |
| DID method | did:ethr v2.3.10, local Ethereum chain |
| VC / VP format | W3C, JWT encoding (did-jwt-vc v3.1.4) |
| SD format | SD-JWT (RFC 9901) |
| Claim commitment |
|
| OPRF group |
secp256k1 (noble-curves v1.9.4) |
| Hash-to-group |
SHA-256-based hash-to-curve |
| Finaliser |
SHA-256 |
| AEAD | AES-GCM, 256-bit key, fresh 96-bit IV per claim |
| Benchmark host | Intel Core i7-9750H @ 2.60 GHz, 16 GB RAM, Linux |
| Configurations | |
| Repetitions | 1000 per configuration, top/bottom 1 % discarded |
https://github.com/eOnofri04/COD-ssi