function verifyMessage(message, sig): string
Return the address of the private key that produced the signature sig during signing for message.

Parameters

ParameterTypeDescription
messagestring | Uint8ArrayThe message that was signed.
sigSignatureLikeThe signature to verify.

Returns

string The address of the signer.

Source

hash/message.ts:54