BCLab - Experiment No1
BCLab - Experiment No1
Experiment No. 01
For a given string create Merkel Tree and display it’s contents.
Roll No. 66
Course Outcome:
CSDL7022.1 Explain and create cryptographic hash using Merkel Tree.
Theory /Algorithm: Explain -1) Blockchain
2) Hash tree
3) Merkel Tree with example
2. Hash tree: A hash tree, or Merkle tree, is a data structure that organizes
data into a hierarchical structure of hashed values for efficient
verification of data integrity and authenticity. It is commonly used in
blockchain technology to ensure the security and validity of transactions
and data.
Hash trees, or Merkle trees, enable quick and efficient verification of data
integrity by comparing the root hash with a trusted hash value, ensuring
security in blockchain transactions and data storage.
Outcome of the A Merkle tree is defined as a cryptographic structure that ensures data integrity
Experiment: by hashing smaller portions of data and then hierarchically combining them to
form a single root hash. In this article, we tried to implement a Merkle tree in
Go lang using 2 methods – namely the recursive and iterative approaches. The
former highlights the self-similar nature of Merkle trees which makes it
conceptually clear and intuitive. However, a loop-based mechanism that
consumes fewer system resources is more appropriate for handling large
datasets and avoiding stack-overflow issues.