Canonical code examples for ProofPack and agent verification
Central place for copy-paste examples. The main guide links here instead of inlining code.
Installation
npm, dotnet, Rust install commands
Quick setup: verification context
Configure trusted roots and create verifier/reader (JS + C#)
Path 1: Wallet-only (JavaScript)
verifyByWallet() — no JWS
verifyByWallet()
Path 2: JWS with claims (JavaScript)
Verify JWS or JWT and read claims
Express.js middleware
Middleware for x-agent-wallet or Authorization: Bearer <token>
x-agent-wallet
Authorization: Bearer <token>
ASP.NET Core
Controller with wallet and JWS/JWT verification
Common use cases
Time tracking, payment, compliance, MCP patterns
Main guide: ProofPack & Agent Delegation.
Last updated 6 hours ago