Skip to main content

Secp256k1PrivateKeyInterface

interface Secp256k1PrivateKeyInterface

Inheritors

Secp256k1PrivateKey

Functions

NameSummary
publicKeyabstract fun publicKey(): Secp256k1PublicKey
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): Secp256k1Signature
trySignSimpleabstract fun trySignSimple(message: ByteArray): SimpleSignature
trySignUserabstract fun trySignUser(message: ByteArray): UserSignature
verifyingKeyabstract fun verifyingKey(): Secp256k1VerifyingKey