Introduction
Introduction
AgentTrust is a Solana trust and payment gate for agent commerce.
AgentTrust is a Solana trust and payment gate for agent commerce.
AgentTrust evaluates policy, validation, and feedback before a payment settles. The stack gives facilitators a single path for deciding whether an agent-to-agent payment should proceed, require validation, or stop.
5 / 5 invariants formally verified
PolicyVault safety properties are checked by Kani in CI.
paused_implies_no_allowvelocity_counter_le_limitcounterparty_tier_monotonevalidation_expiry_correctmultisig_threshold_enforced
What AgentTrust ships
AgentTrust ships as three Anchor programs plus a TypeScript SDK.
| Part | Reads | Writes | Result |
|---|---|---|---|
| PolicyVault | payer and payee trust data | policy counters and velocity ledgers | Allow, Deny, or RequireValidation |
| TrustGate | PolicyVault decisions | Quantu feedback logs | x402 status and ERC-8004 feedback |
| ValidationRegistry | attestor profiles and attestations | capability attestations | reusable validation evidence |
Devnet deployment
The current Frontier build is deployed on Solana devnet.
policy_vault
8Y6fGeNEHgmWmbt8JsRcF72jxbeBfJhomMjG6SuoJQTRtrustgate
HF8zHfoyA7b5mhLViopTnRMprc6ZT5KActHTdkFrih2Nvalidation_registry
Cx4RFa6ysw3qXYhugPkF8pFSWBkmKq59h2dWgF2tKhtvThe shortest path
Install the SDK, mount TrustGate in your facilitator, then call /verify before payment settlement.
pnpm add @agenttrust-sdk/trustgateimport express from "express";
import { Keypair } from "@solana/web3.js";
import { mountTrustGate } from "@agenttrust-sdk/trustgate/express";
const app = express();
app.use(express.json());
await mountTrustGate(app, {
rpcUrl: "https://api.devnet.solana.com",
facilitatorKeypair: Keypair.fromSecretKey(secretKey),
network: "solana-devnet",
atomicityEnforced: true,
});