pypi openbadgeslib 3.5.0
v3.5.0

latest releases: 4.6.5, 4.6.4, 4.6.3...
4 months ago

Two roadmap items land: status-registry writes are now race-safe, and the EUDI SD-JWT track signs with NIST P-384 (ES384) keys.

Fixed

  • fix(status): serialise status-registry writes with an exclusive inter-process lock. Concurrent openbadges-signer runs — or a signer overlapping openbadges-publish --revoke — each did load → mutate → save with no lock, so the second save() clobbered the first's new entry, and a delivered credential missing from the registry can never be revoked. Both mutation paths now run inside the new StatusRegistry.locked(path) context manager, which holds a POSIX fcntl lock on a sibling <registry>.lock file across the whole load → mutate → save (a dedicated lock file, because save() renames the JSON and a lock on its inode would be orphaned). The revoke path searches unlocked and reloads the winning registry under the lock before mutating. Where fcntl is unavailable (non-POSIX) it degrades to the previous unlocked behaviour, so single-operator use is unchanged and the OS-independent classifier stays honest.

Added

  • feat(eudi): the SD-JWT VC track now also signs with NIST P-384 (ES384) keys, not only Ed25519 and P-256. issue_badge_sd_jwt reads the ECDSA curve from the key and picks openvc-core's matching backend (P256SigningKey/P384SigningKey), stamping an alg: ES384 issuer JWT for a P-384 PEM; verification was already curve-agnostic. Other curves (e.g. P-521) and RSA are still rejected with an actionable message. New openbadgeslib.keys.ec_curve_from_pem helper. Note: HAIP profiles the P-256 family, so P-256 remains the recommended default for EUDI wallets.

Verified: the full local gate — flake8, mypy and the complete suite (831 tests, [ldp] and [eudi] extras installed) — plus the CI matrix on Python 3.10–3.14, which gated the automatic PyPI publish. The registry lock is covered by a real multi-process test (6 concurrent allocators, no lost entry).

Full history: Changelog.txt

Don't miss a new openbadgeslib release

NewReleases is sending notifications on new releases.