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