skip to main content
10.1145/3579371.3589067acmconferencesArticle/Chapter ViewAbstractPublication PagesiscaConference Proceedingsconference-collections
research-article

An Algorithm and Architecture Co-design for Accelerating Smart Contracts in Blockchain

Authors Info & Claims
Published:17 June 2023Publication History

ABSTRACT

Modern blockchains supporting smart contracts implement a new form of state machine replication with a trusted and decentralized paradigm. However, inefficient smart contract transaction execution severely limits system throughput and hinders the further application of blockchain.

In this work, we achieve efficient multi-layer parallelism of transactions through an algorithm and architecture co-design. Based on the analysis of smart contract invocations, we find that transactions are widely redundant in spatio-temporal distribution and reveal a restriction of scheduling benefits resulting from redundant operations. We propose a spatio-temporal scheduling algorithm to solve this restriction and design a multi-transaction processing unit (MTPU) to accomplish the optimization of transaction parallelism and redundancy. Transactions are asynchronously parallel in the spatial dimension through decoupling of execution and scheduling. Fine-grained data and instruction reuse enables transaction de-redundancy in the time dimension. In addition, we collect execution information for frequently invoked hotspot contracts and perform deep optimization in the idle time slice. Finally, our evaluation shows that the algorithm and architecture co-design is able to achieve a further acceleration of 3.53× -- 16.19× compared to existing schemes.

