Repository navigation
Feature release: experimental post-quantum signatures (ML-DSA) for OpenBadges 3.0, off by default. Nothing changes for RSA, EC and Ed25519 keys. If you use the [eudi], [ldp-sd] or [oid4vci] extras, this release raises the openvc-core floor to 1.39.0.
pip install -U openbadgeslibAdded
- feat(ob3): OB 3.0 JWT-VC badges can be signed with ML-DSA-44/65/87 (FIPS 204) using the JOSE identifiers of RFC 9964 (
algML-DSA-*, JWKkty: "AKP") and RFC 9881 PKCS#8 seed-form keys.- Issuing is opt-in by setting
key_type = ML-DSA-65(or 44 / 87);openbadges-keygeneratorcreates the key pair. - Verifying needs
allow_pq=Truein the API oropenbadges-verifier --allow-pq. Without it an ML-DSA key is refused before any signature work. - An ML-DSA key pins only its own parameter set.
- Issuing is opt-in by setting
- Covered:
OB3Signer/OB3Verifier, SVG/PNG baking, Bitstring Status List, endorsements,did:webanddid:jwk(AKPpublicKeyJwk), andopenbadges-publish -V 3. - SD-JWT VC (
[eudi]), under the same opt-in: an ML-DSA issuer key, an ML-DSAx5cchain, an ML-DSA-signed IETF Token Status List (status_list_token_resolver(..., allow_pq=True)) and an ML-DSA holder key (anAKPholder_jwk). - OID4VCI: the issuer metadata advertises the key's alg. Wallet key proofs stay classical (ES256, ES384, EdDSA).
PyJWT has no ML-DSA, so the algorithms are registered on a private PyJWT instance; its global registry is untouched.
Not implemented, on purpose
- OpenBadges 1.0 / 2.0 and Data Integrity (
proof_format = ldp): the W3C post-quantum cryptosuites are a First Public Working Draft. did:key/ Multikey for ML-DSA: the multicodec code points are drafts.- SLH-DSA, FN-DSA and composite ML-DSA + ECDSA signatures.
Interoperability
ML-DSA badges are experimental. OB 3.0 section 8.2.3 makes RS256 the minimum and says other algorithms are permitted but limit interoperability, and the 1EdTech conformance test suite does not cover them. A standalone ML-DSA SD-JWT VC is outside the EUDI/HAIP profile. Tokens are several KB larger (about 9.4 KB for ML-DSA-65).
Compatibility
- Dependency: the
[eudi],[ldp-sd]and[oid4vci]extras now needopenvc-core>=1.39.0(was 1.35.0). ML-DSA needs acryptographybuild with ML-DSA support. - An ML-DSA key needs an explicit, matching
key_type; ML-DSA key files in a section without one are refused. - No behaviour change for classical keys.
Known limits
- Tokens issued by this library carry no
kid, so for adid:webissuer that publishes several badge keys only the first listed verifies through DID resolution. This already applied to classical keys.
Details: the Post-Quantum wiki page.