コンテンツにスキップ

proveMerkle()⚓︎

function proveMerkle(
   leafHash, 
   merklePath, 
   rootHash): boolean

Proves a merkle hash.

Parameters⚓︎

Parameter Type Description
leafHash Hash256 Leaf hash to prove.
merklePath MerklePart[] Merkle hash chain path from leaf to root.
rootHash Hash256 Root hash of the merkle tree.

Returns⚓︎

boolean

\c true if leaf hash is connected to root hash; false otherwise.