signMessage static method

String signMessage({
  1. String? privateKey,
  2. Uint8List? privateKeyInBytes,
  3. required Uint8List message,
})

Sign message

@param {String|Uint8List} private key - wallet's private key @param {Uint8List} message - the message to sign @returns {String} - signature

Implementation

static String signMessage(
    {String? privateKey,
    Uint8List? privateKeyInBytes,
    required Uint8List message}) {
  return SignatureUtil.sign(
      message: message,
      privateKey: privateKey,
      privateKeyInBytes: privateKeyInBytes);
}