- rago: exactly-once prepaid settlement (deterministic idempotency, unique partial index + in-tx ON CONFLICT guard) — closes the double-charge risk - mint: double-entry + reserve conservation verified (14 tests) - ledgerline: atomic settlement outbox + partial recovery index (37 tests) - abacus: hard per-agent budget enforcement + kill-switch (54 tests) - vend: crash reaper / in-flight session reconciliation - turnstile/agent-runtime/ranguard/rit/game-economy/context-passport/rithub: core advanced + tests
880 B
Railyard Mint Python SDK
Standard-library Mint HTTP client plus AITP-402 challenge handling for Python 3.11+. All money values are integer microdollars.
PaidHttpClient retries a protected request exactly once after a 402. Inject a
wallet/HSM implementing WalletSigner; it receives the canonical intent bytes
and must return the BLAKE3 digest plus its Ed25519 signature. Private keys never
enter the SDK.
Trusted backends can call MintClient.transfer({...}) with from, to, a
positive integer amount_micros, and a stable idem_key. Keep the API key and
Mint account ids server-side; consumer apps should resolve public identities in
their own authenticated backend. Transfer success requires Mint's signed sender
receipt and privacy-safe attestation; the client rejects missing proof or proof
whose sender, amount, operation, or sequence differs from the request.