Leafguard

Post-quantum 2-of-3 smart wallet on EIP-8141 that blocks hash-based signature reuse on-chain

ETHGlobal MumbaiShipped November 5, 2026 Shipping#defi#payments#health#depin
Visit Repo
Leafguard banner

About

Leafguard (PQ-Vault) is a 2-of-3 guardian smart wallet where every approval is a post-quantum, hash-based signature. There is no ECDSA anywhere in the wallet and no seed phrase. It runs on EIP-8141 frame transactions submitted through the ERC-8421 alternative mempool. Each payment is one transaction with three frames: VERIFY (guardian A's signature), VERIFY (guardian B's signature, which also approves payment) and SENDER (the transfer). Both post-quantum signatures are checked before the account pays any fee, so a missing, corrupted, stale or duplicate approval makes the transaction invalid and costs the wallet nothing. Fast, compact hash-based signatures are one-time ("stateful"): a guardian key has a slot of 128 one-time leaves, and signing twice with the same leaf leaks the key. That is the classic failure mode, and it happens in real life through crashes, restored backups, cloned devices and rolled-back storage. Leafguard records each slot's high-water mark on-chain in a LeafLedger. The mark is checked in VERIFY and consumed in SENDER, so a leaf can never be accepted twice, even if the device holding the key forgets it used it. Anyone can submit an equivocation proof (two messages signed with one leaf) to revoke that slot. Keys renew automatically: a slot with 8 or fewer leaves left is rotated first, approved by the other two guardians. A key that runs out falls back to a larger, stateless SPHINCS-style signature, so the wallet never gets stuck. Two guardians can replace a lost one. We measured it. In simulation, under stale restores, rollbacks and lost state, a baseline vault reached γ = 9 uses of a single leaf (forgery cost down to 35.6 bits) and hundreds of double-accepted signatures. Leafguard kept γ = 1 with zero double acceptances. We also ran the attack live on a local devnet: a vault without on-chain leaf state accepted two transactions signed with the same leaf after a stale backup restore. Leafguard rejected the same restored signer with StaleLeaf. For the demo there are personal wallets (Alice, Bob, Carol) with send and receive, the fee explained, key health and shared 2-of-3 multisig vaults. There is also a block explorer that decodes frame transactions frame by frame, and a React Native phone app. The phone is a paired remote: the keys and signing stay on the wallet computer.

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?

ShippingLast push 27 days ago

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.

QueueBit

Move your EOA or Safe into a quantum-safe smart account with spending limits and guardian recovery.