Encrypted Mempool
Keeping pending transactions hidden until they are included, which removes most front-running.
Basically
An encrypted mempool is a proposal to hide transactions waiting to enter a block. Their order is fixed before anyone can read them, stopping others from jumping ahead to take value from your trade.
Key Takeaways
- An encrypted mempool hides pending transaction details from block builders and validators until ordering is finalised. It prevents front-running, sandwich attacks and other MEV extraction that relies on reading those details.
- The main cryptographic approaches are threshold encryption, where a committee of keyholders collectively decrypts after block commitment, commit-reveal schemes and timelock puzzles. Each trades off latency, trust assumptions and complexity differently.
- Bitcoin's simple fee-based ordering and lack of stateful smart contracts make encrypted mempools far less urgent than on Ethereum. Layer 2 solutions like Lightning and Spark bypass the public mempool entirely.
What Is an Encrypted Mempool?
An encrypted mempool is a proposed change to blockchain transaction processing. It encrypts pending transactions before they enter the network's transaction pool, so block builders, validators and other participants cannot read them until their order in a block is committed. The transactions are then decrypted and executed.
Public blockchains face a tension: transparent mempools let anyone verify pending transactions before confirmation, but also enable extractive strategies. Searcher bots watch for profitable opportunities and manipulate transaction ordering to capture value from ordinary users. On Ethereum alone, cumulative MEV extraction has surpassed $1.8 billion, with sandwich attacks accounting for roughly 51% of all MEV volume.
An encrypted mempool breaks this dynamic by keeping transaction contents hidden between broadcast and block inclusion. Block builders cannot profitably reorder, insert or remove transactions to extract value if they cannot see what those transactions do.
How It Works
The core process encrypts transactions before they enter the mempool, commits to their order while they are still encrypted and decrypts them only after that order is finalised. Several cryptographic techniques can do this, each with different trust models and performance characteristics.
Threshold Encryption
Threshold encryption is the most widely implemented approach. The process works as follows: a committee of keyholders, sometimes called "Keypers", collectively manages a shared decryption key using threshold cryptography.
Shutter Network uses this approach in the first live encrypted mempool implementation, deployed on Gnosis Chain in mid-2024. Shutter's Keyper committee manages the threshold keys and provides decryption shares after each block is committed.
Commit-Reveal Schemes
A simpler alternative uses a two-phase protocol based on commitment schemes. You commit to the transaction first and reveal it later.
Commit-reveal schemes are conceptually simple and need no trusted committee, but add at least one block of latency because the reveal must follow confirmation of the commit. You must stay online for the reveal phase. If you fail to reveal, the commitment expires and any deposit may be forfeited.
Timelock Puzzles (Delay Encryption)
Timelock puzzles encrypt transactions so that decryption requires a fixed amount of sequential computation that cannot be parallelised. Anyone can decrypt the transaction by solving the puzzle after a predetermined period.
Timelock puzzles need no trusted committee because mathematical properties alone guarantee decryption. Calibrating the delay is difficult: if the puzzle is too easy, attackers with faster hardware can decrypt early, while a puzzle that is too hard makes legitimate decryption take longer than the block time and adds latency. The drand network's Timelock.zone service explores this approach for practical use.
Trusted Execution Environments
A fourth approach uses hardware-based trusted execution environments (TEEs) to process encrypted transactions. You submit transactions to a TEE enclave, such as Intel SGX or AMD SEV, which processes them in encrypted memory. The enclave can order and execute transactions without exposing their contents to the host machine's operator.
Flashbots uses this approach in BuilderNet, a decentralised block building network that went live in November 2024. BuilderNet runs block construction inside TEEs, preventing builders from inspecting or manipulating individual transactions during the building process, and produces approximately 25% of Ethereum blocks as of early 2026. However, TEE-based approaches inherit hardware trust assumptions and are potentially vulnerable to side-channel attacks.
Current Implementations
Encrypted mempools are still an emerging technology. Most implementations are either in early production or research stages.
Shutter's deployment on Gnosis Chain represents the first live encrypted mempool using threshold encryption on a production blockchain. Transactions submitted through Shutter's interface are encrypted with the Keyper committee's public key, included in blocks in encrypted form and decrypted only after the block is committed. This prevents any form of MEV extraction that depends on reading pending transaction contents.
Eliminating Front-Running and Sandwich Attacks
The primary use case is protecting DEX traders from MEV extraction. Searcher bots cannot identify large swaps, calculate price impact or construct sandwich attacks when transactions are encrypted. The attacker cannot determine the asset, trade direction or size, which are all needed to build a profitable front-running transaction.
Research on fee market dynamics gives context on the scale of this problem. It explains how transaction ordering creates extractive opportunities.
Fair Ordering for DeFi Protocols
Encrypted mempools enable fairer ordering for all DeFi interactions beyond preventing explicit attacks. Lending protocol liquidations, oracle updates and governance votes can benefit from ordering independent of transaction content, because block builders cannot prioritise or deprioritise a transaction based on its profitability when they cannot see what it does.
Sealed-Bid Auctions
On-chain auctions for NFTs, domain names or block space itself are vulnerable to bid sniping when bids are visible in the mempool. Encrypted mempools enable true sealed-bid auctions: participants submit encrypted bids revealed simultaneously after the auction closes, preventing last-second outbidding based on competitors' submissions.
Private Transaction Submission
You can benefit from not broadcasting your intent publicly when executing large trades, rebalancing portfolios or interacting with sensitive contracts. Services like Flashbots Protect already offer private submission by routing transactions directly to builders. An encrypted mempool provides this privacy at the protocol level rather than relying on trusted intermediaries.
Why Bitcoin Is Less Affected
Bitcoin's architecture makes encrypted mempools far less urgent than on Ethereum. Several structural differences limit MEV exposure on the base layer.
Bitcoin does see limited MEV-like dynamics in specific scenarios. Ordinals and Runes minting events can trigger fee-rate wars, and on-chain swap protocols using HTLCs or PSBTs may expose swap details in the mempool, but these represent a tiny fraction of the MEV surface area compared to Ethereum's DeFi ecosystem.
Layer 2 solutions go even further. As a Bitcoin Layer 2, Spark processes transfers entirely off-chain without exposing them to any public ordering queue. There is no mempool to encrypt because there is no mempool at all: transactions settle directly between parties, eliminating the MEV attack surface by design.
Latency Overhead
Every encrypted mempool scheme adds some delay. Threshold encryption requires keyholders to come online and provide decryption shares after each block commitment, commit-reveal schemes add at least one full block of latency, and timelock puzzles add computation time. For networks with block times already measured in seconds, any additional delay can degrade user experience and reduce throughput.
Validator and Keyholder Collusion
Threshold encryption assumes that fewer than the required threshold of keyholders will collude. A sufficient number of cooperating keyholders can decrypt transactions before block commitment and extract MEV just as they would with a transparent mempool. The security guarantee is only as strong as the committee's decentralisation.
Censorship Concerns
Validators may be reluctant to include transactions they cannot inspect. Encrypted transactions could contain spam, invalid state transitions or even malicious payloads, leaving validators at risk of including transactions that waste block space or fail execution because they cannot validate the contents before inclusion. Validators could therefore prefer transparent transactions over encrypted ones, undermining adoption.
Denial-of-Service Vectors
Encrypted transactions create new DoS vectors because they cannot be fully validated before decryption. An attacker could flood the network with encrypted transactions that appear valid but decrypt to invalid or spam transactions, while traditional mempool defences like checking transaction validity before relay cannot work on data they cannot read. Mitigations include requiring deposits or proof-of-work alongside encrypted submissions.
Liveness Requirements
Threshold encryption schemes require enough keyholders to be online and responsive for decryption. Blocks cannot be decrypted and the chain stalls if too many keyholders go offline. This introduces a new liveness dependency beyond the existing validator set, adding a potential single point of failure.
Incomplete Protection
Encrypted mempools do not eliminate all forms of MEV. Cross-domain MEV from transaction ordering across multiple chains, statistical analysis of encrypted transaction metadata such as size, timing and destination contract, and time-based strategies remain viable even with encryption. They also do not protect against MEV from backrunning opportunities that arise from on-chain state changes visible after block execution.
Glossary content is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.