canon-core packaging (PKG)
Dual-published canonicalization engine — the shared byte/digest truth every Consiliency
certificate hashes. Same Rust engine (src/lib.rs), two distributions:
| Distribution | Tool | Name | Consumer | Entry points |
|---|---|---|---|---|
| PyPI | maturin (pyproject.toml) |
consiliency-canon-core (imports as canon_core) |
Python | canonical_bytes_from_json(tagged_json), digest_from_json(tagged_json, profile) |
| npm | wasm-pack (Makefile.packaging) |
@consiliency/canon-core (Node target) |
governed-pipeline (JS) | canonicalBytesFromJson(taggedJson), digestFromJson(taggedJson, profile) |
Surface is tagged-JSON text, not a raw value — this is load-bearing for byte-identity:
a lone surrogate serializes to the ASCII escape \ud800, survives UTF-8 marshalling, and
serde_json rejects it at parse (SPEC §5.0). Consumers MUST feed tagged-JSON text produced
by a validating encoder, never a raw host string (see the GP-canon design doc). Both packages
ship the shared canon-vectors.json corpus so consumers can self-verify parity.
Local build
make -f Makefile.packaging all # needs: maturin, wasm-pack, wasm32 target
Publish
Push a canon-core-v<version> tag → .github/workflows/publish-canon-core.yml builds +
publishes both via OIDC. One-time registry setup (see the workflow header) is a USER action:
claim the PyPI project + the npm @consiliency scope and register the trusted publishers.
Metadata
Release files for consiliency-canon-core 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| consiliency_canon_core-0.4.0.tar.gz | 23.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| consiliency_canon_core-0.4.0-cp312-cp312-manylinux_2_34_x86_64.whl | CPython 3.12 | CPython 3.12 | Linux glibc 2.34+ x86-64 | Details |
Total release size: 347.8 kB
Release files / consiliency_canon_core-0.4.0.tar.gz
| Download URL | consiliency_canon_core-0.4.0.tar.gz |
|---|---|
| Size | 23.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
42d4cb9cbc7bb616667645aba4b8915362f2eca7bd8a13edf7d9fe3d21585a89
|
|
BLAKE2b-256 checksum How to use checksums |
c50f3a2049ae690e81b3839f6a6a0bfaac1f3fad5d1bcbcea36dc79d5780808c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.
Transparency logRelease files / consiliency_canon_core-0.4.0-cp312-cp312-manylinux_2_34_x86_64.whl
| Download URL | consiliency_canon_core-0.4.0-cp312-cp312-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 323.9 kB |
| Tags | CPython 3.12 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
ac0048d1df0485b321ecefc4c5a5318f70eff7f764800356368d5f10c661f9b8
|
|
BLAKE2b-256 checksum How to use checksums |
efcf687e7e26fd7664668037ed16149fbca2b454fceb524ba2c04b19d598713e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.
Transparency log