Skip to main content

AlgoVoi substrate-author layer for JCS+PQC integration: signature_algorithm open-enum + cross-implementor byte-anchor convergence proof.

Project description

algovoi-substrate-pqc

AlgoVoi substrate-author layer for JCS+PQC integration.

This package implements the AlgoVoi-authored substrate convention for binding canonical-JSON-serialised payloads to post-quantum signature primitives, with a fail-closed verifier discipline over an open-enum signature_algorithm registry.

The underlying cryptographic primitives are not AlgoVoi-authored. This package is a thin substrate-author layer over audited upstream libraries. See the upstream-attribution table below for the full credit chain.

pip install algovoi-substrate-pqc

What this package provides

Component Author What it is
signature_algorithm open-enum registry AlgoVoi 12-row recommended-values table covering classical (ES256, ES256K, Ed25519, ECDSA) + PQC (Falcon-512/1024, ML-DSA-44/65/87, SLH-DSA-SHA2-128s) + HMAC (HMAC-SHA-256, HMAC-SHA-384) families. Case-sensitive lookup per RFC 7517 §4.1.
Fail-closed verifier discipline AlgoVoi Verifiers MUST treat unknown identifiers as opaque and refuse to verify. Implementors MAY declare any value.
JCS+PQC integration pattern AlgoVoi Canonical bytes via RFC 8785 → signature via chosen scheme → artefact with expected_canonical_sha256 byte-anchor.
Cross-implementor byte-anchor convergence proof AlgoVoi One canonical payload, N signature schemes, byte-identical SHA-256 across implementations.
Standalone reference verifier glue AlgoVoi ~70 lines of Python orchestrating canonical-bytes recomputation + signature verification across all four schemes.

Upstream primitives

This package wraps existing audited primitives. Authorship of those primitives belongs to the parties listed below, not to AlgoVoi:

Primitive Implementation Author / Source
Falcon-1024 (FIPS 206 / FN-DSA) PQClean reference C, exposed via pqcrypto v0.4.0+ PQClean community + Backbone Authors (Apache-2.0)
ML-DSA-65 (FIPS 204) PQClean reference C, exposed via pqcrypto v0.4.0+ PQClean community + Backbone Authors (Apache-2.0)
ES256 / Ed25519 / SHA-256 cryptography v42+ + stdlib hashlib Python Cryptographic Authority + NIST FIPS 180-4
JCS canonicalisation (RFC 8785) rfc8785 v0.1.4 Anders Rundgren et al.
AP2 PaymentMandate schema v0.1 Schema reference only (no code dependency) Google agentic-commerce

The Falcon algorithm itself is the work of Fouque, Hoffstein, Kirchner, Lyubashevsky, Pornin, Prest, Ricosset, Seiler, Whyte, and Zhang (NIST PQC competition; standardised as NIST FIPS 206). The ML-DSA algorithm (Dilithium / CRYSTALS-Dilithium) is the work of Bai, Ducas, Kiltz, Lepoint, Lyubashevsky, Schwabe, Seiler, and Stehlé (standardised as NIST FIPS 204).

PQC cross-implementor contribution

The ML-DSA-65 cross-implementor fixture this package verifies against was contributed by PQSafe (@rayc0) per the AP2 #250 joint conformance fixture. The contribution scope is the pqsafe-side/ ML-DSA-65 signature over the same canonical bytes the AlgoVoi-side fixture signs (FIPS 204 / NIST Level 3). PQSafe is named co-maintainer of chopmob-cloud/ap2-pq-conformance (the joint conformance repo) per the published policy. Credit is scoped to that ML-DSA-65 contribution only; substrate-author work for this package (signature_algorithm convention, JCS+PQC binding pattern, fail-closed verifier discipline, byte-anchor proof methodology) is AlgoVoi's.

Position relative to the substrate-author work

