Cryptographic action provenance SDK for Daleeq
Project description
shadowsec-provenance
Cryptographic action-provenance SDK for Daleeq — sign agent actions, observe agent calls, and independently verify Daleeq receipts offline with zero backend access.
A Daleeq receipt is an Ed25519-signed record of one event in the proof loop
(detect → reproduce → retest → prove). This package lets a buyer, auditor, or
any third party confirm a receipt is authentic and unmodified using only the
open-source verifier, a published public key, and the receipt JSON — no Daleeq
backend, no database, no account.
Install
pip install shadowsec-provenance
The only runtime dependencies are cryptography and httpx.
Verify a receipt offline (the headline guarantee)
This package installs a console script, daleeq-verify-receipt:
# Verify the shipped sample receipt → "RECEIPT VERIFIED", exit 0.
daleeq-verify-receipt receipt.json --pubkey published.pub
# Machine-readable result + walk the full lineage chain.
daleeq-verify-receipt receipt.json --registry keys.json --chain chain.json --json
Exit codes: 0 valid · 1 invalid/tampered/wrong-key/broken-chain · 2 key
could not be loaded · 3 bad input. See VERIFY.md for the full
walkthrough (including the deliberately-tampered sample that proves the verifier
checks bytes, not rubber-stamps) and RECEIPT-SCHEMA.md for
the open wire-format spec an independent implementer can reproduce.
Importable API
from shadowsec_provenance import (
sign_action, # sign an agent action → Receipt
verify_receipt, # verify a receipt
verify_receipt_standalone, # offline, zero-backend verification (MOAT-13)
observe, # telemetry decorator for agent calls
wrap_anthropic, wrap_openai, # provider client wrappers
)
The full public surface is enumerated in shadowsec_provenance.__all__.
What a valid signature does and does NOT prove
A RECEIPT VERIFIED result proves the signed fields are byte-for-byte unmodified
since signing and were signed by the holder of the named key. It does not
prove the underlying detection/verdict was correct — the signature authenticates
the claim, it does not validate the claim's truth. The CLI prints this
NOT asserted boundary on every run.
License
Apache-2.0.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file daleeq_provenance-0.1.0.tar.gz.
File metadata
- Download URL: daleeq_provenance-0.1.0.tar.gz
- Upload date:
- Size: 65.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20b045c289122e932297a2cd857c17b4d84dbbfac854bfab5d14d6762a3c9b26
|
|
| MD5 |
3d871b446a1d146647c75520f696900b
|
|
| BLAKE2b-256 |
11a480191eb5139317a64c65c617048bc24e9549ed77e70fac7d46d95d4b9395
|
Provenance
The following attestation bundles were made for daleeq_provenance-0.1.0.tar.gz:
Publisher:
sdk-verify.yml on hassansh111/Shadow-Sec-AI
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
daleeq_provenance-0.1.0.tar.gz -
Subject digest:
20b045c289122e932297a2cd857c17b4d84dbbfac854bfab5d14d6762a3c9b26 - Sigstore transparency entry: 2148318157
- Sigstore integration time:
-
Permalink:
hassansh111/Shadow-Sec-AI@bb46be7b9e85c293111c691913721b46e80b451e -
Branch / Tag:
refs/tags/sdk-py-v0.1.0 - Owner: https://github.com/hassansh111
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
sdk-verify.yml@bb46be7b9e85c293111c691913721b46e80b451e -
Trigger Event:
push
-
Statement type:
File details
Details for the file daleeq_provenance-0.1.0-py3-none-any.whl.
File metadata
- Download URL: daleeq_provenance-0.1.0-py3-none-any.whl
- Upload date:
- Size: 34.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88ffda7ceed48d74af5fa3e2a9c29d122acd68486ef499ba09bd0e259e8686bf
|
|
| MD5 |
6b6a41de75ec8a1c6037373892660296
|
|
| BLAKE2b-256 |
be6b439ca725585af8f197fcee7628ad10a91c237d432c8603511d2292da31b6
|
Provenance
The following attestation bundles were made for daleeq_provenance-0.1.0-py3-none-any.whl:
Publisher:
sdk-verify.yml on hassansh111/Shadow-Sec-AI
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
daleeq_provenance-0.1.0-py3-none-any.whl -
Subject digest:
88ffda7ceed48d74af5fa3e2a9c29d122acd68486ef499ba09bd0e259e8686bf - Sigstore transparency entry: 2148318161
- Sigstore integration time:
-
Permalink:
hassansh111/Shadow-Sec-AI@bb46be7b9e85c293111c691913721b46e80b451e -
Branch / Tag:
refs/tags/sdk-py-v0.1.0 - Owner: https://github.com/hassansh111
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
sdk-verify.yml@bb46be7b9e85c293111c691913721b46e80b451e -
Trigger Event:
push
-
Statement type: