Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
signMessage(message: Bytes | string): Promise {
return Promise.resolve(joinSignature(this._signingKey().signDigest(hashMessage(message))));
}
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) {
signMessage(message) {
return Promise.resolve(joinSignature(this._signingKey().signDigest(hashMessage(message))));
}
encrypt(password, options, progressCallback) {