Punchcard

An AI agent buys a bundle of API calls once, then pays every call with a zero-knowledge proof on Midnight. The API provider learns "this call was paid by a valid, unspent credit" — never which bundle, which buyer, or how many credits are left.
This page runs the compiled Compact contract in your browser (Midnight local simulator: same circuits and asserts). See the recorded Nov 6 run on the public Midnight preview network →

Agent wallet private state

Secrets never leave the agent. Only proofs do.

calls
credits left0
bundles0
no bundles yet

Try to cheat (each must fail inside the ZK circuit):

Paid API sees public data only

Each request gets a fresh nonce; the call is served only if the ledger shows a ticket for it.

idle
served0
refused0

Public ledger what everyone sees

Bundle commitments (hiding) · nullifiers · request tickets.

bundles issued0
credits redeemed0

Can you tell which nullifier belongs to which bundle? Neither can the API.

Event log