Class VrfProofBuilder

  • All Implemented Interfaces:
    Serializer

    public class VrfProofBuilder
    extends java.lang.Object
    implements Serializer
    Verfiable random function proof
    • Constructor Detail

      • VrfProofBuilder

        protected VrfProofBuilder​(java.io.DataInputStream stream)
        Constructor - Creates an object from stream.
        Parameters:
        stream - Byte stream to use to serialize the object.
    • Method Detail

      • loadFromBinary

        public static VrfProofBuilder loadFromBinary​(java.io.DataInputStream stream)
        Creates an instance of VrfProofBuilder from a stream.
        Parameters:
        stream - Byte stream to use to serialize the object.
        Returns:
        Instance of VrfProofBuilder.
      • getGamma

        public ProofGammaDto getGamma()
        Gets gamma.
        Returns:
        Gamma.
      • getVerificationHash

        public ProofVerificationHashDto getVerificationHash()
        Gets verification hash.
        Returns:
        Verification hash.
      • getScalar

        public ProofScalarDto getScalar()
        Gets scalar.
        Returns:
        Scalar.
      • getSize

        public int getSize()
        Gets the size of the object.
        Specified by:
        getSize in interface Serializer
        Returns:
        Size in bytes.
      • serialize

        public byte[] serialize()
        Serializes an object to bytes.
        Specified by:
        serialize in interface Serializer
        Returns:
        Serialized bytes.