sign static method

String sign(
  1. String message,
  2. String privateKey
)

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);
}