Skip to content

Commit

Permalink
Update EIP-2537: Gas pricing MAP, MUL and ADD operations
Browse files Browse the repository at this point in the history
Merged by EIP-Bot.
  • Loading branch information
MarekM25 authored Dec 18, 2024
1 parent 8544216 commit 10de931
Showing 1 changed file with 5 additions and 5 deletions.
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

0 comments on commit 10de931

Please sign in to comment.