recoverPersonalSignature static method

String recoverPersonalSignature({
  1. required String signature,
  2. required Uint8List message,
})

Recover exactly sender address from personal signature and message

@param {String} personal signature - the signature that was signed typed personal sign from the below message @param {Uint8List} message - the message of signature @returns {String} - wallet address which signed the above message to the above signature

Implementation

static String recoverPersonalSignature(
    {required String signature, required Uint8List message}) {
  return SignatureUtil.ecRecover(
      signature: signature, message: message, isPersonalSign: true);
}