moonproof-runtime 0.2.2

Wasm-friendly Compact contract runtime core — IR walker, IR-driven circuit executor, contract state, runtime values
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! 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.