toip.tools

function · Browser and Node

verifyPath

True if leaf at path.index with path.siblings gives root.

@toip-tools/anon-membershipView source
TypeScriptImport
import { verifyPath } from "@toip-tools/anon-membership";

Declaration

TypeScriptSignature
verifyPath(leaf: Field, path: MerklePath, root: Field): boolean;

Parameters

leafrequired
bigint
pathrequired
MerklePath
rootrequired
bigint

Returns

boolean