sign method

String sign(
  1. String message
)

This will sign a message with the private key and return the signature.

Implementation

String sign(String message) {
  final aux = Nostr.instance.utilsService.random64HexChars();
  return bip340.sign(private, message, aux);
}