Commit d33aa8f
feat: block witness checks and test fixes (#857)
* basic witness checks
* feat(fw): add verkle chunkify code helper.
* feat(fw): add all verkle sub commands.
* chore: add chunkify code to init.
* chore: remove witness.
* chore: remove old witness check.
* feat(fw): add witness checks init api.
* chore: fix filling tmp.
* refactor(fw|evm): use WitnessCheck as temp data struct pre-filling.
* chore(fw|evm): fix witness check during fill.
* feat(fw): verify witness function.
* tests: witness check test_balance.
* tests: update witness check test_blockhash_instruction.
* tests: update witness check for remaining tests.
* chore: rename basic mpt to vkt test as transition.
* tests: temp fix test_contract_execution.
* chore: fix format witness check function.
* feat: add basic data values big-endian encoding.
* chore: improve and fix error messages.
* chore: more improvements to error messages.
* chore: fix code hash for witness check.
* chore: more improvements to error messages 2.
* chore: more improvements to error messages 3.
* chore: temp test fix.
* chore: skip blockhash storage slot check temp.
* chore: fix eip4762 test calls.
* tests: small changes.
* verkle: fix test
Signed-off-by: Ignacio Hagopian <[email protected]>
* verkle: test fix
Signed-off-by: Ignacio Hagopian <[email protected]>
* verkle: fix selfdestruct tests
Signed-off-by: Ignacio Hagopian <[email protected]>
* verkle: fix sstore
Signed-off-by: Ignacio Hagopian <[email protected]>
* verkle: fix extcodesize test
Signed-off-by: Ignacio Hagopian <[email protected]>
* verkle: fix extcodehash tests
Signed-off-by: Ignacio Hagopian <[email protected]>
* verkle: contract execution fixes
Signed-off-by: Ignacio Hagopian <[email protected]>
* fixes
Signed-off-by: Ignacio Hagopian <[email protected]>
* verkle: many contract execution fixes
Signed-off-by: Ignacio Hagopian <[email protected]>
* verkle: fix more tests bugs
Signed-off-by: Ignacio Hagopian <[email protected]>
* verkle: fix create tests
Signed-off-by: Ignacio Hagopian <[email protected]>
* verkle: add create with insufficient balance value-bearing
Signed-off-by: Ignacio Hagopian <[email protected]>
* verkle: create with big calldata fixes
Signed-off-by: Ignacio Hagopian <[email protected]>
* verkle: fix sload test
Signed-off-by: Ignacio Hagopian <[email protected]>
* verkle: uncomment contract execution subtests
Signed-off-by: Ignacio Hagopian <[email protected]>
* chore: typing bytes fix.
* verkle: more fixes
Signed-off-by: Ignacio Hagopian <[email protected]>
* verkle: enable all code execution tests
Signed-off-by: Ignacio Hagopian <[email protected]>
* feat: make witness checks exhaustive.
* fix: bug in code chunk.
* feat: test_balance exhaustive checks example.
* temp-fix: check hist. storage cont.
* compilation fixes
Signed-off-by: Ignacio Hagopian <[email protected]>
* more fixes
Signed-off-by: Ignacio Hagopian <[email protected]>
* verkle: fixes
Signed-off-by: Ignacio Hagopian <[email protected]>
* verkle: call warm fixes
Signed-off-by: Ignacio Hagopian <[email protected]>
* verkle: fixes
Signed-off-by: Ignacio Hagopian <[email protected]>
* fixes
Signed-off-by: Ignacio Hagopian <[email protected]>
* simplify
Signed-off-by: Ignacio Hagopian <[email protected]>
* verkle: fixes
Signed-off-by: Ignacio Hagopian <[email protected]>
* verkle: codecopy/extcodecopy fixes
Signed-off-by: Ignacio Hagopian <[email protected]>
* verkle: remove noisy comments
Signed-off-by: Ignacio Hagopian <[email protected]>
* verkle: fix coinbase assertions
Signed-off-by: Ignacio Hagopian <[email protected]>
* verkle: fixes
Signed-off-by: Ignacio Hagopian <[email protected]>
* verkle: fix creates tests
Signed-off-by: Ignacio Hagopian <[email protected]>
* verkle: fixes
Signed-off-by: Ignacio Hagopian <[email protected]>
* verkle: extcodesize fixes
Signed-off-by: Ignacio Hagopian <[email protected]>
* verkle: selfdestruct fixes
Signed-off-by: Ignacio Hagopian <[email protected]>
* verkle: fix sload
Signed-off-by: Ignacio Hagopian <[email protected]>
* verkle: sstore fixes
Signed-off-by: Ignacio Hagopian <[email protected]>
* verkle: fix transfer
Signed-off-by: Ignacio Hagopian <[email protected]>
* verkle: more calls fixes
Signed-off-by: Ignacio Hagopian <[email protected]>
* verkle: more fixes
Signed-off-by: Ignacio Hagopian <[email protected]>
* verkle: more fixes
Signed-off-by: Ignacio Hagopian <[email protected]>
* verkle: more fixes
Signed-off-by: Ignacio Hagopian <[email protected]>
* disable temporarily 7709 tests
Signed-off-by: Ignacio Hagopian <[email protected]>
* verkle: reenable sub-test
* verkle: enable sub-tests with partial witness charging
* verkle: reenable call subtests
Signed-off-by: Ignacio Hagopian <[email protected]>
* verkle: add eip-7709 test
Signed-off-by: Ignacio Hagopian <[email protected]>
* verkle: 7709 fixes
Signed-off-by: Ignacio Hagopian <[email protected]>
* verkle: update 7709 blockhash values
Signed-off-by: Ignacio Hagopian <[email protected]>
* fixes
Signed-off-by: Ignacio Hagopian <[email protected]>
* fixes
Signed-off-by: Ignacio Hagopian <[email protected]>
* fixes
Signed-off-by: Ignacio Hagopian <[email protected]>
* verkle: add codecopy test with size bigger than contract
Signed-off-by: Ignacio Hagopian <[email protected]>
* verkle: add system contract execution test via CALL
Signed-off-by: Ignacio Hagopian <[email protected]>
---------
Signed-off-by: Ignacio Hagopian <[email protected]>
Co-authored-by: Ignacio Hagopian <[email protected]>1 parent 70d86ce commit d33aa8f
File tree
41 files changed
+1669
-1070
lines changed- src
- ethereum_test_base_types
- ethereum_test_forks/forks
- ethereum_test_specs
- ethereum_test_tools
- ethereum_test_types
- verkle
- tests
- evm_transition_tool
- tests/verkle
- eip4762_verkle_gas_witness
- eip6800_genesis_verkle_tree
- eip6800_verkle_tree_transition
- eip7709_blockhash_witness
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
41 files changed
+1669
-1070
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
| 234 | + | |
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
246 | 248 | | |
247 | 249 | | |
248 | 250 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
416 | | - | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
417 | 419 | | |
418 | 420 | | |
419 | 421 | | |
| |||
458 | 460 | | |
459 | 461 | | |
460 | 462 | | |
461 | | - | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
462 | 466 | | |
463 | 467 | | |
464 | 468 | | |
| |||
492 | 496 | | |
493 | 497 | | |
494 | 498 | | |
495 | | - | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
496 | 502 | | |
497 | 503 | | |
498 | 504 | | |
| |||
983 | 989 | | |
984 | 990 | | |
985 | 991 | | |
986 | | - | |
| 992 | + | |
987 | 993 | | |
988 | 994 | | |
989 | 995 | | |
| |||
1029 | 1035 | | |
1030 | 1036 | | |
1031 | 1037 | | |
1032 | | - | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
1033 | 1042 | | |
1034 | 1043 | | |
1035 | 1044 | | |
| |||
1058 | 1067 | | |
1059 | 1068 | | |
1060 | 1069 | | |
1061 | | - | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
1062 | 1073 | | |
1063 | 1074 | | |
1064 | 1075 | | |
| |||
1093 | 1104 | | |
1094 | 1105 | | |
1095 | 1106 | | |
1096 | | - | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
1097 | 1111 | | |
1098 | 1112 | | |
1099 | 1113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
267 | 271 | | |
268 | 272 | | |
269 | 273 | | |
| |||
458 | 462 | | |
459 | 463 | | |
460 | 464 | | |
461 | | - | |
| 465 | + | |
462 | 466 | | |
463 | 467 | | |
464 | | - | |
465 | | - | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
466 | 485 | | |
467 | 486 | | |
468 | | - | |
469 | | - | |
470 | | - | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
471 | 500 | | |
472 | | - | |
473 | | - | |
474 | | - | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
475 | 511 | | |
476 | 512 | | |
477 | 513 | | |
| |||
544 | 580 | | |
545 | 581 | | |
546 | 582 | | |
547 | | - | |
| 583 | + | |
548 | 584 | | |
549 | 585 | | |
550 | 586 | | |
| |||
593 | 629 | | |
594 | 630 | | |
595 | 631 | | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
596 | 713 | | |
597 | 714 | | |
598 | 715 | | |
| |||
848 | 965 | | |
849 | 966 | | |
850 | 967 | | |
| 968 | + | |
851 | 969 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
| 52 | + | |
| 53 | + | |
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
| |||
137 | 140 | | |
138 | 141 | | |
139 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
140 | 146 | | |
141 | 147 | | |
142 | 148 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
| |||
0 commit comments