class KeyPair
(source)
A Box key pair.
<init> |
Create a KeyPair(publicKey: PublicKey!, secretKey: SecretKey!) |
equals |
fun equals(other: Any?): Boolean |
forSecretKey |
Create a static fun forSecretKey(secretKey: SecretKey!): KeyPair! |
forSignatureKeyPair |
Converts signature key pair (Ed25519) to a box key pair (Curve25519) so that the same key pair can be used both for authenticated encryption and for signatures. See https://libsodium.gitbook.io/doc/advanced/ed25519-curve25519 static fun forSignatureKeyPair(keyPair: KeyPair!): KeyPair! |
fromSeed |
Generate a new key using a seed. static fun fromSeed(seed: Seed!): KeyPair! |
hashCode |
fun hashCode(): Int |
publicKey |
Provides the public key fun publicKey(): PublicKey! |
random |
Generate a new key using a random generator. static fun random(): KeyPair! |
secretKey |
Provides the secret key fun secretKey(): SecretKey! |