Uses of Class
io.crums.util.mrkl.Tree
Package | Description |
---|---|
io.crums.util.mrkl |
-
Uses of Tree in io.crums.util.mrkl
Subclasses of Tree in io.crums.util.mrkl Modifier and Type Class Description class
DeltaTree
A Merkle tree constructed from another with more leaves appended.class
FixedLeafTree
A more compact Tree appropriate if the leaves are fixed-width and it'all fits under 2 gigabytes.class
FreeLeafTree
A Tree allowing variable length leaves.Methods in io.crums.util.mrkl that return Tree Modifier and Type Method Description Tree
Builder. build()
Builds and returns the tree.Tree
DeltaBuilder. build()
Tree
FixedLeafBuilder. build()
protected Tree
Builder. packageTree()
protected Tree
FixedLeafBuilder. packageTree()
Tree
Node. tree()
Methods in io.crums.util.mrkl with parameters of type Tree Modifier and Type Method Description static int
DeltaTree. computeNewLeafCount(Tree base, byte[] deltaNodes)
Infers and returns the number of leaves in the new tree given an array of deltas (additions) from a base tree.Constructors in io.crums.util.mrkl with parameters of type Tree Constructor Description DeltaBuilder(Tree tree)
Constructs a copy-on-write instance.DeltaBuilder(Tree tree, boolean copyOnWrite)
Creates a new instance.DeltaTree(Tree base, byte[] deltaNodes)
Creates a new instance.Proof(Tree tree, int leafIndex)
Tree(Tree copy)
Copy constructor.