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 stdfeature. 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§
- AccessTracker 
- Tracker status of verification of code sections and subcontainers. Used in validating EOF container.
- CodeInfo 
- 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§
- CodeType 
- Types of code sections in EOF container
- EofDecodeError 
- EOF decode errors
- EofError
- EOF Error
- EofValidationError 
- 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 Eofcontainer.
- validate_eof_ code 
- Validates that:
- validate_eof_ codes 
- Validates an Eofstructure, without recursing into containers.
- validate_eof_ inner 
- Fully validates an Eofcontainer. If first_code_type is None it will be auto deduced in verification process.
- validate_raw_ eof 
- Decodes rawinto anEofcontainer and validates it.
- validate_raw_ eof_ inner 
- Decodes rawinto anEofcontainer and validates it.