Secp256k1PrivateKey

A Secp256k1 ecdsa private key

Constructors

Link copied to clipboard
constructor(key: ByteArray)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override var isCleared: Boolean

Whether the secret material has been explicitly cleared.

Functions

Link copied to clipboard
open override fun clear()

Clear secret material. Subsequent private-key operations must fail.

Link copied to clipboard
open override fun publicKey(): Secp256k1PublicKey

Derive the public key associated with the private key

Link copied to clipboard
open override fun sign(message: HexInput): Secp256k1Signature

Sign the given message with the private key.

Link copied to clipboard
open override fun toAip80(): Aip80PrivateKey

Export this private key using the algorithm-prefixed AIP-80 format.

Link copied to clipboard
open override fun toByteArray(): ByteArray

Get the private key in bytes.

Link copied to clipboard
open override fun toString(): String