public class MerkleVerifier extends Object
| Constructor and Description |
|---|
MerkleVerifier() |
| Modifier and Type | Method and Description |
|---|---|
static UInt256 |
calculate_root_hash_from_audit_path(UInt256 leaf_hash,
int node_index,
UInt256[] audit_path,
int tree_size) |
static List |
getProof(UInt256 leaf_hash,
int node_index,
UInt256[] audit_path,
int tree_size) |
static boolean |
Verify(UInt256 leaf_hash,
List targetHashes,
UInt256 root_hash) |
static boolean |
VerifyLeafHashInclusion(UInt256 leaf_hash,
int leaf_index,
UInt256[] proof,
UInt256 root_hash,
int tree_size) |
public static boolean VerifyLeafHashInclusion(UInt256 leaf_hash, int leaf_index, UInt256[] proof, UInt256 root_hash, int tree_size) throws Exception
Exceptionpublic static UInt256 calculate_root_hash_from_audit_path(UInt256 leaf_hash, int node_index, UInt256[] audit_path, int tree_size)
public static List getProof(UInt256 leaf_hash, int node_index, UInt256[] audit_path, int tree_size)
public static boolean Verify(UInt256 leaf_hash, List targetHashes, UInt256 root_hash) throws SDKException
SDKExceptionCopyright © 2020. All rights reserved.