HomeEverything
Equities & FundsCrypto & Digital AssetsAI & TechnologyBusiness & CorporateUS Politics & PolicyGeopolitics & Global RiskMacro, Rates & FXCommodities & EnergyEuropean Politics & MarketsAsia-PacificReal Estate & Property
← All Stories

Ex-Ripple CTO Proposes XRP Ledger Reserve Transactions to Fix Front-Running Attacks

Created at 29 Jun · 10:05 AM1 source↑ Market-relevant
IN SHORT

David Schwartz, former CTO of Ripple, has proposed a transaction reservation scheme for the XRP Ledger to combat front-running and sandwich attacks on its decentralized exchange and AMMs. The proposal involves a new ledger object and transaction type to ensure transactions execute before being disclosed on-chain.

✉Newsletter

PiQ Daily

Pick your topics. Get only what matters, on your cadence.

Key Numbers

16ledgers for transaction reservations
32slots per ledger for reservations
$1.03-$1.05XRP price range
25%XRP trading volume increase
$2.36 billionXRP futures open interest
0.80%XRP futures open interest increase

Who's Involved

David Schwartz
Former CTO of Ripple and core developer of XRP Ledger
Ripple
Company behind the XRP Ledger
XRP community
Raised concerns about front-running attacks
Crypto Tony
Analyst sharing XRP price chart

↳ Why This Matters

The proposed changes aim to enhance the security and fairness of transactions on the XRP Ledger, potentially improving user confidence in its decentralized exchange and AMM functionalities by mitigating manipulative trading practices.

Key facts

  • David Schwartz, former CTO of Ripple, proposed a transaction reservation scheme for the XRP Ledger.
  • The scheme aims to fix front-running and sandwich attacks on the XRPL's decentralized exchange and AMMs.
  • A new ledger object, ReservedTxns, will store transaction IDs for future ledgers.
  • A new transaction type, TxnReserve, allows users to book slots by paying double the normal transaction fee.
  • Reservations are limited to the next 16 ledgers and capped at 32 slots per ledger.

David Schwartz, former Chief Technology Officer at Ripple and a key developer of the XRP Ledger (XRPL), has put forth a proposal to introduce a transaction reservation system. This initiative addresses concerns raised by the XRP community regarding front-running and sandwich attacks on the network's decentralized exchange (DEX) and automated market makers (AMMs).

Concerns were voiced by XRP community members who noted that validators and well-connected nodes can observe transactions in the pre-validation queue. This visibility allows them to analyze pending trades, identify profitable opportunities, and potentially spam the network with transactions to secure favorable positions on the XRPL. While the XRPL employs mixed transaction ordering to deter front-running, some users argue this protection is insufficient, leading to slippage for traders on DEXs and AMMs due to sandwich attacks.

Schwartz stated that while he is not overly concerned about the issue, he has devised a straightforward scheme to eliminate such attacks. His proposal includes a new ledger object, termed ReservedTxns, which will maintain an array of transaction IDs designated for a specific future ledger. Additionally, he introduced a new transaction type, TxnReserve, enabling users to book a slot by paying at least double the standard transaction fee. These reservations are restricted to the upcoming 16 ledgers and capped at 32 slots per ledger to ensure efficiency.

Once a slot is reserved, the transaction is broadcast only after the consensus of the previous ledger is established, thereby preventing front-running. Reserved transactions will then be executed first, in the order they were reserved, preceding other transactions within that ledger. Schwartz emphasized that transaction success is contingent on factors such as the doubled fee and adherence to normal transaction execution requirements. The system also incorporates built-in denial-of-service (DoS) protection, as attackers would need to pay continuously, allowing others to simply wait out an attack.

Frequently asked questions

Front-running occurs when a trader uses advanced knowledge of pending transactions to execute their own trades ahead of them for profit. A sandwich attack is a type of front-running where a trader places buy and sell orders around a victim's large order to profit from the price movement caused by the victim's trade.

Users submit a TxnReserve transaction, paying double the normal fee, to book a slot in a future ledger. This reservation ensures their transaction is processed before others and is not subject to front-running.

Reservations are limited to the next 16 ledgers and capped at 32 slots per ledger to maintain efficiency and prevent network congestion.

What Happens Next

01The XRP Ledger community will likely discuss and potentially vote on the proposed transaction reservation scheme.
02Further technical details and implementation plans for ReservedTxns and TxnReserve may be released.

Get the newsletter.

Pick the topics you actually care about. We'll email when there's news worth your time, on the cadence you choose. Cancel any time from your account.

Cadence

How It Developed

XRP Ledger users raised concerns about front-running and sandwich attacks on the network's DEX and AMMs.
David Schwartz proposed a transaction reservation scheme to prevent these attacks.
The scheme introduces a new ledger object, ReservedTxns, and a TxnReserve transaction type.
Users pay double the normal transaction fee to reserve a slot for future ledgers.
Reserved transactions execute first in their reserved order before other transactions.
The proposal includes DoS protection by requiring continuous payment for reservations.

Sources

T1
Ex-Ripple CTO Proposes XRP Ledger Reserve Transactions to Fix Front-Running AttacksCoinGape

Related Stories

Sharplink Buys $62.4M of ETH After Eight-Month Pause
29 Jun · 3:05 AM
EU Watchdog EBA Details Big Crypto Fines as Landmark Laws Bite
28 Jun · 4:10 PM
Loopring DEX Closes Amidst Low Adoption and Technological Obsolescence
29 Jun · 3:20 AM
Kiwoom Securities eyes stake in Bithumb as Korean brokerages expand into crypto
29 Jun · 9:50 AM
CZ aims to make U.S. the 'capital of crypto'
28 Jun · 7:35 PM