Skip to main content

Module value

Module value 

Source
Expand description

Internal value type for expression evaluation.

The interpreter carries serde_json::Value directly: witnesses come in as JSON, circuit args come in as AlignedValue (decoded into JSON via descriptors), and Const bindings hold whatever the bound expression evaluated to. Conversion to and from AlignedValue lives in super::descriptor (encoding) and [crate::executable::aligned_value_to_json] (decoding).

This module is reserved for typed-Value extensions — when the interpreter grows beyond pass-through JSON (e.g. typed enums with sealed-class variants, Field arithmetic), this is where they land.