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

Update EIP-2537: Gas pricing MAP, MUL and ADD operations #9097

Merged
merged 6 commits into from
Dec 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions EIPS/eip-2537.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,23 +253,23 @@ A sane implementation of this EIP *should not* contain potential infinite loops

### Gas schedule

Assuming a constant `30 MGas/second`, the following prices are suggested.
Assuming `EcRecover` precompile as a baseline.

#### G1 addition

`500` gas
`375` gas

#### G1 multiplication

`12000` gas

#### G2 addition

`800` gas
`600` gas

#### G2 multiplication

`45000` gas
`22500` gas

#### G1/G2 MSM

Expand All @@ -295,7 +295,7 @@ Fp -> G1 mapping is `5500` gas.

#### Fp2-to-G2 mapping operation

Fp2 -> G2 mapping is `75000` gas
Fp2 -> G2 mapping is `23800` gas

#### Gas schedule clarifications for the variable-length input

Expand Down
Loading