How to use the @ethersproject/transactions.recoverAddress function in @ethersproject/transactions

To help you get started, we’ve selected a few @ethersproject/transactions 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 / 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 / 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 / index.js View on Github external
function verifyMessage(message, signature) {
    return transactions_1.recoverAddress(hash_1.hashMessage(message), signature);
}
exports.verifyMessage = verifyMessage;

@ethersproject/transactions

Utilities for decoding and encoding Ethereum transaction for ethers.

MIT
Latest version published 2 years ago

Package Health Score

59 / 100
Full package analysis