openbadgeslib 4.6.4__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.
Files changed (197) hide show
  1. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/Changelog.txt +179 -0
  2. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/PKG-INFO +9 -4
  3. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/README.md +5 -0
  4. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/SECURITY.md +2 -1
  5. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/__init__.py +2 -2
  6. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/_jws/__init__.py +14 -1
  7. openbadgeslib-4.7.0/openbadgeslib/_mldsa.py +504 -0
  8. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/badge_model.py +73 -3
  9. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/config.ini.example +17 -0
  10. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/confparser.py +28 -12
  11. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/issue.py +16 -1
  12. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/keys.py +120 -3
  13. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/ob1/badge.py +11 -2
  14. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/ob1/signer.py +6 -1
  15. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/ob1/verifier.py +8 -2
  16. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/ob2/verifier.py +8 -2
  17. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/ob3/_context_validation.py +284 -27
  18. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/ob3/credential.py +127 -35
  19. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/ob3/did.py +50 -3
  20. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/ob3/eudi.py +367 -18
  21. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/ob3/ldp.py +35 -6
  22. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/ob3/publish.py +29 -11
  23. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/ob3/signer.py +49 -14
  24. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/ob3/status.py +21 -8
  25. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/ob3/verifier.py +145 -30
  26. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/oid4vci/formats.py +42 -1
  27. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/oid4vci/metadata.py +29 -4
  28. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/openbadges_keygenerator.py +21 -4
  29. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/openbadges_publish.py +3 -1
  30. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/openbadges_verifier.py +12 -2
  31. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/util.py +1 -1
  32. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/verify.py +26 -7
  33. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib.egg-info/PKG-INFO +9 -4
  34. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib.egg-info/SOURCES.txt +12 -0
  35. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib.egg-info/requires.txt +3 -3
  36. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/pyproject.toml +10 -7
  37. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/conftest.py +55 -0
  38. openbadgeslib-4.7.0/tests/fixtures/rfc9964/ml-dsa-44.json +14 -0
  39. openbadgeslib-4.7.0/tests/fixtures/rfc9964/ml-dsa-65.json +14 -0
  40. openbadgeslib-4.7.0/tests/fixtures/rfc9964/ml-dsa-87.json +14 -0
  41. openbadgeslib-4.7.0/tests/test_mldsa_cli.py +404 -0
  42. openbadgeslib-4.7.0/tests/test_mldsa_core.py +608 -0
  43. openbadgeslib-4.7.0/tests/test_mldsa_refusals.py +137 -0
  44. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_ob3_credential.py +260 -0
  45. openbadgeslib-4.7.0/tests/test_ob3_did_mldsa.py +231 -0
  46. openbadgeslib-4.7.0/tests/test_ob3_eudi_mldsa.py +533 -0
  47. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_ob3_ldp_context_validation.py +991 -0
  48. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_ob3_ldp_ecdsa_sd.py +83 -0
  49. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_ob3_ldp_ecdsa_sd_dos.py +4 -3
  50. openbadgeslib-4.7.0/tests/test_ob3_mldsa.py +649 -0
  51. openbadgeslib-4.7.0/tests/test_ob3_publish_mldsa.py +181 -0
  52. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_ob3_verifier.py +34 -0
  53. openbadgeslib-4.7.0/tests/test_oid4vci_mldsa.py +169 -0
  54. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/CONTRIBUTING.md +0 -0
  55. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/GOVERNANCE.md +0 -0
  56. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/LICENSE.txt +0 -0
  57. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/MANIFEST.in +0 -0
  58. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/docs/README.md +0 -0
  59. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/_jsonmodel.py +0 -0
  60. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/_jws/exceptions.py +0 -0
  61. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/_jws/utils.py +0 -0
  62. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/_ob1_api.py +0 -0
  63. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/_python_support.py +0 -0
  64. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/_safejson.py +0 -0
  65. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/baking.py +0 -0
  66. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/cli_common.py +0 -0
  67. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/errors.py +0 -0
  68. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/logs.py +0 -0
  69. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/mail.py +0 -0
  70. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/ob1/__init__.py +0 -0
  71. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/ob2/__init__.py +0 -0
  72. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/ob2/models.py +0 -0
  73. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/ob2/signer.py +0 -0
  74. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/ob3/__init__.py +0 -0
  75. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/ob3/_canon_guard.py +0 -0
  76. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/ob3/_structure_screen.py +0 -0
  77. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/ob3/clr.py +0 -0
  78. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/ob3/contexts/__init__.py +0 -0
  79. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/ob3/contexts/clr_context_2.0.1.json +0 -0
  80. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/ob3/contexts/credentials-v2.json +0 -0
  81. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/ob3/contexts/ob-v3p0-context-3.0.1.json +0 -0
  82. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/ob3/contexts/ob-v3p0-context-3.0.2.json +0 -0
  83. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/ob3/contexts/ob-v3p0-context-3.0.3.json +0 -0
  84. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/ob3/contexts/ob-v3p0-extensions.json +0 -0
  85. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/ob3/contexts/security-data-integrity-v2.json +0 -0
  86. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/ob3/contexts/security-multikey-v1.json +0 -0
  87. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/ob3/status_list.py +0 -0
  88. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/ob3/status_registry.py +0 -0
  89. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/oid4vci/__init__.py +0 -0
  90. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/oid4vci/codes.py +0 -0
  91. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/oid4vci/errors.py +0 -0
  92. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/oid4vci/handler.py +0 -0
  93. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/oid4vci/memory_store.py +0 -0
  94. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/oid4vci/nonce.py +0 -0
  95. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/oid4vci/offer.py +0 -0
  96. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/oid4vci/reconcile.py +0 -0
  97. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/oid4vci/sqlite_store.py +0 -0
  98. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/oid4vci/store.py +0 -0
  99. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/openbadges_cli.py +0 -0
  100. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/openbadges_init.py +0 -0
  101. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/openbadges_signer.py +0 -0
  102. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/openbadges_status.py +0 -0
  103. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib/py.typed +0 -0
  104. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib.egg-info/dependency_links.txt +0 -0
  105. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib.egg-info/entry_points.txt +0 -0
  106. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/openbadgeslib.egg-info/top_level.txt +0 -0
  107. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/setup.cfg +0 -0
  108. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/config1.ini +0 -0
  109. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/conformance/Dockerfile.ob3 +0 -0
  110. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/conformance/README.md +0 -0
  111. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/conformance/conftest.py +0 -0
  112. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/conformance/docker-compose.yml +0 -0
  113. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/conformance/relax-danubetech-checksums.awk +0 -0
  114. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/conformance/test_official_validators.py +0 -0
  115. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/fixtures/ob_schemas/README.md +0 -0
  116. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/fixtures/ob_schemas/ob_v3p0_achievementcredential_schema.json +0 -0
  117. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/fixtures/ob_schemas/ob_v3p0_profile_schema.json +0 -0
  118. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/fixtures/ob_schemas/refresh.sh +0 -0
  119. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/fixtures/vc_di_eddsa/README.md +0 -0
  120. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/fixtures/vc_di_eddsa/credentials-examples-v2.json +0 -0
  121. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/fixtures/vc_di_eddsa/doc-hash.txt +0 -0
  122. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/fixtures/vc_di_eddsa/key-pair.json +0 -0
  123. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/fixtures/vc_di_eddsa/proof-config-hash.txt +0 -0
  124. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/fixtures/vc_di_eddsa/signed-credential.json +0 -0
  125. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/images/sample1.png +0 -0
  126. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/images/sample1.svg +0 -0
  127. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/images/userimage01.svg +0 -0
  128. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/ldp_helpers.py +0 -0
  129. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/logo Python Espan/314/203a.svg" +0 -0
  130. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/logo Python Espa/303/261a.svg" +0 -0
  131. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_b64url.py +0 -0
  132. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_baking.py +0 -0
  133. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_cli_json.py +0 -0
  134. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_cli_smoke.py +0 -0
  135. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_confparser.py +0 -0
  136. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_docs.py +0 -0
  137. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_eddsa.py +0 -0
  138. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_errors.py +0 -0
  139. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_examples.py +0 -0
  140. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_issue.py +0 -0
  141. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_issue_credential.py +0 -0
  142. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_jsonmodel.py +0 -0
  143. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_jws.py +0 -0
  144. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_key_operation.py +0 -0
  145. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_keys.py +0 -0
  146. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_mail.py +0 -0
  147. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_ob1_badge_io.py +0 -0
  148. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_ob1_deprecation.py +0 -0
  149. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_ob1_signer.py +0 -0
  150. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_ob1_verifier.py +0 -0
  151. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_ob2_cli.py +0 -0
  152. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_ob2_error_branches.py +0 -0
  153. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_ob2_models.py +0 -0
  154. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_ob2_signer.py +0 -0
  155. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_ob2_verifier.py +0 -0
  156. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_ob3_canon_guard_dataset.py +0 -0
  157. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_ob3_clr.py +0 -0
  158. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_ob3_conformance_schema.py +0 -0
  159. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_ob3_contexts.py +0 -0
  160. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_ob3_did.py +0 -0
  161. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_ob3_did_doc.py +0 -0
  162. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_ob3_endorsement.py +0 -0
  163. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_ob3_eudi_oid4vci.py +0 -0
  164. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_ob3_eudi_sd_jwt.py +0 -0
  165. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_ob3_eudi_type_metadata.py +0 -0
  166. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_ob3_eudi_x5c.py +0 -0
  167. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_ob3_ldp.py +0 -0
  168. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_ob3_ldp_canon_guard.py +0 -0
  169. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_ob3_ldp_cli.py +0 -0
  170. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_ob3_ldp_errors.py +0 -0
  171. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_ob3_ldp_sign.py +0 -0
  172. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_ob3_ldp_structure_screen.py +0 -0
  173. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_ob3_publish_cli.py +0 -0
  174. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_ob3_signer.py +0 -0
  175. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_ob3_signer_cli_ldp.py +0 -0
  176. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_ob3_status.py +0 -0
  177. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_ob3_status_list.py +0 -0
  178. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_ob3_status_registry.py +0 -0
  179. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_oid4vci_config.py +0 -0
  180. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_oid4vci_protocol.py +0 -0
  181. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_oid4vci_reservations.py +0 -0
  182. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_oid4vci_store.py +0 -0
  183. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_openbadges_cli.py +0 -0
  184. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_public_api.py +0 -0
  185. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_python_support.py +0 -0
  186. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_safejson.py +0 -0
  187. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_sign_ecc.pem +0 -0
  188. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_sign_rsa.pem +0 -0
  189. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_signer_batch.py +0 -0
  190. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_untrusted_input.py +0 -0
  191. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_util.py +0 -0
  192. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_verifier_cli_coverage.py +0 -0
  193. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_verify.py +0 -0
  194. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_verify_ecc.pem +0 -0
  195. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/test_verify_rsa.pem +0 -0
  196. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/withoutxmlheader.svg +0 -0
  197. {openbadgeslib-4.6.4 → openbadgeslib-4.7.0}/tests/withxmlheader.svg +0 -0
