Repository navigation
1.0.0a1
Pre-releaseFirst published release. The Credential Issuer role of OpenID for Verifiable Credential Issuance 1.0, built against the specification source at tag 1.0-final rather than against summaries of it.
Alpha, deliberately: the protocol layer is complete, one credential format rests on a draft, and two format variants are not written yet. Published now because that is what lets other packages depend on it normally.
What works
The protocol. Every request, response and metadata document of Sections 4 to 12, with the rules the specification states in prose enforced by validators rather than left to the caller — key binding and proof types that must both be present or both absent, a credential response that is either immediate or deferred, a Transaction Code that belongs to one grant type alone.
Key proofs (Appendix F.1) and key attestations (Appendix D), including the rule that ties them together: a proof accompanied by an attestation must be signed by a key that attestation covers.
Three credential formats.
| Profile | Identifier | Source |
|---|---|---|
| ISO mdoc | mso_mdoc |
ISO/IEC 18013-5:2021 |
| IETF SD-JWT VC | dc+sd-jwt |
RFC 9901 + draft-ietf-oauth-sd-jwt-vc-18 |
| W3C VCDM | jwt_vc_json |
VC Data Model |
Open Badges 3.0 is a credential of the third — same code, different arguments.
Message encryption (Section 10), credential signing behind a protocol so an HSM or a remote signer can take over, the pre-authorized code flow (Section 6), a FastAPI router for the issuer endpoints, and an in-memory reference backend for tests and development.
What the library does not do
It decides nothing about issuance. Whether a credential may be issued, which nonce is current, what an access token grants — all of that lives behind the IssuerBackend protocol, because a library deciding it would be deciding it for a deployment it cannot see.
Also deliberately absent: the Authorization Endpoint and Token Endpoint of an OAuth Authorization Server, and the resolution of a kid or x5c to a trusted key. Both are trust decisions that belong to a deployment.
Not yet
ldp_vc and jwt_vc_json-ld need JSON-LD canonicalization. The di_vp proof type needs the same. Verification of credentials is the reader's side, not the issuer's.
Standards
- OpenID4VCI 1.0 — Final Specification, not subject to further revision.
- RFC 9901 (SD-JWT) — published standard.
- draft-ietf-oauth-sd-jwt-vc-18 — Standards Track, not yet an RFC. The one moving part, named in the module that depends on it.
- ISO/IEC 18013-5:2021 — implemented from the standard; no normative text, tables or CDDL are reproduced in this repository.
Tests
209, written before the code. Where a specification prints a worked example, it is a test vector: RFC 9901 §4.2.3 pins both the digest rule and the JSON serialization, byte for byte.