signPersonalMessage static method

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

Sign personal message, it's signMessage function but it's added prefix before

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

Implementation

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