Skip to content

Commit

Permalink
Clarify megaspec is EOFv1 (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdobacz authored Jan 4, 2024
1 parent bcec2a4 commit 0f9a80b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/eof.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# "Mega EOF Endgame" Specification
# "Mega EOF Endgame" Specification (EOFv1)
###### tags: `EOF`

[toc]
Expand All @@ -9,6 +9,8 @@

This unified specification should be used as a guide to understand the various changes the EVM Object Format is proposing. The individual EIPs ~~still remain the official specification and should confusion arise those are to be consulted~~ are not fully updated yet, and this document serves as a main source of truth at the moment. See appendix for the original list of EIPs.

While EOF is extensible, in this document we discuss the first version, EOFv1.

## Container

EVM bytecode is traditionally an unstructured sequence of instructions. EOF introduces the concept of a container, which brings structure to byte code. The container consists of a header and then several sections.
Expand All @@ -28,8 +30,6 @@ types_section := (inputs, outputs, max_stack_height)+

_note: `,` is a concatenation operator, `+` should be interpreted as "one or more" of the preceding item, and `*` should be interpreted as "zero or more" of the preceding item._

While EOF is extensible, in this document we discuss the first version, EOFv1.

#### Header

| name | length | value | description |
Expand Down

0 comments on commit 0f9a80b

Please sign in to comment.