openbadgeslib 4.6.5__tar.gz → 4.7.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/Changelog.txt +61 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/PKG-INFO +9 -4
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/README.md +5 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/SECURITY.md +2 -1
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/__init__.py +2 -2
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/_jws/__init__.py +14 -1
- openbadgeslib-4.7.0/openbadgeslib/_mldsa.py +504 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/badge_model.py +73 -3
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/config.ini.example +17 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/confparser.py +28 -12
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/issue.py +16 -1
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/keys.py +120 -3
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/ob1/badge.py +11 -2
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/ob1/signer.py +6 -1
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/ob1/verifier.py +8 -2
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/ob2/verifier.py +8 -2
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/ob3/credential.py +6 -1
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/ob3/did.py +50 -3
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/ob3/eudi.py +367 -18
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/ob3/ldp.py +2 -2
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/ob3/publish.py +29 -11
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/ob3/signer.py +49 -14
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/ob3/status.py +21 -8
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/ob3/verifier.py +145 -30
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/oid4vci/formats.py +42 -1
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/oid4vci/metadata.py +29 -4
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/openbadges_keygenerator.py +21 -4
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/openbadges_publish.py +3 -1
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/openbadges_verifier.py +12 -2
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/util.py +1 -1
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/verify.py +26 -7
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib.egg-info/PKG-INFO +9 -4
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib.egg-info/SOURCES.txt +12 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib.egg-info/requires.txt +3 -3
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/pyproject.toml +10 -7
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/conftest.py +55 -0
- openbadgeslib-4.7.0/tests/fixtures/rfc9964/ml-dsa-44.json +14 -0
- openbadgeslib-4.7.0/tests/fixtures/rfc9964/ml-dsa-65.json +14 -0
- openbadgeslib-4.7.0/tests/fixtures/rfc9964/ml-dsa-87.json +14 -0
- openbadgeslib-4.7.0/tests/test_mldsa_cli.py +404 -0
- openbadgeslib-4.7.0/tests/test_mldsa_core.py +608 -0
- openbadgeslib-4.7.0/tests/test_mldsa_refusals.py +137 -0
- openbadgeslib-4.7.0/tests/test_ob3_did_mldsa.py +231 -0
- openbadgeslib-4.7.0/tests/test_ob3_eudi_mldsa.py +533 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_ob3_ldp_ecdsa_sd_dos.py +4 -3
- openbadgeslib-4.7.0/tests/test_ob3_mldsa.py +649 -0
- openbadgeslib-4.7.0/tests/test_ob3_publish_mldsa.py +181 -0
- openbadgeslib-4.7.0/tests/test_oid4vci_mldsa.py +169 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/CONTRIBUTING.md +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/GOVERNANCE.md +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/LICENSE.txt +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/MANIFEST.in +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/docs/README.md +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/_jsonmodel.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/_jws/exceptions.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/_jws/utils.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/_ob1_api.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/_python_support.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/_safejson.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/baking.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/cli_common.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/errors.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/logs.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/mail.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/ob1/__init__.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/ob2/__init__.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/ob2/models.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/ob2/signer.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/ob3/__init__.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/ob3/_canon_guard.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/ob3/_context_validation.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/ob3/_structure_screen.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/ob3/clr.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/ob3/contexts/__init__.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/ob3/contexts/clr_context_2.0.1.json +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/ob3/contexts/credentials-v2.json +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/ob3/contexts/ob-v3p0-context-3.0.1.json +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/ob3/contexts/ob-v3p0-context-3.0.2.json +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/ob3/contexts/ob-v3p0-context-3.0.3.json +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/ob3/contexts/ob-v3p0-extensions.json +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/ob3/contexts/security-data-integrity-v2.json +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/ob3/contexts/security-multikey-v1.json +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/ob3/status_list.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/ob3/status_registry.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/oid4vci/__init__.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/oid4vci/codes.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/oid4vci/errors.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/oid4vci/handler.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/oid4vci/memory_store.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/oid4vci/nonce.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/oid4vci/offer.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/oid4vci/reconcile.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/oid4vci/sqlite_store.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/oid4vci/store.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/openbadges_cli.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/openbadges_init.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/openbadges_signer.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/openbadges_status.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib/py.typed +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib.egg-info/dependency_links.txt +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib.egg-info/entry_points.txt +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/openbadgeslib.egg-info/top_level.txt +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/setup.cfg +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/config1.ini +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/conformance/Dockerfile.ob3 +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/conformance/README.md +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/conformance/conftest.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/conformance/docker-compose.yml +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/conformance/relax-danubetech-checksums.awk +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/conformance/test_official_validators.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/fixtures/ob_schemas/README.md +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/fixtures/ob_schemas/ob_v3p0_achievementcredential_schema.json +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/fixtures/ob_schemas/ob_v3p0_profile_schema.json +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/fixtures/ob_schemas/refresh.sh +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/fixtures/vc_di_eddsa/README.md +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/fixtures/vc_di_eddsa/credentials-examples-v2.json +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/fixtures/vc_di_eddsa/doc-hash.txt +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/fixtures/vc_di_eddsa/key-pair.json +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/fixtures/vc_di_eddsa/proof-config-hash.txt +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/fixtures/vc_di_eddsa/signed-credential.json +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/images/sample1.png +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/images/sample1.svg +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/images/userimage01.svg +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/ldp_helpers.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/logo Python Espan/314/203a.svg" +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/logo Python Espa/303/261a.svg" +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_b64url.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_baking.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_cli_json.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_cli_smoke.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_confparser.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_docs.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_eddsa.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_errors.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_examples.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_issue.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_issue_credential.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_jsonmodel.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_jws.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_key_operation.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_keys.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_mail.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_ob1_badge_io.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_ob1_deprecation.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_ob1_signer.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_ob1_verifier.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_ob2_cli.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_ob2_error_branches.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_ob2_models.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_ob2_signer.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_ob2_verifier.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_ob3_canon_guard_dataset.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_ob3_clr.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_ob3_conformance_schema.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_ob3_contexts.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_ob3_credential.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_ob3_did.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_ob3_did_doc.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_ob3_endorsement.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_ob3_eudi_oid4vci.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_ob3_eudi_sd_jwt.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_ob3_eudi_type_metadata.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_ob3_eudi_x5c.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_ob3_ldp.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_ob3_ldp_canon_guard.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_ob3_ldp_cli.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_ob3_ldp_context_validation.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_ob3_ldp_ecdsa_sd.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_ob3_ldp_errors.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_ob3_ldp_sign.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_ob3_ldp_structure_screen.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_ob3_publish_cli.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_ob3_signer.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_ob3_signer_cli_ldp.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_ob3_status.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_ob3_status_list.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_ob3_status_registry.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_ob3_verifier.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_oid4vci_config.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_oid4vci_protocol.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_oid4vci_reservations.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_oid4vci_store.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_openbadges_cli.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_public_api.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_python_support.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_safejson.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_sign_ecc.pem +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_sign_rsa.pem +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_signer_batch.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_untrusted_input.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_util.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_verifier_cli_coverage.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_verify.py +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_verify_ecc.pem +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/test_verify_rsa.pem +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/withoutxmlheader.svg +0 -0
- {openbadgeslib-4.6.5 → openbadgeslib-4.7.0}/tests/withxmlheader.svg +0 -0
|
@@ -4,6 +4,67 @@ OpenBadgesLib - Changelog
|
|
|
4
4
|
Newest first. Dates are ISO 8601 (YYYY-MM-DD).
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
* v4.7.0 - 2026-12-05
|
|
8
|
+
|
|
9
|
+
- feat(ob3): EXPERIMENTAL ML-DSA (FIPS 204) signatures for OB 3.0 JWT-VC and
|
|
10
|
+
SD-JWT VC, as RFC 9964 defines them for JOSE: `alg` ML-DSA-44, ML-DSA-65
|
|
11
|
+
and ML-DSA-87 (public keys of 1312, 1952 and 2592 bytes, signatures of
|
|
12
|
+
2420, 3309 and 4627 bytes), pure ML-DSA with an empty context string, and
|
|
13
|
+
the `AKP` JWK key type for the public key. Needs a `cryptography` built
|
|
14
|
+
with ML-DSA support (official wheels since 48.0.0; the floor is already
|
|
15
|
+
50). PyJWT has no ML-DSA, so the algorithms are registered on a private
|
|
16
|
+
PyJWT instance; PyJWT's global registry is not touched.
|
|
17
|
+
Issuing opts in by choosing the key type: `key_type = ML-DSA-65` (or -44,
|
|
18
|
+
-87) in a badge section, `KeyFactory(KeyType.ML_DSA_65)` (new `KeyMLDSA`)
|
|
19
|
+
or `OB3Signer(privkey_pem, algorithm='ML-DSA-65')`. Key files are an
|
|
20
|
+
unencrypted PKCS#8 PEM in the seed form (RFC 9881 section 6) and a
|
|
21
|
+
SubjectPublicKeyInfo PEM. It covers JWT-VC issue and verify (baked SVG
|
|
22
|
+
and PNG included), the Bitstring Status List credential signed with the
|
|
23
|
+
badge key, did:web documents (the key is published as an `AKP`
|
|
24
|
+
`publicKeyJwk`), did:jwk, SD-JWT VC issue and verify through openvc-core,
|
|
25
|
+
and the `credential_signing_alg_values_supported` of the OID4VCI issuer
|
|
26
|
+
metadata. `openbadges-publish` keeps the did:web document's keys in
|
|
27
|
+
config order. Tokens carry no `kid`, so, as for classical keys, a did:web
|
|
28
|
+
issuer with several badge keys has only the first-listed one verify
|
|
29
|
+
through DID resolution; verify the others with their key file.
|
|
30
|
+
Verifying requires an explicit opt-in, checked before any signature work:
|
|
31
|
+
`allow_pq=True` (exactly a bool) on `OB3Verifier`,
|
|
32
|
+
`OB3Verifier.for_issuer_did`, `verify_endorsement_jwt`,
|
|
33
|
+
`check_credential_status`, `verify_badge` and `verify_badge_sd_jwt`, and
|
|
34
|
+
`--allow-pq` on `openbadges-verifier`. Without it an ML-DSA key is
|
|
35
|
+
refused with `OB3VerificationError` (`EudiError` for SD-JWT VC), and an
|
|
36
|
+
ML-DSA key pins only its own parameter set. It changes nothing for RSA,
|
|
37
|
+
EC and Ed25519 keys.
|
|
38
|
+
Not implemented, on purpose: the W3C Data Integrity post-quantum
|
|
39
|
+
cryptosuites (`mldsa44-rdfc-2024`, ...), a First Public Working Draft
|
|
40
|
+
(2026-06-16) that calls itself experimental and does not state the
|
|
41
|
+
signing variant or context, so `proof_format = ldp` stays Ed25519-only;
|
|
42
|
+
did:key / Multikey for ML-DSA (did:key lists no post-quantum key type and
|
|
43
|
+
the multicodec code points are drafts); SLH-DSA, FN-DSA and composite
|
|
44
|
+
ML-DSA + ECDSA JOSE signatures (drafts, or not in `cryptography`); and
|
|
45
|
+
OpenBadges 1.0 / 2.0, where ML-DSA keys are refused. OID4VCI wallet key
|
|
46
|
+
proofs stay classical (ES256, ES384, EdDSA).
|
|
47
|
+
SD-JWT VC also takes, under the same opt-in, an ML-DSA `x5c` chain
|
|
48
|
+
(RFC 9881; `verify_badge_sd_jwt(..., x5c_trust_anchors=..., allow_pq=True)`),
|
|
49
|
+
an ML-DSA-signed IETF Token Status List
|
|
50
|
+
(`status_list_token_resolver(..., allow_pq=True)`) and an ML-DSA holder
|
|
51
|
+
key (an RFC 9964 `AKP` `holder_jwk`; its Key Binding JWT is refused
|
|
52
|
+
before any crypto without `allow_pq=True`).
|
|
53
|
+
The `[eudi]`, `[ldp-sd]` and `[oid4vci]` extras now need
|
|
54
|
+
openvc-core >= 1.39.0 (was 1.35.0): that release adds the opt-in those
|
|
55
|
+
three paths use and binds an ML-DSA key to the token's `alg`.
|
|
56
|
+
Interoperability: OB 3.0 section 8.2.3 makes RS256 the minimum and says
|
|
57
|
+
other algorithms are permitted but limit interoperability, and section 8
|
|
58
|
+
requires a proof mechanism the 1EdTech conformance test suite supports
|
|
59
|
+
to pass its tests (the Implementation Guide names RS256 JWT and EdDSA
|
|
60
|
+
Data Integrity), so ML-DSA is permitted but outside the proof mechanisms
|
|
61
|
+
that suite covers. HAIP 1.0 requires ES256, and
|
|
62
|
+
the EUDI ARF (ECCG Agreed Cryptographic Mechanisms v2.0) recommends
|
|
63
|
+
ML-DSA combined with a classical mechanism, so a standalone ML-DSA
|
|
64
|
+
SD-JWT VC is not EUDI-conformant. Tokens and baked images grow by
|
|
65
|
+
several KB. See the Post-Quantum wiki page and
|
|
66
|
+
`examples/ob3_jwt_vc_mldsa.py`
|
|
67
|
+
|
|
7
68
|
* v4.6.5 - 2026-11-18
|
|
8
69
|
|
|
9
70
|
- security(ldp): every description of a node the returned credential is
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: openbadgeslib
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.7.0
|
|
4
4
|
Summary: Production-ready Python library & CLI for Open Badges 3.0 (W3C Verifiable Credentials): issue, verify, and revoke JWT-VC credentials with Bitstring Status Lists and did:web — plus strict OB 2.0 and legacy OB 1.0.
|
|
5
5
|
Author-email: Luis González Fernández <luisgf@luisgf.es>, Jesús Cea Avión <jcea@jcea.es>
|
|
6
6
|
License: LGPLv3
|
|
@@ -37,12 +37,12 @@ Requires-Dist: defusedxml>=0.7
|
|
|
37
37
|
Provides-Extra: ldp
|
|
38
38
|
Requires-Dist: pyld<4,>=3.3.0; extra == "ldp"
|
|
39
39
|
Provides-Extra: eudi
|
|
40
|
-
Requires-Dist: openvc-core<2,>=1.
|
|
40
|
+
Requires-Dist: openvc-core<2,>=1.39.0; extra == "eudi"
|
|
41
41
|
Provides-Extra: ldp-sd
|
|
42
|
-
Requires-Dist: openvc-core[data-integrity]<2,>=1.
|
|
42
|
+
Requires-Dist: openvc-core[data-integrity]<2,>=1.39.0; extra == "ldp-sd"
|
|
43
43
|
Requires-Dist: pyld<4,>=3.3.0; extra == "ldp-sd"
|
|
44
44
|
Provides-Extra: oid4vci
|
|
45
|
-
Requires-Dist: openvc-core<2,>=1.
|
|
45
|
+
Requires-Dist: openvc-core<2,>=1.39.0; extra == "oid4vci"
|
|
46
46
|
Provides-Extra: dev
|
|
47
47
|
Requires-Dist: pytest>=8.0; extra == "dev"
|
|
48
48
|
Requires-Dist: pytest-cov>=5.0; extra == "dev"
|
|
@@ -78,6 +78,11 @@ legacy format, selected with `-V {1,2,3}` (default `3`).
|
|
|
78
78
|
- Issue and verify OpenBadges 3.0 JWT-VC credentials
|
|
79
79
|
- Bake OB 3.0 credentials (JWT-VC or Data Integrity JSON-LD) into SVG and PNG badge images
|
|
80
80
|
- RSA 2048-bit (RS256), ECC NIST P-256 (ES256), and Ed25519 (EdDSA) key support
|
|
81
|
+
- Experimental: ML-DSA (FIPS 204, RFC 9964) signatures for OB 3.0 JWT-VC and
|
|
82
|
+
SD-JWT VC, opt-in on both sides (`--allow-pq` to verify); permitted by
|
|
83
|
+
OB 3.0 section 8.2.3 but limits interoperability, and outside the proof
|
|
84
|
+
mechanisms the 1EdTech conformance test suite covers — see the
|
|
85
|
+
[Post-Quantum](https://github.com/luisgf/openbadgeslib/wiki/Post-Quantum) wiki page
|
|
81
86
|
- SHA-256 hashed recipient identity with salt (OB 2.0)
|
|
82
87
|
- Expiration and revocation checking
|
|
83
88
|
- Issuer-side OB 3.0 revocation and suspension: W3C Bitstring Status List
|
|
@@ -21,6 +21,11 @@ legacy format, selected with `-V {1,2,3}` (default `3`).
|
|
|
21
21
|
- Issue and verify OpenBadges 3.0 JWT-VC credentials
|
|
22
22
|
- Bake OB 3.0 credentials (JWT-VC or Data Integrity JSON-LD) into SVG and PNG badge images
|
|
23
23
|
- RSA 2048-bit (RS256), ECC NIST P-256 (ES256), and Ed25519 (EdDSA) key support
|
|
24
|
+
- Experimental: ML-DSA (FIPS 204, RFC 9964) signatures for OB 3.0 JWT-VC and
|
|
25
|
+
SD-JWT VC, opt-in on both sides (`--allow-pq` to verify); permitted by
|
|
26
|
+
OB 3.0 section 8.2.3 but limits interoperability, and outside the proof
|
|
27
|
+
mechanisms the 1EdTech conformance test suite covers — see the
|
|
28
|
+
[Post-Quantum](https://github.com/luisgf/openbadgeslib/wiki/Post-Quantum) wiki page
|
|
24
29
|
- SHA-256 hashed recipient identity with salt (OB 2.0)
|
|
25
30
|
- Expiration and revocation checking
|
|
26
31
|
- Issuer-side OB 3.0 revocation and suspension: W3C Bitstring Status List
|
|
@@ -45,7 +45,8 @@ highest-priority areas.
|
|
|
45
45
|
What the library defends against, and what it delegates to the operator (key
|
|
46
46
|
custody, DNS/TLS for `did:web`, hosting of published documents), is documented
|
|
47
47
|
in the [Security Model](https://github.com/luisgf/openbadgeslib/wiki/Security-Model)
|
|
48
|
-
wiki page. Reports that fall within that model — a bypass of algorithm pinning
|
|
48
|
+
wiki page. Reports that fall within that model — a bypass of algorithm pinning
|
|
49
|
+
(including the opt-in that gates the experimental ML-DSA algorithms),
|
|
49
50
|
signature or recipient-binding verification, the SSRF/decompression guards, the
|
|
50
51
|
context allowlist, or the status-list checks — are especially welcome.
|
|
51
52
|
|
|
@@ -43,7 +43,7 @@ from .ob3 import ( # noqa: F401
|
|
|
43
43
|
|
|
44
44
|
# ── Shared utilities ────────────────────────────────────────────────────────────
|
|
45
45
|
# KeyEd25519 is the recommended key type for OB 3.0 / LDP (eddsa-rdfc-2022).
|
|
46
|
-
from .keys import KeyFactory, KeyRSA, KeyECC, KeyEd25519 # noqa: F401
|
|
46
|
+
from .keys import KeyFactory, KeyRSA, KeyECC, KeyEd25519, KeyMLDSA # noqa: F401
|
|
47
47
|
from .util import __version__ # noqa: F401
|
|
48
48
|
|
|
49
49
|
# The OB1 legacy name table, shared with openbadgeslib.ob1 (single source,
|
|
@@ -126,7 +126,7 @@ __all__ = [
|
|
|
126
126
|
'OB3Signer', 'OB3Verifier', 'OB3VerificationError',
|
|
127
127
|
'OpenBadgeCredential', 'Achievement', 'Issuer',
|
|
128
128
|
# Keys (KeyEd25519 is the recommended OB 3.0 / LDP key type).
|
|
129
|
-
'KeyFactory', 'KeyRSA', 'KeyECC', 'KeyEd25519',
|
|
129
|
+
'KeyFactory', 'KeyRSA', 'KeyECC', 'KeyEd25519', 'KeyMLDSA',
|
|
130
130
|
# Programmatic issue / verify facades. issue_credential_from_conf is the
|
|
131
131
|
# token-returning sibling of issue_from_conf, for delivering a credential
|
|
132
132
|
# over a digital channel (a wallet, an API) rather than as a badge image.
|
|
@@ -12,7 +12,7 @@ from cryptography.hazmat.primitives.asymmetric import ec, rsa
|
|
|
12
12
|
from cryptography.hazmat.primitives.asymmetric.ed25519 import (
|
|
13
13
|
Ed25519PrivateKey, Ed25519PublicKey)
|
|
14
14
|
|
|
15
|
-
from ..keys import KeyType, detect_key_type, key_to_pem
|
|
15
|
+
from ..keys import KeyType, detect_key_type, is_ml_dsa, key_to_pem
|
|
16
16
|
from ..errors import UnknownKeyType
|
|
17
17
|
|
|
18
18
|
# Key objects PyJWT's ``prepare_key`` accepts as-is (its own supported backends).
|
|
@@ -100,6 +100,13 @@ def _allowed_algs_for_key(key: Any) -> Set[str]:
|
|
|
100
100
|
return set()
|
|
101
101
|
|
|
102
102
|
|
|
103
|
+
def _is_ml_dsa_key(key: Any) -> bool:
|
|
104
|
+
try:
|
|
105
|
+
return is_ml_dsa(detect_key_type(key_to_pem(key)))
|
|
106
|
+
except UnknownKeyType:
|
|
107
|
+
return False
|
|
108
|
+
|
|
109
|
+
|
|
103
110
|
def sign(header_dict: Dict[str, Any], payload_dict: Dict[str, Any], key: Any) -> bytes:
|
|
104
111
|
"""Sign header+payload dicts and return raw signature bytes."""
|
|
105
112
|
if key is None:
|
|
@@ -158,6 +165,12 @@ def verify_block(msg: Union[str, bytes], key: Optional[Any] = None) -> bool:
|
|
|
158
165
|
raise MissingVerifier("JWS header 'alg' is missing or not a string")
|
|
159
166
|
|
|
160
167
|
allowed = _allowed_algs_for_key(key)
|
|
168
|
+
if not allowed and _is_ml_dsa_key(key):
|
|
169
|
+
# Recognised, but not a JWS key type for OB 1.0/2.0. Fail closed before
|
|
170
|
+
# any crypto, with a message that says why (not "cannot determine").
|
|
171
|
+
raise SignatureError(
|
|
172
|
+
"ML-DSA keys are not supported for OpenBadges 1.0/2.0 JWS "
|
|
173
|
+
"(RFC 9964 ML-DSA is defined for OB 3.0 JWT-VC only)")
|
|
161
174
|
if not allowed:
|
|
162
175
|
# Fail closed: if the key type cannot be classified we cannot pin the
|
|
163
176
|
# algorithm to it, so refuse rather than let the header's 'alg' dictate
|