Skip to main content

decision-cert (Python verifier)

A pure-Python verifier for decision-certificate.v1, a port of the Rust crate in rust/. Dependencies: rfc8785 and cryptography, nothing else. It verifies; it does not issue.

from decision_cert import loads, verify

cert = loads(open("cert.json").read())  # strict JSON, as the Rust crate parses it
keys = loads(open("trusted-keys.json").read())  # key id -> base64url raw Ed25519 public key
v = verify(cert, keys)  # raises Invalid, UntrustedKey, BadKey or BadSignature
v.id, v.threshold_for("north"), v.is_expired(datetime.now(UTC))

The Rust crate is the reference. This package passes the same conformance fixtures (fixtures/); where the two disagree, this package is wrong. A certificate describes a measured process and never promises an outcome; see the spec.

pip install decision-cert
python -m decision_cert verify cert.json --keys trusted-keys.json   # exit 0 / 1 / 2

Development, from python/ in the repository:

uv sync && uv run pytest && uv run ruff check && uv run mypy

Metadata

Release files for decision-cert 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for decision-cert 0.1.0
File Size Uploaded Provenance Actions
decision_cert-0.1.0.tar.gz 59.5 kB With provenance Details for decision_cert-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for decision-cert 0.1.0
File Interpreter ABI Platform Actions
decision_cert-0.1.0-py3-none-any.whl Python 3 none any Details for decision_cert-0.1.0-py3-none-any.whl

Total release size: 75.5 kB

Release files / decision_cert-0.1.0.tar.gz

Download URL decision_cert-0.1.0.tar.gz
Size 59.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f35434588db99543a5bcc24f6b8c601b3e2ffde8c7953a247edf0f109988e5b3
BLAKE2b-256 checksum
How to use checksums
79759cf90e618401b51d4978de2621f9a20804eecc1e490d0c3706f404d7cdc3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 7, 2026.

Transparency log

Release files / decision_cert-0.1.0-py3-none-any.whl

Download URL decision_cert-0.1.0-py3-none-any.whl
Size 16.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7c4649cc59b57d6ab229cc40f71acb103425c2793a013f969bd5ffa4bf3610fc
BLAKE2b-256 checksum
How to use checksums
ebcb5ebe0bc23ba5e127679f32bd65bd39e5d2d075ba16322b9ac7aa5e23da70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 7, 2026.

Transparency log

Security for decision-cert 0.1.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for decision_cert-0.1.0.tar.gz

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 Nov 7, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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