@@ -52,6 +52,7 @@ var allPrecompiles = map[common.Address]PrecompiledContract{
52
52
common .BytesToAddress ([]byte {4 }): & dataCopy {},
53
53
common .BytesToAddress ([]byte {5 }): & bigModExp {eip2565 : false },
54
54
common .BytesToAddress ([]byte {0xf5 }): & bigModExp {eip2565 : true },
55
+ common .BytesToAddress ([]byte {0xf6 }): & bigModExp {eip2565 : true , eip7883 : true },
55
56
common .BytesToAddress ([]byte {6 }): & bn256AddIstanbul {},
56
57
common .BytesToAddress ([]byte {7 }): & bn256ScalarMulIstanbul {},
57
58
common .BytesToAddress ([]byte {8 }): & bn256PairingIstanbul {},
@@ -238,6 +239,9 @@ func BenchmarkPrecompiledModExp(b *testing.B) { benchJson("modexp", "05", b) }
238
239
func TestPrecompiledModExpEip2565 (t * testing.T ) { testJson ("modexp_eip2565" , "f5" , t ) }
239
240
func BenchmarkPrecompiledModExpEip2565 (b * testing.B ) { benchJson ("modexp_eip2565" , "f5" , b ) }
240
241
242
+ func TestPrecompiledModExpEip7883 (t * testing.T ) { testJson ("modexp_eip7883" , "f6" , t ) }
243
+ func BenchmarkPrecompiledModExpEip7883 (b * testing.B ) { benchJson ("modexp_eip7883" , "f6" , b ) }
244
+
241
245
// Tests the sample inputs from the elliptic curve addition EIP 213.
242
246
func TestPrecompiledBn256Add (t * testing.T ) { testJson ("bn256Add" , "06" , t ) }
243
247
func BenchmarkPrecompiledBn256Add (b * testing.B ) { benchJson ("bn256Add" , "06" , b ) }
0 commit comments