This package sits above the audited PQC primitives and alongside the AlgoVoi canonicalisation discipline (urn:x402:canonicalisation:jcs-rfc8785-v1, AlgoVoi-authored IETF Independent Submission, Informational).

Layer Owner Artefact
L0 — Lattice mathematics, FIPS 204 / FIPS 206 standardisation Academic cryptographers + NIST
L1 — PQC reference C implementations PQClean PQClean/PQClean repo
L2 — Python wrapper around PQClean Backbone Authors pqcrypto PyPI package
L3 — Classical primitives + JCS rule Python Cryptographic Authority + Anders Rundgren cryptography, rfc8785 PyPI packages
L4 — Canonicalisation discipline AlgoVoi urn:x402:canonicalisation:jcs-rfc8785-v1, IETF I-D
L4 — signature_algorithm open-enum + binding pattern AlgoVoi This package

AlgoVoi's substrate-author contribution is the convention, the binding, and the proof methodology, not the primitives.

Cross-implementor byte-anchor convergence

The AlgoVoi substrate-author position rests on byte-anchor convergence: multiple independent signature schemes verifying against the identical canonical-byte representation of a single payload. The reference exemplar is the AP2 PaymentMandate joint conformance fixture at chopmob-cloud/ap2-pq-conformance:

Side Schemes Canonical SHA-256
algovoi-side/ ES256 + Ed25519 + Falcon-1024 sha256:cc8315f7…e0
pqsafe-side/ (PQSafe co-contributor) ML-DSA-65 sha256:cc8315f7…e0

Four signature schemes, one canonical payload, byte-identical SHA-256 across implementations. This package is the reference implementation of that convergence-proof methodology.

Verifier rule (fail-closed)

Verifiers MUST treat unknown signature_algorithm values as opaque and refuse to verify.

This rule is the fail-closed normative discipline that allows the signature_algorithm registry to evolve without breaking schema changes. Implementors MAY declare any value. Verifiers MUST reject unknown values or escalate to a registered extension, rather than guessing.

The Python implementation surfaces this rule as UnknownSignatureAlgorithm raised from lookup_signature_algorithm().

License

Apache 2.0.

This package is Apache-2.0 licensed, consistent with all upstream dependencies (pqcrypto, cryptography, rfc8785).

Contact

Co-maintainer policy

Contributors who land a substrate-aligned signature scheme (new family in the registry, or a new cross-implementor convergence-proof against the same canonical-bytes discipline) MAY be invited as co-maintainers of this repository for the duration of their contribution. Attribution is per-component; each contributor is named for the specific scheme or proof they contribute.

This policy mirrors the chopmob-cloud/ap2-pq-conformance policy under which PQSafe (rayc0) joined as co-maintainer with the ML-DSA-65 contribution.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

algovoi_substrate_pqc-0.1.0.tar.gz (20.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

algovoi_substrate_pqc-0.1.0-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

Details for the file algovoi_substrate_pqc-0.1.0.tar.gz.

File metadata

  • Download URL: algovoi_substrate_pqc-0.1.0.tar.gz
  • Upload date:
  • Size: 20.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for algovoi_substrate_pqc-0.1.0.tar.gz
Algorithm Hash digest
SHA256 67b4880ab54989e85b55620e5c7e02135501686eb7409915b36156f9700ca7b9
MD5 c04896746e4d21e25adf7e242b2cb1d7
BLAKE2b-256 61f264b41d671cbae20f42cd7a3c793dd8c73a73e60190538380402c7f8de813

See more details on using hashes here.

File details

Details for the file algovoi_substrate_pqc-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for algovoi_substrate_pqc-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3d7a491f6355c09bab717cd6978eeedc1d633dd1653cf22796bf41b3a68e3d46
MD5 89035359abd9bcada61a2172b2a702ff
BLAKE2b-256 b0737695188cb2c7a41f1bd4ed13375e90195841e8b79432b0f60b148ca76ec0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page