Ed25519PrivateKey

Represents the private key of an Ed25519 key pair.

Constructors

Link copied to clipboard
constructor(data: 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(): 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 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 (ByteArray).

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

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