[][src]Crate tree_hash

Modules

impls

Macros

tree_hash_ssz_encoding_as_list
tree_hash_ssz_encoding_as_vector

Enums

TreeHashType

Constants

BYTES_PER_CHUNK
HASHSIZE
MERKLE_HASH_CHUNK

Traits

SignedRoot
TreeHash

Functions

merkle_root

Alias to merkleize_padded(&bytes, minimum_chunk_count)

merkleize_padded

Merkleize bytes and return the root, optionally padding the tree out to min_leaves number of leaves.

merkleize_standard

Merkleizes bytes and returns the root, using a simple algorithm that does not optimize to avoid processing or storing padding bytes.

mix_in_length

Returns the node created by hashing root and length.