Lifeboat

Finds wallets, Safes and ENS names exposed to Q-Day, and moves them to post-quantum keys.

Lifeboat

Created At

ETHGlobal Mumbai

Project Description

Every time you sign anything on Ethereum, your public key goes on-chain, and a future quantum computer could turn that public key into your private key. No quantum computer can do this today; Lifeboat is about getting ready.

Lifeboat shows who could take over what, then gets them out:

  1. Find what's exposed. It recovers signer keys from a multisig's own signatures, which a "has this address ever sent a transaction?" check never sees. Optimism's Security Council goes from 4 to 13 of 13 public keys, and Base's nested council from 0 to 11. Any Safe can be checked live in the browser.

  2. Names too. The Helm check maps every key that can steer an ENSv2 name across five control paths and proves the list is complete. Across 1,011 real Sepolia names (one per owner), 902 can be steered on Q-Day, 863 of them through their resolver.

  3. Get out, three ways:

    • a post-quantum account (WOTS+C, hash-based) checked inside an EIP-8141 frame transaction, plus a staked rescue paymaster so a wallet with tokens but no ETH can still escape;
    • Quantum Guard: a post-quantum co-signer for a Safe you already have, with owner recovery that the post-quantum key can veto;
    • a registry-verified ENS handover to a post-quantum wallet.
  4. Sign safely. Our ESP32 signer generates its own key, never signs a bare hash (it rebuilds the request and shows it in words), saves its counter before every signature, and is PIN-locked. Our test name lifeboathw.eth is now owned by a wallet whose key exists only on that device.

  5. Public and checkable. Every finding is re-checked and published to Arkiv; the full evidence sits on Swarm, and the app re-hashes it in your browser to prove it matches.

The tools and data are free; protocols pay for monitoring and help migrating.

How it's Made

Contracts. The post-quantum account and the rescue paymaster are pure Yul, using verbatim for the EIP-8141 opcodes (APPROVE, SIGPARAM, SIGDATACOPY, TXPARAM, FRAMEPARAM, FRAMEDATALOAD). The WOTS+C core is templated so the account and a Foundry harness compile the same code; a generator unrolls the hash-chain walk (68k → 45k gas) and the digit sum uses SWAR. VERIFY costs 52,367 gas for a 2,336-byte witness. Quantum Guard (Solidity, via-IR for one file) is a Safe 1.4.1 transaction guard plus ERC-1271 handler with a leaf bitmap, key rotation and a timelocked recovery the PQ key can veto; a CREATE2 factory installs it in one MultiSendCallOnly transaction. 36 Foundry tests run against vectors from the TypeScript signer.

Frame transactions are built with @forshtat/hegota-support, dry-run with ethrex_simulateFrameTransaction and sent through the ERC-8421 alt mempool. The rescue shows the same signed transaction rejected by the public mempool (StorageReadNonSender) and by the unstaked alt mempool, then included once the paymaster is staked; five attack variants are refused.

ENSv2: the Helm check (viem, Sourcify ABIs) rebuilds role holders from EACRolesChanged logs and proves completeness against roleCount, across the owner, EAC delegates, ERC-1155 operators, PermissionedResolver roles (incl. UPGRADE) and parent registries. The handover deploys a fresh PermissionedResolver through VerifiableFactory, re-points the name, revokes the other holders and transfers it; ENSv2 itself refuses the naive transfer (TransferUnsafeWithMultipleAssignees). A hardware-key variant gives each ESP32 its own LifeboatPQWallet via CREATE2 (salt = the device's key root), so the wallet is found from the device alone.

Hardware: ESP32 firmware in portable C++ (Keccak, WOTS+C, an RLP/ABI decoder for clear signing, a PIN-encrypted seed, testnet-only rules). 28 host checks compile the same code in an Alpine container and compare it byte for byte with the TypeScript signer. The browser talks to it over Web Serial.

Arkiv (@arkiv-network/sdk 1.0.1): six schemas, readonly + permissionless-extension audit records, an open one-time-key ledger that flags "signed twice", records updated in place (patch + extend in one executeBatch), count queries, keyset paging and keyless reads. Swarm: our own Bee 2.8.3 light node in Docker uploads the evidence; records carry swarmRef + evidenceHash, and the app re-hashes the file in the browser.

App: Vite + React + viem on Vercel with a strict CSP, EIP-6963 wallet discovery and per-tab error boundaries. An end-to-end Playwright test drives the Protect tab with a scripted wallet on Sepolia.

background image mobile

Join the mailing list

Get the latest news and updates

Lifeboat | ETHGlobal