sign static method
message
is a hex string
privateKey
is a 32-bytes hex encoded string
returns a hex string
Implementation
static String sign(String message, String privateKey) {
final aux = Helpers.getSecureRandomHex(32);
return bip340.sign(privateKey, message, aux);
}