How to use the @ethersproject/signing-key.recoverPublicKey function in @ethersproject/signing-key

To help you get started, we’ve selected a few @ethersproject/signing-key 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 / transactions / lib / index.js View on Github external
function recoverAddress(digest, signature) {
    return computeAddress(signing_key_1.recoverPublicKey(bytes_1.arrayify(digest), signature));
}
exports.recoverAddress = recoverAddress;
github ethers-io / ethers.js / packages / transactions / lib.esm / index.js View on Github external
export function recoverAddress(digest, signature) {
    return computeAddress(recoverPublicKey(arrayify(digest), signature));
}
export function serialize(transaction, signature) {

@ethersproject/signing-key

Elliptic curve library functions for the secp256k1 curve.

MIT
Latest version published 2 years ago

Package Health Score

65 / 100
Full package analysis