public class TreeHasher extends Object
| 构造器和说明 |
|---|
TreeHasher() |
| 限定符和类型 | 方法和说明 |
|---|---|
UInt256 |
_hash_fold(UInt256[] hashes) |
com.github.DNAProject.merkle.TreeHasher.Obj |
_hash_full(UInt256[] leaves,
long l_idx,
long r_idx) |
long |
countBit(long num) |
UInt256 |
hash_children(UInt256 left,
UInt256 right) |
UInt256 |
hash_empty() |
UInt256 |
hash_leaf(byte[] data) |
UInt256 |
HashFullTree(byte[][] leaves) |
UInt256 |
HashFullTreeWithLeafHash(UInt256[] leaves) |
public UInt256 hash_empty()
public UInt256 hash_leaf(byte[] data)
public long countBit(long num)
public UInt256 HashFullTreeWithLeafHash(UInt256[] leaves) throws Exception
Exceptionpublic com.github.DNAProject.merkle.TreeHasher.Obj _hash_full(UInt256[] leaves, long l_idx, long r_idx) throws Exception
ExceptionCopyright © 2021. All rights reserved.