Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function verifyMessage(message: Bytes | string, signature: SignatureLike): string {
return recoverAddress(hashMessage(message), signature);
}
signMessage(message) {
return Promise.resolve(joinSignature(this._signingKey().signDigest(hashMessage(message))));
}
encrypt(password, options, progressCallback) {
function verifyMessage(message, signature) {
return transactions_1.recoverAddress(hash_1.hashMessage(message), signature);
}
exports.verifyMessage = verifyMessage;
signMessage(message: Bytes | string): Promise {
return Promise.resolve(joinSignature(this._signingKey().signDigest(hashMessage(message))));
}
export function verifyMessage(message, signature) {
return recoverAddress(hashMessage(message), signature);
}
Wallet.prototype.signMessage = function (message) {
return Promise.resolve(bytes_1.joinSignature(this._signingKey().signDigest(hash_1.hashMessage(message))));
};
Wallet.prototype.encrypt = function (password, options, progressCallback) {