Ed25519PrivateKey

Represents the private key of an Ed25519 key pair.

Constructors

Link copied to clipboard
constructor(hex: String)
constructor(data: HexInput)

Types

Link copied to clipboard
object Companion

Functions

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

Derive the Ed25519PublicKey for this private key.

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

Sign the given message with the private key.

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

Get the private key in bytes (ByteArray).

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

Get the private key as a hex string with the 0x prefix.