lib/utils.js
function isSignedBy(message, signature, address) {
    try {
        const ethMessage = ethHash(message);
        return caseInsensitiveCompare(recoverAddress(ethMessage, signature), prefix0x(address));
    }
    catch (e) {
        return false;
    }
}
function isSignedBy(message, signature, address) {
    try {
        const ethMessage = ethHash(message);
        return caseInsensitiveCompare(recoverAddress(ethMessage, signature), prefix0x(address));
    }
    catch (e) {
        return false;
    }
}
function isSignedBy ( message , signature , address ) { try { const ethMessage = ethHash ( message ) ; return caseInsensitiveCompare ( recoverAddress ( ethMessage , signature ) , prefix0x ( address ) ) ; } catch ( e ) { return false ; } }
Checks whether or not the address is the address of the private key used to
sign the specified message and signature.
@param {String} message - A message hash as a hexadecimal string
@param {Object} signature - The signature of the message given as V, R and S properties
@param {String} address - A hexadecimal representation of the address to verify
@returns {Boolean} True if address belongs to the signed message
Checks whether or not the address is the address of the private key used to sign the specified message and signature .