Skip to content

mtztdiana/Merkle_Tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Merkle_Tree

Simple self-balancing Merkle Tree implementation on C++

It uses for hashing PicoSHA2

Build

To build the program in the main directory

$ make

To run the example

On the main directory

$ ./mtree

This will give the hash result of creating a Merkle Tree with the input

"The quick" + "brown fox" + "jumps" + "over the" + "lazy dog"

To run the test

First you need to compile the test with the next line from the main directory. This uses Google Test

$ g++ -Igoogletest-release-1.8.0/googletest/include -Isrc -pthread docs/MerkleTreeTest.cpp src/merkle_tree.cpp googletest-release-1.8.0/libgtest.a -o docs/tests

Then run the test

$ ./docs/tests

This will give the result of the hash as the example provided by PicoSHA2 for the string ""The quick brown fox jumps over the lazy dog""

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors