postcurve

Bunker wallet: private payments into accounts only hash-based keys can spend, gas paid in USDC.

postcurve

Created At

ETHGlobal Mumbai

Project Description

Quantum computers, and AI-accelerated math, may break the elliptic-curve keys behind today's wallets sooner than expected (Justin Drake's "bunker mode", Vitalik's "prefer hash-only"). postcurve is a bunker for that day.

  • Receive privately: Alice publishes a pq-sap stealth meta-address (ML-KEM-768). Every payment lands at a brand-new EIP-8141 account that only she can find.
  • Spend with hash-only keys: each stealth account can only be moved by a 2-of-3 quorum of WOTS/XMSS one-time keys (browser, phone, paper recovery). No elliptic curve anywhere in a spend. Every key signs once and is burned on chain; a replay is refused by the mempool.
  • No ETH needed: a staked postcurve paymaster verifies the quorum (~600k gas, allowed by ERC-8421's per-entity staked budget) in its pay frame, pays the gas, and takes its fee in the token being spent. To everyone else the account is a random address that never held ETH.
  • Canary: a Chainlink CRE workflow watches large, long-dormant addresses whose public key is already exposed; a sudden sweep raises an alert (an early sign someone can break ECDSA), shown in the app.

Everything in the demo is real: frame transactions on a local EIP-8141 devnet (ethrex), admitted by the ERC-8421 alt mempool sidecar.

How it's Made

  • Signatures: WOTS (w=16) one-time keys in an XMSS tree (height 8, 256 leaves) over keccak256, written from scratch in TypeScript (SDK) and Solidity, with shared test vectors.
  • Stealth: pq-sap commitment format 0x02 (EPF cohort 7), reproduced byte for byte against pq-sap's own vectors; ERC-5564 announcements, scheme 2; CREATE2 accounts bound to the commitment.
  • Accounts and paymaster: Solidity 0.8.28 + Foundry, using hegota-support opcode helpers. The spend is one six-frame EIP-8141 transaction: only_verify (account) → pay (paymaster checks 2-of-3 hash-only signatures) → commit (burns the keys) → checkDeadline + transfer + fee (atomic batch). The paymaster is bounded: fee token only, minimum fee, max ETH cost, no ETH value in frames.
  • Alt mempool: we patched the sidecar to implement ERC-8421 BUDGET-010 (per-entity validation budgets: 1,000,000 gas for staked entities) and opened an upstream PR (forshtat/mempool-workshop-sidecar#4).
  • Canary: Chainlink CRE workflow (TypeScript SDK) simulated with the CRE CLI against the devnet and mainnet, plus a small service for state and the alert feed.
  • App: React + Vite, keys in a Web Worker, browser storage records a key as used before it signs; a phone approver page pairs by QR and signs only what it shows; a local operator deploys accounts and funds test wallets.
  • Tests: 85 Foundry tests, ~100 SDK tests, 43 app tests; an end-to-end script runs the whole spend on the devnet.
background image mobile

Join the mailing list

Get the latest news and updates