Class MerkleTree
-
- All Implemented Interfaces:
public final class MerkleTree
-
-
Field Summary
Fields Modifier and Type Field Description private final FeltrootHashprivate final List<List<Felt>>branchesprivate final List<Felt>leafHashesprivate final HashMethodhashFunction
-
Constructor Summary
Constructors Constructor Description MerkleTree(List<Felt> leafHashes, HashMethod hashFunction)
-
Method Summary
Modifier and Type Method Description final FeltgetRootHash()final List<List<Felt>>getBranches()final List<Felt>getLeafHashes()final HashMethodgetHashFunction()final static Felthash(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)
-
-
-
-