datumesh
Verify Datumesh receipts in Python. A receipt is a signed answer for one addressable data cell; this library checks its canonical form (RFC 8785 JSON) and its Ed25519 signature against the signer's published keys, and optionally the recomputation checks (function descriptor, input receipts, and a value you computed), as the Datumesh specification (revision spec-0.1.1) defines.
pip install datumesh
git clone --depth 1 --branch spec-0.1.1 https://github.com/datumesh-com/datumesh-spec && cd datumesh-spec
import json
from datumesh import keys_from_response, verify
vector = json.load(open("vectors/receipt/stored-number.json"))
key_doc = vector["keys"]["rates.example.org"]["https"]["body"] # served at https://rates.example.org/.well-known/datumesh.json
keys = keys_from_response("rates.example.org", 200, key_doc)
result = verify(vector["input"], keys)
print(result.ok, result.level, result.key) # True signed rates.example.org#d712b32a2cc5cb7c
Website: https://datumesh.com · Specification: https://github.com/datumesh-com/datumesh-spec
API
verify(receipt, keys, recompute=None) -> VerifyResult: runs the verification procedure of SPEC 10.1. Never raises for an invalid receipt or bad key material; the result hasok,code("OK"or an error code),level("signed"or"recomputed"),hash,key,detailandpath. It uses no network: keys are an argument (a key document, aKeysResult, a{key id: public key}mapping, or a list of these).keys_from_response(host, status, body) -> KeysResult: interprets a response forhttps://<host>/.well-known/datumesh.json(SPEC 9.3).fetch_keys(host, timeout=10.0) -> KeysResult: the only function that uses the network. One GET, TLS verified, redirects not followed.canonicalize(obj, kind=None) -> bytes,cell_hash,function_hash,receipt_hash,receipt_payload,jcs: validation, RFC 8785 canonical bytes and SHA-256 hashes.parse_uri(uri, signature),format_uri(ref),uri_to_https(uri, mesh): cell URIs (SPEC 5).DatumeshError(with.codeand.path),ERROR_CODES,SPEC_VERSION.
Requires Python 3.10 or later and PyNaCl. String rules use Unicode 15.1 tables shipped with the package, so results do not depend on the Python version's own Unicode database. Choosing which publishers to trust is up to you: a valid signature only means the key holder made the statement.
Licence: Apache-2.0.
Metadata
Release files for datumesh 0.1.1
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 | |
|---|---|---|---|---|
| datumesh-0.1.1.tar.gz | 60.9 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| datumesh-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 110.8 kB
Release files / datumesh-0.1.1.tar.gz
| Download URL | datumesh-0.1.1.tar.gz |
|---|---|
| Size | 60.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5de26ff80c39a71fabf94ea74369e3f1409e923b0e334d6577f8e3b940582761
|
|
BLAKE2b-256 checksum How to use checksums |
718e05b0a65a590cd0dcb74ef3d0bb4768d368424c7fa8073d4f4c9c77adfa88
|
| 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 Oct 20, 2026.
Transparency logRelease files / datumesh-0.1.1-py3-none-any.whl
| Download URL | datumesh-0.1.1-py3-none-any.whl |
|---|---|
| Size | 49.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
921d9bd2754f197c3fa5b9d63b10148c1e6444a56b139d7f430fe8a3183308e7
|
|
BLAKE2b-256 checksum How to use checksums |
fa3bcd0f9184bef784dbdba9cdb4e36fea8bc80e39b708386e0f02abaec6f3e4
|
| 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 Oct 20, 2026.
Transparency logSecurity for datumesh 0.1.1
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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for datumesh-0.1.1.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 Oct 20, 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.