Canon v2 canonicalization engine — the shared byte/digest truth for Consiliency certificates
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file consiliency_canon_core-0.1.0.tar.gz.
File metadata
- Download URL: consiliency_canon_core-0.1.0.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9796c38c77cccff46029bfb8729d897b1554d1ea2aff078a81f392c2afd02c8d
|
|
| MD5 |
c5c172a54728b817d796bd98c7b07c0e
|
|
| BLAKE2b-256 |
f22cff4c6710ad20b4778fc20e7fab1d1b338199c4177477c8ced1bbcfbc15f8
|
Provenance
The following attestation bundles were made for consiliency_canon_core-0.1.0.tar.gz:
Publisher:
publish-canon-core.yml on Consiliency/spec
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
consiliency_canon_core-0.1.0.tar.gz -
Subject digest:
9796c38c77cccff46029bfb8729d897b1554d1ea2aff078a81f392c2afd02c8d - Sigstore transparency entry: 2107402900
- Sigstore integration time:
-
Permalink:
Consiliency/spec@15a492bcf73f490b55fd5e5e869e378e2502171a -
Branch / Tag:
refs/tags/canon-core-v0.1.0 - Owner: https://github.com/Consiliency
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-canon-core.yml@15a492bcf73f490b55fd5e5e869e378e2502171a -
Trigger Event:
push
-
Statement type:
File details
Details for the file consiliency_canon_core-0.1.0-cp312-cp312-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: consiliency_canon_core-0.1.0-cp312-cp312-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 322.4 kB
- Tags: CPython 3.12, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e26747ab0d8bec351789b91fa8e1b9b208156cb662bbd8797c22d66a2fd3f15
|
|
| MD5 |
a2e1fdc33bc22a5c0ca960b8a56fc56e
|
|
| BLAKE2b-256 |
196341f8e162a53e626eb81432731f9624feea11d30c3d06c74025e1ca69b857
|
Provenance
The following attestation bundles were made for consiliency_canon_core-0.1.0-cp312-cp312-manylinux_2_34_x86_64.whl:
Publisher:
publish-canon-core.yml on Consiliency/spec
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
consiliency_canon_core-0.1.0-cp312-cp312-manylinux_2_34_x86_64.whl -
Subject digest:
6e26747ab0d8bec351789b91fa8e1b9b208156cb662bbd8797c22d66a2fd3f15 - Sigstore transparency entry: 2107402974
- Sigstore integration time:
-
Permalink:
Consiliency/spec@15a492bcf73f490b55fd5e5e869e378e2502171a -
Branch / Tag:
refs/tags/canon-core-v0.1.0 - Owner: https://github.com/Consiliency
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-canon-core.yml@15a492bcf73f490b55fd5e5e869e378e2502171a -
Trigger Event:
push
-
Statement type: