File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,12 +7,11 @@ An alternative to the existing method of executing
77
88## Goal
99
10- 1 . Provide the result of the jumpdest analysis of a deployed code as the EOF section.
10+ Provide the result of the jumpdest analysis of a deployed code as the EOF section.
1111During code execution the jumpdest analysis is already available
1212and the answer to the question "is this jump target valid?" can be looked up
1313in the section. This allows using 32-byte Verkle Tree code chunks
1414(instead of 31-byte of code + 1 byte of metadata).
15- 2 . EOF-packaged code execution if fully compatible with the legacy code execution.
1615
1716## Specification Draft
1817
@@ -30,6 +29,17 @@ in the section. This allows using 32-byte Verkle Tree code chunks
3029 and also for every contract creation later
3130 (i.e. becomes the part of the consensus forever).
3231
32+ ## Backwards Compatibility
33+
34+ EOF-packaged code execution if fully compatible with the legacy code execution.
35+ This is achieved by prepending the legacy code with EOF header and the section containing
36+ jumpdest metadata. The contents of the code section is identical to the lagacy code.
37+ Moreover, the wrapping process is bidirectional: wrapping can be created from the legacy code
38+ and legacy code extracted from the wrapping without any information loss.
39+ Implementations may consider keeping the legacy code in the database without modifications
40+ and only construct the EOF wrapping when loading the code from the database.
41+
42+
3343## Rationale
3444
3545### Jumpdests encoding
You can’t perform that action at this time.
0 commit comments