cardanowall-sdk 0.0.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.
- cardanowall_sdk-0.0.0/.github/workflows/ci.yml +56 -0
- cardanowall_sdk-0.0.0/.github/workflows/release.yml +107 -0
- cardanowall_sdk-0.0.0/.gitignore +38 -0
- cardanowall_sdk-0.0.0/CHANGELOG.md +20 -0
- cardanowall_sdk-0.0.0/CODE_OF_CONDUCT.md +85 -0
- cardanowall_sdk-0.0.0/CONTRIBUTING.md +171 -0
- cardanowall_sdk-0.0.0/LICENSE +202 -0
- cardanowall_sdk-0.0.0/PKG-INFO +301 -0
- cardanowall_sdk-0.0.0/README.md +274 -0
- cardanowall_sdk-0.0.0/SECURITY.md +62 -0
- cardanowall_sdk-0.0.0/pyproject.toml +107 -0
- cardanowall_sdk-0.0.0/src/cardanowall/__init__.py +171 -0
- cardanowall_sdk-0.0.0/src/cardanowall/_crypto/__init__.py +0 -0
- cardanowall_sdk-0.0.0/src/cardanowall/_crypto/aead.py +48 -0
- cardanowall_sdk-0.0.0/src/cardanowall/_crypto/cbor.py +168 -0
- cardanowall_sdk-0.0.0/src/cardanowall/_crypto/compare_ct.py +9 -0
- cardanowall_sdk-0.0.0/src/cardanowall/_crypto/cose_key.py +61 -0
- cardanowall_sdk-0.0.0/src/cardanowall/_crypto/cose_sign1.py +422 -0
- cardanowall_sdk-0.0.0/src/cardanowall/_crypto/hash.py +37 -0
- cardanowall_sdk-0.0.0/src/cardanowall/_crypto/kdf.py +52 -0
- cardanowall_sdk-0.0.0/src/cardanowall/_crypto/kem.py +61 -0
- cardanowall_sdk-0.0.0/src/cardanowall/_crypto/merkle_leaves_list.py +199 -0
- cardanowall_sdk-0.0.0/src/cardanowall/_crypto/merkle_sha2_256.py +178 -0
- cardanowall_sdk-0.0.0/src/cardanowall/_crypto/mlkem768x25519.py +160 -0
- cardanowall_sdk-0.0.0/src/cardanowall/_crypto/sealed_poe.py +845 -0
- cardanowall_sdk-0.0.0/src/cardanowall/_crypto/seed_derive.py +99 -0
- cardanowall_sdk-0.0.0/src/cardanowall/_crypto/sig.py +21 -0
- cardanowall_sdk-0.0.0/src/cardanowall/client/__init__.py +102 -0
- cardanowall_sdk-0.0.0/src/cardanowall/client/account.py +94 -0
- cardanowall_sdk-0.0.0/src/cardanowall/client/batch_empty_error.py +15 -0
- cardanowall_sdk-0.0.0/src/cardanowall/client/batch_too_large_error.py +47 -0
- cardanowall_sdk-0.0.0/src/cardanowall/client/cip309_client.py +102 -0
- cardanowall_sdk-0.0.0/src/cardanowall/client/forbidden_error.py +17 -0
- cardanowall_sdk-0.0.0/src/cardanowall/client/http_error.py +153 -0
- cardanowall_sdk-0.0.0/src/cardanowall/client/idempotency_conflict_error.py +14 -0
- cardanowall_sdk-0.0.0/src/cardanowall/client/insufficient_funds_error.py +76 -0
- cardanowall_sdk-0.0.0/src/cardanowall/client/insufficient_scope_error.py +53 -0
- cardanowall_sdk-0.0.0/src/cardanowall/client/internal_server_error.py +15 -0
- cardanowall_sdk-0.0.0/src/cardanowall/client/invalid_body_error.py +16 -0
- cardanowall_sdk-0.0.0/src/cardanowall/client/invalid_client_config_error.py +18 -0
- cardanowall_sdk-0.0.0/src/cardanowall/client/malformed_cbor_error.py +14 -0
- cardanowall_sdk-0.0.0/src/cardanowall/client/not_found_error.py +16 -0
- cardanowall_sdk-0.0.0/src/cardanowall/client/off_host_sign.py +233 -0
- cardanowall_sdk-0.0.0/src/cardanowall/client/parse_http_error.py +173 -0
- cardanowall_sdk-0.0.0/src/cardanowall/client/partial_upload_error.py +40 -0
- cardanowall_sdk-0.0.0/src/cardanowall/client/poe.py +402 -0
- cardanowall_sdk-0.0.0/src/cardanowall/client/publish.py +644 -0
- cardanowall_sdk-0.0.0/src/cardanowall/client/quote_already_consumed_error.py +42 -0
- cardanowall_sdk-0.0.0/src/cardanowall/client/quote_expired_error.py +42 -0
- cardanowall_sdk-0.0.0/src/cardanowall/client/quote_not_found_error.py +41 -0
- cardanowall_sdk-0.0.0/src/cardanowall/client/rate_limited_error.py +18 -0
- cardanowall_sdk-0.0.0/src/cardanowall/client/record_not_found_error.py +14 -0
- cardanowall_sdk-0.0.0/src/cardanowall/client/records.py +174 -0
- cardanowall_sdk-0.0.0/src/cardanowall/client/service_unavailable_error.py +16 -0
- cardanowall_sdk-0.0.0/src/cardanowall/client/types.py +289 -0
- cardanowall_sdk-0.0.0/src/cardanowall/client/unauthorized_error.py +20 -0
- cardanowall_sdk-0.0.0/src/cardanowall/client/validation_failed_error.py +17 -0
- cardanowall_sdk-0.0.0/src/cardanowall/conformance/__init__.py +3 -0
- cardanowall_sdk-0.0.0/src/cardanowall/conformance/__main__.py +169 -0
- cardanowall_sdk-0.0.0/src/cardanowall/hash/__init__.py +35 -0
- cardanowall_sdk-0.0.0/src/cardanowall/ids.py +180 -0
- cardanowall_sdk-0.0.0/src/cardanowall/merkle/__init__.py +49 -0
- cardanowall_sdk-0.0.0/src/cardanowall/poe_standard/__init__.py +73 -0
- cardanowall_sdk-0.0.0/src/cardanowall/poe_standard/chunked.py +102 -0
- cardanowall_sdk-0.0.0/src/cardanowall/poe_standard/cid_profile.py +180 -0
- cardanowall_sdk-0.0.0/src/cardanowall/poe_standard/encoder.py +141 -0
- cardanowall_sdk-0.0.0/src/cardanowall/poe_standard/error_codes.py +182 -0
- cardanowall_sdk-0.0.0/src/cardanowall/poe_standard/schema.py +183 -0
- cardanowall_sdk-0.0.0/src/cardanowall/poe_standard/validator.py +1484 -0
- cardanowall_sdk-0.0.0/src/cardanowall/py.typed +0 -0
- cardanowall_sdk-0.0.0/src/cardanowall/recipient.py +214 -0
- cardanowall_sdk-0.0.0/src/cardanowall/seed_derive.py +30 -0
- cardanowall_sdk-0.0.0/src/cardanowall/seed_identity.py +152 -0
- cardanowall_sdk-0.0.0/src/cardanowall/verifier/__init__.py +142 -0
- cardanowall_sdk-0.0.0/src/cardanowall/verifier/cbor_walker.py +305 -0
- cardanowall_sdk-0.0.0/src/cardanowall/verifier/decrypt.py +299 -0
- cardanowall_sdk-0.0.0/src/cardanowall/verifier/fetch.py +450 -0
- cardanowall_sdk-0.0.0/src/cardanowall/verifier/merkle.py +353 -0
- cardanowall_sdk-0.0.0/src/cardanowall/verifier/profile.py +106 -0
- cardanowall_sdk-0.0.0/src/cardanowall/verifier/resolve.py +242 -0
- cardanowall_sdk-0.0.0/src/cardanowall/verifier/serialize.py +63 -0
- cardanowall_sdk-0.0.0/src/cardanowall/verifier/signatures.py +236 -0
- cardanowall_sdk-0.0.0/src/cardanowall/verifier/tx_witnesses.py +296 -0
- cardanowall_sdk-0.0.0/src/cardanowall/verifier/types.py +407 -0
- cardanowall_sdk-0.0.0/src/cardanowall/verifier/verify.py +371 -0
- cardanowall_sdk-0.0.0/tests/__init__.py +0 -0
- cardanowall_sdk-0.0.0/tests/fixtures/README.md +60 -0
- cardanowall_sdk-0.0.0/tests/fixtures/aead/chacha20-poly1305-rfc8439-kat.json +15 -0
- cardanowall_sdk-0.0.0/tests/fixtures/aead/chacha20-poly1305-roundtrip.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/aead/xchacha20-poly1305-draft-irtf-cfrg-xchacha-03-kat.json +15 -0
- cardanowall_sdk-0.0.0/tests/fixtures/aead/xchacha20-poly1305-roundtrip.json +63 -0
- cardanowall_sdk-0.0.0/tests/fixtures/cbor/canonical-decode-negative.json +97 -0
- cardanowall_sdk-0.0.0/tests/fixtures/cbor/canonical-encode-rfc8949-kat.json +169 -0
- cardanowall_sdk-0.0.0/tests/fixtures/cbor/canonical-encode-roundtrip.json +91 -0
- cardanowall_sdk-0.0.0/tests/fixtures/cose/sig-structure.json +31 -0
- cardanowall_sdk-0.0.0/tests/fixtures/cose/sign1-build.json +156 -0
- cardanowall_sdk-0.0.0/tests/fixtures/cose/sign1-strict-ed25519.json +16 -0
- cardanowall_sdk-0.0.0/tests/fixtures/cose/sign1-verify.json +107 -0
- cardanowall_sdk-0.0.0/tests/fixtures/cross-service/external-sealed-record-hybrid.json +38 -0
- cardanowall_sdk-0.0.0/tests/fixtures/cross-service/external-sealed-record.json +41 -0
- cardanowall_sdk-0.0.0/tests/fixtures/hash/blake2b256-kat.json +32 -0
- cardanowall_sdk-0.0.0/tests/fixtures/hash/dual-hash-equivalence.json +607 -0
- cardanowall_sdk-0.0.0/tests/fixtures/hash/sha256-kat.json +32 -0
- cardanowall_sdk-0.0.0/tests/fixtures/ids/cases.json +38 -0
- cardanowall_sdk-0.0.0/tests/fixtures/kdf/argon2id-params-consts.json +10 -0
- cardanowall_sdk-0.0.0/tests/fixtures/kdf/argon2id-v13-kat.json +37 -0
- cardanowall_sdk-0.0.0/tests/fixtures/kdf/hkdf-sha256-kat.json +31 -0
- cardanowall_sdk-0.0.0/tests/fixtures/kem/mlkem768x25519-decaps-kat.json +25 -0
- cardanowall_sdk-0.0.0/tests/fixtures/kem/mlkem768x25519-encaps-kat.json +28 -0
- cardanowall_sdk-0.0.0/tests/fixtures/kem/mlkem768x25519-keygen-kat.json +25 -0
- cardanowall_sdk-0.0.0/tests/fixtures/kem/mlkem768x25519-shake-expand-kat.json +25 -0
- cardanowall_sdk-0.0.0/tests/fixtures/kem/x25519-rfc7748-kat.json +15 -0
- cardanowall_sdk-0.0.0/tests/fixtures/kem/x25519-roundtrip.json +39 -0
- cardanowall_sdk-0.0.0/tests/fixtures/kem/x25519-validation.json +15 -0
- cardanowall_sdk-0.0.0/tests/fixtures/mainnet-corpus.json +2792 -0
- cardanowall_sdk-0.0.0/tests/fixtures/merkle/leaves-list-negative.json +47 -0
- cardanowall_sdk-0.0.0/tests/fixtures/poe-record/maximal-record-with-extension-keys.json +65 -0
- cardanowall_sdk-0.0.0/tests/fixtures/poe-record/validator-negative.json +123 -0
- cardanowall_sdk-0.0.0/tests/fixtures/poe-request/poe-publish-request.json +9 -0
- cardanowall_sdk-0.0.0/tests/fixtures/records-request/records-get-request.json +7 -0
- cardanowall_sdk-0.0.0/tests/fixtures/sealed-poe/unwrap-hybrid-rechunked.json +149 -0
- cardanowall_sdk-0.0.0/tests/fixtures/sealed-poe/unwrap-multipriv-ac9-no-match.json +157 -0
- cardanowall_sdk-0.0.0/tests/fixtures/sealed-poe/unwrap-multipriv-ac9-priv0-slot0.json +157 -0
- cardanowall_sdk-0.0.0/tests/fixtures/sealed-poe/unwrap-multipriv-ac9-priv0-slot31.json +157 -0
- cardanowall_sdk-0.0.0/tests/fixtures/sealed-poe/unwrap-multipriv-ac9-priv4-slot0.json +157 -0
- cardanowall_sdk-0.0.0/tests/fixtures/sealed-poe/unwrap-multipriv-ac9-priv4-slot31.json +157 -0
- cardanowall_sdk-0.0.0/tests/fixtures/sealed-poe/unwrap-multipriv-archived-match.json +40 -0
- cardanowall_sdk-0.0.0/tests/fixtures/sealed-poe/unwrap-multipriv-current-match.json +32 -0
- cardanowall_sdk-0.0.0/tests/fixtures/sealed-poe/unwrap-multipriv-n32-k10-worst-case.json +162 -0
- cardanowall_sdk-0.0.0/tests/fixtures/sealed-poe/unwrap-multipriv-no-match.json +40 -0
- cardanowall_sdk-0.0.0/tests/fixtures/sealed-poe/unwrap-n1-empty.json +26 -0
- cardanowall_sdk-0.0.0/tests/fixtures/sealed-poe/unwrap-n3.json +36 -0
- cardanowall_sdk-0.0.0/tests/fixtures/sealed-poe/unwrap-n32.json +181 -0
- cardanowall_sdk-0.0.0/tests/fixtures/sealed-poe/unwrap-negative.json +337 -0
- cardanowall_sdk-0.0.0/tests/fixtures/sealed-poe/wrap-hybrid-n1.json +29 -0
- cardanowall_sdk-0.0.0/tests/fixtures/sealed-poe/wrap-hybrid-n3.json +43 -0
- cardanowall_sdk-0.0.0/tests/fixtures/sealed-poe/wrap-n1-empty.json +25 -0
- cardanowall_sdk-0.0.0/tests/fixtures/sealed-poe/wrap-n3.json +37 -0
- cardanowall_sdk-0.0.0/tests/fixtures/sealed-poe/wrap-n32.json +211 -0
- cardanowall_sdk-0.0.0/tests/fixtures/sealed-poe/wrap-negative.json +72 -0
- cardanowall_sdk-0.0.0/tests/fixtures/seed-derive/recipients-from-seed.json +25 -0
- cardanowall_sdk-0.0.0/tests/fixtures/seed-derive/recipients.json +29 -0
- cardanowall_sdk-0.0.0/tests/fixtures/seed-derive/seed-derive-negative.json +37 -0
- cardanowall_sdk-0.0.0/tests/fixtures/seed-derive/seed-from-deadbeef.json +17 -0
- cardanowall_sdk-0.0.0/tests/fixtures/seed-derive/seed-from-ff.json +17 -0
- cardanowall_sdk-0.0.0/tests/fixtures/seed-derive/seed-from-zero.json +17 -0
- cardanowall_sdk-0.0.0/tests/fixtures/sig/ed25519-kat.json +28 -0
- cardanowall_sdk-0.0.0/tests/fixtures/sig/ed25519-roundtrip.json +35 -0
- cardanowall_sdk-0.0.0/tests/fixtures/sig/ed25519-torsion-cctv.json +6405 -0
- cardanowall_sdk-0.0.0/tests/fixtures/sig/ed25519-zip215.json +16 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/0186ab9defcd7da096f0a83e9a443a8c54bbaaf0c4d6763ed9d28bb2c59331f9.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/0615c249af981c982bab967bdb7aa78dc3ae5fbddaf707c515a7ee068338bd62.json +56 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/0a2e7e228978a5c86c7bc2220f6fa21a556d4088f5f6de715e553e0d5b819e0c.json +56 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/0cbeb122e9b9ce6b5c347853ab3af5b4aaefd04a7f2253f2249a7b2bdbb83cab.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/0d789163267ef868003b3590003ff3d96ee92594f949b4d925e9281789d5f23e.json +60 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/0e540cebf6c8f2cd88c1b6d95260f168bd9850801942bc11f35a9089ec137bd7.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/1005d17e9be14e62c67e536fa1a0bbc7fdcc79f25950e6258dc55cccc09717d8.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/116019e6cbae47cb0519d9d873c6c693c21eeb55241b6821678607cae31474e8.json +60 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/16732a9dceede96ea8fac724ead2e771ba92057ab96ec4b346d5395559335317.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/1e9ad59b945609cd56acecc41f9c52ff0be58aadea89dd99bd54a73c191e58b7.json +56 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/20a23ef3650d7f26a6dd95fd8fd33647b1f034f92d15bd48c9a41f585558b6f4.json +56 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/20aaf5663d45a8b11f1c6735278b0aa5e77ae4ce911c03e1b7b9c5fe412b3182.json +115 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/24c1438896d2523acd8277b0bd66b53d6682f1722f43bebe8af5b63ba35f9131.json +56 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/2792392771c69b999428a1c8659f4a941d7a559f2e8fde47a280ea4a3518c60b.json +56 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/2a22c5edaec907a1e001dd3af7ee1d136742f4323f6b692aac573870c605a05b.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/2f6259d67bd73ea7af4dc15509d9e0e53c8bca167bba571cc133e8007e03c101.json +56 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/311a60ddc5a3ccb48942b0c5c5b19b24147a539d6287f80159b93e04a699fc07.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/336fa5700e231cc5ee3f9608852aaf60d801b5f71f063cd875e08b212b57754d.json +56 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/34849cb3cb12d8ca627f4898d4b210b4c8a16be339fb550f02aeed2bf92d8c5f.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/34f3e1372b1bb953d03360238f3a9bef20a72eb1567942568f0f6f03eb65729c.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/387daa32dbe9ab7f9384fde823a659297f425ec74becd394e976017eb0b43e41.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/39f907d63f12612b5350c12c3a476c9dc3dc483984d1721a2f0445eaf38b8172.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/3c7bf9d7da18a4c3c07078ce7a09f0d694de9753d3343d6e016c48c033d202dd.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/3d32caf2ad29abd4145f6072e51ef797188401848e133a73020b889f60680cfe.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/3fa9b81373b62367c102193c79bb120f599faafa3b6f5d78d07af21d8c1d1d06.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/4400bbf323926a6ca03c5422c5b2c196840a983a1604ca0a7d46cddcc262d156.json +60 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/46955812446606b1444ef7f514e9f80fc5376b052a0e2749eec47b83eba7d991.json +56 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/4a06cd39bf99ba67d7ca1c0ffbb19016e4d4a48de6fb9660c7f5424ea23a32fd.json +56 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/4cc7af3a843c4cfcc89bd05031c753102f9f1e909cb1f6f1f62fed52aea4612f.json +60 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/4e5828c54985bfff38cfeafcabd94ac6c6562f5c1fa116c9be95d914388bb501.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/512d4418631cf8eb295993272d581fe4dee40dbaf512de7c3e81a76a3b15fb81.json +56 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/52233b6df68b4a8796ac3a5cce1ad621d2b87250ddd7adb5a4ad6161c9b007a4.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/546b2c43ada5f67d4d8d0f74daf3227ce28ceeb76c78a751f847be7a6c0101d0.json +56 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/54c61f3471b8fc6c18c2fbba44110cd9e344d2ba592ba4e5427d978d73e27485.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/54ef6d31067e2dd76cfdf4eaa14b7c9c74735a16cb189ad7ca78ba8f7d897359.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/57987655ee647d45d8ba68d593f1b7a3848221d72ea2ef605b8270725f694d4a.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/59019d9028dd75f1405bc11490c620be1f94fcc27307f8b038da65cbf17d1d49.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/5b255ee1a0e9e2e6c1f2a69ecdcce9a5a74cd8c35ef2119945d73cb39813571c.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/5b639525d7c235234d5d09520612e2d4d93e09a562123f31c961ab33d007ac99.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/5e21a434327b2e1f06d797250befeb5b2a19c00afd272880a3de51939587b476.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/6390c4e0a440773fe876d592a707746cb8c152d23fe496b2a74080aa888e197e.json +56 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/691c3f36f699b7905759dd03acdcd66436c2fc1ba372396ff48b10315537cbcb.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/699b2c0390a79f1116f3fecf83b603063e448c768f2a1838c3180934b9f87f23.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/6a94aaf52c6cc6aa9b60935821dbfd996d1a3157e20dc3d3e0c024aeb56d0f9b.json +60 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/6dba7d62ca9277c08410d511385dee25ca34f80138892d09f9309e50e34f33b6.json +91 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/746769c024df795a72935b59f77e6ac264450748adaa11d6f39488dce155e0f2.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/7647021413aa5ec4e67ca515953ad8dd4bc64eae0b6a7af066c19768179d48b1.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/7742d0020f85f8a027eea05a67535090ba9c476c5d8699f8197f3cc4bc92f1ee.json +60 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/778faf85da6ef2bcc7ac61902855b5b2ce821e152bbe319acc7a3e32ea87dfc6.json +56 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/7923c1ac33c79137792ade1154c034177a529b45b03651cbc7210f94983a0103.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/79a66001b15cc74c0ff469ef846aae0ad7613f59a5f91978941d0746ec112daa.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/79f65f63b025b9c94c722e83171b4ac23a4c3cc2a3cb545b4b12aac4c09e25c1.json +56 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/7bb80997f59fcb5c6e01e28d1ad8286dbf8fb797b974919e82f0a94b711822f3.json +56 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/834b56c82c106d04e5f05c87e54a2e7240eb8e69ee254294eb6bca8e053b3df9.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/863a0ec4252dbddf3979c22e2193ab2f17ec1a235310a700c6c8462bcc8cc623.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/86877b1ab22931f921518e20b9a9af0d006bde3aa41536f266d3945745c5217f.json +56 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/882fb01a875770ac9c7416e3fc46c1fdf1aedc1225fad045e4a808f9e8aa12e7.json +60 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/8a98c89acf33669604353432cb2a0fb49cd92301195faa3d279959d5b86d621b.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/9368388d408c76164ab71863a6403efd9f83711dcc589d52ce10fbd88f367f73.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/958a1210c5f853147585871cb765dfe56d99bf6b8f6ef5bfc7a21090e6ca48a7.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/9a66fc928bfd876b725e5b97c53a41cb82fd28835a8a52123576112a7cd6730f.json +60 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/9b76fd4fab5857c243f5b27739c12f3fe0fc0087d7790bdb71c071f5e09f16bb.json +60 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/9e9b95a222ce3efdbad9e278e0824d6496df2f6a73360fb097cf5e8aa35b1d58.json +60 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/9f0482cb9857856d18b31cd5d0280cd62b82b722d2bd10b490b951010cd13d0a.json +60 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/9fb91ddfd5066b24d2f514f1fd7fe549cef915a73556feaa85f0ae9a3d07f9a0.json +60 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/9fbb9596dcf90c03cc3149854a771b624a11f56e39ef0a97b4964b83e9806562.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/a0f093be72cf057222f86b31024f4637b58e6173bf782528c2fa4c0653a2d72c.json +56 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/a2d6de5abe46faa89c797e2857649d4a617f2aab058a51eb3735dd150839a4fe.json +60 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/a2f8acfb4f9e900b612300b1f9e2787cafd9a97f8abadd9980ff0da41f3a90ef.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/a385ba2adf85f63c06198a2d258322cb09c17c092f24d30f04c2cc36311f07d9.json +56 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/a39dfdd916ffabb9533ad8e8e4669d894ff5dcc43a2a4784effc29118c64919b.json +56 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/a47009bfccfe5ba4856b0cd1609913b3e95302a030b022e7e976250c0e04d8e6.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/a7280dc78cbb905b9b1cfe0cb11a44c18fe6c211cda2ace3cba32e40e942d0b3.json +56 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/a857948f5c41c2deb69e1b2cde0e86a6d6a1975c0179a8258ebe9f08d42f8524.json +56 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/aa172efec89b04d40519c31c94d3acf41aa9aa1eff2fc85171dcd4925b1693ee.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/aa8b2ec920b4bd670d82c34df312ab1e6ddc1ebd5e8ead2974185669996474d6.json +60 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/aade2b0231136bc321981f6aabc9a7998a5b94f8e5f7ba1d3b0961fe1bd7d2e6.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/ac7907d9e71fd8aac89e8b96120724b69a0e4e5d497a95acdc5e2c6e0320ff05.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/b00f8fde6f3ce73db621c5e4769565b06fb4541ecb626397672d9bcfa431db77.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/b1e9cfaa9582a7ad670e7a3ff04dd182e66a29911281a3495dee731a23847dd5.json +60 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/b5d5d0b2b63cf346e7f69c50882fd674a86dfaaeea2d2c91d4f64f8056677709.json +60 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/b71a7899f683ab82927fd15269e3da3310dff425f8c27ff6fb33437b48f669e2.json +56 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/bd86c947cd0c59d0f5c4855c465f27a14bdac4ce306408ede291f00bdc56a46f.json +60 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/c200cbc8bf2405b08d963da6bdc7a84d0fbf2852d6f42a1bc3c65e2e2cb7373c.json +56 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/c30c937d5f78d6f7f9aafcad5a9ded0a676a1acdec4f71614895e77af6564360.json +56 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/c50c5c49e8354ae0b9fb9948179b28cfd49c45f5f3207df48627a640e50e92ae.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/c6c96e13b3dc0a09220f0c40ece9bcddcef681df1dec54bc71ffb0545b6a1a07.json +60 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/cd5e954439954fe37e5a4124a1e8e8b2314b32f50586eef50e379e9afc13c868.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/d22b896850b60b21ae4941d6830c70c90e799b1ffdd5f492a324863f5220a5fc.json +56 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/d32624369f5965daae94d5370584bdcbb809236a35d1ca534f6a5011d81c5c99.json +56 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/d58049fe5b774852a846fb2208fa39ba11ca731e27dfebdf571977c5ff5c9301.json +60 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/d5adc05d5ee08e19ca1b8811fbb523576ef79769fa6aab092605e535cc56a5c2.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/d81cff56684d12b7b430f34bee4b564f05d066f03c20919718aedb55c9728203.json +56 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/d922aeb13199b5e0f9730e30eb49668aef77a7aefbd447e9f93b633d0cda1802.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/da198b5fc93387f6e2b3a27fee56a2a6cdd9c0182020dbb7bfbd0f992d9800f9.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/da90a70266aa2c9487d0644a452c31f9190790904e1b68927e940dcc2725acb3.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/df5f2c3060614167b2f9040a9c975987e43b07411195e9f27d30cc97db73e836.json +94 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/e4c252406823c196011fb6e6745342f47ef6127f5371365dbb40259bef245c16.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/e54a037fb0f63aa67c5791ed3d16101a68b64315579fe336b5d6f59847234697.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/e643b7dc071ecb453523436200e88bac895551728dd62f3c639388315dd80aea.json +56 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/eff2d3effb054abd771de551dc602be1e229f018a5910a6dae8402e9b35fff4d.json +60 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/f0a7c2853c75466f3d8e5b876f02af1ef3b24c88fcb2e7fae2da8a9bf2a55cbe.json +56 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/f196556a32e56790cfc50ec67a5f980580eed0dbc07cbf080002d5f40033f0ed.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/f464b54715b39cf5274abb872700d4b7c985c074cae841a5a3f61ae2290ee1df.json +56 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/f4a6873bf10bf4de8cd1e6142613a2acdb13fc0e886f5fda76c765af89ec4fcc.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/f9843e7fd6cb4a952bcf4d87a203638937786cd865630869c022b48def5022cf.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/verify-reports/f9e2e6f4a7237b41a7f20ee36b59c3540774294a1257f2be0ea936010172d57e.json +55 -0
- cardanowall_sdk-0.0.0/tests/fixtures/wallet-cose/README.md +16 -0
- cardanowall_sdk-0.0.0/tests/fixtures/wallet-cose/eternl-cose-missing-address.json +17 -0
- cardanowall_sdk-0.0.0/tests/fixtures/wallet-cose/eternl-cose-tampered-address.json +19 -0
- cardanowall_sdk-0.0.0/tests/fixtures/wallet-cose/eternl-cose-wrong-network-header.json +18 -0
- cardanowall_sdk-0.0.0/tests/fixtures/wallet-cose/eternl-cose.json +22 -0
- cardanowall_sdk-0.0.0/tests/fixtures/wallet-cose/lace-cose-missing-address.json +17 -0
- cardanowall_sdk-0.0.0/tests/fixtures/wallet-cose/lace-cose-tampered-address.json +19 -0
- cardanowall_sdk-0.0.0/tests/fixtures/wallet-cose/lace-cose-wrong-network-header.json +18 -0
- cardanowall_sdk-0.0.0/tests/fixtures/wallet-cose/lace-cose.json +22 -0
- cardanowall_sdk-0.0.0/tests/fixtures/wallet-cose/nami-cose-missing-address.json +17 -0
- cardanowall_sdk-0.0.0/tests/fixtures/wallet-cose/nami-cose-tampered-address.json +19 -0
- cardanowall_sdk-0.0.0/tests/fixtures/wallet-cose/nami-cose-wrong-network-header.json +18 -0
- cardanowall_sdk-0.0.0/tests/fixtures/wallet-cose/nami-cose.json +22 -0
- cardanowall_sdk-0.0.0/tests/fixtures/wallet-cose/nufi-cose-missing-address.json +17 -0
- cardanowall_sdk-0.0.0/tests/fixtures/wallet-cose/nufi-cose-tampered-address.json +19 -0
- cardanowall_sdk-0.0.0/tests/fixtures/wallet-cose/nufi-cose-wrong-network-header.json +18 -0
- cardanowall_sdk-0.0.0/tests/fixtures/wallet-cose/nufi-cose.json +22 -0
- cardanowall_sdk-0.0.0/tests/fixtures/wallet-cose/typhon-cose-missing-address.json +17 -0
- cardanowall_sdk-0.0.0/tests/fixtures/wallet-cose/typhon-cose-tampered-address.json +19 -0
- cardanowall_sdk-0.0.0/tests/fixtures/wallet-cose/typhon-cose-wrong-network-header.json +18 -0
- cardanowall_sdk-0.0.0/tests/fixtures/wallet-cose/typhon-cose.json +22 -0
- cardanowall_sdk-0.0.0/tests/fixtures/wallet-cose/yoroi-cose-missing-address.json +17 -0
- cardanowall_sdk-0.0.0/tests/fixtures/wallet-cose/yoroi-cose-tampered-address.json +19 -0
- cardanowall_sdk-0.0.0/tests/fixtures/wallet-cose/yoroi-cose-wrong-network-header.json +18 -0
- cardanowall_sdk-0.0.0/tests/fixtures/wallet-cose/yoroi-cose.json +22 -0
- cardanowall_sdk-0.0.0/tests/integration/__init__.py +0 -0
- cardanowall_sdk-0.0.0/tests/integration/_corpus_schema.py +85 -0
- cardanowall_sdk-0.0.0/tests/integration/_stub_fetch.py +62 -0
- cardanowall_sdk-0.0.0/tests/integration/test_multi_cosigner_verify.py +164 -0
- cardanowall_sdk-0.0.0/tests/integration/test_verify_mainnet_corpus.py +110 -0
- cardanowall_sdk-0.0.0/tests/nxdomain_namespace/__init__.py +0 -0
- cardanowall_sdk-0.0.0/tests/nxdomain_namespace/_corpus_schema.py +85 -0
- cardanowall_sdk-0.0.0/tests/nxdomain_namespace/_stub_fetch.py +62 -0
- cardanowall_sdk-0.0.0/tests/nxdomain_namespace/test_verifier_mainnet_corpus.py +124 -0
- cardanowall_sdk-0.0.0/tests/test_aead.py +173 -0
- cardanowall_sdk-0.0.0/tests/test_cbor.py +143 -0
- cardanowall_sdk-0.0.0/tests/test_cip309_client.py +157 -0
- cardanowall_sdk-0.0.0/tests/test_client_account.py +136 -0
- cardanowall_sdk-0.0.0/tests/test_client_http_error.py +401 -0
- cardanowall_sdk-0.0.0/tests/test_client_poe.py +596 -0
- cardanowall_sdk-0.0.0/tests/test_client_publish.py +781 -0
- cardanowall_sdk-0.0.0/tests/test_client_records.py +375 -0
- cardanowall_sdk-0.0.0/tests/test_compare_ct.py +33 -0
- cardanowall_sdk-0.0.0/tests/test_conformance_cli.py +152 -0
- cardanowall_sdk-0.0.0/tests/test_cose_key.py +50 -0
- cardanowall_sdk-0.0.0/tests/test_cose_sign1.py +260 -0
- cardanowall_sdk-0.0.0/tests/test_cose_sign1_hashed_mode.py +133 -0
- cardanowall_sdk-0.0.0/tests/test_cross_impl_interop.py +88 -0
- cardanowall_sdk-0.0.0/tests/test_cross_service_interop_parity.py +133 -0
- cardanowall_sdk-0.0.0/tests/test_envelope_export_roundtrip_py.py +38 -0
- cardanowall_sdk-0.0.0/tests/test_hash.py +91 -0
- cardanowall_sdk-0.0.0/tests/test_hash_namespace.py +30 -0
- cardanowall_sdk-0.0.0/tests/test_ids.py +225 -0
- cardanowall_sdk-0.0.0/tests/test_inbox_readability_across_rotation_integration.py +103 -0
- cardanowall_sdk-0.0.0/tests/test_kdf.py +98 -0
- cardanowall_sdk-0.0.0/tests/test_kem.py +190 -0
- cardanowall_sdk-0.0.0/tests/test_merkle_leaves_list.py +203 -0
- cardanowall_sdk-0.0.0/tests/test_merkle_namespace.py +67 -0
- cardanowall_sdk-0.0.0/tests/test_merkle_sha2_256.py +255 -0
- cardanowall_sdk-0.0.0/tests/test_off_host_sign.py +271 -0
- cardanowall_sdk-0.0.0/tests/test_poe_record_canonical_vector.py +145 -0
- cardanowall_sdk-0.0.0/tests/test_poe_standard_chunked.py +89 -0
- cardanowall_sdk-0.0.0/tests/test_poe_standard_encoder.py +103 -0
- cardanowall_sdk-0.0.0/tests/test_poe_standard_error_codes.py +98 -0
- cardanowall_sdk-0.0.0/tests/test_poe_standard_schema.py +83 -0
- cardanowall_sdk-0.0.0/tests/test_poe_standard_validator.py +1008 -0
- cardanowall_sdk-0.0.0/tests/test_recipient_parse.py +94 -0
- cardanowall_sdk-0.0.0/tests/test_sealed_poe.py +971 -0
- cardanowall_sdk-0.0.0/tests/test_sealed_poe_low_order_epk_regression.py +166 -0
- cardanowall_sdk-0.0.0/tests/test_sealed_poe_trial_decrypt.py +191 -0
- cardanowall_sdk-0.0.0/tests/test_seed_derive.py +102 -0
- cardanowall_sdk-0.0.0/tests/test_seed_identity.py +243 -0
- cardanowall_sdk-0.0.0/tests/test_sig.py +133 -0
- cardanowall_sdk-0.0.0/tests/test_signature_continuity_across_rotation_integration.py +63 -0
- cardanowall_sdk-0.0.0/tests/test_smoke.py +7 -0
- cardanowall_sdk-0.0.0/tests/test_verifier_decrypt.py +421 -0
- cardanowall_sdk-0.0.0/tests/test_verifier_fetch.py +374 -0
- cardanowall_sdk-0.0.0/tests/test_verifier_profile.py +52 -0
- cardanowall_sdk-0.0.0/tests/test_verifier_resolve.py +162 -0
- cardanowall_sdk-0.0.0/tests/test_verifier_serialize.py +83 -0
- cardanowall_sdk-0.0.0/tests/test_verifier_signatures.py +286 -0
- cardanowall_sdk-0.0.0/tests/test_verifier_verify.py +409 -0
- cardanowall_sdk-0.0.0/tests/wallet_cose/__init__.py +0 -0
- cardanowall_sdk-0.0.0/tests/wallet_cose/_normalized_verdict.py +36 -0
- cardanowall_sdk-0.0.0/tests/wallet_cose/test_verify_fixtures.py +85 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
test:
|
|
14
|
+
name: test (Python ${{ matrix.python-version }})
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
strategy:
|
|
17
|
+
fail-fast: false
|
|
18
|
+
matrix:
|
|
19
|
+
python-version: ["3.11", "3.12"]
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v4
|
|
22
|
+
|
|
23
|
+
- name: Install uv
|
|
24
|
+
uses: astral-sh/setup-uv@v5
|
|
25
|
+
with:
|
|
26
|
+
python-version: ${{ matrix.python-version }}
|
|
27
|
+
|
|
28
|
+
- name: Sync dependencies (runtime + dev)
|
|
29
|
+
run: uv sync
|
|
30
|
+
|
|
31
|
+
- name: Lint (ruff)
|
|
32
|
+
run: uv run ruff check .
|
|
33
|
+
|
|
34
|
+
- name: Type-check (mypy --strict)
|
|
35
|
+
run: uv run mypy --strict src tests
|
|
36
|
+
|
|
37
|
+
- name: Test (pytest)
|
|
38
|
+
run: uv run pytest -q
|
|
39
|
+
|
|
40
|
+
build:
|
|
41
|
+
name: build distribution
|
|
42
|
+
runs-on: ubuntu-latest
|
|
43
|
+
needs: test
|
|
44
|
+
steps:
|
|
45
|
+
- uses: actions/checkout@v4
|
|
46
|
+
|
|
47
|
+
- name: Install uv
|
|
48
|
+
uses: astral-sh/setup-uv@v5
|
|
49
|
+
with:
|
|
50
|
+
python-version: "3.12"
|
|
51
|
+
|
|
52
|
+
- name: Build sdist + wheel
|
|
53
|
+
run: uv build
|
|
54
|
+
|
|
55
|
+
- name: Check distribution metadata (twine)
|
|
56
|
+
run: uvx twine check dist/*
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
name: release
|
|
2
|
+
|
|
3
|
+
# ONE-TIME registry setup: at pypi.org configure a GitHub Actions Trusted
|
|
4
|
+
# Publisher (OIDC) with these EXACT fields:
|
|
5
|
+
# Owner : cardanowall
|
|
6
|
+
# Repository : cip309-py
|
|
7
|
+
# Workflow filename : release.yml
|
|
8
|
+
# PyPI Project Name : cardanowall-sdk
|
|
9
|
+
# Environment : (leave blank)
|
|
10
|
+
#
|
|
11
|
+
# PyPI supports a PENDING publisher: this mapping can be created BEFORE the
|
|
12
|
+
# project exists, so the very first publish already authenticates over OIDC and
|
|
13
|
+
# no token is ever required. The PYPI_API_TOKEN secret (UV_PUBLISH_TOKEN) is an
|
|
14
|
+
# OPTIONAL fallback only — leave it unset when a (pending) Trusted Publisher is
|
|
15
|
+
# configured.
|
|
16
|
+
|
|
17
|
+
on:
|
|
18
|
+
push:
|
|
19
|
+
tags:
|
|
20
|
+
- "v[0-9]+.[0-9]+.[0-9]+"
|
|
21
|
+
- "v[0-9]+.[0-9]+.[0-9]+-*"
|
|
22
|
+
workflow_dispatch:
|
|
23
|
+
inputs:
|
|
24
|
+
dry_run:
|
|
25
|
+
description: "Dry-run (build + twine check; skip the PyPI upload and the GitHub Release)"
|
|
26
|
+
required: false
|
|
27
|
+
default: "false"
|
|
28
|
+
|
|
29
|
+
concurrency:
|
|
30
|
+
group: release-${{ github.workflow }}-${{ github.ref }}
|
|
31
|
+
cancel-in-progress: false
|
|
32
|
+
|
|
33
|
+
permissions:
|
|
34
|
+
contents: write
|
|
35
|
+
# id-token is required for PyPI Trusted-Publisher OIDC (`uv publish`).
|
|
36
|
+
id-token: write
|
|
37
|
+
|
|
38
|
+
jobs:
|
|
39
|
+
release:
|
|
40
|
+
runs-on: ubuntu-latest
|
|
41
|
+
steps:
|
|
42
|
+
- uses: actions/checkout@v4
|
|
43
|
+
|
|
44
|
+
- name: Install uv
|
|
45
|
+
uses: astral-sh/setup-uv@v5
|
|
46
|
+
with:
|
|
47
|
+
python-version: "3.12"
|
|
48
|
+
|
|
49
|
+
- name: Sync dependencies (runtime + dev)
|
|
50
|
+
run: uv sync
|
|
51
|
+
|
|
52
|
+
# ---- Gates: the standalone CI suite, re-run as release-blockers ----------
|
|
53
|
+
- name: Lint (ruff)
|
|
54
|
+
run: uv run ruff check .
|
|
55
|
+
|
|
56
|
+
- name: Type-check (mypy --strict)
|
|
57
|
+
run: uv run mypy --strict src tests
|
|
58
|
+
|
|
59
|
+
- name: Test (pytest)
|
|
60
|
+
run: uv run pytest -q
|
|
61
|
+
|
|
62
|
+
# ---- Build + validate artifacts -----------------------------------------
|
|
63
|
+
- name: Build sdist + wheel
|
|
64
|
+
run: uv build
|
|
65
|
+
|
|
66
|
+
- name: Check distribution metadata (twine)
|
|
67
|
+
run: uvx twine check dist/*
|
|
68
|
+
|
|
69
|
+
# ---- Publish to PyPI (OIDC Trusted Publishing) -----------------------------
|
|
70
|
+
# Publishes via the repo's configured PyPI Trusted Publisher (OIDC) — no
|
|
71
|
+
# token. Do NOT set UV_PUBLISH_TOKEN to an empty value here: uv would then
|
|
72
|
+
# attempt empty-token auth and fail with 403 instead of using trusted
|
|
73
|
+
# publishing. For a token-based publish instead, set UV_PUBLISH_TOKEN in the
|
|
74
|
+
# job env from a PYPI_API_TOKEN secret.
|
|
75
|
+
- name: Publish to PyPI (dry-run on workflow_dispatch)
|
|
76
|
+
run: |
|
|
77
|
+
set -euo pipefail
|
|
78
|
+
if [ "${{ github.event_name }}" = "workflow_dispatch" ] && [ "${{ inputs.dry_run }}" = "true" ]; then
|
|
79
|
+
# uv publish has no --dry-run flag; the build + twine check above
|
|
80
|
+
# already validated the artifacts, so skip the upload entirely.
|
|
81
|
+
echo "Dry-run: skipping uv publish"
|
|
82
|
+
else
|
|
83
|
+
uv publish dist/* --trusted-publishing automatic
|
|
84
|
+
fi
|
|
85
|
+
|
|
86
|
+
# ---- GitHub Release ------------------------------------------------------
|
|
87
|
+
- name: Detect pre-release tag
|
|
88
|
+
id: prerelease
|
|
89
|
+
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }}
|
|
90
|
+
run: |
|
|
91
|
+
if [[ "${{ github.ref_name }}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+-.+$ ]]; then
|
|
92
|
+
echo "is_prerelease=true" >> "$GITHUB_OUTPUT"
|
|
93
|
+
else
|
|
94
|
+
echo "is_prerelease=false" >> "$GITHUB_OUTPUT"
|
|
95
|
+
fi
|
|
96
|
+
|
|
97
|
+
- name: Create GitHub Release
|
|
98
|
+
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }}
|
|
99
|
+
uses: softprops/action-gh-release@v2
|
|
100
|
+
with:
|
|
101
|
+
tag_name: ${{ github.ref_name }}
|
|
102
|
+
name: "CIP-309 Python SDK ${{ github.ref_name }}"
|
|
103
|
+
generate_release_notes: true
|
|
104
|
+
draft: false
|
|
105
|
+
prerelease: ${{ steps.prerelease.outputs.is_prerelease }}
|
|
106
|
+
files: |
|
|
107
|
+
dist/*
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Python bytecode and caches
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*.egg-info/
|
|
5
|
+
.eggs/
|
|
6
|
+
|
|
7
|
+
# Build output
|
|
8
|
+
build/
|
|
9
|
+
dist/
|
|
10
|
+
*.whl
|
|
11
|
+
*.tar.gz
|
|
12
|
+
|
|
13
|
+
# Resolver lockfile — this is a library; it resolves fresh against the
|
|
14
|
+
# published dependency ranges rather than pinning a committed lock.
|
|
15
|
+
uv.lock
|
|
16
|
+
|
|
17
|
+
# Virtual environments
|
|
18
|
+
.venv/
|
|
19
|
+
venv/
|
|
20
|
+
|
|
21
|
+
# Tool caches
|
|
22
|
+
.mypy_cache/
|
|
23
|
+
.pytest_cache/
|
|
24
|
+
.ruff_cache/
|
|
25
|
+
.coverage
|
|
26
|
+
htmlcov/
|
|
27
|
+
|
|
28
|
+
# OS files
|
|
29
|
+
.DS_Store
|
|
30
|
+
Thumbs.db
|
|
31
|
+
|
|
32
|
+
# Logs
|
|
33
|
+
*.log
|
|
34
|
+
|
|
35
|
+
# Editor and IDE directories
|
|
36
|
+
.idea/
|
|
37
|
+
.vscode/
|
|
38
|
+
*.swp
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to `cardanowall-sdk` are documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
6
|
+
|
|
7
|
+
> **Pre-1.0 notice.** `cardanowall-sdk` is a pre-1.0 release. The public API,
|
|
8
|
+
> the wire format it implements, and the conformance vectors it tracks may
|
|
9
|
+
> change in backward-incompatible ways until a 1.0 release. Pre-1.0 versions do
|
|
10
|
+
> not carry the stability guarantees of [Semantic Versioning](https://semver.org/).
|
|
11
|
+
|
|
12
|
+
## [Unreleased]
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
|
|
16
|
+
- Initial public release of the CIP-309 Python SDK: the standalone verifier
|
|
17
|
+
(structural / public / recipient roles), the gateway-agnostic HTTP client,
|
|
18
|
+
the canonical-CBOR structural validator, the sealed-PoE wrap/unwrap
|
|
19
|
+
primitives, off-host signing, and the raw-seed identity surface. A
|
|
20
|
+
byte-identical parity twin of the TypeScript and Rust reference SDKs.
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
|
|
2
|
+
# Contributor Covenant Code of Conduct
|
|
3
|
+
|
|
4
|
+
## Our Pledge
|
|
5
|
+
|
|
6
|
+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.
|
|
7
|
+
|
|
8
|
+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
|
|
9
|
+
|
|
10
|
+
## Our Standards
|
|
11
|
+
|
|
12
|
+
Examples of behavior that contributes to a positive environment for our community include:
|
|
13
|
+
|
|
14
|
+
* Demonstrating empathy and kindness toward other people
|
|
15
|
+
* Being respectful of differing opinions, viewpoints, and experiences
|
|
16
|
+
* Giving and gracefully accepting constructive feedback
|
|
17
|
+
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
|
|
18
|
+
* Focusing on what is best not just for us as individuals, but for the overall community
|
|
19
|
+
|
|
20
|
+
Examples of unacceptable behavior include:
|
|
21
|
+
|
|
22
|
+
* The use of sexualized language or imagery, and sexual attention or advances of any kind
|
|
23
|
+
* Trolling, insulting or derogatory comments, and personal or political attacks
|
|
24
|
+
* Public or private harassment
|
|
25
|
+
* Publishing others' private information, such as a physical or email address, without their explicit permission
|
|
26
|
+
* Other conduct which could reasonably be considered inappropriate in a professional setting
|
|
27
|
+
|
|
28
|
+
## Enforcement Responsibilities
|
|
29
|
+
|
|
30
|
+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
|
|
31
|
+
|
|
32
|
+
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
|
|
33
|
+
|
|
34
|
+
## Scope
|
|
35
|
+
|
|
36
|
+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
|
|
37
|
+
|
|
38
|
+
## Enforcement
|
|
39
|
+
|
|
40
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at hello@cardanowall.com. All complaints will be reviewed and investigated promptly and fairly.
|
|
41
|
+
|
|
42
|
+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
|
|
43
|
+
|
|
44
|
+
## Enforcement Guidelines
|
|
45
|
+
|
|
46
|
+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
|
|
47
|
+
|
|
48
|
+
### 1. Correction
|
|
49
|
+
|
|
50
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
|
|
51
|
+
|
|
52
|
+
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
|
|
53
|
+
|
|
54
|
+
### 2. Warning
|
|
55
|
+
|
|
56
|
+
**Community Impact**: A violation through a single incident or series of actions.
|
|
57
|
+
|
|
58
|
+
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
|
|
59
|
+
|
|
60
|
+
### 3. Temporary Ban
|
|
61
|
+
|
|
62
|
+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
|
|
63
|
+
|
|
64
|
+
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
|
|
65
|
+
|
|
66
|
+
### 4. Permanent Ban
|
|
67
|
+
|
|
68
|
+
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
|
|
69
|
+
|
|
70
|
+
**Consequence**: A permanent ban from any sort of public interaction within the community.
|
|
71
|
+
|
|
72
|
+
## Attribution
|
|
73
|
+
|
|
74
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1, available at [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
|
|
75
|
+
|
|
76
|
+
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
|
|
77
|
+
|
|
78
|
+
For answers to common questions about this code of conduct, see the FAQ at [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at [https://www.contributor-covenant.org/translations][translations].
|
|
79
|
+
|
|
80
|
+
[homepage]: https://www.contributor-covenant.org
|
|
81
|
+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
|
|
82
|
+
[Mozilla CoC]: https://github.com/mozilla/diversity
|
|
83
|
+
[FAQ]: https://www.contributor-covenant.org/faq
|
|
84
|
+
[translations]: https://www.contributor-covenant.org/translations
|
|
85
|
+
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
# Contributing to cardanowall-sdk (CIP-309 Python SDK)
|
|
2
|
+
|
|
3
|
+
Thank you for your interest in improving `cardanowall-sdk`, the Python SDK for
|
|
4
|
+
CIP-309 — an open standard for **Proof of Existence (PoE)** anchored on the
|
|
5
|
+
Cardano blockchain.
|
|
6
|
+
|
|
7
|
+
This repository is a **reference implementation** of the standard. It is a
|
|
8
|
+
byte-identical parity twin of the TypeScript SDK (`cip309-ts`) and the Rust SDK
|
|
9
|
+
(`cip309-rs`). The standard itself — the wire format, the registries, and the
|
|
10
|
+
canonical conformance vectors — lives in the separate `cip309` repository.
|
|
11
|
+
|
|
12
|
+
All contributions are made under the licensing and sign-off terms described in
|
|
13
|
+
[Licensing](#licensing) and [Developer Certificate of Origin](#developer-certificate-of-origin-dco).
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## What belongs in this repository
|
|
18
|
+
|
|
19
|
+
This repository holds the **Python implementation**: the standalone verifier,
|
|
20
|
+
the gateway-agnostic HTTP client, the structural validator, the sealed-PoE
|
|
21
|
+
primitives, the raw-seed identity surface, and their tests. Bug fixes,
|
|
22
|
+
performance work, new SDK surface, packaging, and Python-specific issues belong
|
|
23
|
+
here.
|
|
24
|
+
|
|
25
|
+
### What does NOT belong here
|
|
26
|
+
|
|
27
|
+
- **Changes to the wire format, the grammar, the schemas, the registries, or
|
|
28
|
+
the conformance vectors** — those are normative changes to the standard and
|
|
29
|
+
belong in the `cip309` repository. A change here that would alter canonical
|
|
30
|
+
bytes is an implementation bug, not a spec change: the vectors are
|
|
31
|
+
authoritative.
|
|
32
|
+
- **Cross-language behaviour changes** — if a change would make this SDK diverge
|
|
33
|
+
from `cip309-ts` or `cip309-rs`, open an issue first. Byte-parity is a hard
|
|
34
|
+
guarantee, not a goal.
|
|
35
|
+
|
|
36
|
+
If you are unsure which repository a change belongs to, open an issue here and
|
|
37
|
+
ask.
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## Development setup
|
|
42
|
+
|
|
43
|
+
This project uses [uv](https://docs.astral.sh/uv/) for environment and
|
|
44
|
+
dependency management, and targets **Python 3.11+**.
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
uv sync # create the venv and install runtime + dev deps
|
|
48
|
+
uv run pytest -q # the full test suite
|
|
49
|
+
uv run ruff check . # lint
|
|
50
|
+
uv run mypy --strict src tests # type-check (strict)
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
All four must pass before a pull request is ready. The CI workflow runs exactly
|
|
54
|
+
these gates.
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## The byte-parity contract
|
|
59
|
+
|
|
60
|
+
Cross-implementation **byte-parity** is the core guarantee of CIP-309: the
|
|
61
|
+
TypeScript, Python, and Rust SDKs produce and accept byte-identical output for
|
|
62
|
+
the same inputs, validated against the **same canonical conformance vectors**
|
|
63
|
+
(mirrored into this package's `tests/fixtures/`). The vectors — not any one
|
|
64
|
+
implementation — are the source of truth.
|
|
65
|
+
|
|
66
|
+
This imposes one rule:
|
|
67
|
+
|
|
68
|
+
> **A change that alters the bytes this SDK produces or the verdicts it
|
|
69
|
+
> reaches must trace to a vector, and must keep this SDK identical to its
|
|
70
|
+
> sibling implementations.**
|
|
71
|
+
|
|
72
|
+
Concretely:
|
|
73
|
+
|
|
74
|
+
- If a test fixture and the code disagree, the **fixture is right** unless the
|
|
75
|
+
fixture itself is being corrected to match a ratified change in the standard.
|
|
76
|
+
- A behaviour change that has no corresponding change in the standard's
|
|
77
|
+
conformance vectors is almost certainly a bug.
|
|
78
|
+
- New behaviour adds tests that pin the new bytes; changed behaviour updates the
|
|
79
|
+
affected tests and explains the change in the pull request description.
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## Tests
|
|
84
|
+
|
|
85
|
+
- **Assert behaviour, not strings.** Pin returned values, raised error codes,
|
|
86
|
+
decoded bytes, and end states — not log lines or incidental phrasing.
|
|
87
|
+
- **Use the committed fixtures.** Tests load their vectors from
|
|
88
|
+
`tests/fixtures/`; do not hand-inline byte constants that a fixture already
|
|
89
|
+
pins.
|
|
90
|
+
- A change to a public function's behaviour ships with a test that would fail
|
|
91
|
+
without it.
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
## Style and house rules
|
|
96
|
+
|
|
97
|
+
- Code is type-checked under `mypy --strict` and linted with `ruff`; keep both
|
|
98
|
+
green. The lint config bans unvetted crypto and HTTP libraries — use the
|
|
99
|
+
project's closed crypto catalogue and its outbound-HTTP wrapper.
|
|
100
|
+
- Cite only stable, public references in comments — RFCs, CIPs at a permanent
|
|
101
|
+
address, NIST/FIPS publications, BIPs. A comment must justify itself on
|
|
102
|
+
engineering merit, not on traceability to any private document.
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
## Pull request checklist
|
|
107
|
+
|
|
108
|
+
- [ ] The change is in the right repository (this SDK vs. the standard).
|
|
109
|
+
- [ ] `uv run pytest -q`, `uv run ruff check .`, and `uv run mypy --strict src tests` all pass.
|
|
110
|
+
- [ ] Wire-affecting changes trace to conformance vectors and keep byte-parity
|
|
111
|
+
with the sibling SDKs.
|
|
112
|
+
- [ ] New or changed behaviour is covered by a test.
|
|
113
|
+
- [ ] Every commit is signed off (see DCO below).
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
## Developer Certificate of Origin (DCO)
|
|
118
|
+
|
|
119
|
+
This project uses the **Developer Certificate of Origin**. There is **no CLA**.
|
|
120
|
+
|
|
121
|
+
The DCO is a lightweight attestation that you have the right to submit your
|
|
122
|
+
contribution under the project's license. You make it by adding a
|
|
123
|
+
`Signed-off-by` line to every commit:
|
|
124
|
+
|
|
125
|
+
```
|
|
126
|
+
Signed-off-by: Your Name <your.email@example.com>
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
Add it automatically with `git commit -s`. The name and email must be real and
|
|
130
|
+
must match the commit author. By signing off, you certify the statements in the
|
|
131
|
+
Developer Certificate of Origin, version 1.1:
|
|
132
|
+
|
|
133
|
+
> **Developer Certificate of Origin, Version 1.1**
|
|
134
|
+
>
|
|
135
|
+
> By making a contribution to this project, I certify that:
|
|
136
|
+
>
|
|
137
|
+
> (a) The contribution was created in whole or in part by me and I have the
|
|
138
|
+
> right to submit it under the open source license indicated in the file; or
|
|
139
|
+
>
|
|
140
|
+
> (b) The contribution is based upon previous work that, to the best of my
|
|
141
|
+
> knowledge, is covered under an appropriate open source license and I have the
|
|
142
|
+
> right under that license to submit that work with modifications, whether
|
|
143
|
+
> created in whole or in part by me, under the same open source license (unless
|
|
144
|
+
> I am permitted to submit under a different license), as indicated in the file;
|
|
145
|
+
> or
|
|
146
|
+
>
|
|
147
|
+
> (c) The contribution was provided directly to me by some other person who
|
|
148
|
+
> certified (a), (b) or (c) and I have not modified it.
|
|
149
|
+
>
|
|
150
|
+
> (d) I understand and agree that this project and the contribution are public
|
|
151
|
+
> and that a record of the contribution (including all personal information I
|
|
152
|
+
> submit with it, including my sign-off) is maintained indefinitely and may be
|
|
153
|
+
> redistributed consistent with this project or the open source license(s)
|
|
154
|
+
> involved.
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
## Licensing
|
|
159
|
+
|
|
160
|
+
By contributing, you agree that your contributions are licensed under the
|
|
161
|
+
project's license: the **Apache License 2.0** (see [`LICENSE`](LICENSE)).
|
|
162
|
+
|
|
163
|
+
## Code of Conduct
|
|
164
|
+
|
|
165
|
+
All participation is governed by our [Code of Conduct](CODE_OF_CONDUCT.md).
|
|
166
|
+
Please read it before contributing.
|
|
167
|
+
|
|
168
|
+
## Security
|
|
169
|
+
|
|
170
|
+
Do not report security-impacting issues through public issues or pull requests.
|
|
171
|
+
Follow the private process in our [Security Policy](SECURITY.md).
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|