signMessage

fun signMessage(message: String, privateKey: PrivateKey): ByteArray?

Signs the message.

Return

The signature as a byte array or null if an error occurred.

Parameters

message

The message to sign.

privateKey

The private key to use for signing.