class KeyPair
(source)
A SECP256K1 key pair.
open static fun create(secretKey: SecretKey, publicKey: PublicKey): KeyPair
Create a keypair from a private and public key. |
|
open fun equals(other: Any?): Boolean |
|
open static fun fromSecretKey(secretKey: SecretKey): KeyPair
Create a keypair using only a private key. |
|
open fun hashCode(): Int |
|
open static fun load(file: Path): KeyPair
Load a key pair from a path. |
|
open fun publicKey(): PublicKey |
|
open static fun random(): KeyPair
Generate a new keypair. Entropy for the generation is drawn from SecureRandom. |
|
open fun secretKey(): SecretKey |
|
open fun store(file: Path): Unit
Write the key pair to a file. |