# How it works

A human signs a Prokura Credential for an agent: the payees, the caps, the purposes, the rails and the expiry. Before every payment, the agent sends an intent to the Prokura gate. The gate is a deterministic function with no model in it. It answers allow, step_up or deny, with reason codes. Only an allow is executed, on a rail Prokura does not custody. Every decision is appended to a signed, hash-chained ledger that the principal, a bank or an auditor can verify offline.

## 1. The human signs a mandate

The Prokura Credential names the agent, the payees, the per-payment cap, the period cap, the purposes, the rails and the time window. In the public demo the agent calls prokura_request_mandate and gets back a URL on https://approve.prokura.network. A human opens it and grants the mandate with a passkey. The agent cannot grant a mandate to itself.

## 2. The agent submits an intent

An intent is amount, currency, payee, purpose, rail and the agent's signature. Each intent carries a nonce and a timestamp, so a replayed intent is refused.

## 3. The gate decides

The gate evaluates the intent against the mandate and returns allow, step_up or deny with reason codes from a closed list (see /reason-codes). Above the four-eyes line the payment is held until a human approves it with a passkey. A payee, purpose, rail or amount outside the mandate is denied, and nothing is paid. A repeat of the same invoice is refused as a duplicate, and the period cap holds even when an agent keeps retrying.

## 4. Every decision becomes evidence

Each decision is written as a Nachweis: a record hashed with SHA-256 over RFC 8785 canonical JSON, linked to the previous record and signed with Ed25519. The day's records are committed in a signed Merkle root, and hourly checkpoints cover the time before the root exists. Anyone can download a Nachweis and verify it offline with the public verifier at https://github.com/prokura-network/prokura-verify.

## Try it

The live demo is on the homepage, with test money only. To connect your own agent, read /developers. The full API is at /docs.

URL: https://prokura.network/how-it-works
