op-geth/tests
Marius van der Wijden 0703ef62d3
crypto/secp256k1: fix undefined behavior in BitCurve.Add (#22621)
This commit changes the behavior of BitCurve.Add to be more inline
with btcd. It fixes two different bugs:

1) When adding a point at infinity to another point, the other point
   should be returned. While this is undefined behavior, it is better
   to be more inline with the go standard library.
   Thus (0,0) + (a, b) = (a,b)

2) Adding the same point to itself produced the point at infinity.
   This is incorrect, now doubleJacobian is used to correctly calculate it.
   Thus (a,b) + (a,b) == 2* (a,b) and not (0,0) anymore.

The change also adds a differential fuzzer for Add, testing it against btcd.

Co-authored-by: Felix Lange <fjl@twurst.com>
2021-05-27 13:30:25 +02:00
..
fuzzers crypto/secp256k1: fix undefined behavior in BitCurve.Add (#22621) 2021-05-27 13:30:25 +02:00
solidity tests/solidity: add contract to test every opcode (#19283) 2019-09-26 10:30:33 +02:00
testdata@c600d7795a tests: update reference tests with 2315 removed from Berlin 2021-03-07 20:55:01 +01:00
block_test.go tests: get test name from testing.T (#22941) 2021-05-25 22:47:14 +02:00
block_test_util.go all: bloom-filter based pruning mechanism (#21724) 2021-02-08 13:16:30 +02:00
difficulty_test.go tests: get test name from testing.T (#22941) 2021-05-25 22:47:14 +02:00
difficulty_test_util.go all: simplify timestamps to uint64 (#19372) 2019-04-02 23:28:48 +03:00
gen_btheader.go all: simplify timestamps to uint64 (#19372) 2019-04-02 23:28:48 +03:00
gen_difficultytest.go all: simplify timestamps to uint64 (#19372) 2019-04-02 23:28:48 +03:00
gen_stenv.go tests: update to latest tests (#22290) 2021-03-03 15:50:07 +01:00
gen_sttransaction.go tests: update to latest tests (#22290) 2021-03-03 15:50:07 +01:00
gen_vmexec.go tests: update to latest tests (#22290) 2021-03-03 15:50:07 +01:00
init.go all: implement EIP-1559 (#22837) 2021-05-17 15:13:22 +02:00
init_test.go tests: get test name from testing.T (#22941) 2021-05-25 22:47:14 +02:00
rlp_test.go tests: get test name from testing.T (#22941) 2021-05-25 22:47:14 +02:00
rlp_test_util.go core, cmd/puppeth: implement constantinople fix, disable EIP-1283 (#18486) 2019-01-24 11:36:30 +01:00
state_test.go tests: get test name from testing.T (#22941) 2021-05-25 22:47:14 +02:00
state_test_util.go all: implement EIP-1559 (#22837) 2021-05-17 15:13:22 +02:00
transaction_test.go tests: get test name from testing.T (#22941) 2021-05-25 22:47:14 +02:00
transaction_test_util.go all: add support for EIP-2718, EIP-2930 transactions (#21502) 2021-02-25 15:26:57 +01:00
vm_test.go tests: get test name from testing.T (#22941) 2021-05-25 22:47:14 +02:00
vm_test_util.go core, all: split vm.Context into BlockContext and TxContext (#21672) 2020-11-13 13:42:19 +01:00