@@ -4,6 +4,185 @@ 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
+
68
+ * v4.6.5 - 2026-11-18
69
+
70
+ - security(ldp): every description of a node the returned credential is
71
+ read from must agree with the one it is read from. RDF has one node per
72
+ id however many JSON objects describe it, and a Data Integrity signature
73
+ covers the node, so a signed member can sit in any of them, while
74
+ `OB3LdpVerifier.verify` reads each member from one fixed object. The
75
+ 1EdTech Complete example describes two nodes twice in the credential
76
+ itself (the issuer again as `achievement.creator`, a `criteria` with the
77
+ achievement's id), and a holder can write any node that has an id as two
78
+ entries of the array that holds it. Without touching the signature, the
79
+ holder of such a badge could move the achievement's `description` into
80
+ `criteria` (or the `narrative` of `criteria` onto the achievement), leave
81
+ the issuer's `name`, `url`, `email` and `image` only in `creator`, split
82
+ `credentialSubject` so that `result`, `identifier` and `creditsEarned`
83
+ sat in the entry the model does not read, or exchange two values of one
84
+ member: the returned credential lacked them (an empty description, an
85
+ issuer without name, no results) or showed the other value. Validity,
86
+ status, recipient and issuer verdicts were not affected. Now, for the
87
+ issuer, each `credentialSubject`, its achievement, and the `criteria`,
88
+ `alignment`, `resultDescription`, `result`, `identifier` and `evidence`
89
+ nodes the model reads, every other object with the same id anywhere in
90
+ the document, embedded endorsements included, must carry for each member
91
+ the model reads there either nothing or exactly the same value(s); a
92
+ value that is itself one of those nodes is the same when its id and what
93
+ the model reads of it are. A member the model does not read is free, so
94
+ the Complete example, endorsements of the achievement or of the issuer,
95
+ and the shape this library issues (no `creator`, a `criteria` without
96
+ id) verify as before.
97
+ Compatibility: a credential whose issuer gives such a node two different
98
+ values for a member the model reads, or gives the member only outside
99
+ the object the model reads it from, is refused. That is an `issuer`
100
+ written as a bare IRI, or with fewer of `name`, `url`, `email`, `image`
101
+ and `endorsementJwt` than an `achievement.creator` (or any other
102
+ description) of the same id in the same credential, which is the very
103
+ document a holder gets by cutting a twice-described issuer down; a
104
+ self-issued badge whose subject and issuer objects carry different
105
+ `image` values; and an ecdsa-sd-2023 presentation that reveals a member
106
+ of a twice-described node only at the other pointer
107
+ (`/credentialSubject/achievement/creator/name` without `/issuer/name`).
108
+ The remedy for an issuer is to describe the node where the model reads
109
+ it, and for a holder to reveal the member there; the refusal names the
110
+ node, the member and both places. `OB3LdpSigner` holds what it emits to
111
+ the same rule and raises `ErrorSigningFile` for what 4.6.4 issued and
112
+ verified when the caller gives two of the nodes one id and different
113
+ members: two `Evidence` or two `ResultDescription` entries with the same
114
+ id that differ (or one of which lacks a member the other has), an
115
+ `Evidence` with the id of the achievement or of the issuer, an
116
+ achievement with the issuer's id and another `name`. A self-issued badge
117
+ (the recipient id equal to the issuer id) is issued as before. The
118
+ low-level functions, which check the proof alone, and the JWT-VC path,
119
+ where every byte is signed, are unchanged (#348)
120
+
121
+ - fix(ob3): an `image` given as a string is read as the image's id.
122
+ `"image": "https://..."` is the same JSON-LD statement as
123
+ `"image": {"id": "https://..."}`, but the model read an image only from
124
+ the object, so `Issuer.image_url` and `Achievement.image_url` were None
125
+ for an issuer that wrote the bare IRI, on the JWT-VC and the Data
126
+ Integrity path alike. On the Data Integrity path a holder could cause
127
+ it: context validation takes the two spellings for one, so an image
128
+ signed with its `id` alone (no `type`, no `caption`) could be re-spelled
129
+ as a string under the same proof, and the verified credential lost it;
130
+ so could a typed image whose node is described somewhere else in the
131
+ credential. Nothing is refused that verified before and `to_vc` still
132
+ writes the object. With the string read, the rule of #348 above compares
133
+ an `image` between two descriptions of the issuer or of the achievement
134
+ by the id it names, which is all the model reads of it: an image named
135
+ in one and described (`type`, `caption`) in the other verifies, two
136
+ different images of one node or an image only in the description the
137
+ model does not read are refused (#350)
138
+
139
+ - fix(ob3): a value, the one-entry array of it and the value written twice
140
+ are read as one by the model. In JSON-LD the values of a property are a
141
+ set, so `"criteria": {...}`, `"criteria": [{...}]` and
142
+ `"criteria": [{...}, {...}]` with the same object twice are the same
143
+ statements, but `OpenBadgeCredential.from_vc_document` read most members
144
+ in one shape only. On the Data Integrity path a holder could use it:
145
+ context validation takes a value and its one-entry array for one
146
+ spelling (conforming credentials write `"type": ["Profile"]`), and a
147
+ repeated value changes nothing signed, so with the proof still valid a
148
+ `criteria` or an `image` in an array read as none (`criteria_narrative`
149
+ `''`, `image_url` None), `creditsEarned` / `creditsAvailable` in an
150
+ array as None, a one-entry `resultDescription`, `identifier` or `result`
151
+ written as the bare object as an empty list, a one-entry `tag` written
152
+ as a string as that string, and a string in an array (the credential
153
+ `name`, the issuer's `name`, `url` and `email`, the achievement's
154
+ `description` and `achievementType`, the `narrative` of `criteria`, the
155
+ optional members of an evidence, a result, a result description, an
156
+ alignment or an identifier) as a list where the model declares a `str`.
157
+ On the JWT-VC path, where every byte is signed, an issuer that wrote the
158
+ other spelling got the same. Now a member the model reads as one value
159
+ is read from the value, from its one-entry array, and from an array
160
+ whose entries are all that same value (numbers compared by value, a
161
+ boolean never equal to a number; for an `image`, entries that name one
162
+ id, as objects or bare IRIs); a member it reads as a list is read from
163
+ a single value too. Nothing that verified is refused and no verdict
164
+ changes: `alignment`, `evidence`, `credentialStatus`, `endorsementJwt`
165
+ and `credentialSubject` already read both shapes, and the members that
166
+ refuse an array (`issuer`, `achievement`, `validFrom` / `validUntil`,
167
+ and the required strings: the achievement's `name`, an alignment's
168
+ `targetName` and `targetUrl`, an identifier's `identityHash`,
169
+ `identityType` and `hashed`, a result description's `name` and
170
+ `resultType`) refuse it as before. Not changed: an array of values that
171
+ really differ, which only an issuer can sign, is read as before (no
172
+ criteria, no image, no credits; a list for a string), and where the
173
+ model reads a list (`tag`, `evidence`, `alignment`, `identifier`, ...)
174
+ a holder can still write an entry twice, which then shows twice: a
175
+ scalar or a node with an id as it is, a node without id under a blank
176
+ node label on eddsa-rdfc-2022 (#351)
177
+
178
+ - security(ldp): a blank node label (`_:x`) is refused as the `id` of
179
+ `credentialSubject.achievement` on both Data Integrity suites (OB 3.0
180
+ requires it, and a label added after signing was reported as the
181
+ achievement id). On ecdsa-sd-2023 the returned credential is built
182
+ without the label a subject or a status entry carries, so the holder
183
+ cannot choose the status entry id or a `recipient_id` the model
184
+ reports (#349)
185
+
7
186
  * v4.6.4 - 2026-11-18
8
187
 
9
188
  - security(ldp): on CPython 3.11 and 3.12 the JSON-LD to RDF conversion may
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: openbadgeslib
3
- Version: 4.6.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.35.0; extra == "eudi"
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.35.0; extra == "ldp-sd"
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.35.0; extra == "oid4vci"
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