mtree_verify(3)

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.

From liblibrecast-dev 0.9.1-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.