Crate zksync_vm2
source ·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 supported by EraVM.
- Test-only tools for EraVM.
Structs§
- Fat pointer to a heap location.
- Single EraVM instruction (an opcode +
Arguments
). - VM execution mode requirements (kernel only, not in static call) that can be placed on instructions.
- Compiled EraVM bytecode.
VirtualMachine
settings.- 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. - Change in a single storage slot.
- Storage slot information returned from
StorageInterface::read_storage()
. - High-performance out-of-circuit EraVM implementation.
- Pending modifications to the global state that are executed at the end of a block. In other words, side effects.
Enums§
- VM stop reason returned from
VirtualMachine::run()
. - Predicate for an instruction. Encoded so that comparing it to flags is efficient.
Traits§
- VM storage access operations.
- Encapsulates VM interaction with the external world. This includes VM storage and decomitting (loading) bytecodes for execution.