Skip to main content

Ed25519PrivateKeyInterface

interface Ed25519PrivateKeyInterface

Inheritors

Ed25519PrivateKey

Functions

NameSummary
publicKeyabstract fun publicKey(): Ed25519PublicKey
schemeabstract fun scheme(): SignatureScheme
signPersonalMessageabstract fun signPersonalMessage(message: PersonalMessage): UserSignature
Sign a personal message and return a UserSignature.
signTransactionabstract fun signTransaction(transaction: Transaction): UserSignature
Sign a transaction and return a UserSignature.
toBech32abstract fun toBech32(): String
Encode this private key as `flag
toBytesabstract fun toBytes(): ByteArray
Serialize this private key to bytes.
toDerabstract fun toDer(): ByteArray
Serialize this private key as DER-encoded PKCS#8
toPemabstract fun toPem(): String
Serialize this private key as PEM-encoded PKCS#8
trySignabstract fun trySign(message: ByteArray): Ed25519Signature
trySignSimpleabstract fun trySignSimple(message: ByteArray): SimpleSignature
trySignUserabstract fun trySignUser(message: ByteArray): UserSignature
verifyingKeyabstract fun verifyingKey(): Ed25519VerifyingKey