Quick Order Fairness: Implementation and Evaluation (2312.13107v2)
Abstract: Decentralized finance revolutionizes traditional financial systems by leveraging blockchain technology to reduce trust. However, some vulnerabilities persist, notably front-running by malicious actors who exploit transaction information to gain financial advantage. Consensus with a fair order aims at preventing such attacks, and in particular, the differential order fairness property addresses this problem and connects fair ordering to the validity of consensus. The notion is implemented by the Quick Order-Fair Atomic Broadcast (QOF) protocol (Cachin et al., FC '22). This paper revisits the QOF protocol and describes a modular implementation that uses a generic consensus component. Moreover, an empirical evaluation is performed to compare the performance of QOF to a consensus protocol without fairness. Measurements show that the increased complexity comes at a cost, throughput decreases by at most 5%, and latency increases by roughly 50ms, using an emulated ideal network. This paper contributes to a comprehensive understanding of practical aspects regarding differential order fairness with the QOF protocol and also connects this with similar fairness-imposing protocols like Themis and Pompe.
- “libhotstuff: A general-purpose bft state machine replication library with modularity and simplicity.” [Accessed 08/12/23].
- “Random ordering of equally-priced transactions incentivises competitive spam,” 2023. https://github.com/ethereum/go-ethereum/issues/21350.
- O. Alpos, I. Amores-Sesar, C. Cachin, and M. Yeo, “Eating sandwiches: Modular and lightweight elimination of transaction reordering attacks,” CoRR, vol. abs/2307.02954, 2023.
- C. Baum, J. H. Chiang, B. David, T. K. Frederiksen, and L. Gentile, “Sok: Mitigation of front-running in decentralized finance,” in Financial Cryptography Workshops, vol. 13412 of Lecture Notes in Computer Science, pp. 250–271, Springer, 2022.
- D. Boneh, J. Bonneau, B. Bünz, and B. Fisch, “Verifiable delay functions,” in CRYPTO (1), vol. 10991 of Lecture Notes in Computer Science, pp. 757–788, Springer, 2018.
- J. Burdges and L. D. Feo, “Delay encryption,” in EUROCRYPT (1), vol. 12696 of Lecture Notes in Computer Science, pp. 302–326, Springer, 2021.
- Springer, 2011.
- C. Cachin, K. Kursawe, F. Petzold, and V. Shoup, “Secure and efficient asynchronous broadcast protocols,” in CRYPTO, vol. 2139 of Lecture Notes in Computer Science, pp. 524–541, Springer, 2001.
- C. Cachin, J. Micic, N. Steinhauer, and L. Zanolini, “Quick order fairness,” in Financial Cryptography, vol. 13411 of Lecture Notes in Computer Science, pp. 316–333, Springer, 2022.
- J. H. Chiang, B. David, I. Eyal, and T. Gong, “Fairpos: Input fairness in permissionless consensus,” in AFT, vol. 282 of LIPIcs, pp. 10:1–10:23, Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2023.
- T. Chitra, G. Angeris, and A. Evans, “Differential privacy in constant function market makers,” in Financial Cryptography, vol. 13411 of Lecture Notes in Computer Science, pp. 149–178, Springer, 2022.
- P. Daian, S. Goldfeder, T. Kell, Y. Li, X. Zhao, I. Bentov, L. Breidenbach, and A. Juels, “Flash boys 2.0: Frontrunning in decentralized exchanges, miner extractable value, and consensus instability,” in SP, pp. 910–927, IEEE, 2020.
- S. Duan, M. K. Reiter, and H. Zhang, “Secure causal atomic broadcast, revisited,” in DSN, pp. 61–72, IEEE Computer Society, 2017.
- Espresso Systems, “HotShot/docs/espresso-sequencer-paper.pdf at main · EspressoSystems/HotShot — github.com.” https://github.com/EspressoSystems/HotShot/blob/main/docs/espresso-sequencer-paper.pdf, 2023. [Accessed 08/12/23].
- F. Gai, A. Farahbakhsh, J. Niu, C. Feng, I. Beschastnikh, and H. Duan, “Dissecting the performance of chained-bft,” in ICDCS, pp. 595–606, IEEE, 2021.
- R. Gelashvili, A. Spiegelman, Z. Xiang, G. Danezis, Z. Li, D. Malkhi, Y. Xia, and R. Zhou, “Block-stm: Scaling blockchain execution by turning ordering curse to a performance blessing,” in PPoPP, pp. 232–244, ACM, 2023.
- V. Hadzilacos and S. Toueg, “Fault-tolerant broadcasts and related problems,” in Distributed Systems (2nd Ed.) (S. J. Mullender, ed.), New York: ACM Press & Addison-Wesley, 1993. Expanded version appears as Technical Report TR94-1425, Department of Computer Science, Cornell University, Ithaca NY, 1994.
- L. Heimbach and R. Wattenhofer, “Sok: Preventing transaction reordering manipulations in decentralized finance,” in AFT, pp. 47–60, ACM, 2022.
- M. Kelkar, S. Deb, and S. Kannan, “Order-fair consensus in the permissionless setting,” in APKC@AsiaCCS, pp. 3–14, ACM, 2022.
- M. Kelkar, S. Deb, S. Long, A. Juels, and S. Kannan, “Themis: Fast, strong order-fairness in byzantine consensus,” in CCS, pp. 475–489, ACM, 2023.
- M. Kelkar, F. Zhang, S. Goldfeder, and A. Juels, “Order-fairness for byzantine consensus,” in CRYPTO (3), vol. 12172 of Lecture Notes in Computer Science, pp. 451–480, Springer, 2020.
- K. Kursawe, “Wendy, the good little fairness widget: Achieving order fairness for blockchains,” in AFT, pp. 25–36, ACM, 2020.
- L2BEAT, “Value locked: Show rollups only.” https://l2beat.com/scaling/summary, 2023. [Accessed 08/12/23].
- D. Malkhi and P. Szalachowski, “Maximal extractable value (MEV) protection on a DAG,” in Tokenomics, vol. 110 of OASIcs, pp. 6:1–6:17, Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2022.
- MystenLabs, “sui/doc/paper/sui.pdf at main · MystenLabs/sui — github.com.” https://github.com/MystenLabs/sui/blob/main/doc/paper/sui.pdf, 2023. [Accessed 08/12/23].
- M. K. Reiter and K. P. Birman, “How to securely replicate services,” ACM Trans. Program. Lang. Syst., vol. 16, no. 3, pp. 986–1009, 1994.
- R. L. Rivest, A. Shamir, and D. A. Wagner, “Time-lock puzzles and timed-release crypto,” 1996.
- V. Tumas, B. B. F. Pontiveros, C. F. Torres, and R. State, “A ripple for change: Analysis of frontrunning in the XRP ledger,” in ICBC, pp. 1–9, IEEE, 2023.
- D. Yakira, A. Asayag, G. Cohen, I. Grayevsky, M. Leshkowitz, O. Rottenstreich, and R. Tamari, “Helix: A fair blockchain consensus protocol resistant to ordering manipulation,” IEEE Trans. Netw. Serv. Manag., vol. 18, no. 2, pp. 1584–1597, 2021.
- A. Yanai, “Blinderswap: MEV meets MPC.” https://www.youtube.com/watch?v=KQ4xK79YkFE&ab_channel=IC3InitiativeforCryptocurrenciesandContracts, 2021. [Accessed 06/12/23].
- M. Yin, D. Malkhi, M. K. Reiter, G. Golan-Gueta, and I. Abraham, “Hotstuff: BFT consensus with linearity and responsiveness,” in PODC, pp. 347–356, ACM, 2019.
- H. Zhang, L. Merino, Z. Qu, M. Bastankhah, V. Estrada-Galiñanes, and B. Ford, “F3B: A low-overhead blockchain architecture with per-transaction front-running protection,” in AFT, vol. 282 of LIPIcs, pp. 3:1–3:23, Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2023.
- Y. Zhang, S. T. V. Setty, Q. Chen, L. Zhou, and L. Alvisi, “Byzantine ordered consensus without byzantine oligarchy,” in OSDI, pp. 633–649, USENIX Association, 2020.