Cryptographically verifiable, append-only event records for human-agent and agent-agent workflows
Project description
MailioReceipt v1
Cryptographically verifiable, append-only event records for human-agent and agent-agent workflows.
Installation
pip install mailio-receipt
Quick Start
from cryptography.hazmat.primitives.asymmetric import ec
from cryptography.hazmat.backends import default_backend
from mailio_receipt import (
create_receipt,
create_event,
Actors,
Intent,
IntentKind,
)
# Generate a signing key (P-256 or Ed25519)
private_key = ec.generate_private_key(ec.SECP256R1(), default_backend())
# Create an event
event = create_event(
flow_id="660f9400-f39c-51e5-b827-557766551111",
actors=Actors(
issuer="did:web:agent.example.com",
subject="did:web:user.example.com",
),
intent=Intent(
kind=IntentKind.ACTION_PLANNED,
action="invoice.send",
category="financial",
scope={"invoiceId": "INV-2026-001"},
),
)
# Sign and create receipt
receipt = create_receipt(
event=event,
private_key=private_key,
signer_did="did:web:agent.example.com",
)
print(f"Receipt created: {receipt.digest[:16]}...")
License
MIT
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 mailio_receipt-0.0.11.tar.gz.
File metadata
- Download URL: mailio_receipt-0.0.11.tar.gz
- Upload date:
- Size: 81.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cbce5f8b404909a6c22a71d425b8298f3e8bb921fe596ba2960e1e0599d53313
|
|
| MD5 |
edbe61e209902c3cebfe1e1c2ba67556
|
|
| BLAKE2b-256 |
38c727853b0887733a96ed2ad701e855836a34fe8b4a6ad8f61b8c32684d94e9
|
Provenance
The following attestation bundles were made for mailio_receipt-0.0.11.tar.gz:
Publisher:
publish-pypi.yml on mailio/mailio-receipts-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mailio_receipt-0.0.11.tar.gz -
Subject digest:
cbce5f8b404909a6c22a71d425b8298f3e8bb921fe596ba2960e1e0599d53313 - Sigstore transparency entry: 946449810
- Sigstore integration time:
-
Permalink:
mailio/mailio-receipts-python@6053bcce53bb4ebd2b81f6ca4993d528c9555397 -
Branch / Tag:
refs/tags/v0.0.11 - Owner: https://github.com/mailio
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@6053bcce53bb4ebd2b81f6ca4993d528c9555397 -
Trigger Event:
push
-
Statement type:
File details
Details for the file mailio_receipt-0.0.11-py3-none-any.whl.
File metadata
- Download URL: mailio_receipt-0.0.11-py3-none-any.whl
- Upload date:
- Size: 15.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e9a821d54b6897b3b1bcd2f849390d42269f791abb8d84c2e132f623267537a
|
|
| MD5 |
7081aad2fa73a22e5ded016f5f39dd54
|
|
| BLAKE2b-256 |
818c42c49bd057b7217c4c4a8a7ad51388bf0be1807d7b506a7b97044f6a7fba
|
Provenance
The following attestation bundles were made for mailio_receipt-0.0.11-py3-none-any.whl:
Publisher:
publish-pypi.yml on mailio/mailio-receipts-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mailio_receipt-0.0.11-py3-none-any.whl -
Subject digest:
5e9a821d54b6897b3b1bcd2f849390d42269f791abb8d84c2e132f623267537a - Sigstore transparency entry: 946449840
- Sigstore integration time:
-
Permalink:
mailio/mailio-receipts-python@6053bcce53bb4ebd2b81f6ca4993d528c9555397 -
Branch / Tag:
refs/tags/v0.0.11 - Owner: https://github.com/mailio
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@6053bcce53bb4ebd2b81f6ca4993d528c9555397 -
Trigger Event:
push
-
Statement type: