logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

mtree_verify - validate a merkle tree

Description

       The  mtree_verify  function  re-hashes the nodes in tree from the base to the root, returning zero if the
       tree is valid.

Errors

       None.

Library

       Librecast library (liblibrecast, -llibrecast)

Name

       mtree_verify - validate a merkle tree

Return Value

mtree_verify() returns zero if the tree is valid, -1 if not.

See Also

mtree_init(3), mtree_free(3), q_init(3), q_pool_create(3), q_job_seek(3)

LIBRECAST                                          2023-06-20                                    MTREE_VERIFY(3)

Synopsis

#include<librecast/mtree.h>intmtree_verify(mtree_t*tree);

       Compile and link with -llibrecast.

See Also