Secp256k1PrivateKeyInterface
interface Secp256k1PrivateKeyInterface
Inheritors
| Secp256k1PrivateKey |
Functions
| Name | Summary |
|---|---|
| publicKey | abstract fun publicKey(): Secp256k1PublicKey |
| scheme | abstract fun scheme(): SignatureScheme |
| signPersonalMessage | abstract fun signPersonalMessage(message: PersonalMessage): UserSignature Sign a personal message and return a UserSignature. |
| signTransaction | abstract fun signTransaction(transaction: Transaction): UserSignature Sign a transaction and return a UserSignature. |
| toBech32 | abstract fun toBech32(): String Encode this private key as `flag |
| toBytes | abstract fun toBytes(): ByteArray Serialize this private key to bytes. |
| toDer | abstract fun toDer(): ByteArray Serialize this private key as DER-encoded PKCS#8 |
| toPem | abstract fun toPem(): String Serialize this private key as PEM-encoded PKCS#8 |
| trySign | abstract fun trySign(message: ByteArray): Secp256k1Signature |
| trySignSimple | abstract fun trySignSimple(message: ByteArray): SimpleSignature |
| trySignUser | abstract fun trySignUser(message: ByteArray): UserSignature |
| verifyingKey | abstract fun verifyingKey(): Secp256k1VerifyingKey |