Skip to main content

Module credentials

Module credentials 

Source
Expand description

W3C Verifiable Credentials — issue / hold / present / verify, signed with real ML-DSA-65 (FIPS-204) via crate::crypto::fiduciary_crypto.

Consolidated from two stranded worktree branches (0.0.19-g2-vc = the runtime, 0.0.19-g3-cbor-ld = the codecs) into one module with a single Credential type — the duplicate Credential each branch had defined is unified here.

Verification is fail-closed: a missing proof, a tampered credential, or a failed signature check all return an error, never a silent false/true.

Modules§

codecs
Credential transport codecs (from 0.0.19-g3-cbor-ld) — encode/decode a Credential to alternative carriers. Uses the unified Credential type from the parent module (the branch’s duplicate was dropped).

Structs§

Credential
W3C Verifiable Credential Data Model.
Presentation
W3C Verifiable Presentation Data Model.
Proof
Proof object (Data Integrity Proof) carrying the ML-DSA signature.
VcRuntime
Issues, holds, presents, and verifies Verifiable Credentials with ML-DSA-65 proofs.

Enums§

StatusResult
VcError
Error types for Verifiable Credentials.

Traits§

CredentialStatus
Credential status (revocation/suspension) interface.
SelectiveDisclosure
Selective-disclosure interface (BBS-style); not yet implemented.
ZkDisclosure
Zero-knowledge predicate-disclosure interface; not yet implemented.