proveMerkle⚓︎
- proveMerkle
- Proves a merkle hash.
ts
function proveMerkle(
leafHash,
merklePath,
rootHash): booleanProves 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.