Skip to main content

Module deferred

Module deferred 

Source
Expand description

Content-addressed deferred computation for VM hints.

Deferred events let programs commit opaque statements during execution and leave their semantic checks to installed Precompiles. The framework stores those commitments as a DAG of Nodes and a deferred root commitment that verifies by evaluating every logged statement to TRUE.

miden-core owns the data model, registry, state, and wire validation; the processor only provides system-event plumbing.

Structs§

DeferredContext
Capability object passed to precompiles during recursive evaluation.
DeferredRootTracker
Small helper for tests and trace plumbing that need to advance a deferred root incrementally.
DeferredState
In-memory witness for deferred-DAG verification.
DeferredStateWire
Wire representation of a deferred root opening.
Node
A deferred DAG entry whose meaning is supplied by a framework tag or owning super::Precompile.
Payload
In-memory body of a deferred node.
PrecompileRegistry
Installed set of precompiles for deferred-node validation and evaluation.
Tag
Identifies the precompile that owns a node and carries its local immediates.

Enums§

DeferredError
Coarse deferred-framework failures shared by deferred state and precompile evaluation.
IntegrityError
Reasons untrusted wire data failed deferred-state rehydration.
NodeType
Framework shape a precompile declares for a recognized tag.
PrecompileError
Errors produced while evaluating deferred nodes through precompiles.
WireEntry
One explicit deferred DAG entry in topological wire order.

Constants§

DEFAULT_MAX_DEFERRED_ELEMENTS
Default maximum approximate number of field elements allowed in deferred state.
DEFERRED_ROOT_DOMAIN
Fixed capacity word used to domain-separate deferred root folds.
TRUE_DIGEST
Digest of Node::TRUE, root for an empty deferred state, and terminal of the AND-chain.
TRUE_INDEX
Reserved index for the always-known super::TRUE_DIGEST / super::Node::TRUE node.

Traits§

Precompile
Semantic module installed in a PrecompileRegistry.

Functions§

fold_deferred_root
Folds a verified deferred statement into the rolling deferred root.
precompile_id
Derives the canonical id a registry expects for a precompile name.

Type Aliases§

DataChunk
One Poseidon2 rate block, used as the unit of deferred data payloads.
DeferredRoot
The deferred root committed in public inputs.
Digest
Stable address of a deferred Node, computed as a 4-felt Poseidon2 digest.