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.2.0.tar.gz (16.8 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.2.0-cp312-cp312-manylinux_2_34_x86_64.whl (331.1 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

File details

Details for the file consiliency_canon_core-0.2.0.tar.gz.

File metadata

  • Download URL: consiliency_canon_core-0.2.0.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for consiliency_canon_core-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3fa9d1c49622b0df0f5431dc6047e20236731201250b7d9e6614bf09f2d4807f
MD5 08b973c9f946c47255229c9570a3575f
BLAKE2b-256 53eb5233bb2da0423dfffb13dfce436868af7b30b63c058b5ee26ccd4ec89e35

See more details on using hashes here.

Provenance

The following attestation bundles were made for consiliency_canon_core-0.2.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.2.0-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for consiliency_canon_core-0.2.0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 1aec195e81a56671bb19c3222494f7c0b4c7c662ef14a0472ecbdfff7db2b2cf
MD5 37b02d74ffd8157c47e11b37ac12a80d
BLAKE2b-256 4adf4187b5fcc96ab209ded04fa739ce03e8a5c5b49cdd6acb6a1a74a1bc717b

See more details on using hashes here.

Provenance

The following attestation bundles were made for consiliency_canon_core-0.2.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.2.0 This release

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page