
IntentLayer
No central relay. No raw private key exposure. No unauditable transactions.
Demo
About
IntentLayer is the first protocol combining Gensyn AXL's encrypted peer-to-peer mesh with onchain cryptographic privacy (ERC-5564 stealth addresses), structured agent identity (ERC-8004), and annotated transaction trails (IntentNote) — into a single coherent trust layer for autonomous AI agent payments. Autonomous agents (Agent A as payer, Agent B as payee) communicate exclusively over AXL — no central broker, no shared queue. Every payment requires a valid EIP-712 IntentProof signature, is evaluated by a Gemini 2.5 Flash reasoning gate, simulated on Tenderly, and then executed on Base Sepolia via a PolicyWallet smart contract. Payments are routed through ERC-5564 stealth addresses so the receiver's identity is never exposed onchain. An Observer agent and admin dashboard give operators full visibility into every transaction stage — from AXL topology to on-chain USDC settlement — without ever exposing a private key in the UI.
How it's made
IntentLayer is a TypeScript pnpm monorepo with five key layers: 1. **Transport** — Gensyn AXL Go binary runs as three separate daemons (Agent A :7701, Agent B :7702, Observer :7703). A typed TS wrapper (`axl-transport`) handles long-poll /receive, /send, and /topology over HTTP. No WebSocket complexity, no central broker. 2. **Smart Contracts (Foundry / Solidity)** — Four contracts deployed to Base Sepolia (chainId 84532): `PolicyWallet` (EIP-712 IntentProof verifier + executor), `IntentNoteRegistry` (auditable transaction log), `StealthAnnouncement` (ERC-5564), and `IdentityRegistry` (ERC-8004 agent cards). OpenZeppelin contracts are vendored via Foundry. 3. **Intent Proof Engine** — `intent-core` package implements EIP-712 typed-data signing (viem), policy validation, and Tenderly pre-flight simulation. Agent B's acceptance decision is further gated by a Gemini 2.5 Flash LLM call with structured JSON output and exponential-backoff retry logic. 4. **Stealth Payments** — `intent-core/stealth.ts` implements the full ERC-5564 SECP256K1 generate/scan/claim cycle. Agent A derives a fresh stealth address from Agent B's meta-address, sends USDC there, and posts an announcement. Agent B scans for payments and sweeps via Pimlico ERC-4337 paymaster (USDC gas sponsorship). 5. **Operator Dashboard** — `admin-api` (Node/Express SSE stream) + `admin-web` (Vanilla TS + CSS) give operators a live cockpit showing AXL topology, transaction stages, contract addresses, and a token-gated payment trigger. Private keys never touch the UI. Notable hack: the `axl` in-process daemon mirrors the real AXL HTTP API surface exactly, so the entire pipeline runs in CI without the Go binary.