Module eof
Expand description
EOF bytecode.
Contains body, header and raw bytes.
Also contains verification logic and pretty printer.
Modules§
- printer
- Pritty printer for the EOF bytecode. Enabled by
std
feature. Module that contains the printer for the EOF bytecode. - verification
- Verification logic for the EOF bytecode. Module that contains the verification logic for the EOF bytecode.
Structs§
- Access
Tracker - Tracker status of verification of code sections and subcontainers. Used in validating EOF container.
- Code
Info - Types section that contains stack information for matching code section
- Eof
- EVM Object Format (EOF) container
- EofBody
- EOF container body
- EofHeader
- EOF header structure that contains section sizes and metadata
Enums§
- Code
Type - Types of code sections in EOF container
- EofDecode
Error - EOF decode errors
- EofError
- EOF Error
- EofValidation
Error - EOF Validation Error
Constants§
- CODE_
SECTION_ SIZE - EOF header code section size length.
- CONTAINER_
SECTION_ SIZE - EOF header container section size length.
- EOF_
MAGIC - EOF Magic in u16 form
- EOF_
MAGIC_ HASH - Hash of EF00 bytes that is used for EXTCODEHASH when called from legacy bytecode
- KIND_
CODE - EOF header code kind, marking code section.
- KIND_
CODE_ INFO - EOF header code info kind, marking code info section.
- KIND_
CONTAINER - EOF header container kind, marking container section.
- KIND_
DATA - EOF header data kind, marking data section.
- KIND_
TERMINAL - EOF header terminal kind, marking end of header.
Statics§
- EOF_
MAGIC_ BYTES - EOF magic number in array form
Functions§
- validate_
eof - Fully validates an
Eof
container. - validate_
eof_ code - Validates that:
- validate_
eof_ codes - Validates an
Eof
structure, without recursing into containers. - validate_
eof_ inner - Fully validates an
Eof
container. If first_code_type is None it will be auto deduced in verification process. - validate_
raw_ eof - Decodes
raw
into anEof
container and validates it. - validate_
raw_ eof_ inner - Decodes
raw
into anEof
container and validates it.