Skip to main content

Optimizing Merkle Tree Structure for Blockchain Transactions by a DC Programming Approach

  • Conference paper
  • First Online:
Computational Collective Intelligence (ICCCI 2023)

Abstract

Merkle tree is a fundamental part of blockchain technology, especially in Ethereum cryptocurrency system. The balance of the accounts involved in each transaction is stored on the leaf nodes and must be updated in the State Merkle tree. In this paper, we take advantage of typical transaction characteristics for better constructing the Merkle tree to improve blockchain network performance. It consists of identifying a tree structure with the minimum number of hash values required to update the account data associated with each transaction based on the distribution of all transactions. The proposed optimization model is a combinatorial problem with quadratic functions and binary variables. By using the binary character of variables and penalty techniques, we provide a conventional DC (Difference of Convex functions) program that is efficiently solvable by the DCA (DC Algorithm). Additionally, we suggest an effective recursive DCA-based method for building a Merkle tree for a great amount of blockchain accounts. Numerical experiments on several datasets illustrate the efficiency of our approaches.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 89.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 119.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Bodkhe, U., et al.: Blockchain for industry 4.0: a comprehensive review. IEEE Access 8, 79764–79800 (2020)

    Article  Google Scholar 

  2. Chen, T., Li, Z., Zhu, Y., Chen, J., Luo, X., Lui, J.C.S., Lin, X., Zhang, X.: Understanding Ethereum via graph analysis. ACM Trans. Internet Technol. (TOIT) 20(2), 1–32 (2020)

    Article  Google Scholar 

  3. Gao, W., Hatcher, W.G., Yu, W.: A survey of blockchain: techniques, applications, and challenges. In: 2018 27th International Conference on Computer Communication and Networks (ICCCN), pp. 1–11. IEEE (2018)

    Google Scholar 

  4. Kshetri, N., Voas, J.: Blockchain-enabled E-voting. IEEE Softw. 35(4), 95–99 (2018)

    Article  Google Scholar 

  5. Le Thi, H.A., Pham Dinh, T.: The DC (difference of convex functions) programming and DCA revisited with DC models of real world nonconvex optimization problems. Ann. Oper. Res. 133(1–4), 23–46 (2005)

    MathSciNet  MATH  Google Scholar 

  6. Le Thi, H.A., Pham Dinh, T.: DC programming and DCA: thirty years of developments. Math Program Spec. Issue: DC Program. - Theory Algorithms Appl. 169(1), 5–68 (2018)

    Article  MathSciNet  MATH  Google Scholar 

  7. Merkle, R.C.: A digital signature based on a conventional encryption function. In: Pomerance, C. (ed.) CRYPTO 1987. LNCS, vol. 293, pp. 369–378. Springer, Heidelberg (1988). https://doi.org/10.1007/3-540-48184-2_32

    Chapter  Google Scholar 

  8. Mizrahi, A., Koren, N., Rottenstreich, O.: Optimizing Merkle proof size for blockchain transactions. In: 2021 International Conference on COMmunication Systems & NETworkS (COMSNETS), pp. 299–307. IEEE (2021)

    Google Scholar 

  9. Muñoz, J.L., Forné, J., Esparza, O., Rey, M.: Efficient certificate revocation system implementation: Huffman Merkle hash tree (HuffMHT). In: Katsikas, S., López, J., Pernul, G. (eds.) TrustBus 2005. LNCS, vol. 3592, pp. 119–127. Springer, Heidelberg (2005). https://doi.org/10.1007/11537878_13

    Chapter  Google Scholar 

  10. Nakamoto, S.: A peer-to-peer electronic cash system (2008). https://bitcoin.org/bitcoin.pdf

  11. Pham Dinh, T., Le Thi, H.A.: Convex analysis approach to DC programming: theory, algorithms and applications. Acta Math. Vietnam 22(1), 289–355 (1997)

    MathSciNet  MATH  Google Scholar 

  12. Pham Dinh, T., Le Thi, H.A.: A DC optimization algorithm for solving the trust-region subproblem. SIAM J. Optim. 8(2), 476–505 (1998)

    Article  MathSciNet  MATH  Google Scholar 

  13. Pham Dinh, T., Le Thi, H.A.: Recent advances in DC programming and DCA. Trans. Comput. Intell. XIII 1–37 (2014)

    Google Scholar 

  14. Pham Dinh, T., Nguyen, C.N., Le Thi, H.A.: An efficient combined DCA and B &B using DC/SDP relaxation for globally solving binary quadratic programs. J. Glob. Optim. 48(4), 595–632 (2010)

    Article  MathSciNet  MATH  Google Scholar 

  15. Somin, S., Gordon, G., Altshuler, Y.: Social signals in the Ethereum trading network. arXiv preprint arXiv:1805.12097 (2018)

  16. Wood, G., et al.: Ethereum: a secure decentralised generalised transaction ledger. Ethereum Proj. Yellow Pap. 151, 1–32 (2014)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Thi Tuyet Trinh Nguyen .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Nguyen, T.T.T., Le Thi, H.A., Doan, X.V. (2023). Optimizing Merkle Tree Structure for Blockchain Transactions by a DC Programming Approach. In: Nguyen, N.T., et al. Computational Collective Intelligence. ICCCI 2023. Lecture Notes in Computer Science(), vol 14162. Springer, Cham. https://doi.org/10.1007/978-3-031-41456-5_31

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-41456-5_31

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-41455-8

  • Online ISBN: 978-3-031-41456-5

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics