Expand description
§High-Performance ZKsync Era VM
This crate provides high-performance VirtualMachine
for ZKsync Era.
Re-exports§
pub use zksync_vm2_interface as interface;
Modules§
- addressing_
modes - Addressing modes supported by EraVM.
- precompiles
- Precompiles support.
- testonly
- Test-only tools for EraVM.
Structs§
- FatPointer
- Fat pointer to a heap location.
- Instruction
- Single EraVM instruction (an opcode +
Arguments
). - Mode
Requirements - VM execution mode requirements (kernel only, not in static call) that can be placed on instructions.
- Program
- Compiled EraVM bytecode.
- Settings
VirtualMachine
settings.- Snapshot
- Opaque snapshot of a
WorldDiff
output by its eponymous method. Can be provided toWorldDiff::events_after()
etc. to get data after the snapshot was created. - Storage
Change - Change in a single storage slot.
- Storage
Slot - Storage slot information returned from
StorageInterface::read_storage()
. - Virtual
Machine - High-performance out-of-circuit EraVM implementation.
- World
Diff - Pending modifications to the global state that are executed at the end of a block. In other words, side effects.
Enums§
- Execution
End - VM stop reason returned from
VirtualMachine::run()
. - Predicate
- Predicate for an instruction. Encoded so that comparing it to flags is efficient.
Traits§
- Storage
Interface - VM storage access operations.
- World
- Encapsulates VM interaction with the external world. This includes VM storage and decomitting (loading) bytecodes for execution.