|
|
|
@ -58,6 +58,8 @@ var allPrecompiles = map[common.Address]PrecompiledContract{ |
|
|
|
|
common.BytesToAddress([]byte{9}): &blake2F{}, |
|
|
|
|
common.BytesToAddress([]byte{0x0a}): &kzgPointEvaluation{}, |
|
|
|
|
|
|
|
|
|
common.BytesToAddress([]byte{0x0b}): &p256Verify{}, |
|
|
|
|
|
|
|
|
|
common.BytesToAddress([]byte{0x0f, 0x0a}): &bls12381G1Add{}, |
|
|
|
|
common.BytesToAddress([]byte{0x0f, 0x0b}): &bls12381G1Mul{}, |
|
|
|
|
common.BytesToAddress([]byte{0x0f, 0x0c}): &bls12381G1MultiExp{}, |
|
|
|
@ -67,8 +69,6 @@ var allPrecompiles = map[common.Address]PrecompiledContract{ |
|
|
|
|
common.BytesToAddress([]byte{0x0f, 0x10}): &bls12381Pairing{}, |
|
|
|
|
common.BytesToAddress([]byte{0x0f, 0x11}): &bls12381MapG1{}, |
|
|
|
|
common.BytesToAddress([]byte{0x0f, 0x12}): &bls12381MapG2{}, |
|
|
|
|
|
|
|
|
|
common.BytesToAddress([]byte{19}): &p256Verify{}, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// EIP-152 test vectors
|
|
|
|
@ -405,7 +405,7 @@ func BenchmarkPrecompiledP256Verify(bench *testing.B) { |
|
|
|
|
Expected: "0000000000000000000000000000000000000000000000000000000000000001", |
|
|
|
|
Name: "p256Verify", |
|
|
|
|
} |
|
|
|
|
benchmarkPrecompiled("13", t, bench) |
|
|
|
|
benchmarkPrecompiled("0b", t, bench) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func TestPrecompiledP256Verify(t *testing.T) { testJson("p256Verify", "13", t) } |
|
|
|
|
func TestPrecompiledP256Verify(t *testing.T) { testJson("p256Verify", "0b", t) } |
|
|
|
|