Skip to main content

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.

Download files

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

Source Distribution

consiliency_canon_core-0.1.0.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

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

consiliency_canon_core-0.1.0-cp312-cp312-manylinux_2_34_x86_64.whl (322.4 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

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

Hashes for consiliency_canon_core-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9796c38c77cccff46029bfb8729d897b1554d1ea2aff078a81f392c2afd02c8d
MD5 c5c172a54728b817d796bd98c7b07c0e
BLAKE2b-256 f22cff4c6710ad20b4778fc20e7fab1d1b338199c4177477c8ced1bbcfbc15f8

See more details on using hashes here.

Provenance

The following attestation bundles were made for consiliency_canon_core-0.1.0.tar.gz:

Publisher: publish-canon-core.yml on Consiliency/spec

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file consiliency_canon_core-0.1.0-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for consiliency_canon_core-0.1.0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 6e26747ab0d8bec351789b91fa8e1b9b208156cb662bbd8797c22d66a2fd3f15
MD5 a2e1fdc33bc22a5c0ca960b8a56fc56e
BLAKE2b-256 196341f8e162a53e626eb81432731f9624feea11d30c3d06c74025e1ca69b857

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Supported by

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