Feature release: issue and verify Open Badges 3.0 as EUDI SD-JWT VC — the credential format the EU Digital Identity Wallet / ARF converges on — with selective disclosure. An additive track delegating the crypto to the generic openvc-core library; the native VC-JWT (JOSE) and Data Integrity (LDP) issuance are untouched and stay conformant. Opt-in via the new [eudi] extra:
pip install "openbadgeslib[eudi]"from openbadgeslib.ob3.eudi import issue_badge_sd_jwt, verify_badge_sd_jwt
token = issue_badge_sd_jwt(credential, privkey_pem=priv_pem) # <issuer-jwt>~<disclosure>~…
result = verify_badge_sd_jwt(token, pubkey_pem=pub_pem)
print(result.claims["achievement"]["name"])Added
feat(ob3): newopenbadgeslib.ob3.eudimodule —issue_badge_sd_jwt,verify_badge_sd_jwt,badge_to_sd_jwt_claims. Maps anOpenBadgeCredentialinto an IETF SD-JWT VC and back, delegating the crypto to openvc-core'sSdJwtVcProofSuite. The achievement is always disclosed while the recipient identity is selectively disclosable, so a holder can prove the badge yet withhold who they are. Key-binding presentations (holdercnf, bound to an audience + nonce) are supported for the wallet flow. Ed25519 (EdDSA) and NIST P-256 (ES256) keys only — the SD-JWT algorithm set; RSA is rejected with a clear message.
Changed
build(eudi): the[eudi]extra now tracksopenvc-core>=0.8,<0.9(was>=0.3.1,<0.4). The SD-JWT VC API openbadgeslib consumes is unchanged across the bump. This extra transitively requirescryptography>=45, while the base install floor stays>=42for non-EUDI users.
Scope: this EUDI track is library-only — there is no CLI tool for it, and it is a separate credential format for wallet flows, not a third image proof alongside VC-JWT / Data Integrity. The base install is unchanged: without the extra, the SD-JWT tests skip cleanly and any call reports pip install openbadgeslib[eudi].
Verified with flake8, mypy (strict) and the full test suite (827 passed with the [ldp] and [eudi] extras) locally against openvc-core 0.8.0 + cryptography 49.0.0, and the CI matrix on Python 3.10–3.13, which gated the automatic PyPI publish.
Full history: Changelog.txt