Secp256r1PrivateKeyInterface
interface Secp256r1PrivateKeyInterface
Inheritors
| Secp256r1PrivateKey |
Functions
| Name | Summary |
|---|---|
| publicKey | abstract fun publicKey(): Secp256r1PublicKey Get the public key corresponding to this private key. |
| 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): Secp256r1Signature Sign a message and return a Secp256r1Signature. |
| trySignSimple | abstract fun trySignSimple(message: ByteArray): SimpleSignature Sign a message and return a SimpleSignature. |
| trySignUser | abstract fun trySignUser(message: ByteArray): UserSignature Sign a message and return a UserSignature. |
| verifyingKey | abstract fun verifyingKey(): Secp256r1VerifyingKey |