Paper 2022/056

LedgerHedger: Gas Reservation for Smart-Contract Security

Itay Tsabary, Technion – Israel Institute of Technology
Alex Manuskin
Ittay Eyal, Technion – Israel Institute of Technology
Abstract

Smart-contract ledger platforms, like Ethereum, rate-limit their workload with incentives. Users issue orders, called transactions, with assigned fees, and system operators, called miners, confirm them and receive the fees. The combination of limited throughput and varying demand results in a volatile fee market, where under-paying transactions are not confirmed. However, the security of prominent smart contracts, securing billions of dollars, critically relies on their transactions being confirmed in specific, future time frames. Despite theoretical and practical active efforts, guaranteeing timely confirmation remained an open problem. We present LedgerHedger, a two-party mechanism for assuring that a transaction will be confirmed in a target time frame. As the name implies, LedgerHedger employs hedging: An issuing party pays for a transaction in advance; the other party commits to bearing its required fee, even if it rises above the paid amount. Unlike regulated markets, there are no external enforcers, and the committing party can technically break her commitment. Due to the amounts at stake, relying on her altruism does not suffice. Therefore, LedgerHedger uses a combination of collateral deposits, giving rise to a game. The contract requires the issuer to deposit her payment and the committing party to deposit a collateral. During the target time frame, the latter should confirm the issuer's transaction if it exists, but is also capable of withdrawing the payment and the collateral if not. For a wide range of parameter values there is a subgame perfect equilibrium where both parties are incentivized to act as desired. We implement LedgerHedger and deploy it on an Ethereum test network, showing its efficacy and minor overhead.

Metadata
Available format(s)
PDF
Category
Applications
Publication info
Preprint.
Keywords
Blockchains Cryptocurrency Smart Contracts Hedging Gas Price
Contact author(s)
itaytsabary @ gmail com
alex @ manuskin org
ittay @ technion ac il
History
2022-06-02: revised
2022-01-18: received
See all versions
Short URL
https://ia.cr/2022/056
License
Creative Commons Attribution
CC BY

BibTeX

@misc{cryptoeprint:2022/056,
      author = {Itay Tsabary and Alex Manuskin and Ittay Eyal},
      title = {LedgerHedger: Gas Reservation for Smart-Contract Security},
      howpublished = {Cryptology ePrint Archive, Paper 2022/056},
      year = {2022},
      note = {\url{https://eprint.iacr.org/2022/056}},
      url = {https://eprint.iacr.org/2022/056}
}
Note: In order to protect the privacy of readers, eprint.iacr.org does not use cookies or embedded third party content.