mdex_tree_hash - create hash of merkle tree root
Contents
Description
The mdex_tree_hash function creates a hash of length hashlen from the root node of mtree with key n.
This is used to index an mtree in several parts, and to distinguish the root node from the first data
node when nodes = 1.
Library
Librecast library (liblibrecast, -llibrecast)
Name
mdex_tree_hash - create hash of merkle tree root
Return Value
The mdex_tree_hash() returns zero on success. On error, -1 is returned.
See Also
hash_generic_key(3), mdex_init(3), mdex_free(3), mdex_get(3), mdex_put(3), mdex_del(3), lc_share(3) LIBRECAST 2023-07-23 MDEX_TREE_HASH(3)
Synopsis
#include<librecast/mdex.h>intmdex_tree_hash(unsignedchar*hash,size_thashlen,mtree_t*mtree,size_tn);
Compile and link with -llibrecast.
