[Paper Review] Eating Sandwiches: Modular and Lightweight Elimination of Transaction Reordering Attacks
This paper proposes Π3, a modular and lightweight protocol that eliminates profitable sandwich attacks in blockchains by using randomized, verifiable transaction reordering via chunked transactions and leader-based commitment schemes. By ensuring miners cannot predict or bias transaction order, the protocol renders sandwich attacks unprofitable while incurring only linear latency and minimal computational overhead, preserving security and decentralization.
Traditional blockchains grant the miner of a block full control not only over which transactions but also their order. This constitutes a major flaw discovered with the introduction of decentralized finance and allows miners to perform MEV attacks. In this paper, we address the issue of sandwich attacks by providing a construction that takes as input a blockchain protocol and outputs a new blockchain protocol with the same security but in which sandwich attacks are not profitable. Furthermore, our protocol is fully decentralized with no trusted third parties or heavy cryptography primitives and carries a linear increase in latency and minimum computation overhead.
Motivation & Objective
- To address the critical problem of profitable transaction reordering attacks, particularly sandwich attacks, in decentralized blockchains.
- To design a protocol that removes the miner's ability to front- and back-run user transactions without relying on trusted parties or heavy cryptography.
- To maintain the original protocol's security while making sandwich attacks unprofitable through randomized, verifiable transaction ordering.
- To achieve minimal performance overhead—linear in latency and computation—while ensuring strong security guarantees under both Byzantine and rational adversary models.
Proposed method
- Introduces Π3, a modular protocol that enhances any existing blockchain protocol Π by adding verifiable random transaction reordering.
- Uses a fresh, uniformly random permutation Σi per block, generated via commitments from recent miners (leaders), to determine final transaction order.
- Employs a delayed reward mechanism to incentivize leaders to open their commitments truthfully, preventing manipulation of the permutation.
- Splits each transaction into m independent chunks to exponentially increase the number of possible permutations and reduce the probability of a profitable attack order.
- Uses a verifiable random bit generation mechanism (PermFromRandBits) to compute the final permutation from committed partial seeds.
- Preserves transaction atomicity and integrity by ensuring chunking does not alter transaction semantics or validity.
Experimental results
Research questions
- RQ1Can sandwich attacks be made unprofitable in a decentralized blockchain without relying on trusted third parties or heavy cryptography?
- RQ2How can a random transaction ordering be securely and efficiently generated in a way that prevents miners from biasing the order to their advantage?
- RQ3What is the trade-off between security against rational adversaries (e.g., MEV miners) and computational/latency overhead in a practical blockchain setting?
- RQ4How does transaction chunking affect the probability of a profitable sandwich attack, and what is the optimal number of chunks for security and efficiency?
Key findings
- For the 99.97th percentile of sandwich attack profits (6.37 ETH), the probability of a profitable attack drops to approximately 0.0038 when transactions are split into 10 chunks, even for a single leader.
- For the most profitable observed attack (109 ETH), the probability of success falls below 0.5 when transactions are split into 33 chunks.
- The protocol incurs an average space overhead of less than 1 KB per block for a leader set of size 10, with each block containing 256-bit commitments and 468-bit openings.
- Execution overhead scales as O(m log m) with the number of chunks m, which remains minimal compared to alternatives like time-lock puzzles.
- The protocol maintains the original blockchain’s security properties under the Byzantine model, even when the adversary gains no benefit from breaking it.
- Latency increases by τ1 + τ2 + d blocks, where τ1 and τ2 are delay parameters for commitment and opening phases, but not opening commitments does not affect latency—only block rewards.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.