mtree_verify
validate a merkle tree
- Provided by: liblibrecast-dev (Version: 0.8.0-1.1build1)
- Source: librecast
- Report a bug
validate a merkle tree
Librecast library (liblibrecast, -llibrecast)
#include <librecast/mtree.h>
int mtree_verify(mtree_t *tree);
Compile and link with -llibrecast.
The mtree_verify function re-hashes the nodes in tree from the base to the root, returning zero if the tree is valid.
mtree_verify() returns zero if the tree is valid, -1 if not.
None.
mtree_init(3), mtree_free(3), q_init(3), q_pool_create(3), q_job_seek(3)