Privacy Infrastructure for Base

Private payments for
autonomous agents

ZK-UTXO privacy layer for x402 payments and ERC-8004 agents. Hidden amounts, hidden recipients, hidden links — on Base.

Get Started View Source
282
Tests Passing
4
Smart Contracts
2
Agent Integrations
3
Security Audits

Quick Start

Install
npm install privagent-sdk

Agent (Buyer)

import { ShieldedWallet } from 'privagent-sdk';

// Initialize + deposit
const wallet = new ShieldedWallet({
  provider, signer,
  poolAddress, usdcAddress, circuitDir
});
await wallet.initialize();
await wallet.deposit(10_000_000n);

API Provider (Seller)

import { privAgentPaywallV4 } from 'privagent-sdk/x402';

// Add privacy paywall
app.use('/api/data', privAgentPaywallV4({
  price: '1000000',
  poolAddress, signer,
  poseidonPubkey, ecdhPrivateKey,
  ecdhPublicKey, verificationKeys
}));

Architecture

Agent Frameworks
Virtuals GAME  ·  OpenClaw  ·  ElizaOS
───────────────────────────────────────
ERC-8004: Identity + Trust
───────────────────────────────────────
PrivAgent: Privacy Layer
ZK-UTXO  ·  Groth16  ·  Poseidon  ·  Facilitator
───────────────────────────────────────
x402: Payment Protocol
───────────────────────────────────────
Base L2

Privacy Model

Payment Amount

Hidden via ZK proofs + encrypted UTXO notes

Sender Identity

Hidden via nullifier-based spending

Recipient Identity

Hidden via ECDH encrypted notes

Transaction Links

Broken via UTXO model with JoinSplit

Agent Integrations

Virtuals GAME Shipped

5 GameFunctions for autonomous agents. 29 tests.

OpenClaw Shipped

Declarative skill with auto-discovery. 38 tests.

ElizaOS Planned

Action plugin for ElizaOS agents.