Table of Contents
Fetching ...

Commitment Against Front Running Attacks

Andrea Canidio, Vincent Danos

TL;DR

This paper analyzes front-running on Ethereum through a game-theoretic model that separates attacks from legitimate competition. It proposes a smart-contract–level commit-reveal protocol, inspired by submarine commitments and ENS-style schemes, in which users first commit a masked message and later reveal it, forcing attackers to guess without knowing the victim’s choice. The main result is that the protocol can eliminate the most severe front-running while preserving honest competition, albeit at the cost of an extra message and a one-block delay, and it becomes more effective when attacker guessing is hard. The authors extend the framework to scenarios with hiding commitments, multiple attackers, and partial implementations, and discuss practical considerations such as mempool timings and composability, along with limitations and directions for future work.

Abstract

We provide a game-theoretic analysis of the problem of front-running attacks. We use it to distinguish attacks from legitimate competition among honest users for having their transactions included earlier in the block. We also use it to introduce an intuitive notion of the severity of front-running attacks. We then study a simple commit-reveal protocol and discuss its properties. This protocol has costs because it requires two messages and imposes a delay. However, we show that it prevents the most severe front-running attacks while preserving legitimate competition between users, guaranteeing that the earliest transaction in a block belongs to the honest user who values it the most. When the protocol does not fully eliminate attacks, it nonetheless benefits honest users because it reduces competition among attackers (and overall expenditure by attackers).

Commitment Against Front Running Attacks

TL;DR

This paper analyzes front-running on Ethereum through a game-theoretic model that separates attacks from legitimate competition. It proposes a smart-contract–level commit-reveal protocol, inspired by submarine commitments and ENS-style schemes, in which users first commit a masked message and later reveal it, forcing attackers to guess without knowing the victim’s choice. The main result is that the protocol can eliminate the most severe front-running while preserving honest competition, albeit at the cost of an extra message and a one-block delay, and it becomes more effective when attacker guessing is hard. The authors extend the framework to scenarios with hiding commitments, multiple attackers, and partial implementations, and discuss practical considerations such as mempool timings and composability, along with limitations and directions for future work.

Abstract

We provide a game-theoretic analysis of the problem of front-running attacks. We use it to distinguish attacks from legitimate competition among honest users for having their transactions included earlier in the block. We also use it to introduce an intuitive notion of the severity of front-running attacks. We then study a simple commit-reveal protocol and discuss its properties. This protocol has costs because it requires two messages and imposes a delay. However, we show that it prevents the most severe front-running attacks while preserving legitimate competition between users, guaranteeing that the earliest transaction in a block belongs to the honest user who values it the most. When the protocol does not fully eliminate attacks, it nonetheless benefits honest users because it reduces competition among attackers (and overall expenditure by attackers).
Paper Structure (20 sections, 3 theorems, 24 equations, 3 figures)

This paper contains 20 sections, 3 theorems, 24 equations, 3 figures.

Key Result

Proposition 1

Player $A$'s equilibrium strategy is: where $\sigma^*_A(s) =\emptyset$ means that $A$ does not send any message. Player $B$'s equilibrium strategy is

Figures (3)

  • Figure 1: Game tree for given $s$.
  • Figure 2: The commit-reveal protocol
  • Figure 3: The commit-reveal protocol with obfuscation

Theorems & Definitions (3)

  • Proposition 1: Equilibrium
  • Lemma 1: No cloning in equilibrium
  • Proposition 2