Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

daleeq_provenance-0.1.0.tar.gz (65.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

daleeq_provenance-0.1.0-py3-none-any.whl (34.8 kB view details)

Uploaded Python 3

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

Hashes for daleeq_provenance-0.1.0.tar.gz
Algorithm Hash digest
SHA256 20b045c289122e932297a2cd857c17b4d84dbbfac854bfab5d14d6762a3c9b26
MD5 3d871b446a1d146647c75520f696900b
BLAKE2b-256 11a480191eb5139317a64c65c617048bc24e9549ed77e70fac7d46d95d4b9395

See more details on using hashes here.

Provenance

The following attestation bundles were made for daleeq_provenance-0.1.0.tar.gz:

Publisher: sdk-verify.yml on hassansh111/Shadow-Sec-AI

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file daleeq_provenance-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for daleeq_provenance-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 88ffda7ceed48d74af5fa3e2a9c29d122acd68486ef499ba09bd0e259e8686bf
MD5 6b6a41de75ec8a1c6037373892660296
BLAKE2b-256 be6b439ca725585af8f197fcee7628ad10a91c237d432c8603511d2292da31b6

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page