qed-verify
An independent verifier for Valqore QED evidence chains. It answers one question — were these records written in this order, by the holder of these keys, unaltered since — without trusting the instance that produced them.
pip install qed-verify
One dependency, cryptography, on purpose: an auditor must be able to install
this on a machine that is not allowed to reach the internet twice. It imports
nothing from qed, and it is published as its own distribution so that
installing the verifier does not install the thing it verifies.
Running it
A QED operator produces the export with qed export and hands over the public
keys:
qed-verify chain.jsonl --keys keys/ --instance-id acme-prod --require-complete
Exit codes: 0 verified, 1 one or more problems, 2 usage error.
--json emits the machine-readable report, --range FROM:TO verifies a slice,
and --require-complete is what a pipeline should use — it fails unless every
check ran, not merely every check that ran passed.
What it checks
seqstarts at 0 and is contiguous.prev_hashof record n equalshashof record n-1, and record 0'sprev_hashmatches the genesis binding for--instance-id.hashrecomputes from the record's own fields — frompayload_hashrather than the payload, so a record purged under retention still verifies.payload_hashrecomputes from the payload, when the payload is present.- The signature verifies under the key named by
key_id. - Each
key_rotatedrecord is signed by the old key, which is what makes rotation one continuous chain instead of two. - Each
checkpointrecord's Merkle root recomputes over the range it claims.
--instance-id is the one that matters
Check 2 is the only check that ties these records to a particular instance, and the only one that can be skipped. Everything else is self-referential: a chain generated on a laptop five minutes ago, signed with a key generated at the same time, satisfies checks 1 and 3–7 exactly as well as a real one. So when no instance id is given the report names the check that did not run instead of reporting an unqualified pass.
The instance id has to reach the verifier from outside the file under review — a contract, an engagement letter, the operator's published instance identity. It is also in the genesis payload, so reading it out of the export and passing it back proves nothing: a forger chose both. The same applies to the public keys.
Why it reimplements the format
Canonicalisation and the record hash are written again here from the specification rather than shared with the producer. A shared helper would mean a bug in the producer verifies cleanly, which is the one failure this package exists to rule out.
- Format and checks: SPEC §10.7
- Evidence record format:
schema_versionis tracked independently of this package's version, and every version ever written stays verifiable.
Apache-2.0.
Metadata
Release files for qed-verify 1.1.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 | Provenance | Actions |
|---|---|---|---|---|
| qed_verify-1.1.0.tar.gz | 18.3 kB | With provenance | Details for qed_verify-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| qed_verify-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for qed_verify-1.1.0-py3-none-any.whl |
Total release size: 34.2 kB
Release files / qed_verify-1.1.0.tar.gz
| Download URL | qed_verify-1.1.0.tar.gz |
|---|---|
| Size | 18.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
02e3e15ca3ed3cb3480b9b13ac92c19e6b45a55353f26a6dbdc9522245d71d32
|
|
BLAKE2b-256 checksum How to use checksums |
71e5d13d202abc86066eebcba94212050cfd18af1bb6fe7afe2d97be0ec9221a
|
| 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 1, 2026.
Transparency logRelease files / qed_verify-1.1.0-py3-none-any.whl
| Download URL | qed_verify-1.1.0-py3-none-any.whl |
|---|---|
| Size | 16.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ec3b0d176073cc176988c40f3a685941533aad0d45cba163ff119960ca012aec
|
|
BLAKE2b-256 checksum How to use checksums |
4b0a65f261d7a122471c09020a682072edc83dc5cabe5023c5d07f44d8d01864
|
| 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 1, 2026.
Transparency logSecurity for qed-verify 1.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.
Attestation for qed_verify-1.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 1, 2026.
Transparency logA 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.