@lelantos-org/sdk / sync / verifyPath
Function: verifyPath() โ
ts
function verifyPath(
P,
leaf,
pathElements,
pathIndices,
isKnownRootOnChain
): Promise<PathCheck>;Defined in: @lelantos-org/sdk/dist/crypto/path.d.ts:22
Check a path against the set of roots the chain accepts. Returns the computed root alongside the verdict so a rejection is diagnosable.
Parameters โ
| Parameter | Type |
|---|---|
P | Poseidon |
leaf | bigint |
pathElements | bigint[][] |
pathIndices | number[] |
isKnownRootOnChain | (root) => Promise<boolean> |
Returns โ
Promise<PathCheck>