public class MerklTree extends Object
| Constructor and Description |
|---|
MerklTree(List<String> leafList) |
MerklTree(List<String> leafList,
boolean sort) |
MerklTree(List<String> leafList,
boolean sortLeaves,
boolean sortPairs) |
| Modifier and Type | Method and Description |
|---|---|
Integer |
findLeavesIndex(List<String> leaves,
Integer intIndex,
String hashLeaf) |
List<String> |
getHexProof(String leaf,
Integer intIndex) |
String |
getHexRoot() |
List<String> |
getProof(String leaf,
Integer intIndex) |
String |
getRoot() |
static List<String> |
remove0x(List<String> leafList) |
boolean |
verify(List<String> proof,
String root,
String leaf) |
public MerklTree(List<String> leafList, boolean sortLeaves, boolean sortPairs)
leafList - sortLeaves - sortLeaves - public Integer findLeavesIndex(List<String> leaves, Integer intIndex, String hashLeaf)
public List<String> getHexProof(String leaf, Integer intIndex)
leaf - intIndex - public String getRoot()
public String getHexRoot()
Copyright © 2023. All Rights Reserved.