Skip to main content

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


Download files

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

Source Distribution

mailio_receipt-0.0.6.tar.gz (85.3 kB view details)

Uploaded Source

Built Distribution

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

mailio_receipt-0.0.6-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

Details for the file mailio_receipt-0.0.6.tar.gz.

File metadata

  • Download URL: mailio_receipt-0.0.6.tar.gz
  • Upload date:
  • Size: 85.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mailio_receipt-0.0.6.tar.gz
Algorithm Hash digest
SHA256 1de8091a80ab423244dca52b52eebe3ed1e9568cca741d8c9ff18b388683b293
MD5 5df1e50d2b8497a8f29b35e83c70fd7e
BLAKE2b-256 aff4b7177c83ae8473dcd3a2615f799f6d8c15359582df0f1b3cfc2ad35811ec

See more details on using hashes here.

Provenance

The following attestation bundles were made for mailio_receipt-0.0.6.tar.gz:

Publisher: publish-pypi.yml on mailio/mailio-receipts-python

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

File details

Details for the file mailio_receipt-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: mailio_receipt-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 17.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mailio_receipt-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b3c4dcfbb1eea6d2c769b47106ab12d9ac9aa242f41b1a37cf8fe0d694e0fe2a
MD5 73dc506f6763eda7bcbd09471c4315a7
BLAKE2b-256 fae00ab46a731f4cae016f18d9441f18f28ffb3e4eecb57fb6315e44ffad8a16

See more details on using hashes here.

Provenance

The following attestation bundles were made for mailio_receipt-0.0.6-py3-none-any.whl:

Publisher: publish-pypi.yml on mailio/mailio-receipts-python

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