Class MerkleTree
-
- All Implemented Interfaces:
public final class MerkleTree
-
-
Field Summary
Fields Modifier and Type Field Description private final Felt
rootHash
private final List<List<Felt>>
branches
private final List<Felt>
leafHashes
private final HashMethod
hashFunction
-
Constructor Summary
Constructors Constructor Description MerkleTree(List<Felt> leafHashes, HashMethod hashFunction)
-
Method Summary
Modifier and Type Method Description final Felt
getRootHash()
final List<List<Felt>>
getBranches()
final List<Felt>
getLeafHashes()
final HashMethod
getHashFunction()
final static Felt
hash(Felt a, Felt b, HashMethod hashFunction)
-
-
Constructor Detail
-
MerkleTree
MerkleTree(List<Felt> leafHashes, HashMethod hashFunction)
-
-
Method Detail
-
getRootHash
final Felt getRootHash()
-
getBranches
final List<List<Felt>> getBranches()
-
getLeafHashes
final List<Felt> getLeafHashes()
-
getHashFunction
final HashMethod getHashFunction()
-
hash
final static Felt hash(Felt a, Felt b, HashMethod hashFunction)
-
-
-
-