developers / technical note
Technical note: mandate, gate and Nachweis
Prokura is a signed mandate, a deterministic gate with no LLM in the decision path, and a hash-chained evidence record (a Nachweis) that can be verified offline. It does not move money. The payment network does.
The problem
Once an AI agent can instruct a payment, a finance team and an auditor will ask two questions. Which written authority covered this payment: which payees, which amounts, which purposes, until when? And can we prove the decision later, without having to trust the platform that recorded it?
A card, a transfer or a protocol such as x402 can move the money. They do not, on their own, answer those two questions. That is the gap Prokura is built for. Prokura works alongside Visa, Mastercard, ACP, AP2 and x402. That describes where it sits, not a commercial relationship and not a formal approval by those networks.
The mandate
A responsible person signs a Prokura Credential for an agent. The credential names the agent, the allowed payees, the per-payment and period caps, the purposes, the rails, and the validity window. The agent cannot grant this to itself.
In the public demo, the agent calls prokura_request_mandate and receives a grant URL on https://approve.prokura.network, plus a QR code. The tool never returns a credential. Any scope, principal or amount the agent sends is ignored. Authority comes only from the human who opens the URL and grants it, with a passkey.
A mandate can be revoked. On every later decision the gate checks the credential's revocation status; if the revocation bit is set, the decision is deny with MANDATE_REVOKED.
The gate
Before any payment, the agent submits an intent: amount, currency, payee, purpose, rail, a nonce, a timestamp, and the agent's signature. The Prokura gate then checks the intent against the mandate.
The gate has no model in it. It is a deterministic function of the credential, the intent and the recorded gate state (gateState), so a decision can be re-run from its Nachweis. It answers allow, step_up or deny, always with reason codes from one closed list.
The decision rule is fixed. If nothing failed, the decision is allow, with reasons ["OK"]. If the only failing code is FOUR_EYES_REQUIRED, the decision is step_up: a human approves or rejects with a passkey, and a rejected step-up is recorded as deny with that code. Any other failing code, alone or with others, is deny. Nothing is paid on step_up or deny. Only an allow is executed, and execution happens on a rail Prokura does not custody.
Reason codes
The list is closed: a Nachweis record with a code outside it does not validate, and new codes are added only by a change to the specification. The complete list, with the meaning the gate implements, is at /reason-codes and in https://github.com/prokura-network/prokura-verify/blob/main/docs/reason-codes.md.
Codes you will see most often when a payment is refused: PAYEE_NOT_ALLOWED (no mandate payee matches the intent: an IBAN must be the same IBAN; a domain must be an allowed domain or a subdomain of one); PO_MISSING (the mandate requires a purchase order reference and the intent has none); DUPLICATE_INVOICE (the same principal already has an allowed payment, or an approved step-up, with this invoice hash); PURPOSE_NOT_ALLOWED (the intent's purpose is not in the mandate); MANDATE_REVOKED (the credential's revocation bit is set); CAP_PER_TX_EXCEEDED (the amount is above the mandate's capPerTx for that currency).
Step-up is not one of those six. It is FOUR_EYES_REQUIRED: the amount is above the mandate's fourEyesAbove line and no passkey approval has been verified for this intent.
Other codes in the same closed list cover a bad or reused signature, an agent or mandate mismatch, a mandate that is not yet valid or has expired, a rail or MCC outside the mandate, a missing invoice hash, a period cap, and a reserved verification-of-payee code (VOP_MISMATCH) that the current gate never emits.
Nachweis evidence
Every decision is written as a Nachweis: a record hashed with SHA-256 over RFC 8785 canonical JSON, linked to the previous record's hash, and signed with Ed25519. The day's records are committed in a signed Merkle root. Hourly checkpoints cover the time before that root exists. Inclusion proofs (merkle-proof/v1 against the daily root, or merkle-checkpoint-proof/v1 against a checkpoint) can be verified the same way.
Anyone can download a Nachweis and check it offline with the open-source verifier in Python or TypeScript, at https://github.com/prokura-network/prokura-verify. Pin the server key: a file names its own signing key, so verify against the key published at https://api.prokura.network/v1/public/keys and named in each signed daily root. The verifier is open source. The gate and the core service are not.
MCP and the x402 guard
Agents reach the live demo through MCP at https://prokura.network/mcp (Streamable HTTP, no account). tools/list on that endpoint is the live schema. There are seven tools: prokura_request_mandate, prokura_check, prokura_pay, prokura_evidence, prokura_mandate, store_catalog and store_quote. Each carries the five MCP annotations (title, readOnlyHint, destructiveHint, idempotentHint, openWorldHint). prokura_pay is the tool that can move test money (destructiveHint and openWorldHint). Client configs and a short connect guide are on /developers.
For x402, the open package @prokura/x402-guard sits in front of an x402 client: every payment challenge is mapped to a Prokura intent and checked before a wallet signs. If the gate says allow, x402 pays as usual. If it says step_up or deny, no payment is made. The package can also ask the Prokura server to pay, via prokura_pay with x402Url, so the agent holds no wallet. This works alongside x402; it does not replace it.
The public demo
The public demo uses test money only. These are hard limits in the core. A caller cannot raise them.
Mandates last 10 minutes. The human has 10 minutes to approve a grant.
€100 per payment, step-up (a human approves with a passkey) above €50, €150 per day.
USDC on the x402 rail: 0.50 alone, up to 1.00 with approval, 2.00 per day.
Fake money and a fake store. Euro payments run through Mollie in test mode; x402 runs on a testnet or an internal mock. No real funds move.
Five grant requests per client address per hour. One demo grant per MCP session.
What it is not
Prokura does not move money. It holds no funds and no wallet keys, gives no payment guarantees, does no identity checks or KYC, has no LLM in the decision path, and is not a consumer app. It is not a bank and it does not issue cards. The core service is not open source. There is no self-serve signup for production API keys yet. Tenant keys are issued by arrangement for a test lab or a pilot: write to hello@prokura.network.
Further reading
/developers for how to connect an agent. /how-it-works for a shorter four-step overview. /reason-codes for the complete closed list. The Nachweis format specification and the verifier: https://github.com/prokura-network/prokura-verify/blob/main/docs/nachweis-format.md. Public API and OpenAPI: /docs.