public class MerkleTree extends Object
| 构造器和说明 |
|---|
MerkleTree() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Hash |
root(Vector<Hash> hashes)
Root identity.
|
static Hash |
root(Vector<Hash> hashes,
HashTypeEnum hashTypeEnum)
Root identity.
|
static boolean |
verify(int index,
Hash txHash,
Hash receiptRootHash,
List<Hash> branches,
int size)
Verify boolean.
|
static boolean |
verify(int index,
Hash txHash,
Hash receiptRootHash,
List<Hash> branches,
int size,
HashTypeEnum hashTypeEnum)
Verify boolean.
|
public static Hash root(Vector<Hash> hashes)
hashes - the hashespublic static Hash root(Vector<Hash> hashes, HashTypeEnum hashTypeEnum)
hashes - the hashespublic static boolean verify(int index,
Hash txHash,
Hash receiptRootHash,
List<Hash> branches,
int size)
index - the indextxHash - the txHashreceiptRootHash - the receiptRootHashbranches - the branchessize - the sizepublic static boolean verify(int index,
Hash txHash,
Hash receiptRootHash,
List<Hash> branches,
int size,
HashTypeEnum hashTypeEnum)
index - the indextxHash - the txHashreceiptRootHash - the receiptRootHashbranches - the branchessize - the sizeCopyright © 2022. All rights reserved.