Package com.horizen.vrfnative
Class VRFProof
- java.lang.Object
-
- com.horizen.vrfnative.VRFProof
-
- All Implemented Interfaces:
AutoCloseable
public class VRFProof extends Object implements AutoCloseable
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()static VRFProofdeserialize(byte[] proofBytes)static VRFProofdeserialize(byte[] proofBytes, boolean checkVRFProof)static VRFProofdeserialize(byte[] proofBytes, boolean checkVRFProof, boolean compressed)voidfreeProof()booleanisValidVRFProof()byte[]serializeProof()byte[]serializeProof(boolean compressed)
-
-
-
Method Detail
-
deserialize
public static VRFProof deserialize(byte[] proofBytes, boolean checkVRFProof, boolean compressed)
-
deserialize
public static VRFProof deserialize(byte[] proofBytes, boolean checkVRFProof)
-
deserialize
public static VRFProof deserialize(byte[] proofBytes)
-
serializeProof
public byte[] serializeProof(boolean compressed)
-
serializeProof
public byte[] serializeProof()
-
isValidVRFProof
public boolean isValidVRFProof()
-
freeProof
public void freeProof()
-
close
public void close() throws Exception- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
-