An Implementation of Depth-First and Breadth-First Search Algorithms for Tip Selection in IOTA Distributed Ledger | SpringerLink
Skip to main content

An Implementation of Depth-First and Breadth-First Search Algorithms for Tip Selection in IOTA Distributed Ledger

  • Conference paper
  • First Online:
Intelligent Information and Database Systems (ACIIDS 2022)

Part of the book series: Lecture Notes in Computer Science ((LNAI,volume 13757))

Included in the following conference series:

  • 1127 Accesses

Abstract

IOTA is one of the most promising distributed ledgers due to its performance, scalability, and fee-less transaction capability. The interaction with the IOTA ledger requires client software to perform complex logic. As this software is often running on low-power Internet of Things (IoT) devices, it is important for it to be highly optimized. Our work highlights the benefits of DAG-based distributed ledgers. We start with an overview of IOTA tip selection algorithms, including the Markov Chain Monte Carlo (MCMC) algorithm and time-based tip selection algorithm. The original IOTA Reference Implementation (IRI) of Cumulative Weight Calculation (CWC) is based on Breadth-First Search (BFS) algorithm. The main contribution of our paper is to show how the Depth-First Search (DFS) algorithm is a better alternative solution to the CWC problem. We describe a sample software implementation, a method for collecting a snapshot from the Tangle, and finally we discuss the experimental outcomes.

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

Access this chapter

Subscribe and save

Springer+ Basic
¥17,985 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
JPY 3498
Price includes VAT (Japan)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
JPY 12583
Price includes VAT (Japan)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
JPY 15729
Price includes VAT (Japan)
  • 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

Similar content being viewed by others

References

  1. Nakamoto, S.: Bitcoin: a peer-to-peer electronic cash system (white paper) (2008). https://bitcoin.org/bitcoin.pdf. Accessed 5 Feb 2022

  2. Buterin, V.: A next-generation smart contract and decentralized application platform - Ethereum white paper (2014) https://www.ethereum.org/pdfs/EthereumWhitePaper.pdf. Accessed 5 Feb 2022

  3. Halgamuge, M.N.: optimization framework for best approver selection method (BASM) and best tip selection method (BTSM) for IOTA tangle network: blockchain-enabled next generation Industrial IoT. Comput. Netw. 199, 108418 (2021). https://doi.org/10.1016/j.comnet.2021.108418

  4. Cormen, T.H., Leiserson, C.E. Rivest, R.L., Stein, C.: Introduction to Algorithms, 3rd edn. The MIT Press, Cambridge, pp. 594–623 (2009)

    Google Scholar 

  5. The official node software that runs on the IOTA Mainnet and Devnet. https://github.com/iotaledger/iri. Accessed 30 Dec 2021

  6. IOTA - the tip selection process. https://legacy.docs.iota.org/docs/getting-started/0.1/network/tip-selection. Accessed 30 Dec 2021

  7. Popov, S.: The tangle, April 30, 2018. Version 1.4.3. https://assets.ctfassets.net/r1dr6vzfxhev/2t4uxvsIqk0EUau6g2sw0g/45eae33637ca92f85dd9f4a3a218e1ec/iota1_4_3.pdf. Accessed 30 Dec 2021

  8. Chrysalis (Path towards IOTA 1.5). https://blog.iota.org/chrysalis-b9906ec9d2de/. Accessed 5 Feb 2022

  9. Towards full decentralization with IOTA 2.0, 2021. https://blog.iota.org/ path-towards-full-decentralization-with-iota-2-0/. Accessed 5 Feb 2022

  10. Van Hijfte, S.: Blockchain Platforms: A Look at the Underbelly of Distributed Platforms. Morgan & Claypool Publishers, San Rafael, Synthesis Lectures on Computer Science (2020)

    Google Scholar 

  11. Ferenczi, A.: Sample implementation of DFS-based Algorithm for the CWC Problem in IOTA Distributed Ledger. https://github.com/andrasfe/iota-research. Accessed 5 Feb 2022

  12. Wang, Q., Yu, J., Chen, S., Xiang, Y.: SoK: diving into DAG-based Blockchain Systems, CoRR, abs/2012.06128, 2020, arXiv:2012.06128. Accessed 20 Mar 2022

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Andras Ferenczi .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2022 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

Ferenczi, A., Bădică, C. (2022). An Implementation of Depth-First and Breadth-First Search Algorithms for Tip Selection in IOTA Distributed Ledger. In: Nguyen, N.T., Tran, T.K., Tukayev, U., Hong, TP., Trawiński, B., Szczerbicki, E. (eds) Intelligent Information and Database Systems. ACIIDS 2022. Lecture Notes in Computer Science(), vol 13757. Springer, Cham. https://doi.org/10.1007/978-3-031-21743-2_28

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-21743-2_28

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-21742-5

  • Online ISBN: 978-3-031-21743-2

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics