Class UncheckedListProofAdapter
java.lang.Object
com.exonum.binding.common.proofs.list.UncheckedListProofAdapter
- All Implemented Interfaces:
UncheckedListProof
public class UncheckedListProofAdapter extends Object implements UncheckedListProof
An Adapter class used to simplify work with ListProof interfaces.
-
Constructor Summary
Constructors Constructor Description UncheckedListProofAdapter(ListProofNode rootNode, long length)
Creates UncheckedListProofAdapter for convenient usage of ListProof interfaces. -
Method Summary
Modifier and Type Method Description CheckedListProof
check()
Checks that a proof has either correct or incorrect structure and returns a CheckedListProof.ListProofNode
getListProofRootNode()
Returns the root node of the corresponding proof tree of this UncheckedListProof.
-
Constructor Details
-
UncheckedListProofAdapter
Creates UncheckedListProofAdapter for convenient usage of ListProof interfaces.UncheckedListProofAdapter
check()
method will return CheckedListProof containing results of list proof verification.- Parameters:
rootNode
- the root node of the proof treelength
- the length of the corresponding index (needed for index hash calculation)
-
-
Method Details
-
check
Description copied from interface:UncheckedListProof
Checks that a proof has either correct or incorrect structure and returns a CheckedListProof.- Specified by:
check
in interfaceUncheckedListProof
-
getListProofRootNode
Description copied from interface:UncheckedListProof
Returns the root node of the corresponding proof tree of this UncheckedListProof.- Specified by:
getListProofRootNode
in interfaceUncheckedListProof
-