AgentTrust
AgentTrust
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_allow
  • velocity_counter_le_limit
  • counterparty_tier_monotone
  • validation_expiry_correct
  • multisig_threshold_enforced

What AgentTrust ships

AgentTrust ships as three Anchor programs plus a TypeScript SDK.

PartReadsWritesResult
PolicyVaultpayer and payee trust datapolicy counters and velocity ledgersAllow, Deny, or RequireValidation
TrustGatePolicyVault decisionsQuantu feedback logsx402 status and ERC-8004 feedback
ValidationRegistryattestor profiles and attestationscapability attestationsreusable validation evidence

Devnet deployment

The current Frontier build is deployed on Solana devnet.

policy_vault8Y6fGeNEHgmWmbt8JsRcF72jxbeBfJhomMjG6SuoJQTR
trustgateHF8zHfoyA7b5mhLViopTnRMprc6ZT5KActHTdkFrih2N
validation_registryCx4RFa6ysw3qXYhugPkF8pFSWBkmKq59h2dWgF2tKhtv

The shortest path

Install the SDK, mount TrustGate in your facilitator, then call /verify before payment settlement.

pnpm add @agenttrust-sdk/trustgate
import 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,
});
repo github.com/mohit-1710/agenttrustnpm @agenttrust-sdk/trustgateMIT

On this page

⌘I