Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERC2771Forwarder has a flaky tampered signature test #4896

Open
ernestognw opened this issue Feb 13, 2024 · 0 comments
Open

ERC2771Forwarder has a flaky tampered signature test #4896

ernestognw opened this issue Feb 13, 2024 · 0 comments

Comments

@ernestognw
Copy link
Member

馃摑 Details

In recent CI runs (e.g this one), the CI has failed because the ERC2771Forwarder tests use a signatured that's directly modified without any validation.

This seems to be causing a problem in @noble, the package used for secp256k1 operations:

Error: Cannot find square root
      at sqrtMod (node_modules/@noble/secp256k1/lib/index.js:642:15)
      at Function.fromCompressedHex (node_modules/@noble/secp256k1/lib/index.js:315:17)
      at Function.fromHex (node_modules/@noble/secp256k1/lib/index.js:344:25)
      at Function.fromSignature (node_modules/@noble/secp256k1/lib/index.js:364:25)
      at Object.recoverPublicKey (node_modules/@noble/secp256k1/lib/index.js:843:18)
      at Function.recoverPublicKey (node_modules/ethers/src.ts/crypto/signing-key.ts:182:34)
      at recoverAddress (node_modules/ethers/src.ts/transaction/address.ts:27:38)
      at Proxy.verifyTypedData (node_modules/ethers/src.ts/hash/typed-data.ts:614:26)
      at Context.<anonymous> (test/metatx/ERC2771Forwarder.test.js:139:32)
      at processTicksAndRejections (node:internal/process/task_queues:95:5)

Copying stacktrace for the record.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant