AEGIS by ProtoworksDevelopers
Menu

3.1 · Credential formatsWorking

Securing a credential: enveloping and embedded proofs

There are two ways to sign a credential. Enveloping wraps the whole thing in a signed container, so the signature covers the bytes exactly as they were sent. Embedding adds a proof object inside the data itself, so the data can be read without opening anything, and the signature covers a canonical form of it. The same credential data can be secured either way, so which data model and which signature are separate choices.

An analogy

A letter in a sealed envelope, against a letter with the signature written on the page.

Where it breaks:

  • An embedded proof survives the data being moved between systems only if both sides put it into exactly the same canonical form.
  • An envelope must be opened before the data can be read, but its bytes are signed exactly as they are.
Precisely

The data model names its securing mechanisms and requires a credential to be secured by one W3C-VC-DATA-MODEL-2.0 §4.12: an envelope in JSON Web Signature or CBOR Object Signing W3C-VC-JOSE-COSE-1.0 §3, or an embedded Data Integrity proof W3C-VC-DATA-INTEGRITY-1.0 §2.1.

Diagram
Credential dataclaims, metadataSigned envelopesigns the bytesVerifierCredential dataclaims, metadataEmbedded proofsigns a canon formVerifierwrappedchecksaddedchecks
The same credential secured two ways. Above, the credential sits inside a signed envelope, and the verifier checks the envelope’s signature over its bytes. Below, the credential carries a proof inside it, and the verifier checks the proof over a canonical form of the data.
Who can see what
  • The securing mechanism changes nothing about who sees the claims: whoever receives the credential reads them.
What this does not do
  • Choosing a securing mechanism does not choose selective disclosure or unlinkability; those come from the format built on it (3.6 Choosing a format).
Verified against

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.