public class VRFPublicKey extends Object implements AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
static int |
PUBLIC_KEY_LENGTH |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static VRFPublicKey |
deserialize(byte[] publicKeyBytes) |
static VRFPublicKey |
deserialize(byte[] publicKeyBytes,
boolean checkPublicKey) |
static VRFPublicKey |
deserialize(byte[] publicKeyBytes,
boolean checkPublicKey,
boolean compressed) |
void |
freePublicKey() |
FieldElement |
proofToHash(VRFProof proof,
FieldElement message) |
byte[] |
serializePublicKey() |
byte[] |
serializePublicKey(boolean compressed) |
boolean |
verifyKey() |
public static VRFPublicKey deserialize(byte[] publicKeyBytes, boolean checkPublicKey, boolean compressed)
public static VRFPublicKey deserialize(byte[] publicKeyBytes, boolean checkPublicKey)
public static VRFPublicKey deserialize(byte[] publicKeyBytes)
public byte[] serializePublicKey(boolean compressed)
public byte[] serializePublicKey()
public void freePublicKey()
public boolean verifyKey()
public FieldElement proofToHash(VRFProof proof, FieldElement message)
public void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2020–2021. All rights reserved.