File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -7,12 +7,11 @@ An alternative to the existing method of executing
7
7
8
8
## Goal
9
9
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.
11
11
During code execution the jumpdest analysis is already available
12
12
and the answer to the question "is this jump target valid?" can be looked up
13
13
in the section. This allows using 32-byte Verkle Tree code chunks
14
14
(instead of 31-byte of code + 1 byte of metadata).
15
- 2 . EOF-packaged code execution if fully compatible with the legacy code execution.
16
15
17
16
## Specification Draft
18
17
@@ -30,6 +29,17 @@ in the section. This allows using 32-byte Verkle Tree code chunks
30
29
and also for every contract creation later
31
30
(i.e. becomes the part of the consensus forever).
32
31
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
+
33
43
## Rationale
34
44
35
45
### Jumpdests encoding
You can’t perform that action at this time.
0 commit comments