Skip to main content

trace_to_json

Function trace_to_json 

Source
pub fn trace_to_json<State>(
    result: &StabilizationResult<State, CorrectionDirectionSet, Evidence>,
) -> Result<String>
where State: Serialize,
Expand description

Serialize a kernel stabilization trace to JSON via [srbn_serde] for the ledger. Requires the state and evidence to be serializable.