public class VRFKeyPair extends Object implements AutoCloseable
| Constructor and Description |
|---|
VRFKeyPair(VRFSecretKey secretKey) |
VRFKeyPair(VRFSecretKey secretKey,
VRFPublicKey publicKey) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static VRFKeyPair |
generate() |
VRFPublicKey |
getPublicKey() |
VRFSecretKey |
getSecretKey() |
VRFProveResult |
prove(FieldElement message) |
public VRFKeyPair(VRFSecretKey secretKey, VRFPublicKey publicKey)
public VRFKeyPair(VRFSecretKey secretKey)
public static VRFKeyPair generate()
public VRFProveResult prove(FieldElement message)
public VRFSecretKey getSecretKey()
public VRFPublicKey getPublicKey()
public void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2020–2021. All rights reserved.