Skip to content

Commit 6abddc6

Browse files
committed
params: adjust gas of BLS precompiled address
References: - ethereum/EIPs#9097 - ethereum/EIPs#9098
1 parent 68e7bd4 commit 6abddc6

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

params/protocol_params.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -158,14 +158,14 @@ const (
158158
Bn256PairingPerPointGasByzantium uint64 = 80000 // Byzantium per-point price for an elliptic curve pairing check
159159
Bn256PairingPerPointGasIstanbul uint64 = 34000 // Per-point price for an elliptic curve pairing check
160160

161-
Bls12381G1AddGas uint64 = 600 // Price for BLS12-381 elliptic curve G1 point addition
162-
Bls12381G1MulGas uint64 = 12000 // Price for BLS12-381 elliptic curve G1 point scalar multiplication
163-
Bls12381G2AddGas uint64 = 4500 // Price for BLS12-381 elliptic curve G2 point addition
164-
Bls12381G2MulGas uint64 = 55000 // Price for BLS12-381 elliptic curve G2 point scalar multiplication
165-
Bls12381PairingBaseGas uint64 = 115000 // Base gas price for BLS12-381 elliptic curve pairing check
166-
Bls12381PairingPerPairGas uint64 = 23000 // Per-point pair gas price for BLS12-381 elliptic curve pairing check
167-
Bls12381MapG1Gas uint64 = 5500 // Gas price for BLS12-381 mapping field element to G1 operation
168-
Bls12381MapG2Gas uint64 = 110000 // Gas price for BLS12-381 mapping field element to G2 operation
161+
Bls12381G1AddGas uint64 = 375 // Price for BLS12-381 elliptic curve G1 point addition
162+
Bls12381G1MulGas uint64 = 12000 // Price for BLS12-381 elliptic curve G1 point scalar multiplication
163+
Bls12381G2AddGas uint64 = 600 // Price for BLS12-381 elliptic curve G2 point addition
164+
Bls12381G2MulGas uint64 = 22500 // Price for BLS12-381 elliptic curve G2 point scalar multiplication
165+
Bls12381PairingBaseGas uint64 = 37700 // Base gas price for BLS12-381 elliptic curve pairing check
166+
Bls12381PairingPerPairGas uint64 = 32600 // Per-point pair gas price for BLS12-381 elliptic curve pairing check
167+
Bls12381MapG1Gas uint64 = 5500 // Gas price for BLS12-381 mapping field element to G1 operation
168+
Bls12381MapG2Gas uint64 = 23800 // Gas price for BLS12-381 mapping field element to G2 operation
169169

170170
ValidatorSortingBaseGas uint64 = 30 // Base gas for validator sorting and picking validator set
171171
VerifyFinalityHeadersProofGas uint64 = EcrecoverGas*2 + 15000 // Gas for verifying finality headers proof

0 commit comments

Comments
 (0)