Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Conversation

@adonesky1
Copy link
Contributor

@adonesky1 adonesky1 commented Sep 15, 2022

CHANGED:

  • Bump ethereumjs-util to latest version (now @ethereumjs/util)
  • Bump @metamask/eth-sig-util to latest version
  • Bump @ethereumjs/tx to latest version
    All three of these changes remove dependencies on secp256k1 and keccak which are replaced by lighter noble implementations in upstream dependencies for each.

@adonesky1 adonesky1 requested a review from a team as a code owner September 15, 2022 19:33
const adr = `0x${ethUtil.pubToAddress(pub).toString('hex')}`;
const r = toBuffer(sgn.slice(0, 66));
const s = toBuffer(`0x${sgn.slice(66, 130)}`);
const v = BigInt(`0x${sgn.slice(130, 132)}`);
Copy link
Contributor Author

@adonesky1 adonesky1 Sep 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new version of ecrecover expects v to be a BigInt instead of Buffer: https://npmfs.com/package/@ethereumjs/util/8.0.0/src/signature.ts#L54

kumavis
kumavis previously approved these changes Sep 16, 2022
@adonesky1 adonesky1 requested a review from kumavis September 16, 2022 14:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants