AEGIS by ProtoworksDevelopers
Menu

5.2 · Binding a credential to its holderWorking

Key binding and device binding

The issuer puts the holder’s public key into the credential. To present it, the wallet signs a fresh challenge from the verifier with the matching private key, ideally held in secure hardware that will not export it. A credential copied off the device then fails, because the copy cannot sign.

An analogy

A key card that only works with a PIN pad built into the card.

Where it breaks:

  • If the private key can be exported, or the device is compromised, the binding goes with it.
  • That is why issuers may ask for evidence of where the key lives before they bind to it (5.5 Wallet attestation and key attestation).
Precisely

Without Key Binding, a Verifier only gets the proof that the credential was issued by a particular Issuer, but the credential itself can be replayed by anyone who gets access to it.

RFC9901 §9.5

The key goes in the credential’s confirmation claim RFC9901 §4.1.2, and the presentation carries a key-binding token over the verifier’s challenge RFC9901 §4.3. An mdoc proves the same through device authentication ISO-WG10-18013-5-ED2-WD §12.4. At issuance, the wallet proves it holds the key in its credential request OPENID4VCI-1.0 §8.2, in one of the defined proof types OPENID4VCI-1.0 §F.

Diagram
ChallengeWalletSecure hardwareCheckVerifiersends a challengeWalletasks for a signaturePrivate keynever leavesVerifierchecks against cnfnoncesignsignature
The verifier sends a fresh challenge to the wallet. The wallet’s secure hardware signs it with the private key. The verifier checks the signature against the public key inside the credential.
Who can see what
  • The verifier sees the public key in the credential. A key reused across credentials or verifiers is a link between them.
What this does not do
  • Key binding proves the key is present. It does not prove who is holding the device.
Verified against
  • 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 version CD ballot resolution v4, dated 2025-09-14 (the latest of the three second-edition drafts in the repository at b250e7a), checked 2026-10-28
  • OPENID4VCI-1.0 OpenID for Verifiable Credential Issuance 1.0 version 1.0, checked 2026-10-28
  • RFC9901 Selective Disclosure for JSON Web Tokens version RFC 9901, checked 2026-10-28

Last reviewed 2026-10-28. Next review 2027-04-28. Every quotation is checked against the text it quotes, at the version named, before the page is published.