signMessage

open fun signMessage(privateKey: PrivateKey, address: String, message: String): String

Sign a message.

Parameters

privateKey

: the private key used for signing

address

: the address that matches the privateKey, must be a legacy address (P2PKH)

message

: A custom message which is input to the signing.