Skip to content

@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 โ€‹

ParameterType
PPoseidon
leafbigint
pathElementsbigint[][]
pathIndicesnumber[]
isKnownRootOnChain(root) => Promise<boolean>

Returns โ€‹

Promise<PathCheck>

Lelantosno cookies ๐Ÿช ยท no tracking ๐Ÿ‘๏ธ ยท no accounts ๐Ÿ‘คwalletexplorer4536080GitHub