Skip to content

Commit 5f06b27

Browse files
committed
Include invalid opcode preamble
1 parent 0d75857 commit 5f06b27

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

backwardsCompatibility.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ cost. The fee schedule for eWASM is yet to be specified.
1414
## Identification of code
1515
We assume there is some sort of code handler function that all clients have
1616
implemented. The code handler identifies the instruction set type by whether it
17-
starts with WASM's magic number or not.
17+
starts with the *eWASM preamble* or not.
18+
19+
The *eWASM preamble* consists of an invalid EVM1 opcode (`0xEF`) followed by the WASM magic number.
1820

1921
The WASM magic number is the following byte sequence: `0x00, 0x61, 0x73, 0x6d`.
2022

0 commit comments

Comments
 (0)