From 7ddcf0a7df27d8325805aee9d9dd0420244c6bbc Mon Sep 17 00:00:00 2001 From: Jared Wasinger Date: Mon, 9 Dec 2024 16:53:13 +0700 Subject: [PATCH] reprice g1/g2 add. reprice mapping precompiles --- params/protocol_params.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/params/protocol_params.go b/params/protocol_params.go index 3d450ae559..60becaca72 100644 --- a/params/protocol_params.go +++ b/params/protocol_params.go @@ -151,14 +151,14 @@ const ( Bn256PairingPerPointGasByzantium uint64 = 80000 // Byzantium per-point price for an elliptic curve pairing check Bn256PairingPerPointGasIstanbul uint64 = 34000 // Per-point price for an elliptic curve pairing check - Bls12381G1AddGas uint64 = 500 // Price for BLS12-381 elliptic curve G1 point addition + Bls12381G1AddGas uint64 = 375 // Price for BLS12-381 elliptic curve G1 point addition Bls12381G1MulGas uint64 = 12000 // Price for BLS12-381 elliptic curve G1 point scalar multiplication - Bls12381G2AddGas uint64 = 800 // Price for BLS12-381 elliptic curve G2 point addition + Bls12381G2AddGas uint64 = 600 // Price for BLS12-381 elliptic curve G2 point addition Bls12381G2MulGas uint64 = 22500 // Price for BLS12-381 elliptic curve G2 point scalar multiplication Bls12381PairingBaseGas uint64 = 65000 // Base gas price for BLS12-381 elliptic curve pairing check Bls12381PairingPerPairGas uint64 = 43000 // Per-point pair gas price for BLS12-381 elliptic curve pairing check - Bls12381MapG1Gas uint64 = 5500 // Gas price for BLS12-381 mapping field element to G1 operation - Bls12381MapG2Gas uint64 = 75000 // Gas price for BLS12-381 mapping field element to G2 operation + Bls12381MapG1Gas uint64 = 4125 // Gas price for BLS12-381 mapping field element to G1 operation + Bls12381MapG2Gas uint64 = 16866 // Gas price for BLS12-381 mapping field element to G2 operation // The Refund Quotient is the cap on how much of the used gas can be refunded. Before EIP-3529, // up to half the consumed gas could be refunded. Redefined as 1/5th in EIP-3529