Skip to content

sergorl/merkle_hash_tree

Repository files navigation

merkle_hash_tree

Rust implementation of merkle hash tree scheme of Merkle hash tree

Dependencies

  • Rayon is used to parallelize of hash function and speed up performance.
  • Rust-Crypto is used to applying hash function (sha256).
  • rand is used to create test data.

Advantages

  • Easy-to-use api
  • Ability to run parallel calculations of hash function

Lacks

  • There is no possibility to create pool of hash structs like pool of threads applying hash: for each SHA-256 calculation struct crypto::sha2::Sha256 is created. In the future is is possible to make feature to create pool of crypto::sha2::Sha256.
  • Size of input byte block for hash function should be not less than 32. It is feature of crypto::sha2::Sha256.
  • There is no possibility to use another hash function. May be in the future will add feature to apply any hash function.

About

Rust implementation of merkle hash tree

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages