Module utils

Module utils 

Source

Functions§

check_aux_chains 🔒
cn_fast_hash
Returns the Keccak 256 hash of the byte input
cn_fast_hash2
Returns the Keccak 256 hash of 2 hashes
create_blockhashing_blob
Creates a hex-encoded Monero blockhashing_blob
create_merkle_proof
Creates a Merkle proof for the given hash within the set of hashes. This function returns None if the hash is not in hashes. This is a port of Monero’s tree_branch function.
tree_hash
Tree hash algorithm in Monero
tree_hash_count 🔒
Round down to power of two. Should error for count < 3 or if the count is unreasonably large for tree hash calculations.