Skip to content

Commit

Permalink
add gas prices for bls12377 precompile
Browse files Browse the repository at this point in the history
  • Loading branch information
kilic committed Jan 24, 2021
1 parent 2b09636 commit f5f1a56
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions params/protocol_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,12 @@ const (
// May take a bit more time with 100 validators, need to bench that
GetVerifiedSealBitmapGas uint64 = 350000 // Cost of verifying the seal on a given RLP encoded header.

Bls12377G1AddGas uint64 = 0 // Price for BLS12-377 elliptic curve G1 point addition
Bls12377G1MulGas uint64 = 0 // Price for BLS12-377 elliptic curve G1 point scalar multiplication
Bls12377G2AddGas uint64 = 0 // Price for BLS12-377 elliptic curve G2 point addition
Bls12377G2MulGas uint64 = 0 // Price for BLS12-377 elliptic curve G2 point scalar multiplication
Bls12377PairingBaseGas uint64 = 0 // Base gas price for BLS12-377 elliptic curve pairing check
Bls12377PairingPerPairGas uint64 = 0 // Per-point pair gas price for BLS12-377 elliptic curve pairing check
Bls12377G1AddGas uint64 = 600 // Price for BLS12-377 elliptic curve G1 point addition
Bls12377G1MulGas uint64 = 12000 // Price for BLS12-377 elliptic curve G1 point scalar multiplication
Bls12377G2AddGas uint64 = 4500 // Price for BLS12-377 elliptic curve G2 point addition
Bls12377G2MulGas uint64 = 55000 // Price for BLS12-377 elliptic curve G2 point scalar multiplication
Bls12377PairingBaseGas uint64 = 65000 // Base gas price for BLS12-377 elliptic curve pairing check
Bls12377PairingPerPairGas uint64 = 55000 // Per-point pair gas price for BLS12-377 elliptic curve pairing check
)

// Gas discount table for BLS12-377 G1 and G2 multi exponentiation operations
Expand Down

0 comments on commit f5f1a56

Please sign in to comment.