How to use the @ethersproject/hash.hashMessage function in @ethersproject/hash

To help you get started, we’ve selected a few @ethersproject/hash examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ethers-io / ethers.js / packages / wallet / src.ts / index.ts View on Github external
export function verifyMessage(message: Bytes | string, signature: SignatureLike): string {
    return recoverAddress(hashMessage(message), signature);
}
github ethers-io / ethers.js / packages / wallet / lib.esm / index.js View on Github external
signMessage(message) {
        return Promise.resolve(joinSignature(this._signingKey().signDigest(hashMessage(message))));
    }
    encrypt(password, options, progressCallback) {
github ethers-io / ethers.js / packages / wallet / index.js View on Github external
function verifyMessage(message, signature) {
    return transactions_1.recoverAddress(hash_1.hashMessage(message), signature);
}
exports.verifyMessage = verifyMessage;
github ethers-io / ethers.js / packages / wallet / src.ts / index.ts View on Github external
signMessage(message: Bytes | string): Promise {
        return Promise.resolve(joinSignature(this._signingKey().signDigest(hashMessage(message))));
    }
github ethers-io / ethers.js / packages / wallet / lib.esm / index.js View on Github external
export function verifyMessage(message, signature) {
    return recoverAddress(hashMessage(message), signature);
}
github ethers-io / ethers.js / packages / wallet / index.js View on Github external
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) {

@ethersproject/hash

Hash utility functions for Ethereum.

MIT
Latest version published 2 years ago

Package Health Score

59 / 100
Full package analysis