mtree_verify3
Validate a merkle tree
Usage
#include <librecast/mtree.h>
int mtree_verify(mtree_t *tree);
Compile and link with -llibrecast.
Library
Librecast library (liblibrecast, -llibrecast)
Overview
The mtree_verify function re-hashes the nodes in tree from the base to the root, returning zero if the tree is valid.
Return value
mtree_verify() returns zero if the tree is valid, -1 if not.
Errors
None.