DEV Community

Nicholas Capozzo
Nicholas Capozzo

Posted on

Why Cloud Token Billing Needs Ed25519 Signed Penny Receipts

Software engineering teams verify cryptographic signatures on container images, git commits, and TLS certificates, yet routinely sign off on $200/month flat AI seat contracts or mutable API credit dashboards where per-task cost attribution is opaque and floating-point rounding silently drifts.

1. Exact BigInt Micro-Dollars + WebCrypto Ed25519 Signatures

Every run on railcall.ai eliminates billing opacity through three cryptographic guarantees:

  • Integer Micro-Dollar & Milliwatt-Hour Accounting (BigInt): Costs and energy (40 mWh local Apple Silicon at $0.0000 vs metered frontier escalations like $0.004125 for a 20-model Flywheel quorum) are accumulated as exact integers — zero IEEE-754 float drift.
  • Detached Ed25519 Receipt Signature: The canonical receipt payload (runId, timestamp, modelsUsed, inputTokens, outputTokens, costMicroUsd, energyMwh, payloadSha256) is signed with Ed25519 and verifiable in <2ms in any browser against /api/verify/public-key.
  • 1-Byte Tamper Rejection: Altering a single digit of cost or token count immediately fails crypto.subtle.verify("Ed25519", ...) — giving FinOps and engineering leads provable ~90% savings over $200/mo flat subscriptions.

2. Verify Live Ed25519 Receipts in Your Browser

Top comments (0)