Expand description
CoreVM engine.
This engine is used to run CoreVM services inside JAM. It can also be used to simulate running CoreVM service on the builder’s side to predict which memory pages will be used by the service.
Structs§
- Engine
- HexDisplay
- Invoke
Args - Args for invoking an inner PVM.
- Memory
Manager - Inner VM’s memory manager.
- Output
Buffers - CoreVM output buffers (service counterpart).
- Page
Mapper - Maps memory blocks of arbitrary sizes onto the heap address range.
- Program
Data - Static data associated with the program.
Enums§
- Address
Kind - Address range identifier.
- Append
Output Error - Page
Fault Error - Reg
- Available registers.
Constants§
- MAX_
TOTAL_ OUTPUT_ BLOB_ SIZE - The maximum total size of all output blobs in a work-report, in octets.
Traits§
- Arg
- InnerVm
- A trait that abstracts JAM calls related to an inner VM.
- OuterVm
- SetReturn
Value
Functions§
- compute_
state_ hash - This hash is used to check the validity of the state transition in JAM’s
accumulate
. - get_
work_ output_ len - hash_
encoded - hash_
raw - hash_
raw_ concat - Compute the hash of the concatenation of byte slices.
- initial_
state_ hash - The hash of the initial state.
- merkle_
leaf_ hash - merkle_
tree_ root_ prehashed - Compute Merkle tree root of the pre-hashed items.