コンテンツにスキップ

provePatriciaMerkle()⚓︎

function provePatriciaMerkle(
   encodedKey, 
   valueToTest, 
   merklePath, 
   stateHash, 
   subcacheMerkleRoots): number

Proves a patricia merkle hash.

Parameters⚓︎

Parameter Type Description
encodedKey Hash256 Encoded key of the state to prove.
valueToTest Hash256 Expected hash of the state to prove.
merklePath TreeNode[] Merkle node path from root to leaf.
stateHash Hash256 State hash from a block header.
subcacheMerkleRoots Hash256[] Sub cache merkle roots corresponding to the state hash.

Returns⚓︎

number

Proof result code.