We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
params.P256VerifyGas
1 parent 40a7714 commit 8afdb91Copy full SHA for 8afdb91
libevm/precompiles/p256verify/p256verify.go
@@ -24,6 +24,8 @@ import (
24
"crypto/rand"
25
"io"
26
"math/big"
27
+
28
+ "github.com/ava-labs/libevm/params"
29
)
30
31
// Precompile implements ECDSA verification on the P256 curve, as defined by
@@ -32,8 +34,10 @@ import (
32
34
// [RIP-7212]: https://github.com/ethereum/RIPs/blob/1f55794f65caa4c4bb2b8d9bda7d713b8c734157/RIPS/rip-7212.md
33
35
type Precompile struct{}
36
-// RequiredGas always returns 3450.
-func (Precompile) RequiredGas([]byte) uint64 { return 3450 }
37
+// RequiredGas returns [params.P256VerifyGas].
38
+func (Precompile) RequiredGas([]byte) uint64 {
39
+ return params.P256VerifyGas
40
+}
41
42
const inputLen = 160
43
0 commit comments