About
Description
LeanSeal is a quantum-safe wallet and sealed transaction protocol built on EIP-8141 and ERC-8421, combining post-quantum cryptography, time-locked encryption, and on-chain execution enforcement to make Ethereum transactions private until execution and resistant to sandwich attacks. Just think that we are removing the 3rd party defi guys who says they can stop our attacks but works on contract orchestrations and we are someone who does that directly using alt-mempools and PQ signatures. The idea builds on a concept discussed by Vitalik Buterin at Cypherpunk: encrypting a transaction package with the information needed by its intended recipient, locking it for a predetermined number of time steps, and allowing it to be broadcast or revealed only after that time has elapsed. We took this concept further by turning time-locked encryption into an executable transaction lane, where encrypted orders move across a network of nodes and become available for execution only at their designated drand round.
Today, every swap on Ethereum exposes its intent before execution. Bots monitor public mempools, buy ahead of transactions, and sell immediately afterward, extracting value from user slippage. We measured this firsthand: a small swap on our chain suffered a 3% loss to a sandwich attack. At the same time, conventional ECDSA wallet keys face a long-term threat from sufficiently powerful quantum computers.
Existing MEV protection relies heavily on private relays, builders, or protected RPC endpoints. This replaces public exposure with trust in intermediaries. We wanted to eliminate that dependency by enforcing transaction validity and execution rules at the protocol and EVM levels.
We protocolised EIP-8141 and extended the ERC-8421 alternative mempool infrastructure to make this possible.
Quantum-Safe Wallets
LeanSeal accounts verify NIST SLH-DSA post-quantum signatures directly on-chain inside the transaction's VERIFY frame. Signature verification costs approximately 154k gas, exceeding the public mempool's 100k verification cap. We extended the alternative mempool's staked verification budget and precompile support to admit these transactions.
Sealed Transaction Lane
Orders are encrypted against future drand rounds and submitted as hash commitments. Our custom ERC-8421 mempool distributes time-locked orders between nodes under publicly published admission rules. Before the designated round, nobody, including the operators, can reveal the order. Once the round arrives, any node can decrypt and submit it for execution. This creates sealed order flow on public infrastructure without private relays or privileged access.
On-Chain Fair Execution
A custom Uniswap v4 hook enforces batch settlement directly inside the EVM. Orders are revealed and settled together at one clearing price per side. Every unauthorized swap is rejected by the hook, preventing bots from inserting front-runs around the batch. Protection is enforced by the pool itself, not by a trusted third party.
Measured Results
A swap that suffered a 3% loss in the public mempool experienced 0% loss through LeanSeal. Every attempted bot front-run was rejected, both locally and on the live hackathon devnet.
Designed for Individuals and Institutions
Individuals can authenticate using Face ID or fingerprint, with quantum-safe keys generated directly inside the browser. Their first transaction deploys the wallet, verifies the post-quantum signature, and completes a sponsored deposit without requiring ETH.
Institutions receive a dedicated trading interface for sealed block trades, supporting buy and sell orders, amounts, price limits, vault balances, and withdrawals. Large-order size and direction remain hidden until execution.
Why It Matters
LeanSeal demonstrates a new transaction architecture for Ethereum. By protocolising EIP-8141, extending ERC-8421, and combining them with drand and Uniswap v4, we bring programmable post-quantum verification, time-locked transaction delivery, and enforceable fair execution together.
From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.






