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 CheckedListProofcheck()Checks that a proof has either correct or incorrect structure and returns a CheckedListProof.ListProofNodegetListProofRootNode()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:UncheckedListProofChecks that a proof has either correct or incorrect structure and returns a CheckedListProof.- Specified by:
checkin interfaceUncheckedListProof
-
getListProofRootNode
Description copied from interface:UncheckedListProofReturns the root node of the corresponding proof tree of this UncheckedListProof.- Specified by:
getListProofRootNodein interfaceUncheckedListProof
-