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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check ec pairing precompile input size is a multiple of 192 (like in geth) #963

Conversation

nanocryk
Copy link
Contributor

@nanocryk nanocryk commented Jan 6, 2023

Current implementation differs from geth implementation and returns different output.

@nanocryk nanocryk requested a review from sorpaas as a code owner January 6, 2023 10:08
@sorpaas sorpaas merged commit 319f0af into polkadot-evm:master Jan 7, 2023
@nanocryk nanocryk deleted the jeremy-ecpairing-input-length branch January 9, 2023 09:56
abhijeetbhagat pushed a commit to web3labs/frontier that referenced this pull request Jan 11, 2023
nanocryk added a commit to moonbeam-foundation/frontier that referenced this pull request Jan 16, 2023
nanocryk added a commit to moonbeam-foundation/frontier that referenced this pull request Jan 16, 2023
* v can only be 27 or 28 prefixed only with zeros (polkadot-evm#964)

* check input size is a multiple of 192 (like in geth) (polkadot-evm#963)

* pad input if too short

* pad input in modexp

* pad all input fields + fix wrong test

* fix modexp gas cost

* remove dbg!

* remove redundant arg + import vec!

* use copy_from_slice

* clippy

* clippy

* fix template compilation

* more ecrecover tests

Co-authored-by: librelois <c@elo.tf>
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

Successfully merging this pull request may close these issues.

2 participants