Welcome
A zero-knowledge policy layer that lets AI agents move money only after proving they followed your private rules.
What is Zentra?
Let AI agents move money — only after they prove they followed your rules. A zero-knowledge policy layer for autonomous agents on Stellar: the rules stay private, compliance is provable.
Zentra lets developers build AI agents that can trigger Stellar payments only after proving, in zero knowledge, that they followed private, user-defined policies. A Soroban contract verifies the proof, checks it against the agent's authoritative on-chain state, settles the payment, and emits a verifiable receipt.
Let agents act. Make them prove it. — No proof, no payment.

▶ Watch the 2-minute demo — connect a wallet, generate a real proof, and anchor it on-chain.
Is this for you?
I'm building an agent
Go from zero to a verified proof on testnet in one sitting.
I'm evaluating the cryptography
On-chain Groth16/BN254 + Poseidon, and what a proof costs.
I want the big picture
The agentic-payments trust gap, and the question Zentra answers.
The one question
Agentic finance already has answers for who is this agent? (identity) and what is it allowed to do? (permissions). Zentra answers the third:
Did this specific action, right now, actually obey the rules — without exposing the private details?
Proof replaces surveillance. Every action becomes a proof, every proof a receipt, every receipt reputation.
Documentation map
Start Here
- Start here — the thesis in two minutes: let agents act, make them prove it.
- The problem — why identity and permissions don't stop a bad payment.
- How Zentra answers — proof before settlement, not logs after.
- What Zentra is not — the boundary of what the protocol claims.
Quickstart
- Quickstart — zero to a verified, proof-gated payment on Stellar testnet, in one sitting.
Concepts
- Proof of compliance — prove a proposed action obeyed the policy and current state.
- Policy & commitment — a private policy reduced to one Poseidon commitment.
- Recipient allowlist — approved recipients as a Poseidon-Merkle root.
- Authority State — the on-chain record a proof is bound to.
- Epochs & limits — how the daily limit resets, computed identically off-chain.
- Nullifiers — single-use markers that make actions un-replayable.
- Verifiable Action Receipt — the proof-backed attestation emitted on settle.
- Privacy model — exactly what stays private vs. public.
Guides
- Define a policy — author and register a policy (SDK or CLI).
- Integrate the SDK — construct the client and wire status events.
- Guard an agent — wrap an agent so it can only pay through a proof.
- The three failure modes — legit, prompt-injection, and over-spend, end to end.
- CLI workflow — drive prove → submit from the terminal.
- Deploy your own verifier — build, deploy, and register your own contract.
- Read receipts — consume and parse
ActionReceiptevents.
How it works
- Overview — the end-to-end proof → verify → settle loop.
- The circuit — 14 public inputs, 7 private, six constraint families.
- On-chain verification — Groth16/BN254 inside Soroban, and its cost.
- Poseidon on-chain — CAP-0075 host Poseidon for the receipt id.
- State binding — how prev-state makes over-spend impossible.
- Why now — the Protocol 25/26 upgrades that made this feasible.
Reference
- SDK —
@zentra/sdk: client,GuardedAgent, types. - CLI —
zentra: commands, flags, config. - Contract —
ZentraVerifier: methods, state machine, events. - Circuit —
payment_policy.circom: signals and build. - Serialization —
@zentra/serialization: the byte-exact codec. - Errors — error codes 1–8 with symptom and cause.
- Receipt schema —
ActionReceiptfields and the receipt JSON.