KeyPair

data class KeyPair(val privateKey: ByteArray, val publicKey: ByteArray)

Represents a pair of signing keys: a public key and a private key.

Constructors

Link copied to clipboard
constructor(privateKey: ByteArray, publicKey: ByteArray)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The public key in hex format.

Link copied to clipboard

The private key in hex format.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun sign(message: ByteArray): Signature