Skip to content

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

Merged
sorpaas merged 1 commit intopolkadot-evm:masterfrom
moonbeam-foundation:jeremy-ecpairing-input-length
Jan 7, 2023
Merged

Check ec pairing precompile input size is a multiple of 192 (like in geth)#963
sorpaas merged 1 commit intopolkadot-evm:masterfrom
moonbeam-foundation:jeremy-ecpairing-input-length

Conversation

@nanocryk
Copy link
Copy Markdown
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