Crate miden_processor
source ·Modules§
Structs§
- Inputs container to initialize advice provider for the execution of Miden VM programs.
- Defines a set of non-deterministic (advice) inputs which the VM can access by their keys.
- Contains assembly instruction and operation index in the sequence corresponding to the specified AsmOp decorator. This index starts from 1 instead of 0.
- Contains information corresponding to an assembly instruction (only applicable in debug mode).
- Contains trace lengths of all chilplets: hash, bitwise, memory and kernel ROM trace lengths.
- A two-dimensional matrix of field elements arranged in column-major order.
- Represents the ID of an execution context
- A default Host implementation that provides the essential functionality required by the VM.
- A set of parameters specifying execution parameters of the VM.
- Execution trace which is generated when a program is executed on the VM.
- Represents base field element in the field using Montgomery representation.
- A list of procedure hashes defining a VM kernel.
- Represents one or more procedures, represented as a collection of
MastNodes. - An opaque handle to a
MastNodein someMastForest. It is the responsibility of the user to use a givenMastNodeIdwith the correspondingMastForest. - An in-memory
[AdviceProvider]implementation which uses BTreeMaps as its backing storage. - A simple
MastForestStorewhere all knownMastForests are held in memory. - A program information set consisting of its MAST root and set of kernel procedure roots used for its compilation.
- Represents an element in a quadratic extension of a StarkField.
- An in-memory
[AdviceProvider]implementation with support for data access recording. - A newtype wrapper around a usize value representing a step in the execution trace.
- Initial state of the stack to support program execution.
- Output container for Miden VM programs.
- Contains the data about lengths of the trace parts.
- VmState holds a current process state information at a specific clock cycle.
- Iterator that iterates through vm state at each step of the execution.
Enums§
- Defines a set of actions which can be initiated from the VM to extract data from the advice provider. These actions can only modify the advice stack.
- Defines a set of actions which can be initiated from the VM to inject new data into the advice provider.
- Specifies the source of the value(s) to be pushed onto the advice stack.
- Defines errors which can occur during deserialization.
- Response returned by the host upon successful execution of a Host function.
- A set of native VM operations which take exactly one cycle to execute.
Constants§
- Array of field elements representing word of ZEROs in the Miden base field.
- Memory addresses for procedure locals start at 2^30.
- Number of rows at the end of an execution trace which are injected with random values.
- Field element representing ONE in the Miden base filed.
- Memory address for procedure locals within a SYSCALL starts at 2^31.
- Field element representing ZERO in the Miden base filed.
Traits§
- Defines behavior of an advice provider.
- Defines an interface by which the VM can make requests to the host.
- A set of
MastForests available to the prover that programs may refer to (by means of anvm_core::mast::ExternalNode). - A trait that defines a set of methods which allow access to the state of the process.
Functions§
- Returns an execution trace resulting from executing the provided program against the provided inputs.
- Returns an iterator which allows callers to step through the execution and inspect VM state at each execution step.
Type Aliases§
- A group of four field elements in the Miden base field.