Crate hashtree_rs

source ·
Expand description

Hasthree rust bindings

hashtree is a SHA256 library highly optimized for Merkle tree computations. It is based on Intel’s implementation (intel-ipsec-mb) with a few modifications like hardcoding the scheduled words. This library exposes a single function that takes an input slice of bytes to be considered as chunks of 64 bytes each, and another slice where the digests of each chunk will be written consecutively

Functions§

  • hash takes a mutable slice where the digests will be stored (overwritten), a slice with the chunks to merkleize and the number of chunks to merkleize
  • init is used to initialize the hashtree library. It automatically chooses the best implementation.