chapter2

Chapter 2 is a safety and approval system for crypto wallets controlled by AI bots

Visit Repo
chapter2 banner

About

As organizations and DAOs delegate real financial operations to autonomous AI agents such as paying for compute, data feeds, and service bills they face a dangerous all-or-nothing dilemma. AI models are non-deterministic, vulnerable to prompt injections, logic loops, and hallucinations. Because blockchain transactions are final and irreversible, giving an AI agent direct access to a treasury wallet means a single compromised instruction or software bug can instantly drain millions of dollars with zero recourse. Conversely, forcing humans to manually review and approve every single micro-payment creates an operational bottleneck that destroys the speed and autonomy of AI agents entirely.

Chapter 2 solves this by establishing bounded autonomy through an asymmetric control system. Rather than treating wallet access as all-or-nothing, the system splits transactions into distinct risk tiers. Routine micro-payments, such as x402 web resource payments, proceed automatically without human delays, while any transaction that exceeds spending limits, sends funds to untrusted addresses, or shows anomalous intent is immediately halted for human sign-off. The platform coordinates this across an Ethereum and Base Sepolia smart contract foundation, a NestJS supervisory backend for policy checks and injection filtering, Privy and World ID for agent identity and human personhood verification, Flutter for mobile monitoring, and Ledger for hardware authorization.

Smart contracts are essential because security guarantees cannot depend solely on off-chain servers that could crash, misconfigure, or suffer unauthorized tampering. Chapter 2 implements a custom transaction guard on Gnosis Safe that sits directly in the blockchain execution path. The contract enforces dual execution routes. Under the autonomous route, the contract verifies mathematical spending caps, including single-transaction limits and rolling 24-hour budgets, while strictly prohibiting administrative or contract-upgrade calls. If an action breaches these parameters, the smart contract immediately reverts the transaction unless it enters the human-approved route, which requires a valid EIP-712 cryptographic signature from the human owner.

Mobile phones serve as the primary operational interface because autonomous AI agents operate around the clock, requiring immediate, portable oversight. When an agent attempts an action that exceeds its autonomous allowance, the human supervisor receives an instant push notification on their phone. Crucially, modern mobile devices provide hardware-isolated security environments, such as Apple's Secure Enclave on iOS and StrongBox Keystore on Android. Chapter 2 utilizes these dedicated hardware chips to store human authorization keys, gating every high-value approval behind native biometrics like Face ID or fingerprint scanning. This ensures that no software-level exploit on the backend can forge human approvals without physical biometric authorization.

Ledger hardware wallets provide the final, highest tier of physical protection for high-value disbursements and core governance changes. While mobile biometrics handle daily operational alerts, high-value treasury reserves require true cold-storage isolation where private keys never enter internet-connected memory. Ledger devices support EIP-712 clear-signing, rendering the exact token, amount, recipient address, and stated purpose on an un-hackable, physical device screen. This prevents blind-signing attacks and gives human custodians ultimate, uncompromised physical authority over the treasury.

From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

DormantRepo not reachable

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.