Class UncheckedListProofAdapter<E>

  • All Implemented Interfaces:
    UncheckedListProof

    public class UncheckedListProofAdapter<E>
    extends java.lang.Object
    implements UncheckedListProof
    An Adapter class used to simplify work with ListProof interfaces.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      CheckedListProof check()
      Checks that a proof has either correct or incorrect structure and returns a CheckedListProof.
      ListProofNode getRootProofNode()
      Returns raw source proof of this UncheckedListProof.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UncheckedListProofAdapter

        public UncheckedListProofAdapter​(ListProofNode rootProofNode,
                                         Serializer<E> serializer)
        Creates UncheckedListProofAdapter for convenient usage of ListProof interfaces.

        UncheckedListProofAdapter check() method will return CheckedListProof containing results of list proof verification.

        Parameters:
        rootProofNode - source list proof
        serializer - proof elements serializer