plugeth/tests
Martin Holst Swende f62c58f8de
trie: make rhs-proof align with last key in range proofs (#28311)
During snap-sync, we request ranges of values: either a range of accounts or a range of storage values. For any large trie, e.g. the main account trie or a large storage trie, we cannot fetch everything at once.

Short version; we split it up and request in multiple stages. To do so, we use an origin field, to say "Give me all storage key/values where key > 0x20000000000000000". When the server fulfils this, the server provides the first key after origin, let's say 0x2e030000000000000 -- never providing the exact origin. However, the client-side needs to be able to verify that the 0x2e03.. indeed is the first one after 0x2000.., and therefore the attached proof concerns the origin, not the first key.

So, short-short version: the left-hand side of the proof relates to the origin, and is free-standing from the first leaf.

On the other hand, (pun intended), the right-hand side, there's no such 'gap' between "along what path does the proof walk" and the last provided leaf. The proof must prove the last element (unless there are no elements).

Therefore, we can simplify the semantics for trie.VerifyRangeProof by removing an argument. This doesn't make much difference in practice, but makes it so that we can remove some tests. The reason I am raising this is that the upcoming stacktrie-based verifier does not support such fancy features as standalone right-hand borders.
2023-10-13 16:05:29 +02:00
..
evm-benchmarks@d8b88f4046 tests: update evm-benchmarks (#26255) 2022-11-28 11:13:41 +01:00
fuzzers trie: make rhs-proof align with last key in range proofs (#28311) 2023-10-13 16:05:29 +02:00
solidity all: update license headers and AUTHORS from git history (#24947) 2022-05-24 20:39:40 +02:00
testdata@ee3fa4c86d core, tests: EIP-4844 transaction processing logic (#27721) 2023-07-15 23:27:36 +02:00
block_test_util.go build, tests: add execution-spec-tests (#26985) 2023-08-26 15:42:27 +02:00
block_test.go build, tests: add execution-spec-tests (#26985) 2023-08-26 15:42:27 +02:00
difficulty_test_util.go all: add whitespace linter (#25312) 2022-07-25 13:14:03 +03:00
difficulty_test.go params: remove EIP150Hash from chainconfig (#27087) 2023-04-18 03:49:09 -04:00
gen_btheader.go build, tests: add execution-spec-tests (#26985) 2023-08-26 15:42:27 +02:00
gen_difficultytest.go all: simplify timestamps to uint64 (#19372) 2019-04-02 23:28:48 +03:00
gen_stenv.go build: add imports for go generate tools (#24682) 2022-04-12 20:24:02 +02:00
gen_sttransaction.go tests: use 'sender' in state tests if present (#28023) 2023-08-29 04:36:10 +02:00
init_test.go build, tests: add execution-spec-tests (#26985) 2023-08-26 15:42:27 +02:00
init.go build, tests: add execution-spec-tests (#26985) 2023-08-26 15:42:27 +02:00
rlp_test_util.go internal,tests: replace noarg fmt.Errorf with errors.New (#27335) 2023-05-25 02:54:28 -04:00
rlp_test.go tests: get test name from testing.T (#22941) 2021-05-25 22:47:14 +02:00
state_test_util.go tests: use 'sender' in state tests if present (#28023) 2023-08-29 04:36:10 +02:00
state_test.go all: activate pbss as experimental feature (#26274) 2023-08-10 22:21:36 +03:00
transaction_test_util.go core/vm: implement EIP-3860: Limit and meter initcode (#23847) 2023-01-11 04:05:47 -05:00
transaction_test.go tests: get test name from testing.T (#22941) 2021-05-25 22:47:14 +02:00