References

  1. Igor D. Alvarenga, Gustavo Franco Camilo, Lucas Airam C. de Souza, and Otto Carlos M. B. Duarte. 2021. DAGSec: A hybrid distributed ledger architecture for the secure management of the Internet of Things. In 2021 IEEE International Conference on Blockchain, Blockchain 2021, Melbourne, Australia, December 6--8, 2021. IEEE, 266--271. Google ScholarGoogle ScholarCross RefCross Ref
  2. Mohammad Javad Amiri, Divyakant Agrawal, and Amr El Abbadi. 2019. Par-Blockchain: Leveraging Transaction Parallelism in Permissioned Blockchain Systems. In 39th IEEE International Conference on Distributed Computing Systems, ICDCS 2019, Dallas, TX, USA, July 7--10, 2019. IEEE, 1337--1347. Google ScholarGoogle ScholarCross RefCross Ref
  3. Mohammad Javad Amiri, Divyakant Agrawal, and Amr El Abbadi. 2021. Permissioned Blockchains: Properties, Techniques and Applications. In SIGMOD '21: International Conference on Management of Data, Virtual Event, China, June 20--25, 2021. ACM, 2813--2820. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. Parwat Singh Anjana, Hagit Attiya, Sweta Kumari, Sathya Peri, and Archit Somani. 2020. Efficient Concurrent Execution of Smart Contracts in Blockchains Using Object-Based Transactional Memory. In Networked Systems - 8th International Conference, NETYS 2020, Marrakech, Morocco, June 3--5, 2020, Proceedings (Lecture Notes in Computer Science, Vol. 12129). Springer, 77--93. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. Parwat Singh Anjana, Sweta Kumari, Sathya Peri, Sachin Rathor, and Archit Somani. 2019. An Efficient Framework for Optimistic Concurrent Execution of Smart Contracts. In 27th Euromicro International Conference on Parallel, Distributed and Network-Based Processing, PDP 2019, Pavia, Italy, February 13--15, 2019. IEEE, 83--92. Google ScholarGoogle ScholarCross RefCross Ref
  6. L. M. Bach, Branko Mihaljevic, and Mario Zagar. 2018. Comparative analysis of blockchain consensus algorithms. In 41st International Convention on Information and Communication Technology, Electronics and Microelectronics, MIPRO 2018, Opatija, Croatia, May 21--25, 2018. IEEE, 1545--1550. Google ScholarGoogle ScholarCross RefCross Ref
  7. Jonathan Bachrach, Huy Vo, Brian C. Richards, Yunsup Lee, Andrew Waterman, Rimas Avizienis, John Wawrzynek, and Krste Asanovic. 2012. Chisel: constructing hardware in a Scala embedded language. In The 49th Annual Design Automation Conference 2012, DAC '12, San Francisco, CA, USA, June 3--7, 2012. ACM, 1216--1225. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. Shrey Baheti, Parwat Singh Anjana, Sathya Peri, and Yogesh Simmhan. 2022. DiPETrans: A framework for distributed parallel execution of transactions of blocks in blockchains. Concurr. Comput. Pract. Exp. 34, 10 (2022). Google ScholarGoogle ScholarCross RefCross Ref
  9. Massimo Bartoletti, Letterio Galletta, and Maurizio Murgia. 2021. A theory of transaction parallelism in blockchains. Log. Methods Comput. Sci. 17, 4 (2021). Google ScholarGoogle ScholarCross RefCross Ref
  10. Pronaya Bhattacharya, Sudeep Tanwar, Umesh Bodkhe, Sudhanshu Tyagi, and Neeraj Kumar. 2021. BinDaaS: Blockchain-Based Deep-Learning as-a-Service in Healthcare 4.0 Applications. IEEE Trans. Netw. Sci. Eng. 8, 2 (2021), 1242--1255. Google ScholarGoogle ScholarCross RefCross Ref
  11. Vitalik Buterin, Diego Hernandez, Thor Kamphefner, Khiem Pham, Zhi Qiao, Danny Ryan, Juhyeok Sin, Ying Wang, and Yan X. Zhang. 2020. Combining GHOST and Casper. CoRR abs/2003.03052 (2020). arXiv:2003.03052 https://arxiv.org/abs/2003.03052Google ScholarGoogle Scholar
  12. Yang Chen, Zhongxin Guo, Runhuai Li, Shuo Chen, Lidong Zhou, Yajin Zhou, and Xian Zhang. 2021. Forerunner: Constraint-based Speculative Transaction Execution for Ethereum. In SOSP '21: ACM SIGOPS 28th Symposium on Operating Systems Principles, Virtual Event / Koblenz, Germany, October 26--29, 2021. ACM, 570--587. Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. Jérémie Decouchant, David Kozhaya, Vincent Rahli, and Jiangshan Yu. 2022. DAMYSUS: streamlined BFT consensus leveraging trusted components. In EuroSys '22: Seventeenth European Conference on Computer Systems, Rennes, France, April 5 -- 8, 2022. ACM, 1--16. Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. Thomas D. Dickerson, Paul Gazzillo, Maurice Herlihy, and Eric Koskinen. 2020. Adding concurrency to smart contracts. Distributed Comput. 33, 3--4 (2020), 209--225. Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. Etherscan. 2022. Etherscan. https://etherscan.io/Google ScholarGoogle Scholar
  16. Min Fang, Zhao Zhang, Cheqing Jin, and Aoying Zhou. 2021. High-Performance Smart Contracts Concurrent Execution for Permissioned Blockchain Using SGX. In 37th IEEE International Conference on Data Engineering, ICDE 2021, Chania, Greece, April 19--22, 2021. IEEE, 1907--1912. Google ScholarGoogle ScholarCross RefCross Ref
  17. Min Fang, Xinna Zhou, Zhao Zhang, Cheqing Jin, and Aoying Zhou. 2022. SE-Frame: An SGX-enhanced Smart Contract Execution Framework for Permissioned Blockchain. In 38th IEEE International Conference on Data Engineering, ICDE 2022, Kuala Lumpur, Malaysia, May 9--12, 2022. IEEE, 3166--3169. Google ScholarGoogle ScholarCross RefCross Ref
  18. Md. Sadek Ferdous, Mohammad Jabed Morshed Chowdhury, and Mohammad Ashraful Hoque. 2021. A survey of consensus algorithms in public blockchain systems for crypto-currencies. J. Netw. Comput. Appl. 182 (2021), 103035. Google ScholarGoogle ScholarCross RefCross Ref
  19. Manoj Franklin and Mark Smotherman. 1994. A fill-unit approach to multiple instruction issue. In Proceedings of the 27th Annual International Symposium on Microarchitecture, MICRO 1994, San Jose, California, USA, November 30 - December 2, 1994. ACM / IEEE Computer Society, 162--171. Google ScholarGoogle ScholarCross RefCross Ref
  20. Xiang Fu, Huaimin Wang, and Peichang Shi. 2021. A survey of Blockchain consensus algorithms: mechanism, design and applications. Sci. China Inf. Sci. 64, 2 (2021). Google ScholarGoogle ScholarCross RefCross Ref
  21. Zhonghui Ge, Yi Zhang, Yu Long, and Dawu Gu. 2022. Shaduf: Non-Cycle Payment Channel Rebalancing. In 29th Annual Network and Distributed System Security Symposium, NDSS 2022, San Diego, California, USA, April 24--28, 2022. The Internet Society. https://www.ndss-symposium.org/ndss-paper/auto-draft-254/Google ScholarGoogle Scholar
  22. Yossi Gilad, Rotem Hemo, Silvio Micali, Georgios Vlachos, and Nickolai Zeldovich. 2017. Algorand: Scaling Byzantine Agreements for Cryptocurrencies. In Proceedings of the 26th Symposium on Operating Systems Principles, SOSP 2017, Shanghai, China, October 28--31, 2017. ACM, 51--68. Google ScholarGoogle ScholarDigital LibraryDigital Library
  23. Zicong Hong, Song Guo, Rui Zhang, Peng Li, Yufeng Zhan, and Wuhui Chen. 2022. Cycle: Sustainable Off-Chain Payment Channel Network with Asynchronous Rebalancing. In 52nd Annual IEEE/IFIP International Conference on Dependable Systems and Networks, DSN 2022, Baltimore, MD, USA, June 27--30, 2022. IEEE, 41--53. Google ScholarGoogle ScholarCross RefCross Ref
  24. Ruomu Hou, Haifeng Yu, and Prateek Saxena. 2022. Using Throughput-Centric Byzantine Broadcast to Tolerate Malicious Majority in Blockchains. In 43rd IEEE Symposium on Security and Privacy, SP 2022, San Francisco, CA, USA, May 22--26, 2022. IEEE, 1263--1280. Google ScholarGoogle ScholarCross RefCross Ref
  25. Cheqing Jin, Shuaifeng Pang, Xiaodong Qi, Zhao Zhang, and Aoying Zhou. 2022. A High Performance Concurrency Protocol for Smart Contracts of Permissioned Blockchain. IEEE Trans. Knowl. Data Eng. 34, 11 (2022), 5070--5083. Google ScholarGoogle ScholarCross RefCross Ref
  26. Aggelos Kiayias, Markulf Kohlweiss, and Amirreza Sarencheh. 2022. PEReDi: Privacy-Enhanced, Regulated and Distributed Central Bank Digital Currencies. In Proceedings of the 2022 ACM SIGSAC Conference on Computer and Communications Security, CCS 2022, Los Angeles, CA, USA, November 7--11, 2022. ACM, 1739--1752. Google ScholarGoogle ScholarDigital LibraryDigital Library
  27. Eleftherios Kokoris-Kogias, Philipp Jovanovic, Linus Gasser, Nicolas Gailly, Ewa Syta, and Bryan Ford. 2018. OmniLedger: A Secure, Scale-Out, Decentralized Ledger via Sharding. In 2018 IEEE Symposium on Security and Privacy, SP 2018, Proceedings, 21--23 May 2018, San Francisco, California, USA. IEEE Computer Society, 583--598. Google ScholarGoogle ScholarCross RefCross Ref
  28. Wang Fat Lau, Dennis Y. W. Liu, and Man Ho Au. 2021. Blockchain-Based Supply Chain System for Traceability, Regulation and Anti-Counterfeiting. In 2021 IEEE International Conference on Blockchain, Blockchain 2021, Melbourne, Australia, December 6--8, 2021. IEEE, 82--89. Google ScholarGoogle ScholarCross RefCross Ref
  29. Chenxing Li, Peilun Li, Dong Zhou, Zhe Yang, Ming Wu, Guang Yang, Wei Xu, Fan Long, and Andrew Chi-Chih Yao. 2020. A Decentralized Blockchain with High Throughput and Fast Confirmation. In 2020 USENIX Annual Technical Conference, USENIX ATC 2020, July 15--17, 2020. USENIX Association, 515--528. https://www.usenix.org/conference/atc20/presentation/li-chenxingGoogle ScholarGoogle Scholar
  30. Joshua Lind, Oded Naor, Ittay Eyal, Florian Kelbert, Emin Gün Sirer, and Peter R. Pietzuch. 2019. Teechain: a secure payment network with asynchronous blockchain access. In Proceedings of the 27th ACM Symposium on Operating Systems Principles, SOSP 2019, Huntsville, ON, Canada, October 27--30, 2019. ACM, 63--79. Google ScholarGoogle ScholarDigital LibraryDigital Library
  31. Tao Lu and Lu Peng. 2020. BPU: A Blockchain Processing Unit for Accelerated Smart Contract Execution. In 57th ACM/IEEE Design Automation Conference, DAC 2020, San Francisco, CA, USA, July 20--24, 2020. IEEE, 1--6. Google ScholarGoogle ScholarCross RefCross Ref
  32. Loi Luu, Viswesh Narayanan, Chaodong Zheng, Kunal Baweja, Seth Gilbert, and Prateek Saxena. 2016. A Secure Sharding Protocol For Open Blockchains. In Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security, Vienna, Austria, October 24--28, 2016. ACM, 17--30. Google ScholarGoogle ScholarDigital LibraryDigital Library
  33. Patrick McCorry, Surya Bakshi, Iddo Bentov, Sarah Meiklejohn, and Andrew Miller. 2019. Pisa: Arbitration Outsourcing for State Channels. In Proceedings of the 1st ACM Conference on Advances in Financial Technologies, AFT 2019, Zurich, Switzerland, October 21--23, 2019. ACM, 16--30. Google ScholarGoogle ScholarDigital LibraryDigital Library
  34. Andrew Miller, Yu Xia, Kyle Croman, Elaine Shi, and Dawn Song. 2016. The Honey Badger of BFT Protocols. In Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security, Vienna, Austria, October 24--28, 2016. ACM, 31--42. Google ScholarGoogle ScholarDigital LibraryDigital Library
  35. Satoshi Nakamoto. 2008. Bitcoin: A peer-to-peer electronic cash system. Decentralized business review (2008), 21260. https://bitcoin.org/bitcoin.pdfGoogle ScholarGoogle Scholar
  36. Lan N. Nguyen, Truc D. T. Nguyen, Thang N. Dinh, and My T. Thai. 2019. OptChain: Optimal Transactions Placement for Scalable Blockchain Sharding. In 39th IEEE International Conference on Distributed Computing Systems, ICDCS 2019, Dallas, TX, USA, July 7--10, 2019. IEEE, 525--535. Google ScholarGoogle ScholarCross RefCross Ref
  37. Nikolaos Papadis and Leandros Tassiulas. 2022. Payment Channel Networks: Single-Hop Scheduling for Throughput Maximization. In IEEE INFOCOM 2022 - IEEE Conference on Computer Communications, London, United Kingdom, May 2--5, 2022. IEEE, 900--909. Google ScholarGoogle ScholarDigital LibraryDigital Library
  38. Vikram Saraph and Maurice Herlihy. 2019. An Empirical Study of Speculative Concurrency in Ethereum Smart Contracts. In International Conference on Blockchain Economics, Security and Protocols, Tokenomics 2019, May 6--7, 2019, Paris, France (OASIcs, Vol. 71). Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 4:1--4:15. Google ScholarGoogle ScholarCross RefCross Ref
  39. Vibhaalakshmi Sivaraman, Shaileshh Bojja Venkatakrishnan, Kathleen Ruan, Parimarjan Negi, Lei Yang, Radhika Mittal, Giulia Fanti, and Mohammad Alizadeh. 2020. High Throughput Cryptocurrency Routing in Payment Channel Networks. In 17th USENIX Symposium on Networked Systems Design and Implementation, NSDI 2020, Santa Clara, CA, USA, February 25--27, 2020. USENIX Association, 777--796. https://www.usenix.org/conference/nsdi20/presentation/sivaramanGoogle ScholarGoogle Scholar
  40. Solidity. 2022. Solidity. https://docs.soliditylang.org/en/v0.8.17/Google ScholarGoogle Scholar
  41. Yonatan Sompolinsky and Aviv Zohar. 2015. Secure High-Rate Transaction Processing in Bitcoin. In Financial Cryptography and Data Security - 19th International Conference, FC 2015, San Juan, Puerto Rico, January 26--30, 2015, Revised Selected Papers (Lecture Notes in Computer Science, Vol. 8975). Springer, 507--527. Google ScholarGoogle ScholarCross RefCross Ref
  42. Xiao Sui, Sisi Duan, and Haibin Zhang. 2022. Marlin: Two-Phase BFT with Linearity. In 52nd Annual IEEE/IFIP International Conference on Dependable Systems and Networks, DSN 2022, Baltimore, MD, USA, June 27--30, 2022. IEEE, 54--66. Google ScholarGoogle ScholarCross RefCross Ref
  43. Jiaping Wang and Hao Wang. 2019. Monoxide: Scale out Blockchains with Asynchronous Consensus Zones. In 16th USENIX Symposium on Networked Systems Design and Implementation, NSDI 2019, Boston, MA, February 26--28, 2019. USENIX Association, 95--112. https://www.usenix.org/conference/nsdi19/presentation/wang-jiapingGoogle ScholarGoogle Scholar
  44. Tianyu Wang, Qian Wang, Zhaoyan Shen, Zhiping Jia, and Zili Shao. 2022. Understanding Characteristics and System Implications of DAG-Based Blockchain in IoT Environments. IEEE Internet Things J. 9, 16 (2022), 14478--14489. Google ScholarGoogle ScholarCross RefCross Ref
  45. Gavin Wood. 2014. Ethereum: A secure decentralised generalised transaction ledger. Ethereum project yellow paper 151, 2014 (2014), 1--32. https://files.gitter.im/ethereum/yellowpaper/VIyt/Paper.pdfGoogle ScholarGoogle Scholar
  46. Lei Yang, Seo Jin Park, Mohammad Alizadeh, Sreeram Kannan, and David Tse. 2022. DispersedLedger: High-Throughput Byzantine Consensus on Variable Bandwidth Networks. In 19th USENIX Symposium on Networked Systems Design and Implementation, NSDI 2022, Renton, WA, USA, April 4--6, 2022, Amar Phanishayee and Vyas Sekar (Eds.). USENIX Association, 493--512. https://www.usenix.org/conference/nsdi22/presentation/yangGoogle ScholarGoogle Scholar
  47. Murat Yilmaz, Tuna Hacaloglu, and Paul M. Clarke. 2022. Examining the Use of Non-fungible Tokens (NFTs) as a Trading Mechanism for the Metaverse. In Systems, Software and Services Process Improvement - 29th European Conference, EuroSPI 2022, Salzburg, Austria, August 31 -- September 2, 2022, Proceedings (Communications in Computer and Information Science, Vol. 1646). Springer, 18--28. Google ScholarGoogle ScholarCross RefCross Ref
  48. Haifeng Yu, Ivica Nikolic, Ruomu Hou, and Prateek Saxena. 2020. OHIE: Blockchain Scaling Made Simple. In 2020 IEEE Symposium on Security and Privacy, SP 2020, San Francisco, CA, USA, May 18--21, 2020. IEEE, 90--105. Google ScholarGoogle ScholarCross RefCross Ref
  49. An Zhang and Kunlong Zhang. 2018. Enabling Concurrency on Smart Contracts Using Multiversion Ordering. In Web and Big Data - Second International Joint Conference, APWeb-WAIM 2018, Macau, China, July 23--25, 2018, Proceedings, Part II (Lecture Notes in Computer Science, Vol. 10988). Springer, 425--439. Google ScholarGoogle ScholarDigital LibraryDigital Library
  50. Cheng Zhang, Yang Xu, Yupeng Hu, Jiajing Wu, Ju Ren, and Yaoxue Zhang. 2022. A Blockchain-Based Multi-Cloud Storage Data Auditing Scheme to Locate Faults. IEEE Trans. Cloud Comput. 10, 4 (2022), 2252--2263. Google ScholarGoogle ScholarCross RefCross Ref

Index Terms

  1. An Algorithm and Architecture Co-design for Accelerating Smart Contracts in Blockchain

      Recommendations

      Comments

      Login options

      Check if you have access through your login credentials or your institution to get full access on this article.

      Sign in
      • Published in

        cover image ACM Conferences
        ISCA '23: Proceedings of the 50th Annual International Symposium on Computer Architecture
        June 2023
        1225 pages
        ISBN:9798400700958
        DOI:10.1145/3579371

        Copyright © 2023 ACM

        Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected].

        Publisher

        Association for Computing Machinery

        New York, NY, United States

        Publication History

        • Published: 17 June 2023

        Permissions

        Request permissions about this article.

        Request Permissions

        Check for updates

        Qualifiers

        • research-article

        Acceptance Rates

        Overall Acceptance Rate543of3,203submissions,17%

        Upcoming Conference

        ISCA '24
      • Article Metrics

        • Downloads (Last 12 months)532
        • Downloads (Last 6 weeks)49

        Other Metrics

      PDF Format

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader