This is a Rust program that implements a Merkle Tree.
Before running the program, make sure you have Rust installed on your machine. If you don't have it installed yet, follow the instructions at https://www.rust-lang.org/tools/install to install Rust.
To run the program, follow these steps:
-
Open a terminal.
-
Navigate to the root directory of the project, where the
main.rs
file is located. -
Compile the Rust program using the
cargo build
command:cargo build
After a successful compilation, you can execute the program with the cargo run command:
cargo run
The Merkle Tree is a binary tree data structure primarily used in cryptography and data integrity verification. It is constructed from hashes of individual data items and can be used to verify if a specific piece of data belongs to a larger set of data without the need to transmit or store all the data. Each node in the tree contains a hash, and hashes are combined hierarchically until the root of the tree is reached.
In this project, we have implemented a Merkle Tree in Rust for educational and demonstrative purposes.
Feel free to contribute improvements to this project. You can open issues or submit pull requests with your changes.
Author: Raphael F. Queiroz