From 63cf2b0a456520ee6211ad19c10d25aebfc9589f Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Fri, 19 Sep 2025 02:08:59 -0300 Subject: [PATCH 001/152] add interleaving/ivc-proto crate (wip) implementing part of the scheme described here: https://github.com/PaimaStudios/Starstream/issues/49 right now it doesn't really do folding, mostly to try to decouple the proving system and try to improve the API first, but the circuit is written with folding (and nebula) in mind Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- Cargo.toml | 8 + starstream_ivc_proto/Cargo.toml | 14 + starstream_ivc_proto/src/circuit.rs | 1049 +++++++++++++++++++++++++++ starstream_ivc_proto/src/lib.rs | 280 +++++++ starstream_ivc_proto/src/memory.rs | 193 +++++ 5 files changed, 1544 insertions(+) create mode 100644 starstream_ivc_proto/Cargo.toml create mode 100644 starstream_ivc_proto/src/circuit.rs create mode 100644 starstream_ivc_proto/src/lib.rs create mode 100644 starstream_ivc_proto/src/memory.rs diff --git a/Cargo.toml b/Cargo.toml index 01b5381c..0afc6507 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,6 +9,7 @@ members = [ "starstream-sandbox-web", "starstream-to-wasm", "starstream-types", + "starstream_ivc_proto" ] exclude = ["old"] @@ -41,3 +42,10 @@ wit-component = "0.240.0" [profile.dev.package] insta.opt-level = 3 + +[patch.crates-io] +ark-relations = { git = "https://github.com/arkworks-rs/snark/" } +ark-snark = { git = "https://github.com/arkworks-rs/snark/" } +ark-r1cs-std = { git = "https://github.com/arkworks-rs/r1cs-std" } +ark-serialize = { git = "https://github.com/arkworks-rs/algebra"} +ark-crypto-primitives = { git = "https://github.com/arkworks-rs/crypto-primitives"} diff --git a/starstream_ivc_proto/Cargo.toml b/starstream_ivc_proto/Cargo.toml new file mode 100644 index 00000000..adecd320 --- /dev/null +++ b/starstream_ivc_proto/Cargo.toml @@ -0,0 +1,14 @@ +[package] +name = "starstream_ivc_proto" +version = "0.1.0" +edition = "2024" + +[dependencies] +ark-ff = { version = "0.5.0", default-features = false } +ark-relations = { version = "0.5.0", default-features = false } +ark-r1cs-std = { version = "0.5.0", default-features = false } +ark-bn254 = { version = "0.5.0", features = ["scalar_field"] } +ark-poly = "0.5.0" +ark-poly-commit = "0.5.0" +tracing = { version = "0.1", default-features = false, features = [ "attributes" ] } +tracing-subscriber = { version = "0.3" } diff --git a/starstream_ivc_proto/src/circuit.rs b/starstream_ivc_proto/src/circuit.rs new file mode 100644 index 00000000..8bbe6337 --- /dev/null +++ b/starstream_ivc_proto/src/circuit.rs @@ -0,0 +1,1049 @@ +use crate::memory::{self, Address, IVCMemory}; +use crate::{F, Instruction, UtxoChange, UtxoId, memory::IVCMemoryAllocated}; +use ark_ff::AdditiveGroup as _; +use ark_r1cs_std::alloc::AllocationMode; +use ark_r1cs_std::{ + GR1CSVar as _, alloc::AllocVar as _, eq::EqGadget, fields::fp::FpVar, prelude::Boolean, +}; +use ark_relations::{ + gr1cs::{ConstraintSystemRef, LinearCombination, SynthesisError, Variable}, + ns, +}; +use std::collections::{BTreeMap, HashMap, HashSet}; +use std::marker::PhantomData; + +/// The RAM part is an array of ProgramState +pub const RAM_SEGMENT: u64 = 9u64; +/// Utxos don't have contiguous ids, so we use these to map ids to contiguous +/// addresses. +pub const UTXO_INDEX_MAPPING_SEGMENT: u64 = 10u64; +/// The expected output for each utxo. +/// This is public, so the verifier can just set the ROM to the values it +/// expects. +pub const OUTPUT_CHECK_SEGMENT: u64 = 11u64; + +pub const PROGRAM_STATE_SIZE: u64 = 4u64; +pub const UTXO_INDEX_MAPPING_SIZE: u64 = 1u64; +pub const OUTPUT_CHECK_SIZE: u64 = 2u64; + +pub struct StepCircuitBuilder { + pub utxos: BTreeMap, + pub ops: Vec, + write_ops: Vec<(ProgramState, ProgramState)>, + utxo_order_mapping: HashMap, + + mem: PhantomData, +} + +/// common circuit variables to all the opcodes +#[derive(Clone)] +pub struct Wires { + // irw + current_program: FpVar, + utxos_len: FpVar, + n_finalized: FpVar, + + // switches + utxo_yield_switch: Boolean, + yield_resume_switch: Boolean, + resume_switch: Boolean, + check_utxo_output_switch: Boolean, + drop_utxo_switch: Boolean, + + utxo_id: FpVar, + input: FpVar, + output: FpVar, + + utxo_read_wires: ProgramStateWires, + coord_read_wires: ProgramStateWires, + + utxo_write_wires: ProgramStateWires, + + // TODO: for now there can only be a single coordination script, with the + // address 1. + // + // this can be lifted, but it requires a bit of logic. + coordination_script: FpVar, + + // variables in the ROM part that has the expected 'output' or final state + // for a utxo + utxo_final_output: FpVar, + utxo_final_consumed: FpVar, + + constant_false: Boolean, + constant_true: Boolean, + constant_one: FpVar, +} + +/// these are the mcc witnesses +#[derive(Clone)] +pub struct ProgramStateWires { + consumed: FpVar, + finalized: FpVar, + input: FpVar, + output: FpVar, +} + +// helper so that we always allocate witnesses in the same order +pub struct PreWires { + utxo_address: F, + + coord_address: F, + + utxo_id: F, + input: F, + output: F, + + // switches + yield_start_switch: bool, + yield_end_switch: bool, + resume_switch: bool, + check_utxo_output_switch: bool, + nop_switch: bool, + drop_utxo_switch: bool, + + irw: InterRoundWires, +} + +#[derive(Clone)] +pub struct ProgramState { + consumed: bool, + finalized: bool, + input: F, + output: F, +} + +/// IVC wires (state between steps) +/// +/// these get input and output variables +#[derive(Clone)] +pub struct InterRoundWires { + current_program: F, + utxos_len: F, + n_finalized: F, +} + +impl ProgramStateWires { + const CONSUMED: &str = "consumed"; + const FINALIZED: &str = "finalized"; + const INPUT: &str = "input"; + const OUTPUT: &str = "output"; + + fn to_var_vec(&self) -> Vec> { + vec![ + self.consumed.clone(), + self.finalized.clone(), + self.input.clone(), + self.output.clone(), + ] + } + + fn conditionally_enforce_equal( + &self, + other: &Self, + should_enforce: &Boolean, + except: HashSet<&'static str>, + ) -> Result<(), SynthesisError> { + if !except.contains(Self::CONSUMED) { + // dbg!(&self.consumed.value().unwrap()); + // dbg!(&other.consumed.value().unwrap()); + self.consumed + .conditional_enforce_equal(&other.consumed, should_enforce)?; + } + if !except.contains(Self::FINALIZED) { + // dbg!(&self.finalized.value().unwrap()); + // dbg!(&other.finalized.value().unwrap()); + self.finalized + .conditional_enforce_equal(&other.finalized, should_enforce)?; + } + if !except.contains(Self::INPUT) { + // dbg!(&self.input.value().unwrap()); + // dbg!(&other.input.value().unwrap()); + self.input + .conditional_enforce_equal(&other.input, should_enforce)?; + } + if !except.contains(Self::OUTPUT) { + // dbg!(&self.output.value().unwrap()); + // dbg!(&other.output.value().unwrap()); + + self.output + .conditional_enforce_equal(&other.output, should_enforce)?; + } + Ok(()) + } + + fn from_vec(utxo_read_wires: Vec>) -> ProgramStateWires { + ProgramStateWires { + consumed: utxo_read_wires[0].clone(), + finalized: utxo_read_wires[1].clone(), + input: utxo_read_wires[2].clone(), + output: utxo_read_wires[3].clone(), + } + } + + fn from_write_values( + cs: ConstraintSystemRef, + utxo_write_values: &ProgramState, + ) -> Result { + Ok(ProgramStateWires { + consumed: FpVar::from(Boolean::new_witness(cs.clone(), || { + Ok(utxo_write_values.consumed) + })?), + finalized: FpVar::from(Boolean::new_witness(cs.clone(), || { + Ok(utxo_write_values.finalized) + })?), + input: FpVar::new_witness(cs.clone(), || Ok(utxo_write_values.input))?, + output: FpVar::new_witness(cs.clone(), || Ok(utxo_write_values.output))?, + }) + } +} + +impl Wires { + pub fn from_irw>( + vals: &PreWires, + rm: &mut M, + utxo_write_values: &ProgramState, + coord_write_values: &ProgramState, + ) -> Result { + let cs = rm.get_cs(); + // io vars + let current_program = FpVar::::new_witness(cs.clone(), || Ok(vals.irw.current_program))?; + let utxos_len = FpVar::::new_witness(cs.clone(), || Ok(vals.irw.utxos_len))?; + let n_finalized = FpVar::::new_witness(cs.clone(), || Ok(vals.irw.n_finalized))?; + + // switches + let switches = [ + vals.resume_switch, + vals.yield_end_switch, + vals.yield_start_switch, + vals.check_utxo_output_switch, + vals.nop_switch, + vals.drop_utxo_switch, + ]; + + let allocated_switches: Vec<_> = switches + .iter() + .map(|val| Boolean::new_witness(cs.clone(), || Ok(*val)).unwrap()) + .collect(); + + let [ + resume_switch, + yield_resume_switch, + utxo_yield_switch, + check_utxo_output_switch, + nop_switch, + drop_utxo_switch, + ] = allocated_switches.as_slice() + else { + unreachable!() + }; + + // TODO: figure out how to write this with the proper dsl + // but we only need r1cs anyway. + cs.enforce_r1cs_constraint( + || { + allocated_switches + .iter() + .fold(LinearCombination::new(), |acc, switch| acc + switch.lc()) + .clone() + }, + || LinearCombination::new() + Variable::one(), + || LinearCombination::new() + Variable::one(), + ) + .unwrap(); + + let utxo_id = FpVar::::new_witness(ns!(cs.clone(), "utxo_id"), || Ok(vals.utxo_id))?; + let input = FpVar::::new_witness(ns!(cs.clone(), "input"), || Ok(vals.input))?; + let output = FpVar::::new_witness(ns!(cs.clone(), "output"), || Ok(vals.output))?; + + let utxo_address = FpVar::::new_witness(cs.clone(), || Ok(vals.utxo_address))?; + let coord_address = FpVar::::new_witness(cs.clone(), || Ok(vals.coord_address))?; + + let coord_read_wires = rm.conditional_read( + &(yield_resume_switch | utxo_yield_switch), + &Address { + addr: coord_address.clone(), + tag: RAM_SEGMENT, + }, + )?; + + let coord_read_wires = ProgramStateWires::from_vec(coord_read_wires); + + let utxo_read_wires = rm.conditional_read( + check_utxo_output_switch, + &Address { + addr: utxo_address.clone(), + tag: RAM_SEGMENT, + }, + )?; + + let utxo_read_wires = ProgramStateWires::from_vec(utxo_read_wires); + + let utxo_write_wires = ProgramStateWires::from_write_values(cs.clone(), utxo_write_values)?; + let coord_write_wires = + ProgramStateWires::from_write_values(cs.clone(), coord_write_values)?; + + let coord_conditional_write_switch = &resume_switch; + + rm.conditional_write( + coord_conditional_write_switch, + &Address { + addr: coord_address.clone(), + tag: RAM_SEGMENT, + }, + &coord_write_wires.to_var_vec(), + )?; + + let utxo_conditional_write_switch = + utxo_yield_switch | resume_switch | yield_resume_switch | check_utxo_output_switch; + + rm.conditional_write( + &utxo_conditional_write_switch, + &Address { + addr: utxo_address.clone(), + tag: RAM_SEGMENT, + }, + &utxo_write_wires.to_var_vec(), + )?; + + let coordination_script = FpVar::::new_constant(cs.clone(), F::from(1))?; + + let rom_read_wires = rm.conditional_read( + &!nop_switch, + &Address { + addr: (&utxo_address + &utxos_len), + tag: UTXO_INDEX_MAPPING_SEGMENT, + }, + )?; + + rom_read_wires[0].enforce_equal(&utxo_id)?; + + let utxo_output_address = &utxo_address + &utxos_len + &utxos_len; + + let utxo_rom_output_read = rm.conditional_read( + check_utxo_output_switch, + &Address { + addr: utxo_output_address, + tag: OUTPUT_CHECK_SEGMENT, + }, + )?; + + Ok(Wires { + current_program, + utxos_len, + n_finalized, + + utxo_yield_switch: utxo_yield_switch.clone(), + yield_resume_switch: yield_resume_switch.clone(), + resume_switch: resume_switch.clone(), + check_utxo_output_switch: check_utxo_output_switch.clone(), + drop_utxo_switch: drop_utxo_switch.clone(), + + utxo_id, + input, + output, + utxo_read_wires, + coord_read_wires, + coordination_script, + + utxo_write_wires, + + utxo_final_output: utxo_rom_output_read[0].clone(), + utxo_final_consumed: utxo_rom_output_read[1].clone(), + + constant_false: Boolean::new_constant(cs.clone(), false)?, + constant_true: Boolean::new_constant(cs.clone(), true)?, + constant_one: FpVar::new_constant(cs.clone(), F::from(1))?, + }) + } +} + +impl InterRoundWires { + pub fn new(rom_offset: F) -> Self { + InterRoundWires { + current_program: F::from(1), + utxos_len: rom_offset, + n_finalized: F::from(0), + } + } + + pub fn update(&mut self, res: Wires) { + self.current_program = res.current_program.value().unwrap(); + self.utxos_len = res.utxos_len.value().unwrap(); + self.n_finalized = res.n_finalized.value().unwrap(); + } +} + +impl Instruction { + pub fn write_values( + &self, + coord_read: Vec, + utxo_read: Vec, + ) -> (ProgramState, ProgramState) { + match &self { + Instruction::Nop {} => (ProgramState::dummy(), ProgramState::dummy()), + Instruction::Resume { + utxo_id: _, + input, + output, + } => { + let coord = ProgramState { + consumed: coord_read[0] == F::from(1), + finalized: coord_read[1] == F::from(1), + input: *input, + output: *output, + }; + + let utxo = ProgramState { + consumed: true, + finalized: utxo_read[1] == F::from(1), + input: utxo_read[2], + output: utxo_read[3], + }; + + (coord, utxo) + } + Instruction::YieldResume { + utxo_id: _, + output: _, + } => { + let coord = ProgramState::dummy(); + + let utxo = ProgramState { + consumed: utxo_read[0] == F::from(1), + finalized: utxo_read[1] == F::from(1), + input: utxo_read[2], + output: utxo_read[3], + }; + + (coord, utxo) + } + Instruction::Yield { utxo_id: _, input } => { + let coord = ProgramState::dummy(); + + let utxo = ProgramState { + consumed: false, + finalized: utxo_read[1] == F::from(1), + input: F::from(0), + output: *input, + }; + + (coord, utxo) + } + Instruction::CheckUtxoOutput { utxo_id: _ } => { + let coord = ProgramState::dummy(); + + let utxo = ProgramState { + consumed: utxo_read[0] == F::from(1), + finalized: true, + input: utxo_read[2], + output: utxo_read[3], + }; + + (coord, utxo) + } + Instruction::DropUtxo { utxo_id: _ } => { + let coord = ProgramState::dummy(); + let utxo = ProgramState::dummy(); + + (coord, utxo) + } + } + } +} + +impl> StepCircuitBuilder { + pub fn new(utxos: BTreeMap, ops: Vec) -> Self { + Self { + utxos, + ops, + write_ops: vec![], + utxo_order_mapping: Default::default(), + + mem: PhantomData, + } + } + + // pub fn dummy(utxos: BTreeMap) -> Self { + // Self { + // utxos, + // ops: vec![Instruction::Nop {}], + // write_ops: vec![], + // utxo_order_mapping: Default::default(), + + // mem: PhantomData, + // } + // } + + pub fn make_step_circuit( + &self, + i: usize, + rm: &mut M::Allocator, + cs: ConstraintSystemRef, + mut irw: InterRoundWires, + ) -> Result { + rm.start_step(cs.clone()).unwrap(); + + let wires_in = self.allocate_vars(i, rm, &irw)?; + let next_wires = wires_in.clone(); + + // per opcode constraints + let next_wires = self.visit_utxo_yield(next_wires)?; + let next_wires = self.visit_utxo_yield_resume(next_wires)?; + let next_wires = self.visit_utxo_resume(next_wires)?; + let next_wires = self.visit_utxo_output_check(next_wires)?; + let next_wires = self.visit_utxo_drop(next_wires)?; + + rm.finish_step(i == self.ops.len() - 1)?; + + // input <-> output mappings are done by modifying next_wires + ivcify_wires(&cs, &wires_in, &next_wires)?; + + irw.update(next_wires); + + Ok(irw) + } + + pub fn trace_memory_ops(&mut self, params: >::Params) -> M { + let utxos_len = self.utxos.len() as u64; + let (mut mb, utxo_order_mapping) = { + let mut mb = M::new(params); + + mb.register_mem(RAM_SEGMENT, PROGRAM_STATE_SIZE); + mb.register_mem(UTXO_INDEX_MAPPING_SEGMENT, UTXO_INDEX_MAPPING_SIZE); + mb.register_mem(OUTPUT_CHECK_SEGMENT, OUTPUT_CHECK_SIZE); + + let mut utxo_order_mapping: HashMap = Default::default(); + + mb.init( + Address { + addr: 1, + tag: RAM_SEGMENT, + }, + ProgramState::dummy().to_field_vec(), + ); + + for ( + index, + ( + utxo_id, + UtxoChange { + output_before, + output_after, + consumed, + }, + ), + ) in self.utxos.iter().enumerate() + { + mb.init( + // 0 is not a valid address + // 1 is the coordination script + // utxos start at 2 + Address { + addr: index as u64 + 2, + tag: RAM_SEGMENT, + }, + ProgramState { + consumed: false, + finalized: false, + input: F::from(0), + output: *output_before, + } + .to_field_vec(), + ); + + mb.init( + Address { + addr: index as u64 + 2 + utxos_len, + tag: UTXO_INDEX_MAPPING_SEGMENT, + }, + vec![*utxo_id], + ); + + utxo_order_mapping.insert(*utxo_id, index + 2); + + mb.init( + Address { + addr: index as u64 + 2 + utxos_len * 2, + tag: OUTPUT_CHECK_SEGMENT, + }, + vec![*output_after, F::from(if *consumed { 1 } else { 0 })], + ); + } + + (mb, utxo_order_mapping) + }; + + let utxos_len = self.utxos.len() as u64; + + self.utxo_order_mapping = utxo_order_mapping; + + // out of circuit memory operations. + // this is needed to commit to the memory operations before-hand. + for instr in &self.ops { + // per step we conditionally: + // + // 1. read the coordination script state + // 2. read a single utxo state + // 3. write the new coordination script state + // 4. write the new utxo state (for the same utxo) + // + // Aditionally we read from the ROM + // + // 5. The expected utxo final state (if the check utxo switch is on). + // 6. The utxo id mapping. + // + // All instructions need to the same number of reads and writes, + // since these have to allocate witnesses. + // + // The witnesses are allocated in Wires::from_irw. + // + // Each read or write here needs a corresponding witness in that + // function, with the same switchboard condition, and the same + // address. + let (utxo_id, coord_read_cond, utxo_read_cond, coord_write_cond, utxo_write_cond) = + match instr { + Instruction::Resume { utxo_id, .. } => (*utxo_id, false, false, true, true), + Instruction::YieldResume { utxo_id, .. } + | Instruction::Yield { utxo_id, .. } => (*utxo_id, true, false, false, true), + Instruction::CheckUtxoOutput { utxo_id } => { + (*utxo_id, false, true, false, true) + } + Instruction::Nop {} => (F::from(0), false, false, false, false), + Instruction::DropUtxo { utxo_id } => (*utxo_id, false, false, false, false), + }; + + let utxo_addr = *self.utxo_order_mapping.get(&utxo_id).unwrap_or(&2); + + let coord_read = mb.conditional_read( + coord_read_cond, + Address { + addr: 1, + tag: RAM_SEGMENT, + }, + ); + let utxo_read = mb.conditional_read( + utxo_read_cond, + Address { + addr: utxo_addr as u64, + tag: RAM_SEGMENT, + }, + ); + + let (coord_write, utxo_write) = instr.write_values(coord_read, utxo_read); + + self.write_ops + .push((coord_write.clone(), utxo_write.clone())); + + mb.conditional_write( + coord_write_cond, + Address { + addr: 1, + tag: RAM_SEGMENT, + }, + coord_write.to_field_vec(), + ); + mb.conditional_write( + utxo_write_cond, + Address { + addr: utxo_addr as u64, + tag: RAM_SEGMENT, + }, + utxo_write.to_field_vec(), + ); + + mb.conditional_read( + !matches!(instr, Instruction::Nop {}), + Address { + addr: utxo_addr as u64 + utxos_len, + tag: UTXO_INDEX_MAPPING_SEGMENT, + }, + ); + + mb.conditional_read( + matches!(instr, Instruction::CheckUtxoOutput { .. }), + Address { + addr: utxo_addr as u64 + utxos_len * 2, + tag: OUTPUT_CHECK_SEGMENT, + }, + ); + } + + mb + } + + fn allocate_vars( + &self, + i: usize, + rm: &mut M::Allocator, + irw: &InterRoundWires, + ) -> Result { + let instruction = &self.ops[i]; + let (coord_write, utxo_write) = &self.write_ops[i]; + + match instruction { + Instruction::Nop {} => { + let irw = PreWires { + nop_switch: true, + irw: irw.clone(), + + // the first utxo has address 2 + // + // this doesn't matter since the read is unconditionally + // false, it's just for padding purposes + utxo_address: F::from(2_u64), + + ..PreWires::new(irw.clone()) + }; + + Wires::from_irw(&irw, rm, utxo_write, coord_write) + } + Instruction::Resume { + utxo_id, + input, + output, + } => { + let utxo_addr = *self.utxo_order_mapping.get(utxo_id).unwrap(); + + let irw = PreWires { + resume_switch: true, + + utxo_id: *utxo_id, + input: *input, + output: *output, + + utxo_address: F::from(utxo_addr as u64), + + irw: irw.clone(), + + ..PreWires::new(irw.clone()) + }; + + Wires::from_irw(&irw, rm, utxo_write, coord_write) + } + Instruction::YieldResume { utxo_id, output } => { + let utxo_addr = *self.utxo_order_mapping.get(utxo_id).unwrap(); + + let irw = PreWires { + yield_end_switch: true, + + utxo_id: *utxo_id, + output: *output, + + utxo_address: F::from(utxo_addr as u64), + + irw: irw.clone(), + + ..PreWires::new(irw.clone()) + }; + + Wires::from_irw(&irw, rm, utxo_write, coord_write) + } + Instruction::Yield { utxo_id, input } => { + let utxo_addr = *self.utxo_order_mapping.get(utxo_id).unwrap(); + + let irw = PreWires { + yield_start_switch: true, + utxo_id: *utxo_id, + input: *input, + utxo_address: F::from(utxo_addr as u64), + irw: irw.clone(), + + ..PreWires::new(irw.clone()) + }; + + Wires::from_irw(&irw, rm, utxo_write, coord_write) + } + Instruction::CheckUtxoOutput { utxo_id } => { + let utxo_addr = *self.utxo_order_mapping.get(utxo_id).unwrap(); + + let irw = PreWires { + check_utxo_output_switch: true, + utxo_id: *utxo_id, + utxo_address: F::from(utxo_addr as u64), + irw: irw.clone(), + ..PreWires::new(irw.clone()) + }; + + Wires::from_irw(&irw, rm, utxo_write, coord_write) + } + Instruction::DropUtxo { utxo_id } => { + let utxo_addr = *self.utxo_order_mapping.get(utxo_id).unwrap(); + + let irw = PreWires { + drop_utxo_switch: true, + utxo_id: *utxo_id, + utxo_address: F::from(utxo_addr as u64), + irw: irw.clone(), + ..PreWires::new(irw.clone()) + }; + + Wires::from_irw(&irw, rm, utxo_write, coord_write) + } + } + } + + #[tracing::instrument(target = "gr1cs", skip(self, wires))] + fn visit_utxo_resume(&self, mut wires: Wires) -> Result { + let switch = &wires.resume_switch; + + wires.utxo_read_wires.conditionally_enforce_equal( + &wires.utxo_write_wires, + switch, + [ProgramStateWires::CONSUMED].into_iter().collect(), + )?; + + wires + .current_program + .conditional_enforce_equal(&wires.coordination_script, switch)?; + + wires + .utxo_write_wires + .consumed + .conditional_enforce_equal(&FpVar::from(wires.constant_true.clone()), switch)?; + + wires.current_program = switch.select(&wires.utxo_id, &wires.current_program)?; + + Ok(wires) + } + + #[tracing::instrument(target = "gr1cs", skip(self, wires))] + fn visit_utxo_drop(&self, mut wires: Wires) -> Result { + let switch = &wires.drop_utxo_switch; + + wires.utxo_read_wires.conditionally_enforce_equal( + &wires.utxo_write_wires, + switch, + [].into_iter().collect(), + )?; + + wires + .current_program + .conditional_enforce_equal(&wires.utxo_id, switch)?; + + wires.current_program = + switch.select(&wires.coordination_script, &wires.current_program)?; + + Ok(wires) + } + + #[tracing::instrument(target = "gr1cs", skip(self, wires))] + fn visit_utxo_yield_resume(&self, wires: Wires) -> Result { + let switch = &wires.yield_resume_switch; + + wires.utxo_read_wires.conditionally_enforce_equal( + &wires.utxo_write_wires, + switch, + [].into_iter().collect(), + )?; + + wires + .coord_read_wires + .input + .conditional_enforce_equal(&wires.output, switch)?; + + wires + .current_program + .conditional_enforce_equal(&wires.utxo_id, switch)?; + + Ok(wires) + } + + #[tracing::instrument(target = "gr1cs", skip(self, wires))] + fn visit_utxo_yield(&self, mut wires: Wires) -> Result { + let switch = &wires.utxo_yield_switch; + + wires.utxo_read_wires.conditionally_enforce_equal( + &wires.utxo_write_wires, + switch, + [ + ProgramStateWires::CONSUMED, + ProgramStateWires::OUTPUT, + ProgramStateWires::INPUT, + ] + .into_iter() + .collect(), + )?; + + wires + .utxo_write_wires + .consumed + .conditional_enforce_equal(&FpVar::from(wires.constant_false.clone()), switch)?; + + wires + .coord_read_wires + .output + .conditional_enforce_equal(&wires.input, switch)?; + + wires + .current_program + .conditional_enforce_equal(&wires.utxo_id, switch)?; + + wires.current_program = + switch.select(&wires.coordination_script, &wires.current_program)?; + + Ok(wires) + } + + #[tracing::instrument(target = "gr1cs", skip(self, wires))] + fn visit_utxo_output_check(&self, mut wires: Wires) -> Result { + let switch = &wires.check_utxo_output_switch; + + wires.utxo_read_wires.conditionally_enforce_equal( + &wires.utxo_write_wires, + switch, + [ProgramStateWires::FINALIZED].into_iter().collect(), + )?; + + wires + .current_program + .conditional_enforce_equal(&wires.coordination_script, switch)?; + + // utxo.output = expected.output + wires + .utxo_read_wires + .output + .conditional_enforce_equal(&wires.utxo_final_output, switch)?; + + // utxo.consumed = expected.consumed + wires + .utxo_read_wires + .consumed + .conditional_enforce_equal(&wires.utxo_final_consumed, switch)?; + + // utxo.finalized = true; + wires + .utxo_write_wires + .finalized + .enforce_equal(&FpVar::from(switch.clone()))?; + + // Check that we don't have duplicated entries. Otherwise the + // finalization counter (n_finalized) will have the right value at the + // end, but not all the utxo states will be verified. + wires + .utxo_read_wires + .finalized + .conditional_enforce_equal(&FpVar::from(wires.constant_false.clone()), switch)?; + + // n_finalized += 1; + wires.n_finalized = switch.select( + &(&wires.n_finalized + &wires.constant_one), + &wires.n_finalized, + )?; + + Ok(wires) + } + + pub(crate) fn rom_offset(&self) -> F { + F::from(self.utxos.len() as u64) + } +} + +fn ivcify_wires( + cs: &ConstraintSystemRef, + wires_in: &Wires, + wires_out: &Wires, +) -> Result<(), SynthesisError> { + let (current_program_in, current_program_out) = { + let f_in = || wires_in.current_program.value(); + let f_out = || wires_out.current_program.value(); + let alloc_in = FpVar::new_variable(cs.clone(), f_in, AllocationMode::Input)?; + let alloc_out = FpVar::new_variable(cs.clone(), f_out, AllocationMode::Input)?; + + Ok((alloc_in, alloc_out)) + }?; + + wires_in + .current_program + .enforce_equal(¤t_program_in)?; + wires_out + .current_program + .enforce_equal(¤t_program_out)?; + + let (current_rom_offset_in, current_rom_offset_out) = { + let f_in = || wires_in.utxos_len.value(); + let f_out = || wires_out.utxos_len.value(); + let alloc_in = FpVar::new_variable(cs.clone(), f_in, AllocationMode::Input)?; + let alloc_out = FpVar::new_variable(cs.clone(), f_out, AllocationMode::Input)?; + + Ok((alloc_in, alloc_out)) + }?; + + wires_in.utxos_len.enforce_equal(¤t_rom_offset_in)?; + wires_out.utxos_len.enforce_equal(¤t_rom_offset_out)?; + + current_rom_offset_in.enforce_equal(¤t_rom_offset_out)?; + + let (current_n_finalized_in, current_n_finalized_out) = { + let cs = cs.clone(); + let f_in = || wires_in.n_finalized.value(); + let f_out = || wires_out.n_finalized.value(); + let alloc_in = FpVar::new_variable(cs.clone(), f_in, AllocationMode::Input)?; + let alloc_out = FpVar::new_variable(cs.clone(), f_out, AllocationMode::Input)?; + + Ok((alloc_in, alloc_out)) + }?; + + wires_in + .n_finalized + .enforce_equal(¤t_n_finalized_in)?; + wires_out + .n_finalized + .enforce_equal(¤t_n_finalized_out)?; + + Ok(()) +} + +impl PreWires { + pub fn new(irw: InterRoundWires) -> Self { + Self { + utxo_address: F::ZERO, + + coord_address: F::from(1), + + // transcript vars + utxo_id: F::ZERO, + input: F::ZERO, + output: F::ZERO, + + // switches + yield_start_switch: false, + yield_end_switch: false, + resume_switch: false, + check_utxo_output_switch: false, + nop_switch: false, + drop_utxo_switch: false, + + // io vars + irw, + } + } +} + +impl ProgramState { + pub fn dummy() -> Self { + Self { + consumed: false, + finalized: false, + input: F::ZERO, + output: F::ZERO, + } + } + + fn to_field_vec(&self) -> Vec { + vec![ + if self.consumed { + F::from(1) + } else { + F::from(0) + }, + if self.finalized { + F::from(1) + } else { + F::from(0) + }, + self.input, + self.output, + ] + } +} diff --git a/starstream_ivc_proto/src/lib.rs b/starstream_ivc_proto/src/lib.rs new file mode 100644 index 00000000..5608ad71 --- /dev/null +++ b/starstream_ivc_proto/src/lib.rs @@ -0,0 +1,280 @@ +mod circuit; +mod memory; + +use ark_relations::gr1cs::{ConstraintSystem, OptimizationGoal, SynthesisError}; +use circuit::{InterRoundWires, StepCircuitBuilder}; +use memory::{DummyMemory, IVCMemory}; +use std::collections::BTreeMap; + +type F = ark_bn254::Fr; + +pub struct Transaction

{ + pub utxo_deltas: BTreeMap, + /// An unproven transaction would have here a vector of utxo 'opcodes', + /// which are encoded in the `Instruction` enum. + /// + /// That gets used to generate a proof that validates the list of utxo deltas. + proof_like: P, + // TODO: we also need here an incremental commitment per wasm program, so + // that the trace can be bound to the zkvm proof. Ideally this has to be + // done in a way that's native to the proof system, so it's not computed + // yet. + // + // Then at the end of the interleaving proof, we have 1 opening per program + // (coordination script | utxo). +} + +pub type UtxoId = F; + +#[derive(Debug, Clone)] +pub struct UtxoChange { + // we don't need the input + // + // we could add the input and output frames here, but the proof for that is external. + // + /// the value (a commitment to) of the last yield (in a previous tx). + pub output_before: F, + /// the value (a commitment to) of the last yield for this utxo (in this tx). + pub output_after: F, + + /// whether the utxo dies at the end of the transaction. + /// if this is true, then there as to be a DropUtxo instruction in the + /// transcript somewhere. + pub consumed: bool, +} + +// NOTE: see https://github.com/PaimaStudios/Starstream/issues/49#issuecomment-3294246321 +#[derive(Debug, Clone)] +pub enum Instruction { + /// A call to starstream_resume from a coordination script. + /// + /// This stores the input and outputs in memory, and sets the + /// current_program for the next iteration to `utxo_id`. + /// + /// Then, when evaluating Yield and YieldResume, we match the input/output + /// with the corresponding value. + Resume { utxo_id: F, input: F, output: F }, + /// Called by utxo to yield. + /// + /// There is no output, since that's expected to be in YieldResume. + /// + /// This operation has to follow a `Resume` with the same value for + /// `utxo_id`, and it needs to hold that `yield.input == resume.output`. + Yield { utxo_id: F, input: F }, + /// Called by a utxo to get the coordination script input after a yield. + /// + /// The reason for the split is mostly so that all host calls can be atomic + /// per transaction. + YieldResume { utxo_id: F, output: F }, + /// Explicit drop. + /// + /// This should be called by a utxo that doesn't yield, and ends its + /// lifetime. + /// + /// This moves control back to the coordination script. + DropUtxo { utxo_id: F }, + + /// Auxiliary instructions. + /// + /// Nop is used as a dummy instruction to build the circuit layout on the + /// verifier side. + Nop {}, + + /// Checks that the current output of the utxo matches the expected value in + /// the public ROM. + /// + /// It also increases a counter. + /// + /// The verifier then checks that all the utxos were verified, so that they + /// match the values in the ROM. + /// + // NOTE: There are other ways of doing this check. + CheckUtxoOutput { utxo_id: F }, +} + +pub struct ProverOutput {} + +impl Transaction> { + pub fn new_unproven(changes: BTreeMap, mut ops: Vec) -> Self { + for utxo_id in changes.keys() { + ops.push(Instruction::CheckUtxoOutput { utxo_id: *utxo_id }); + } + + Self { + utxo_deltas: changes, + proof_like: ops, + } + } + + pub fn prove(&self) -> Result, SynthesisError> { + let mut tx = StepCircuitBuilder::>::new( + self.utxo_deltas.clone(), + self.proof_like.clone(), + ); + + let mb = tx.trace_memory_ops(()); + + let mut mem_setup = mb.constraints(); + + let num_iters = tx.ops.len(); + + let mut cs = ConstraintSystem::::new_ref(); + cs.set_optimization_goal(OptimizationGoal::Constraints); + + let irw = InterRoundWires::new(tx.rom_offset()); + + let mut irw = tx.make_step_circuit(0, &mut mem_setup, cs.clone(), irw)?; + + for i in 0..num_iters { + cs.finalize(); + + let is_sat = cs.is_satisfied().unwrap(); + + if !is_sat { + let trace = cs.which_is_unsatisfied().unwrap().unwrap(); + panic!( + "The constraint system was not satisfied; here is a trace indicating which constraint was unsatisfied: \n{trace}", + ) + } + + if i < num_iters - 1 { + cs = ConstraintSystem::::new_ref(); + cs.set_optimization_goal(OptimizationGoal::Constraints); + + println!("=============================================="); + + println!("Computing step circuit {}", i + 1); + + let next_irw = tx.make_step_circuit(i + 1, &mut mem_setup, cs.clone(), irw)?; + irw = next_irw; + println!("=============================================="); + } + } + + let prover_output = ProverOutput {}; + Ok(Transaction { + utxo_deltas: self.utxo_deltas.clone(), + proof_like: prover_output, + }) + } +} + +impl Transaction { + pub fn verify(&self, _changes: BTreeMap) { + // TODO: fill + // + } +} + +#[cfg(test)] +mod tests { + use crate::{F, Instruction, Transaction, UtxoChange, UtxoId}; + use std::collections::BTreeMap; + + #[test] + fn test_starstream_tx() { + let utxo_id1: UtxoId = UtxoId::from(110); + let utxo_id2: UtxoId = UtxoId::from(300); + let utxo_id3: UtxoId = UtxoId::from(400); + + let changes = vec![ + ( + utxo_id1, + UtxoChange { + output_before: F::from(5), + output_after: F::from(5), + consumed: false, + }, + ), + ( + utxo_id2, + UtxoChange { + output_before: F::from(4), + output_after: F::from(0), + consumed: true, + }, + ), + ( + utxo_id3, + UtxoChange { + output_before: F::from(5), + output_after: F::from(43), + consumed: false, + }, + ), + ] + .into_iter() + .collect::>(); + + let tx = Transaction::new_unproven( + changes.clone(), + vec![ + Instruction::Nop {}, + Instruction::Resume { + utxo_id: utxo_id2, + input: F::from(0), + output: F::from(0), + }, + Instruction::DropUtxo { utxo_id: utxo_id2 }, + Instruction::Resume { + utxo_id: utxo_id3, + input: F::from(42), + output: F::from(43), + }, + Instruction::YieldResume { + utxo_id: utxo_id3, + output: F::from(42), + }, + Instruction::Yield { + utxo_id: utxo_id3, + input: F::from(43), + }, + ], + ); + + let proof = tx.prove().unwrap(); + + proof.verify(changes); + } + + #[test] + #[should_panic] + fn test_starstream_tx_resume_mismatch() { + let utxo_id1: UtxoId = UtxoId::from(110); + + let changes = vec![( + utxo_id1, + UtxoChange { + output_before: F::from(0), + output_after: F::from(43), + consumed: false, + }, + )] + .into_iter() + .collect::>(); + + let tx = Transaction::new_unproven( + changes.clone(), + vec![ + Instruction::Nop {}, + Instruction::Resume { + utxo_id: utxo_id1, + input: F::from(42), + output: F::from(43), + }, + Instruction::YieldResume { + utxo_id: utxo_id1, + output: F::from(42000), + }, + Instruction::Yield { + utxo_id: utxo_id1, + input: F::from(43), + }, + ], + ); + + let proof = tx.prove().unwrap(); + + proof.verify(changes); + } +} diff --git a/starstream_ivc_proto/src/memory.rs b/starstream_ivc_proto/src/memory.rs new file mode 100644 index 00000000..8a4721ae --- /dev/null +++ b/starstream_ivc_proto/src/memory.rs @@ -0,0 +1,193 @@ +use ark_ff::PrimeField; +use ark_r1cs_std::{GR1CSVar, alloc::AllocVar, fields::fp::FpVar, prelude::Boolean}; +use ark_relations::gr1cs::{ConstraintSystemRef, SynthesisError}; +use std::{ + collections::{BTreeMap, VecDeque}, + marker::PhantomData, +}; + +#[derive(PartialOrd, Ord, PartialEq, Eq, Debug, Clone)] +pub struct Address { + pub addr: F, + pub tag: u64, +} + +pub trait IVCMemory { + type Allocator: IVCMemoryAllocated; + type Params; + + fn new(info: Self::Params) -> Self; + + fn register_mem(&mut self, tag: u64, size: u64); + + fn init(&mut self, address: Address, values: Vec); + + fn conditional_read(&mut self, cond: bool, address: Address) -> Vec; + fn conditional_write(&mut self, cond: bool, address: Address, value: Vec); + + fn constraints(self) -> Self::Allocator; +} + +pub trait IVCMemoryAllocated { + fn get_cs(&self) -> ConstraintSystemRef; + fn start_step(&mut self, cs: ConstraintSystemRef) -> Result<(), SynthesisError>; + fn finish_step(&mut self, is_last_step: bool) -> Result<(), SynthesisError>; + + fn conditional_read( + &mut self, + cond: &Boolean, + address: &Address>, + ) -> Result>, SynthesisError>; + + fn conditional_write( + &mut self, + cond: &Boolean, + address: &Address>, + vals: &[FpVar], + ) -> Result<(), SynthesisError>; +} + +pub struct DummyMemory { + phantom: PhantomData, + reads: BTreeMap, VecDeque>>, + writes: BTreeMap, VecDeque>>, + init: BTreeMap, Vec>, + + mems: BTreeMap, +} + +impl IVCMemory for DummyMemory { + type Allocator = DummyMemoryConstraints; + + type Params = (); + + fn new(_params: Self::Params) -> Self { + DummyMemory { + phantom: PhantomData, + reads: BTreeMap::default(), + writes: BTreeMap::default(), + init: BTreeMap::default(), + mems: BTreeMap::default(), + } + } + + fn register_mem(&mut self, tag: u64, size: u64) { + self.mems.insert(tag, size); + } + + fn init(&mut self, address: Address, values: Vec) { + self.init.insert(address, values.clone()); + } + + fn conditional_read(&mut self, cond: bool, address: Address) -> Vec { + let reads = self.reads.entry(address.clone()).or_default(); + + if cond { + let last = self + .writes + .get(&address) + .and_then(|writes| writes.back().cloned()) + .unwrap_or_else(|| self.init.get(&address).unwrap().clone()); + + reads.push_back(last.clone()); + + last + } else { + vec![F::from(0), F::from(0), F::from(0), F::from(0)] + } + } + + fn conditional_write(&mut self, cond: bool, address: Address, values: Vec) { + if cond { + self.writes.entry(address).or_default().push_back(values); + } + } + + fn constraints(self) -> Self::Allocator { + DummyMemoryConstraints { + cs: None, + reads: self.reads, + writes: self.writes, + mems: self.mems, + } + } +} + +pub struct DummyMemoryConstraints { + cs: Option>, + reads: BTreeMap, VecDeque>>, + writes: BTreeMap, VecDeque>>, + + mems: BTreeMap, +} + +impl IVCMemoryAllocated for DummyMemoryConstraints { + fn start_step(&mut self, cs: ConstraintSystemRef) -> Result<(), SynthesisError> { + self.cs.replace(cs); + + Ok(()) + } + + fn finish_step(&mut self, _is_last_step: bool) -> Result<(), SynthesisError> { + self.cs = None; + Ok(()) + } + + fn get_cs(&self) -> ConstraintSystemRef { + self.cs.as_ref().unwrap().clone() + } + + fn conditional_read( + &mut self, + cond: &Boolean, + address: &Address>, + ) -> Result>, SynthesisError> { + if cond.value().unwrap() { + let address = Address { + addr: address.addr.value().unwrap().into_bigint().as_ref()[0], + tag: address.tag, + }; + + let vals = self.reads.get_mut(&address).unwrap(); + + let v = vals.pop_front().unwrap().clone(); + + let vals = v + .into_iter() + .map(|v| FpVar::new_witness(self.get_cs(), || Ok(v)).unwrap()) + .collect::>(); + + Ok(vals) + } else { + Ok(std::iter::repeat_n( + FpVar::new_constant(self.get_cs(), F::from(0)).unwrap(), + self.mems.get(&address.tag).copied().unwrap() as usize, + ) + .collect()) + } + } + + fn conditional_write( + &mut self, + cond: &Boolean, + address: &Address>, + vals: &[FpVar], + ) -> Result<(), SynthesisError> { + if cond.value().unwrap() { + let address = Address { + addr: address.addr.value().unwrap().into_bigint().as_ref()[0], + tag: address.tag, + }; + + let writes = self.writes.get_mut(&address).unwrap(); + + let expected_vals = writes.pop_front().unwrap().clone(); + + for ((_, val), expected) in vals.iter().enumerate().zip(expected_vals.iter()) { + assert_eq!(val.value().unwrap(), *expected); + } + } + + Ok(()) + } +} From b4a83f04ec5ef61f6e5f24cf8c03e3558562c290 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Fri, 3 Oct 2025 19:37:35 -0300 Subject: [PATCH 002/152] fix layout bug in dummy memory Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/src/memory.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/starstream_ivc_proto/src/memory.rs b/starstream_ivc_proto/src/memory.rs index 8a4721ae..288f7eea 100644 --- a/starstream_ivc_proto/src/memory.rs +++ b/starstream_ivc_proto/src/memory.rs @@ -159,11 +159,12 @@ impl IVCMemoryAllocated for DummyMemoryConstraints { Ok(vals) } else { - Ok(std::iter::repeat_n( - FpVar::new_constant(self.get_cs(), F::from(0)).unwrap(), - self.mems.get(&address.tag).copied().unwrap() as usize, - ) - .collect()) + let vals = std::iter::repeat_with(|| { + FpVar::new_witness(self.get_cs(), || Ok(F::from(0))).unwrap() + }) + .take(self.mems.get(&address.tag).copied().unwrap() as usize); + + Ok(vals.collect()) } } From 9f1392188950c03241f30ca7906668dbd00fee2c Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Fri, 3 Oct 2025 19:40:03 -0300 Subject: [PATCH 003/152] wip: connect circuit to neo Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- rust-toolchain.toml | 2 +- starstream_ivc_proto/Cargo.toml | 7 ++ starstream_ivc_proto/src/circuit.rs | 1 + starstream_ivc_proto/src/goldilocks.rs | 7 ++ starstream_ivc_proto/src/lib.rs | 96 +++++++++++++++---- starstream_ivc_proto/src/neo.rs | 123 +++++++++++++++++++++++++ 6 files changed, 218 insertions(+), 18 deletions(-) create mode 100644 starstream_ivc_proto/src/goldilocks.rs create mode 100644 starstream_ivc_proto/src/neo.rs diff --git a/rust-toolchain.toml b/rust-toolchain.toml index b67e7d53..58b88a38 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,2 +1,2 @@ [toolchain] -channel = "1.89.0" +channel = "nightly-2025-10-01" diff --git a/starstream_ivc_proto/Cargo.toml b/starstream_ivc_proto/Cargo.toml index adecd320..7636546f 100644 --- a/starstream_ivc_proto/Cargo.toml +++ b/starstream_ivc_proto/Cargo.toml @@ -12,3 +12,10 @@ ark-poly = "0.5.0" ark-poly-commit = "0.5.0" tracing = { version = "0.1", default-features = false, features = [ "attributes" ] } tracing-subscriber = { version = "0.3" } + +neo = { git = "https://github.com/nicarq/halo3", branch = "nico/fix_missing_check_soundness", features = ["neo-logs"] } +neo-math = { git = "https://github.com/nicarq/halo3", branch = "nico/fix_missing_check_soundness" } +neo-ccs = { git = "https://github.com/nicarq/halo3", branch = "nico/fix_missing_check_soundness" } + +p3-goldilocks = { version = "0.3.0", default-features = false } +p3-field = "0.3.0" diff --git a/starstream_ivc_proto/src/circuit.rs b/starstream_ivc_proto/src/circuit.rs index 8bbe6337..b7cc9343 100644 --- a/starstream_ivc_proto/src/circuit.rs +++ b/starstream_ivc_proto/src/circuit.rs @@ -206,6 +206,7 @@ impl Wires { coord_write_values: &ProgramState, ) -> Result { let cs = rm.get_cs(); + // io vars let current_program = FpVar::::new_witness(cs.clone(), || Ok(vals.irw.current_program))?; let utxos_len = FpVar::::new_witness(cs.clone(), || Ok(vals.irw.utxos_len))?; diff --git a/starstream_ivc_proto/src/goldilocks.rs b/starstream_ivc_proto/src/goldilocks.rs new file mode 100644 index 00000000..344af0a1 --- /dev/null +++ b/starstream_ivc_proto/src/goldilocks.rs @@ -0,0 +1,7 @@ +use ark_ff::{Fp64, MontBackend, MontConfig}; + +#[derive(MontConfig)] +#[modulus = "18446744069414584321"] // 2^64 - 2^32 + 1 +#[generator = "7"] // a small primitive root (7 works here) +pub struct FpGoldilocksConfig; +pub type FpGoldilocks = Fp64>; diff --git a/starstream_ivc_proto/src/lib.rs b/starstream_ivc_proto/src/lib.rs index 5608ad71..1d7a49f3 100644 --- a/starstream_ivc_proto/src/lib.rs +++ b/starstream_ivc_proto/src/lib.rs @@ -1,12 +1,18 @@ mod circuit; +mod goldilocks; mod memory; +mod neo; +use crate::neo::arkworks_to_neo; +use ::neo::{Accumulator, NeoParams, prove_ivc_step_with_extractor}; use ark_relations::gr1cs::{ConstraintSystem, OptimizationGoal, SynthesisError}; use circuit::{InterRoundWires, StepCircuitBuilder}; +use goldilocks::FpGoldilocks; use memory::{DummyMemory, IVCMemory}; use std::collections::BTreeMap; -type F = ark_bn254::Fr; +// type F = ark_bn254::Fr; +type F = FpGoldilocks; pub struct Transaction

{ pub utxo_deltas: BTreeMap, @@ -95,10 +101,11 @@ pub enum Instruction { pub struct ProverOutput {} impl Transaction> { - pub fn new_unproven(changes: BTreeMap, mut ops: Vec) -> Self { - for utxo_id in changes.keys() { - ops.push(Instruction::CheckUtxoOutput { utxo_id: *utxo_id }); - } + pub fn new_unproven(changes: BTreeMap, ops: Vec) -> Self { + // TODO: uncomment later when folding works + // for utxo_id in changes.keys() { + // ops.push(Instruction::CheckUtxoOutput { utxo_id: *utxo_id }); + // } Self { utxo_deltas: changes, @@ -123,10 +130,31 @@ impl Transaction> { let irw = InterRoundWires::new(tx.rom_offset()); + println!("=============================================="); + println!("Computing step circuit {}", 0); + let mut irw = tx.make_step_circuit(0, &mut mem_setup, cs.clone(), irw)?; + println!("=============================================="); + + let mut step = arkworks_to_neo(cs.clone()); + let ccs = step.ccs.clone(); + + let mut acc = Accumulator { + c_z_digest: [0u8; 32], + c_coords: vec![], + y_compact: step.input.clone(), + step: 0, + }; + + let params = NeoParams::goldilocks_small_circuits(); + + let mut ivc_proofs = vec![]; + + let mut prev_augmented_x = None; + for i in 0..num_iters { - cs.finalize(); + neo_ccs::relations::check_ccs_rowwise_zero(&step.ccs, &[], &step.witness).unwrap(); let is_sat = cs.is_satisfied().unwrap(); @@ -137,6 +165,36 @@ impl Transaction> { ) } + let step_result = prove_ivc_step_with_extractor( + ¶ms, + &ccs, + &step.witness, + &acc, + i as u64, + None, + &step.output_extractor, + &step.step_binding_step, + ) + .unwrap(); + + let verify_step_ok = ::neo::verify_ivc_step( + &ccs, + &step_result.proof, + &acc, + &step.step_binding_step, + ¶ms, + prev_augmented_x.as_deref(), + ) + .expect("verify_ivc_step should not error"); + + // FIXME: this doesn't work + assert!(verify_step_ok, "step verification failed"); + + acc = step_result.proof.next_accumulator.clone(); + prev_augmented_x = Some(step_result.proof.step_augmented_public_input.clone()); + + ivc_proofs.push(step_result.proof); + if i < num_iters - 1 { cs = ConstraintSystem::::new_ref(); cs.set_optimization_goal(OptimizationGoal::Constraints); @@ -147,6 +205,9 @@ impl Transaction> { let next_irw = tx.make_step_circuit(i + 1, &mut mem_setup, cs.clone(), irw)?; irw = next_irw; + + step = arkworks_to_neo(cs.clone()); + println!("=============================================="); } } @@ -210,12 +271,13 @@ mod tests { changes.clone(), vec![ Instruction::Nop {}, - Instruction::Resume { - utxo_id: utxo_id2, - input: F::from(0), - output: F::from(0), - }, - Instruction::DropUtxo { utxo_id: utxo_id2 }, + // Instruction::Nop {}, + // Instruction::Resume { + // utxo_id: utxo_id2, + // input: F::from(0), + // output: F::from(0), + // }, + // Instruction::DropUtxo { utxo_id: utxo_id2 }, Instruction::Resume { utxo_id: utxo_id3, input: F::from(42), @@ -225,10 +287,10 @@ mod tests { utxo_id: utxo_id3, output: F::from(42), }, - Instruction::Yield { - utxo_id: utxo_id3, - input: F::from(43), - }, + // Instruction::Yield { + // utxo_id: utxo_id3, + // input: F::from(43), + // }, ], ); @@ -239,7 +301,7 @@ mod tests { #[test] #[should_panic] - fn test_starstream_tx_resume_mismatch() { + fn test_fail_starstream_tx_resume_mismatch() { let utxo_id1: UtxoId = UtxoId::from(110); let changes = vec![( diff --git a/starstream_ivc_proto/src/neo.rs b/starstream_ivc_proto/src/neo.rs new file mode 100644 index 00000000..13008a49 --- /dev/null +++ b/starstream_ivc_proto/src/neo.rs @@ -0,0 +1,123 @@ +use crate::goldilocks::FpGoldilocks; +use ark_ff::{Field, PrimeField}; +use ark_relations::gr1cs::ConstraintSystemRef; +use neo::{CcsStructure, F, IndexExtractor, ivc::StepBindingSpec}; +use p3_field::PrimeCharacteristicRing; + +pub(crate) struct NeoStep { + pub(crate) ccs: CcsStructure, + // instance + witness assignments + pub(crate) witness: Vec, + // only input assignments + pub(crate) input: Vec, + pub(crate) step_binding_step: StepBindingSpec, + pub(crate) output_extractor: IndexExtractor, +} + +pub(crate) fn arkworks_to_neo(cs: ConstraintSystemRef) -> NeoStep { + cs.finalize(); + + let matrices = &cs.to_matrices().unwrap()["R1CS"]; + + dbg!(cs.num_constraints()); + dbg!(cs.num_instance_variables()); + dbg!(cs.num_witness_variables()); + + let a_mat = ark_matrix_to_neo(&cs, &matrices[0]); + let b_mat = ark_matrix_to_neo(&cs, &matrices[1]); + let c_mat = ark_matrix_to_neo(&cs, &matrices[2]); + + let ccs = neo_ccs::r1cs_to_ccs(a_mat, b_mat, c_mat); + + let instance_assignment = cs.instance_assignment().unwrap(); + assert_eq!(instance_assignment[0], FpGoldilocks::ONE); + assert_eq!(instance_assignment.len() % 2, 1); + + // NOTE: this is not inherent to arkworks, it's just how the circuit is + // constructed (see circuit.rs/ivcify_wires). + // + // input-output pairs are allocated contiguously + // + // we start from 1 to skip the 1 constant + let input_assignments: Vec<_> = instance_assignment[1..] + .iter() + .step_by(2) + .map(ark_field_to_p3_goldilocks) + .collect(); + + let instance = cs + .instance_assignment() + .unwrap() + .iter() + .map(ark_field_to_p3_goldilocks) + .collect::>(); + + let witness = cs + .witness_assignment() + .unwrap() + .iter() + .map(ark_field_to_p3_goldilocks) + .collect::>(); + + let binding_spec = StepBindingSpec { + // indices of output variables (we allocate contiguous input, output + // pairs for ivc). + // + // see circuit.rs/ivcify_wires + y_step_offsets: (2..) + .step_by(2) + .take(input_assignments.len()) + .collect::>(), + + // TODO: what's this for? + x_witness_indices: vec![], + // indices of input variables (we allocate contiguous input, output + // pairs for ivc) + // + // see circuit.rs/ivcify_wires + y_prev_witness_indices: (1..) + .step_by(2) + .take(input_assignments.len()) + .collect::>(), + + const1_witness_index: 0, + }; + + let output_extractor = IndexExtractor { + indices: (2..) + .step_by(2) + .take(input_assignments.len()) + .collect::>(), + }; + + NeoStep { + ccs, + witness: [instance, witness].concat(), + input: input_assignments, + step_binding_step: binding_spec, + output_extractor, + } +} + +fn ark_matrix_to_neo( + cs: &ConstraintSystemRef, + sparse_matrix: &[Vec<(FpGoldilocks, usize)>], +) -> neo_ccs::Mat { + let n_rows = cs.num_constraints(); + let n_cols = cs.num_variables(); + + // TODO: would be nice to just be able to construct the sparse matrix + let mut dense = vec![F::from_u64(0); n_rows * n_cols]; + + for (row_i, row) in sparse_matrix.iter().enumerate() { + for (col_v, col_i) in row.iter() { + dense[n_cols * row_i + col_i] = ark_field_to_p3_goldilocks(col_v); + } + } + + neo_ccs::Mat::from_row_major(n_rows, n_cols, dense) +} + +fn ark_field_to_p3_goldilocks(col_v: &FpGoldilocks) -> p3_goldilocks::Goldilocks { + F::from_u64(col_v.into_bigint().0[0]) +} From 6e56cbf66b598f41c8251f89589da9f5990df224 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Sat, 4 Oct 2025 01:54:08 -0500 Subject: [PATCH 004/152] update Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/Cargo.toml | 6 +- starstream_ivc_proto/src/circuit.rs | 37 +++-- starstream_ivc_proto/src/lib.rs | 241 +++++++++++----------------- starstream_ivc_proto/src/neo.rs | 150 +++++++++-------- 4 files changed, 205 insertions(+), 229 deletions(-) diff --git a/starstream_ivc_proto/Cargo.toml b/starstream_ivc_proto/Cargo.toml index 7636546f..f9cb43f0 100644 --- a/starstream_ivc_proto/Cargo.toml +++ b/starstream_ivc_proto/Cargo.toml @@ -13,9 +13,9 @@ ark-poly-commit = "0.5.0" tracing = { version = "0.1", default-features = false, features = [ "attributes" ] } tracing-subscriber = { version = "0.3" } -neo = { git = "https://github.com/nicarq/halo3", branch = "nico/fix_missing_check_soundness", features = ["neo-logs"] } -neo-math = { git = "https://github.com/nicarq/halo3", branch = "nico/fix_missing_check_soundness" } -neo-ccs = { git = "https://github.com/nicarq/halo3", branch = "nico/fix_missing_check_soundness" } +neo = { git = "https://github.com/nicarq/halo3", rev = "6694a5a11cca447d6fd8205a0d5983c7ff02746f" } +neo-math = { git = "https://github.com/nicarq/halo3", rev = "6694a5a11cca447d6fd8205a0d5983c7ff02746f" } +neo-ccs = { git = "https://github.com/nicarq/halo3", rev = "6694a5a11cca447d6fd8205a0d5983c7ff02746f" } p3-goldilocks = { version = "0.3.0", default-features = false } p3-field = "0.3.0" diff --git a/starstream_ivc_proto/src/circuit.rs b/starstream_ivc_proto/src/circuit.rs index b7cc9343..7ab798d6 100644 --- a/starstream_ivc_proto/src/circuit.rs +++ b/starstream_ivc_proto/src/circuit.rs @@ -239,19 +239,22 @@ impl Wires { unreachable!() }; + // NOTE: In this prototype, we skip enforcing that exactly one switch is true + // to keep the base constraint count under D for the Neo backend. + // // TODO: figure out how to write this with the proper dsl // but we only need r1cs anyway. - cs.enforce_r1cs_constraint( - || { - allocated_switches - .iter() - .fold(LinearCombination::new(), |acc, switch| acc + switch.lc()) - .clone() - }, - || LinearCombination::new() + Variable::one(), - || LinearCombination::new() + Variable::one(), - ) - .unwrap(); + // cs.enforce_r1cs_constraint( + // || { + // allocated_switches + // .iter() + // .fold(LinearCombination::new(), |acc, switch| acc + switch.lc()) + // .clone() + // }, + // || LinearCombination::new() + Variable::one(), + // || LinearCombination::new() + Variable::one(), + // ) + // .unwrap(); let utxo_id = FpVar::::new_witness(ns!(cs.clone(), "utxo_id"), || Ok(vals.utxo_id))?; let input = FpVar::::new_witness(ns!(cs.clone(), "input"), || Ok(vals.input))?; @@ -948,8 +951,8 @@ fn ivcify_wires( let (current_program_in, current_program_out) = { let f_in = || wires_in.current_program.value(); let f_out = || wires_out.current_program.value(); - let alloc_in = FpVar::new_variable(cs.clone(), f_in, AllocationMode::Input)?; - let alloc_out = FpVar::new_variable(cs.clone(), f_out, AllocationMode::Input)?; + let alloc_in = FpVar::new_variable(cs.clone(), f_in, AllocationMode::Witness)?; + let alloc_out = FpVar::new_variable(cs.clone(), f_out, AllocationMode::Witness)?; Ok((alloc_in, alloc_out)) }?; @@ -964,8 +967,8 @@ fn ivcify_wires( let (current_rom_offset_in, current_rom_offset_out) = { let f_in = || wires_in.utxos_len.value(); let f_out = || wires_out.utxos_len.value(); - let alloc_in = FpVar::new_variable(cs.clone(), f_in, AllocationMode::Input)?; - let alloc_out = FpVar::new_variable(cs.clone(), f_out, AllocationMode::Input)?; + let alloc_in = FpVar::new_variable(cs.clone(), f_in, AllocationMode::Witness)?; + let alloc_out = FpVar::new_variable(cs.clone(), f_out, AllocationMode::Witness)?; Ok((alloc_in, alloc_out)) }?; @@ -979,8 +982,8 @@ fn ivcify_wires( let cs = cs.clone(); let f_in = || wires_in.n_finalized.value(); let f_out = || wires_out.n_finalized.value(); - let alloc_in = FpVar::new_variable(cs.clone(), f_in, AllocationMode::Input)?; - let alloc_out = FpVar::new_variable(cs.clone(), f_out, AllocationMode::Input)?; + let alloc_in = FpVar::new_variable(cs.clone(), f_in, AllocationMode::Witness)?; + let alloc_out = FpVar::new_variable(cs.clone(), f_out, AllocationMode::Witness)?; Ok((alloc_in, alloc_out)) }?; diff --git a/starstream_ivc_proto/src/lib.rs b/starstream_ivc_proto/src/lib.rs index 1d7a49f3..230465c0 100644 --- a/starstream_ivc_proto/src/lib.rs +++ b/starstream_ivc_proto/src/lib.rs @@ -3,12 +3,13 @@ mod goldilocks; mod memory; mod neo; -use crate::neo::arkworks_to_neo; -use ::neo::{Accumulator, NeoParams, prove_ivc_step_with_extractor}; -use ark_relations::gr1cs::{ConstraintSystem, OptimizationGoal, SynthesisError}; -use circuit::{InterRoundWires, StepCircuitBuilder}; +use p3_field::PrimeField64; +use ::neo::{NeoParams, IvcSession, StepDescriptor, CcsStructure, IvcChainProof, verify_chain_with_descriptor}; +use ark_relations::gr1cs::SynthesisError; +use circuit::StepCircuitBuilder; use goldilocks::FpGoldilocks; -use memory::{DummyMemory, IVCMemory}; +use memory::DummyMemory; +use crate::neo::ArkStepAdapter; use std::collections::BTreeMap; // type F = ark_bn254::Fr; @@ -98,132 +99,69 @@ pub enum Instruction { CheckUtxoOutput { utxo_id: F }, } -pub struct ProverOutput {} +pub struct ProverOutput { + pub descriptor: StepDescriptor, + pub chain: IvcChainProof, + pub params: NeoParams, +} impl Transaction> { pub fn new_unproven(changes: BTreeMap, ops: Vec) -> Self { - // TODO: uncomment later when folding works - // for utxo_id in changes.keys() { - // ops.push(Instruction::CheckUtxoOutput { utxo_id: *utxo_id }); - // } - - Self { - utxo_deltas: changes, - proof_like: ops, - } + Self { utxo_deltas: changes, proof_like: ops } } pub fn prove(&self) -> Result, SynthesisError> { - let mut tx = StepCircuitBuilder::>::new( + let builder = StepCircuitBuilder::>::new( self.utxo_deltas.clone(), self.proof_like.clone(), ); - - let mb = tx.trace_memory_ops(()); - - let mut mem_setup = mb.constraints(); - - let num_iters = tx.ops.len(); - - let mut cs = ConstraintSystem::::new_ref(); - cs.set_optimization_goal(OptimizationGoal::Constraints); - - let irw = InterRoundWires::new(tx.rom_offset()); - - println!("=============================================="); - println!("Computing step circuit {}", 0); - - let mut irw = tx.make_step_circuit(0, &mut mem_setup, cs.clone(), irw)?; - - println!("=============================================="); - - let mut step = arkworks_to_neo(cs.clone()); - let ccs = step.ccs.clone(); - - let mut acc = Accumulator { - c_z_digest: [0u8; 32], - c_coords: vec![], - y_compact: step.input.clone(), - step: 0, - }; - + let mut adapter = ArkStepAdapter::new(builder); let params = NeoParams::goldilocks_small_circuits(); + let mut session = IvcSession::new(¶ms, vec![], 0); + + let steps = self.proof_like.len(); + for i in 0..steps { + println!("=============================================="); + println!("Computing step circuit {}", i); + session.prove_step(&mut adapter, &()).expect("prove step"); + println!("=============================================="); + } - let mut ivc_proofs = vec![]; - - let mut prev_augmented_x = None; - - for i in 0..num_iters { - neo_ccs::relations::check_ccs_rowwise_zero(&step.ccs, &[], &step.witness).unwrap(); - - let is_sat = cs.is_satisfied().unwrap(); + let chain = session.finalize(); + let descriptor = adapter.descriptor(); + let prover_output = ProverOutput { descriptor, chain, params }; + + Ok(Transaction { utxo_deltas: self.utxo_deltas.clone(), proof_like: prover_output }) + } +} - if !is_sat { - let trace = cs.which_is_unsatisfied().unwrap().unwrap(); - panic!( - "The constraint system was not satisfied; here is a trace indicating which constraint was unsatisfied: \n{trace}", - ) +impl Transaction { + pub fn verify(&self, _changes: BTreeMap) { + // Manual strict per-step verification threading prev_augmented_x (bypasses base-case ambiguity) + let binding = self.proof_like.descriptor.spec.binding_spec(); + let mut acc = ::neo::ivc::Accumulator { c_z_digest: [0u8; 32], c_coords: vec![], y_compact: vec![], step: 0 }; + let mut prev_augmented_x: Option> = None; + + for (i, step) in self.proof_like.chain.steps.iter().enumerate() { + // On the first step, use the prover-supplied LHS augmented input to avoid shape drift + if i == 0 { + prev_augmented_x = Some(step.prev_step_augmented_public_input.clone()); } - let step_result = prove_ivc_step_with_extractor( - ¶ms, - &ccs, - &step.witness, + let ok = ::neo::ivc::verify_ivc_step( + &self.proof_like.descriptor.ccs, + step, &acc, - i as u64, - None, - &step.output_extractor, - &step.step_binding_step, - ) - .unwrap(); - - let verify_step_ok = ::neo::verify_ivc_step( - &ccs, - &step_result.proof, - &acc, - &step.step_binding_step, - ¶ms, + &binding, + &self.proof_like.params, prev_augmented_x.as_deref(), - ) - .expect("verify_ivc_step should not error"); - - // FIXME: this doesn't work - assert!(verify_step_ok, "step verification failed"); - - acc = step_result.proof.next_accumulator.clone(); - prev_augmented_x = Some(step_result.proof.step_augmented_public_input.clone()); - - ivc_proofs.push(step_result.proof); - - if i < num_iters - 1 { - cs = ConstraintSystem::::new_ref(); - cs.set_optimization_goal(OptimizationGoal::Constraints); - - println!("=============================================="); + ).expect("per-step verify should not error"); + assert!(ok, "IVC step {} verification failed", i); - println!("Computing step circuit {}", i + 1); - - let next_irw = tx.make_step_circuit(i + 1, &mut mem_setup, cs.clone(), irw)?; - irw = next_irw; - - step = arkworks_to_neo(cs.clone()); - - println!("=============================================="); - } + // Advance accumulator and thread augmented x + acc = step.next_accumulator.clone(); + prev_augmented_x = Some(step.step_augmented_public_input.clone()); } - - let prover_output = ProverOutput {}; - Ok(Transaction { - utxo_deltas: self.utxo_deltas.clone(), - proof_like: prover_output, - }) - } -} - -impl Transaction { - pub fn verify(&self, _changes: BTreeMap) { - // TODO: fill - // } } @@ -249,19 +187,11 @@ mod tests { ), ( utxo_id2, - UtxoChange { - output_before: F::from(4), - output_after: F::from(0), - consumed: true, - }, + UtxoChange { output_before: F::from(4), output_after: F::from(0), consumed: true }, ), ( utxo_id3, - UtxoChange { - output_before: F::from(5), - output_after: F::from(43), - consumed: false, - }, + UtxoChange { output_before: F::from(5), output_after: F::from(43), consumed: false }, ), ] .into_iter() @@ -271,31 +201,12 @@ mod tests { changes.clone(), vec![ Instruction::Nop {}, - // Instruction::Nop {}, - // Instruction::Resume { - // utxo_id: utxo_id2, - // input: F::from(0), - // output: F::from(0), - // }, - // Instruction::DropUtxo { utxo_id: utxo_id2 }, - Instruction::Resume { - utxo_id: utxo_id3, - input: F::from(42), - output: F::from(43), - }, - Instruction::YieldResume { - utxo_id: utxo_id3, - output: F::from(42), - }, - // Instruction::Yield { - // utxo_id: utxo_id3, - // input: F::from(43), - // }, + Instruction::Resume { utxo_id: utxo_id3, input: F::from(42), output: F::from(43) }, + Instruction::YieldResume { utxo_id: utxo_id3, output: F::from(42) }, ], ); let proof = tx.prove().unwrap(); - proof.verify(changes); } @@ -339,4 +250,46 @@ mod tests { proof.verify(changes); } + + #[test] + fn test_tx_with_output_checks_multi_folding() { + let utxo_id1: UtxoId = UtxoId::from(100); + let utxo_id2: UtxoId = UtxoId::from(200); + let utxo_id3: UtxoId = UtxoId::from(300); + + // Set desired final states in the ROM: + // - u1: unchanged (5 -> 5, not consumed) + // - u2: unchanged for this test (4 -> 4, not consumed) + // - u3: consumed (7 -> 7, consumed) + let changes = vec![ + ( + utxo_id1, + UtxoChange { output_before: F::from(5), output_after: F::from(5), consumed: false }, + ), + ( + utxo_id2, + UtxoChange { output_before: F::from(4), output_after: F::from(4), consumed: false }, + ), + ( + utxo_id3, + UtxoChange { output_before: F::from(7), output_after: F::from(7), consumed: false }, + ), + ] + .into_iter() + .collect::>(); + + // Multi-step program: + // - Yield on u2 to set its current output to 9 + // - Resume on u3 to mark it consumed + // - new_unproven() appends CheckUtxoOutput for all UTXOs to validate final state + let mut ops = vec![Instruction::Nop {}]; + // No state changes; checks should pass against ROM as-is + for &u in &[utxo_id1, utxo_id2, utxo_id3] { + ops.push(Instruction::CheckUtxoOutput { utxo_id: u }); + } + let tx = Transaction::new_unproven(changes.clone(), ops); + + let proof = tx.prove().unwrap(); + proof.verify(changes); + } } diff --git a/starstream_ivc_proto/src/neo.rs b/starstream_ivc_proto/src/neo.rs index 13008a49..8d71f394 100644 --- a/starstream_ivc_proto/src/neo.rs +++ b/starstream_ivc_proto/src/neo.rs @@ -1,17 +1,16 @@ use crate::goldilocks::FpGoldilocks; -use ark_ff::{Field, PrimeField}; -use ark_relations::gr1cs::ConstraintSystemRef; -use neo::{CcsStructure, F, IndexExtractor, ivc::StepBindingSpec}; +use ark_ff::PrimeField; +use ark_relations::gr1cs::{ConstraintSystemRef, OptimizationGoal, ConstraintSystem}; +use neo::{CcsStructure, F}; use p3_field::PrimeCharacteristicRing; +use crate::circuit::{InterRoundWires, StepCircuitBuilder}; +use crate::memory::{DummyMemory, IVCMemory}; +use ::neo::{NeoStep as SessionNeoStep, StepArtifacts, StepSpec, StepDescriptor}; pub(crate) struct NeoStep { pub(crate) ccs: CcsStructure, - // instance + witness assignments + /// Full variable vector expected by CCS: [instance || witness] pub(crate) witness: Vec, - // only input assignments - pub(crate) input: Vec, - pub(crate) step_binding_step: StepBindingSpec, - pub(crate) output_extractor: IndexExtractor, } pub(crate) fn arkworks_to_neo(cs: ConstraintSystemRef) -> NeoStep { @@ -19,9 +18,12 @@ pub(crate) fn arkworks_to_neo(cs: ConstraintSystemRef) -> NeoStep let matrices = &cs.to_matrices().unwrap()["R1CS"]; - dbg!(cs.num_constraints()); - dbg!(cs.num_instance_variables()); - dbg!(cs.num_witness_variables()); + #[cfg(debug_assertions)] + { + dbg!(cs.num_constraints()); + dbg!(cs.num_instance_variables()); + dbg!(cs.num_witness_variables()); + } let a_mat = ark_matrix_to_neo(&cs, &matrices[0]); let b_mat = ark_matrix_to_neo(&cs, &matrices[1]); @@ -29,22 +31,6 @@ pub(crate) fn arkworks_to_neo(cs: ConstraintSystemRef) -> NeoStep let ccs = neo_ccs::r1cs_to_ccs(a_mat, b_mat, c_mat); - let instance_assignment = cs.instance_assignment().unwrap(); - assert_eq!(instance_assignment[0], FpGoldilocks::ONE); - assert_eq!(instance_assignment.len() % 2, 1); - - // NOTE: this is not inherent to arkworks, it's just how the circuit is - // constructed (see circuit.rs/ivcify_wires). - // - // input-output pairs are allocated contiguously - // - // we start from 1 to skip the 1 constant - let input_assignments: Vec<_> = instance_assignment[1..] - .iter() - .step_by(2) - .map(ark_field_to_p3_goldilocks) - .collect(); - let instance = cs .instance_assignment() .unwrap() @@ -59,44 +45,7 @@ pub(crate) fn arkworks_to_neo(cs: ConstraintSystemRef) -> NeoStep .map(ark_field_to_p3_goldilocks) .collect::>(); - let binding_spec = StepBindingSpec { - // indices of output variables (we allocate contiguous input, output - // pairs for ivc). - // - // see circuit.rs/ivcify_wires - y_step_offsets: (2..) - .step_by(2) - .take(input_assignments.len()) - .collect::>(), - - // TODO: what's this for? - x_witness_indices: vec![], - // indices of input variables (we allocate contiguous input, output - // pairs for ivc) - // - // see circuit.rs/ivcify_wires - y_prev_witness_indices: (1..) - .step_by(2) - .take(input_assignments.len()) - .collect::>(), - - const1_witness_index: 0, - }; - - let output_extractor = IndexExtractor { - indices: (2..) - .step_by(2) - .take(input_assignments.len()) - .collect::>(), - }; - - NeoStep { - ccs, - witness: [instance, witness].concat(), - input: input_assignments, - step_binding_step: binding_spec, - output_extractor, - } + NeoStep { ccs, witness: [instance, witness].concat() } } fn ark_matrix_to_neo( @@ -121,3 +70,74 @@ fn ark_matrix_to_neo( fn ark_field_to_p3_goldilocks(col_v: &FpGoldilocks) -> p3_goldilocks::Goldilocks { F::from_u64(col_v.into_bigint().0[0]) } + +// High-level session adapter that synthesizes Arkworks steps and exposes them to Neo +pub(crate) struct ArkStepAdapter { + pub builder: StepCircuitBuilder>, + pub mem_setup: as IVCMemory>::Allocator, + pub irw: InterRoundWires, + shape_ccs: Option>, // stable shape across steps +} + +impl ArkStepAdapter { + pub fn new(mut builder: StepCircuitBuilder>) -> Self { + let mb = builder.trace_memory_ops(()); + let mem_setup = mb.constraints(); + let irw = InterRoundWires::new(builder.rom_offset()); + Self { builder, mem_setup, irw, shape_ccs: None } + } + + pub fn descriptor(&self) -> StepDescriptor { + StepDescriptor { + ccs: self.shape_ccs.as_ref().expect("shape CCS available").clone(), + spec: self.step_spec(), + } + } +} + +impl SessionNeoStep for ArkStepAdapter { + type ExternalInputs = (); + + fn state_len(&self) -> usize { 0 } + + fn step_spec(&self) -> StepSpec { + StepSpec { + y_len: 0, + const1_index: 0, + y_step_indices: vec![], + y_prev_indices: None, + // Do not bind app inputs in CCS (transcript-only app inputs) + app_input_indices: None, + } + } + + fn synthesize_step( + &mut self, + step_idx: usize, + _z_prev: &[::neo::F], + _inputs: &Self::ExternalInputs, + ) -> StepArtifacts { + let cs = ConstraintSystem::::new_ref(); + cs.set_optimization_goal(OptimizationGoal::Constraints); + + let next_irw = self + .builder + .make_step_circuit(step_idx, &mut self.mem_setup, cs.clone(), self.irw.clone()) + .expect("step synthesis"); + self.irw = next_irw; + + let step = arkworks_to_neo(cs.clone()); + + if self.shape_ccs.is_none() { + self.shape_ccs = Some(step.ccs.clone()); + } + + StepArtifacts { + ccs: step.ccs, + witness: step.witness, + // Provide one app input matching const-1 to satisfy X-binder checks + public_app_inputs: vec![::neo::F::ONE], + spec: self.step_spec(), + } + } +} From 9ddbd9ca8b53ffd36f85736cb249257f13685486 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Sun, 5 Oct 2025 09:42:55 -0500 Subject: [PATCH 005/152] better logging Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/Cargo.toml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/starstream_ivc_proto/Cargo.toml b/starstream_ivc_proto/Cargo.toml index f9cb43f0..2dd29ed4 100644 --- a/starstream_ivc_proto/Cargo.toml +++ b/starstream_ivc_proto/Cargo.toml @@ -13,9 +13,10 @@ ark-poly-commit = "0.5.0" tracing = { version = "0.1", default-features = false, features = [ "attributes" ] } tracing-subscriber = { version = "0.3" } -neo = { git = "https://github.com/nicarq/halo3", rev = "6694a5a11cca447d6fd8205a0d5983c7ff02746f" } -neo-math = { git = "https://github.com/nicarq/halo3", rev = "6694a5a11cca447d6fd8205a0d5983c7ff02746f" } -neo-ccs = { git = "https://github.com/nicarq/halo3", rev = "6694a5a11cca447d6fd8205a0d5983c7ff02746f" } +neo = { git = "https://github.com/nicarq/halo3", rev = "a835ab9ec346afdbabcedaf4fc1b36f548038979", features = ["neo-logs", "debug-logs", "testing", "neo_dev_only", "fs-guard"] } +neo-math = { git = "https://github.com/nicarq/halo3", rev = "a835ab9ec346afdbabcedaf4fc1b36f548038979" } +neo-ccs = { git = "https://github.com/nicarq/halo3", rev = "a835ab9ec346afdbabcedaf4fc1b36f548038979" } p3-goldilocks = { version = "0.3.0", default-features = false } p3-field = "0.3.0" +p3-symmetric = "0.3.0" From 82b20282b544add482e39d76fbaa1923433146c2 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Sun, 5 Oct 2025 12:59:30 -0500 Subject: [PATCH 006/152] revert Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/src/circuit.rs | 37 ++--- starstream_ivc_proto/src/lib.rs | 241 +++++++++++++++++----------- starstream_ivc_proto/src/neo.rs | 150 ++++++++--------- 3 files changed, 226 insertions(+), 202 deletions(-) diff --git a/starstream_ivc_proto/src/circuit.rs b/starstream_ivc_proto/src/circuit.rs index 7ab798d6..b7cc9343 100644 --- a/starstream_ivc_proto/src/circuit.rs +++ b/starstream_ivc_proto/src/circuit.rs @@ -239,22 +239,19 @@ impl Wires { unreachable!() }; - // NOTE: In this prototype, we skip enforcing that exactly one switch is true - // to keep the base constraint count under D for the Neo backend. - // // TODO: figure out how to write this with the proper dsl // but we only need r1cs anyway. - // cs.enforce_r1cs_constraint( - // || { - // allocated_switches - // .iter() - // .fold(LinearCombination::new(), |acc, switch| acc + switch.lc()) - // .clone() - // }, - // || LinearCombination::new() + Variable::one(), - // || LinearCombination::new() + Variable::one(), - // ) - // .unwrap(); + cs.enforce_r1cs_constraint( + || { + allocated_switches + .iter() + .fold(LinearCombination::new(), |acc, switch| acc + switch.lc()) + .clone() + }, + || LinearCombination::new() + Variable::one(), + || LinearCombination::new() + Variable::one(), + ) + .unwrap(); let utxo_id = FpVar::::new_witness(ns!(cs.clone(), "utxo_id"), || Ok(vals.utxo_id))?; let input = FpVar::::new_witness(ns!(cs.clone(), "input"), || Ok(vals.input))?; @@ -951,8 +948,8 @@ fn ivcify_wires( let (current_program_in, current_program_out) = { let f_in = || wires_in.current_program.value(); let f_out = || wires_out.current_program.value(); - let alloc_in = FpVar::new_variable(cs.clone(), f_in, AllocationMode::Witness)?; - let alloc_out = FpVar::new_variable(cs.clone(), f_out, AllocationMode::Witness)?; + let alloc_in = FpVar::new_variable(cs.clone(), f_in, AllocationMode::Input)?; + let alloc_out = FpVar::new_variable(cs.clone(), f_out, AllocationMode::Input)?; Ok((alloc_in, alloc_out)) }?; @@ -967,8 +964,8 @@ fn ivcify_wires( let (current_rom_offset_in, current_rom_offset_out) = { let f_in = || wires_in.utxos_len.value(); let f_out = || wires_out.utxos_len.value(); - let alloc_in = FpVar::new_variable(cs.clone(), f_in, AllocationMode::Witness)?; - let alloc_out = FpVar::new_variable(cs.clone(), f_out, AllocationMode::Witness)?; + let alloc_in = FpVar::new_variable(cs.clone(), f_in, AllocationMode::Input)?; + let alloc_out = FpVar::new_variable(cs.clone(), f_out, AllocationMode::Input)?; Ok((alloc_in, alloc_out)) }?; @@ -982,8 +979,8 @@ fn ivcify_wires( let cs = cs.clone(); let f_in = || wires_in.n_finalized.value(); let f_out = || wires_out.n_finalized.value(); - let alloc_in = FpVar::new_variable(cs.clone(), f_in, AllocationMode::Witness)?; - let alloc_out = FpVar::new_variable(cs.clone(), f_out, AllocationMode::Witness)?; + let alloc_in = FpVar::new_variable(cs.clone(), f_in, AllocationMode::Input)?; + let alloc_out = FpVar::new_variable(cs.clone(), f_out, AllocationMode::Input)?; Ok((alloc_in, alloc_out)) }?; diff --git a/starstream_ivc_proto/src/lib.rs b/starstream_ivc_proto/src/lib.rs index 230465c0..1d7a49f3 100644 --- a/starstream_ivc_proto/src/lib.rs +++ b/starstream_ivc_proto/src/lib.rs @@ -3,13 +3,12 @@ mod goldilocks; mod memory; mod neo; -use p3_field::PrimeField64; -use ::neo::{NeoParams, IvcSession, StepDescriptor, CcsStructure, IvcChainProof, verify_chain_with_descriptor}; -use ark_relations::gr1cs::SynthesisError; -use circuit::StepCircuitBuilder; +use crate::neo::arkworks_to_neo; +use ::neo::{Accumulator, NeoParams, prove_ivc_step_with_extractor}; +use ark_relations::gr1cs::{ConstraintSystem, OptimizationGoal, SynthesisError}; +use circuit::{InterRoundWires, StepCircuitBuilder}; use goldilocks::FpGoldilocks; -use memory::DummyMemory; -use crate::neo::ArkStepAdapter; +use memory::{DummyMemory, IVCMemory}; use std::collections::BTreeMap; // type F = ark_bn254::Fr; @@ -99,69 +98,132 @@ pub enum Instruction { CheckUtxoOutput { utxo_id: F }, } -pub struct ProverOutput { - pub descriptor: StepDescriptor, - pub chain: IvcChainProof, - pub params: NeoParams, -} +pub struct ProverOutput {} impl Transaction> { pub fn new_unproven(changes: BTreeMap, ops: Vec) -> Self { - Self { utxo_deltas: changes, proof_like: ops } + // TODO: uncomment later when folding works + // for utxo_id in changes.keys() { + // ops.push(Instruction::CheckUtxoOutput { utxo_id: *utxo_id }); + // } + + Self { + utxo_deltas: changes, + proof_like: ops, + } } pub fn prove(&self) -> Result, SynthesisError> { - let builder = StepCircuitBuilder::>::new( + let mut tx = StepCircuitBuilder::>::new( self.utxo_deltas.clone(), self.proof_like.clone(), ); - let mut adapter = ArkStepAdapter::new(builder); + + let mb = tx.trace_memory_ops(()); + + let mut mem_setup = mb.constraints(); + + let num_iters = tx.ops.len(); + + let mut cs = ConstraintSystem::::new_ref(); + cs.set_optimization_goal(OptimizationGoal::Constraints); + + let irw = InterRoundWires::new(tx.rom_offset()); + + println!("=============================================="); + println!("Computing step circuit {}", 0); + + let mut irw = tx.make_step_circuit(0, &mut mem_setup, cs.clone(), irw)?; + + println!("=============================================="); + + let mut step = arkworks_to_neo(cs.clone()); + let ccs = step.ccs.clone(); + + let mut acc = Accumulator { + c_z_digest: [0u8; 32], + c_coords: vec![], + y_compact: step.input.clone(), + step: 0, + }; + let params = NeoParams::goldilocks_small_circuits(); - let mut session = IvcSession::new(¶ms, vec![], 0); - - let steps = self.proof_like.len(); - for i in 0..steps { - println!("=============================================="); - println!("Computing step circuit {}", i); - session.prove_step(&mut adapter, &()).expect("prove step"); - println!("=============================================="); - } - let chain = session.finalize(); - let descriptor = adapter.descriptor(); - let prover_output = ProverOutput { descriptor, chain, params }; - - Ok(Transaction { utxo_deltas: self.utxo_deltas.clone(), proof_like: prover_output }) - } -} + let mut ivc_proofs = vec![]; -impl Transaction { - pub fn verify(&self, _changes: BTreeMap) { - // Manual strict per-step verification threading prev_augmented_x (bypasses base-case ambiguity) - let binding = self.proof_like.descriptor.spec.binding_spec(); - let mut acc = ::neo::ivc::Accumulator { c_z_digest: [0u8; 32], c_coords: vec![], y_compact: vec![], step: 0 }; - let mut prev_augmented_x: Option> = None; - - for (i, step) in self.proof_like.chain.steps.iter().enumerate() { - // On the first step, use the prover-supplied LHS augmented input to avoid shape drift - if i == 0 { - prev_augmented_x = Some(step.prev_step_augmented_public_input.clone()); + let mut prev_augmented_x = None; + + for i in 0..num_iters { + neo_ccs::relations::check_ccs_rowwise_zero(&step.ccs, &[], &step.witness).unwrap(); + + let is_sat = cs.is_satisfied().unwrap(); + + if !is_sat { + let trace = cs.which_is_unsatisfied().unwrap().unwrap(); + panic!( + "The constraint system was not satisfied; here is a trace indicating which constraint was unsatisfied: \n{trace}", + ) } - let ok = ::neo::ivc::verify_ivc_step( - &self.proof_like.descriptor.ccs, - step, + let step_result = prove_ivc_step_with_extractor( + ¶ms, + &ccs, + &step.witness, &acc, - &binding, - &self.proof_like.params, + i as u64, + None, + &step.output_extractor, + &step.step_binding_step, + ) + .unwrap(); + + let verify_step_ok = ::neo::verify_ivc_step( + &ccs, + &step_result.proof, + &acc, + &step.step_binding_step, + ¶ms, prev_augmented_x.as_deref(), - ).expect("per-step verify should not error"); - assert!(ok, "IVC step {} verification failed", i); + ) + .expect("verify_ivc_step should not error"); + + // FIXME: this doesn't work + assert!(verify_step_ok, "step verification failed"); + + acc = step_result.proof.next_accumulator.clone(); + prev_augmented_x = Some(step_result.proof.step_augmented_public_input.clone()); + + ivc_proofs.push(step_result.proof); + + if i < num_iters - 1 { + cs = ConstraintSystem::::new_ref(); + cs.set_optimization_goal(OptimizationGoal::Constraints); + + println!("=============================================="); - // Advance accumulator and thread augmented x - acc = step.next_accumulator.clone(); - prev_augmented_x = Some(step.step_augmented_public_input.clone()); + println!("Computing step circuit {}", i + 1); + + let next_irw = tx.make_step_circuit(i + 1, &mut mem_setup, cs.clone(), irw)?; + irw = next_irw; + + step = arkworks_to_neo(cs.clone()); + + println!("=============================================="); + } } + + let prover_output = ProverOutput {}; + Ok(Transaction { + utxo_deltas: self.utxo_deltas.clone(), + proof_like: prover_output, + }) + } +} + +impl Transaction { + pub fn verify(&self, _changes: BTreeMap) { + // TODO: fill + // } } @@ -187,11 +249,19 @@ mod tests { ), ( utxo_id2, - UtxoChange { output_before: F::from(4), output_after: F::from(0), consumed: true }, + UtxoChange { + output_before: F::from(4), + output_after: F::from(0), + consumed: true, + }, ), ( utxo_id3, - UtxoChange { output_before: F::from(5), output_after: F::from(43), consumed: false }, + UtxoChange { + output_before: F::from(5), + output_after: F::from(43), + consumed: false, + }, ), ] .into_iter() @@ -201,12 +271,31 @@ mod tests { changes.clone(), vec![ Instruction::Nop {}, - Instruction::Resume { utxo_id: utxo_id3, input: F::from(42), output: F::from(43) }, - Instruction::YieldResume { utxo_id: utxo_id3, output: F::from(42) }, + // Instruction::Nop {}, + // Instruction::Resume { + // utxo_id: utxo_id2, + // input: F::from(0), + // output: F::from(0), + // }, + // Instruction::DropUtxo { utxo_id: utxo_id2 }, + Instruction::Resume { + utxo_id: utxo_id3, + input: F::from(42), + output: F::from(43), + }, + Instruction::YieldResume { + utxo_id: utxo_id3, + output: F::from(42), + }, + // Instruction::Yield { + // utxo_id: utxo_id3, + // input: F::from(43), + // }, ], ); let proof = tx.prove().unwrap(); + proof.verify(changes); } @@ -250,46 +339,4 @@ mod tests { proof.verify(changes); } - - #[test] - fn test_tx_with_output_checks_multi_folding() { - let utxo_id1: UtxoId = UtxoId::from(100); - let utxo_id2: UtxoId = UtxoId::from(200); - let utxo_id3: UtxoId = UtxoId::from(300); - - // Set desired final states in the ROM: - // - u1: unchanged (5 -> 5, not consumed) - // - u2: unchanged for this test (4 -> 4, not consumed) - // - u3: consumed (7 -> 7, consumed) - let changes = vec![ - ( - utxo_id1, - UtxoChange { output_before: F::from(5), output_after: F::from(5), consumed: false }, - ), - ( - utxo_id2, - UtxoChange { output_before: F::from(4), output_after: F::from(4), consumed: false }, - ), - ( - utxo_id3, - UtxoChange { output_before: F::from(7), output_after: F::from(7), consumed: false }, - ), - ] - .into_iter() - .collect::>(); - - // Multi-step program: - // - Yield on u2 to set its current output to 9 - // - Resume on u3 to mark it consumed - // - new_unproven() appends CheckUtxoOutput for all UTXOs to validate final state - let mut ops = vec![Instruction::Nop {}]; - // No state changes; checks should pass against ROM as-is - for &u in &[utxo_id1, utxo_id2, utxo_id3] { - ops.push(Instruction::CheckUtxoOutput { utxo_id: u }); - } - let tx = Transaction::new_unproven(changes.clone(), ops); - - let proof = tx.prove().unwrap(); - proof.verify(changes); - } } diff --git a/starstream_ivc_proto/src/neo.rs b/starstream_ivc_proto/src/neo.rs index 8d71f394..13008a49 100644 --- a/starstream_ivc_proto/src/neo.rs +++ b/starstream_ivc_proto/src/neo.rs @@ -1,16 +1,17 @@ use crate::goldilocks::FpGoldilocks; -use ark_ff::PrimeField; -use ark_relations::gr1cs::{ConstraintSystemRef, OptimizationGoal, ConstraintSystem}; -use neo::{CcsStructure, F}; +use ark_ff::{Field, PrimeField}; +use ark_relations::gr1cs::ConstraintSystemRef; +use neo::{CcsStructure, F, IndexExtractor, ivc::StepBindingSpec}; use p3_field::PrimeCharacteristicRing; -use crate::circuit::{InterRoundWires, StepCircuitBuilder}; -use crate::memory::{DummyMemory, IVCMemory}; -use ::neo::{NeoStep as SessionNeoStep, StepArtifacts, StepSpec, StepDescriptor}; pub(crate) struct NeoStep { pub(crate) ccs: CcsStructure, - /// Full variable vector expected by CCS: [instance || witness] + // instance + witness assignments pub(crate) witness: Vec, + // only input assignments + pub(crate) input: Vec, + pub(crate) step_binding_step: StepBindingSpec, + pub(crate) output_extractor: IndexExtractor, } pub(crate) fn arkworks_to_neo(cs: ConstraintSystemRef) -> NeoStep { @@ -18,12 +19,9 @@ pub(crate) fn arkworks_to_neo(cs: ConstraintSystemRef) -> NeoStep let matrices = &cs.to_matrices().unwrap()["R1CS"]; - #[cfg(debug_assertions)] - { - dbg!(cs.num_constraints()); - dbg!(cs.num_instance_variables()); - dbg!(cs.num_witness_variables()); - } + dbg!(cs.num_constraints()); + dbg!(cs.num_instance_variables()); + dbg!(cs.num_witness_variables()); let a_mat = ark_matrix_to_neo(&cs, &matrices[0]); let b_mat = ark_matrix_to_neo(&cs, &matrices[1]); @@ -31,6 +29,22 @@ pub(crate) fn arkworks_to_neo(cs: ConstraintSystemRef) -> NeoStep let ccs = neo_ccs::r1cs_to_ccs(a_mat, b_mat, c_mat); + let instance_assignment = cs.instance_assignment().unwrap(); + assert_eq!(instance_assignment[0], FpGoldilocks::ONE); + assert_eq!(instance_assignment.len() % 2, 1); + + // NOTE: this is not inherent to arkworks, it's just how the circuit is + // constructed (see circuit.rs/ivcify_wires). + // + // input-output pairs are allocated contiguously + // + // we start from 1 to skip the 1 constant + let input_assignments: Vec<_> = instance_assignment[1..] + .iter() + .step_by(2) + .map(ark_field_to_p3_goldilocks) + .collect(); + let instance = cs .instance_assignment() .unwrap() @@ -45,7 +59,44 @@ pub(crate) fn arkworks_to_neo(cs: ConstraintSystemRef) -> NeoStep .map(ark_field_to_p3_goldilocks) .collect::>(); - NeoStep { ccs, witness: [instance, witness].concat() } + let binding_spec = StepBindingSpec { + // indices of output variables (we allocate contiguous input, output + // pairs for ivc). + // + // see circuit.rs/ivcify_wires + y_step_offsets: (2..) + .step_by(2) + .take(input_assignments.len()) + .collect::>(), + + // TODO: what's this for? + x_witness_indices: vec![], + // indices of input variables (we allocate contiguous input, output + // pairs for ivc) + // + // see circuit.rs/ivcify_wires + y_prev_witness_indices: (1..) + .step_by(2) + .take(input_assignments.len()) + .collect::>(), + + const1_witness_index: 0, + }; + + let output_extractor = IndexExtractor { + indices: (2..) + .step_by(2) + .take(input_assignments.len()) + .collect::>(), + }; + + NeoStep { + ccs, + witness: [instance, witness].concat(), + input: input_assignments, + step_binding_step: binding_spec, + output_extractor, + } } fn ark_matrix_to_neo( @@ -70,74 +121,3 @@ fn ark_matrix_to_neo( fn ark_field_to_p3_goldilocks(col_v: &FpGoldilocks) -> p3_goldilocks::Goldilocks { F::from_u64(col_v.into_bigint().0[0]) } - -// High-level session adapter that synthesizes Arkworks steps and exposes them to Neo -pub(crate) struct ArkStepAdapter { - pub builder: StepCircuitBuilder>, - pub mem_setup: as IVCMemory>::Allocator, - pub irw: InterRoundWires, - shape_ccs: Option>, // stable shape across steps -} - -impl ArkStepAdapter { - pub fn new(mut builder: StepCircuitBuilder>) -> Self { - let mb = builder.trace_memory_ops(()); - let mem_setup = mb.constraints(); - let irw = InterRoundWires::new(builder.rom_offset()); - Self { builder, mem_setup, irw, shape_ccs: None } - } - - pub fn descriptor(&self) -> StepDescriptor { - StepDescriptor { - ccs: self.shape_ccs.as_ref().expect("shape CCS available").clone(), - spec: self.step_spec(), - } - } -} - -impl SessionNeoStep for ArkStepAdapter { - type ExternalInputs = (); - - fn state_len(&self) -> usize { 0 } - - fn step_spec(&self) -> StepSpec { - StepSpec { - y_len: 0, - const1_index: 0, - y_step_indices: vec![], - y_prev_indices: None, - // Do not bind app inputs in CCS (transcript-only app inputs) - app_input_indices: None, - } - } - - fn synthesize_step( - &mut self, - step_idx: usize, - _z_prev: &[::neo::F], - _inputs: &Self::ExternalInputs, - ) -> StepArtifacts { - let cs = ConstraintSystem::::new_ref(); - cs.set_optimization_goal(OptimizationGoal::Constraints); - - let next_irw = self - .builder - .make_step_circuit(step_idx, &mut self.mem_setup, cs.clone(), self.irw.clone()) - .expect("step synthesis"); - self.irw = next_irw; - - let step = arkworks_to_neo(cs.clone()); - - if self.shape_ccs.is_none() { - self.shape_ccs = Some(step.ccs.clone()); - } - - StepArtifacts { - ccs: step.ccs, - witness: step.witness, - // Provide one app input matching const-1 to satisfy X-binder checks - public_app_inputs: vec![::neo::F::ONE], - spec: self.step_spec(), - } - } -} From 6ea3f1fd3fdad80ddae3ab7c8cecb4e63c919612 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Sun, 5 Oct 2025 16:39:22 -0300 Subject: [PATCH 007/152] add more debugging logs to the step circuit Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/src/circuit.rs | 53 +++++++++++++++++++++++++++-- starstream_ivc_proto/src/lib.rs | 17 +++++++++ starstream_ivc_proto/src/memory.rs | 37 ++++++++++++++++---- starstream_ivc_proto/src/neo.rs | 2 +- 4 files changed, 99 insertions(+), 10 deletions(-) diff --git a/starstream_ivc_proto/src/circuit.rs b/starstream_ivc_proto/src/circuit.rs index b7cc9343..80621b4e 100644 --- a/starstream_ivc_proto/src/circuit.rs +++ b/starstream_ivc_proto/src/circuit.rs @@ -11,6 +11,7 @@ use ark_relations::{ }; use std::collections::{BTreeMap, HashMap, HashSet}; use std::marker::PhantomData; +use tracing::debug_span; /// The RAM part is an array of ProgramState pub const RAM_SEGMENT: u64 = 9u64; @@ -205,6 +206,8 @@ impl Wires { utxo_write_values: &ProgramState, coord_write_values: &ProgramState, ) -> Result { + vals.debug_print(); + let cs = rm.get_cs(); // io vars @@ -254,6 +257,7 @@ impl Wires { .unwrap(); let utxo_id = FpVar::::new_witness(ns!(cs.clone(), "utxo_id"), || Ok(vals.utxo_id))?; + let input = FpVar::::new_witness(ns!(cs.clone(), "input"), || Ok(vals.input))?; let output = FpVar::::new_witness(ns!(cs.clone(), "output"), || Ok(vals.output))?; @@ -369,8 +373,30 @@ impl InterRoundWires { } pub fn update(&mut self, res: Wires) { + let _guard = debug_span!("update ivc state").entered(); + + tracing::debug!( + "current_program from {} to {}", + self.current_program, + res.current_program.value().unwrap() + ); + self.current_program = res.current_program.value().unwrap(); + + tracing::debug!( + "utxos_len from {} to {}", + self.utxos_len, + res.utxos_len.value().unwrap() + ); + self.utxos_len = res.utxos_len.value().unwrap(); + + tracing::debug!( + "n_finalized from {} to {}", + self.n_finalized, + res.n_finalized.value().unwrap() + ); + self.n_finalized = res.n_finalized.value().unwrap(); } } @@ -485,6 +511,8 @@ impl> StepCircuitBuilder { ) -> Result { rm.start_step(cs.clone()).unwrap(); + let _guard = tracing::info_span!("make_step_circuit", i = i, op = ?self.ops[i]).entered(); + let wires_in = self.allocate_vars(i, rm, &irw)?; let next_wires = wires_in.clone(); @@ -510,9 +538,13 @@ impl> StepCircuitBuilder { let (mut mb, utxo_order_mapping) = { let mut mb = M::new(params); - mb.register_mem(RAM_SEGMENT, PROGRAM_STATE_SIZE); - mb.register_mem(UTXO_INDEX_MAPPING_SEGMENT, UTXO_INDEX_MAPPING_SIZE); - mb.register_mem(OUTPUT_CHECK_SEGMENT, OUTPUT_CHECK_SIZE); + mb.register_mem(RAM_SEGMENT, PROGRAM_STATE_SIZE, "RAM"); + mb.register_mem( + UTXO_INDEX_MAPPING_SEGMENT, + UTXO_INDEX_MAPPING_SIZE, + "UTXO_INDEX_MAPPING", + ); + mb.register_mem(OUTPUT_CHECK_SEGMENT, OUTPUT_CHECK_SIZE, "EXPECTED_OUTPUTS"); let mut utxo_order_mapping: HashMap = Default::default(); @@ -1019,6 +1051,14 @@ impl PreWires { irw, } } + + pub fn debug_print(&self) { + let _guard = debug_span!("witness assignments").entered(); + + tracing::debug!("utxo_id={}", self.utxo_id); + tracing::debug!("utxo_address={}", self.utxo_address); + tracing::debug!("coord_address={}", self.coord_address); + } } impl ProgramState { @@ -1047,4 +1087,11 @@ impl ProgramState { self.output, ] } + + pub fn debug_print(&self) { + tracing::debug!("consumed={}", self.consumed); + tracing::debug!("finalized={}", self.finalized); + tracing::debug!("input={}", self.input); + tracing::debug!("output={}", self.output); + } } diff --git a/starstream_ivc_proto/src/lib.rs b/starstream_ivc_proto/src/lib.rs index 1d7a49f3..c726aeb2 100644 --- a/starstream_ivc_proto/src/lib.rs +++ b/starstream_ivc_proto/src/lib.rs @@ -232,8 +232,25 @@ mod tests { use crate::{F, Instruction, Transaction, UtxoChange, UtxoId}; use std::collections::BTreeMap; + use tracing_subscriber::{EnvFilter, fmt}; + + fn init_test_logging() { + static INIT: std::sync::Once = std::sync::Once::new(); + + INIT.call_once(|| { + fmt() + .with_env_filter( + EnvFilter::from_default_env().add_directive(tracing::Level::DEBUG.into()), + ) + .with_test_writer() + .init(); + }); + } + #[test] fn test_starstream_tx() { + init_test_logging(); + let utxo_id1: UtxoId = UtxoId::from(110); let utxo_id2: UtxoId = UtxoId::from(300); let utxo_id3: UtxoId = UtxoId::from(400); diff --git a/starstream_ivc_proto/src/memory.rs b/starstream_ivc_proto/src/memory.rs index 288f7eea..bb5ba093 100644 --- a/starstream_ivc_proto/src/memory.rs +++ b/starstream_ivc_proto/src/memory.rs @@ -18,7 +18,7 @@ pub trait IVCMemory { fn new(info: Self::Params) -> Self; - fn register_mem(&mut self, tag: u64, size: u64); + fn register_mem(&mut self, tag: u64, size: u64, debug_name: &'static str); fn init(&mut self, address: Address, values: Vec); @@ -53,7 +53,7 @@ pub struct DummyMemory { writes: BTreeMap, VecDeque>>, init: BTreeMap, Vec>, - mems: BTreeMap, + mems: BTreeMap, } impl IVCMemory for DummyMemory { @@ -71,8 +71,8 @@ impl IVCMemory for DummyMemory { } } - fn register_mem(&mut self, tag: u64, size: u64) { - self.mems.insert(tag, size); + fn register_mem(&mut self, tag: u64, size: u64, debug_name: &'static str) { + self.mems.insert(tag, (size, debug_name)); } fn init(&mut self, address: Address, values: Vec) { @@ -118,7 +118,7 @@ pub struct DummyMemoryConstraints { reads: BTreeMap, VecDeque>>, writes: BTreeMap, VecDeque>>, - mems: BTreeMap, + mems: BTreeMap, } impl IVCMemoryAllocated for DummyMemoryConstraints { @@ -142,6 +142,10 @@ impl IVCMemoryAllocated for DummyMemoryConstraints { cond: &Boolean, address: &Address>, ) -> Result>, SynthesisError> { + let _guard = tracing::debug_span!("conditional_read").entered(); + + let mem = self.mems.get(&address.tag).copied().unwrap(); + if cond.value().unwrap() { let address = Address { addr: address.addr.value().unwrap().into_bigint().as_ref()[0], @@ -157,12 +161,21 @@ impl IVCMemoryAllocated for DummyMemoryConstraints { .map(|v| FpVar::new_witness(self.get_cs(), || Ok(v)).unwrap()) .collect::>(); + tracing::debug!( + "read {:?} at address {} in segment {}", + vals.iter() + .map(|v| v.value().unwrap().into_bigint()) + .collect::>(), + address.addr, + mem.1, + ); + Ok(vals) } else { let vals = std::iter::repeat_with(|| { FpVar::new_witness(self.get_cs(), || Ok(F::from(0))).unwrap() }) - .take(self.mems.get(&address.tag).copied().unwrap() as usize); + .take(mem.0 as usize); Ok(vals.collect()) } @@ -174,6 +187,8 @@ impl IVCMemoryAllocated for DummyMemoryConstraints { address: &Address>, vals: &[FpVar], ) -> Result<(), SynthesisError> { + let _guard = tracing::debug_span!("conditional_write").entered(); + if cond.value().unwrap() { let address = Address { addr: address.addr.value().unwrap().into_bigint().as_ref()[0], @@ -187,6 +202,16 @@ impl IVCMemoryAllocated for DummyMemoryConstraints { for ((_, val), expected) in vals.iter().enumerate().zip(expected_vals.iter()) { assert_eq!(val.value().unwrap(), *expected); } + + let mem = self.mems.get(&address.tag).copied().unwrap(); + tracing::debug!( + "write values {:?} at address {} in segment {}", + vals.iter() + .map(|v| v.value().unwrap().into_bigint()) + .collect::>(), + address.addr, + mem.1, + ); } Ok(()) diff --git a/starstream_ivc_proto/src/neo.rs b/starstream_ivc_proto/src/neo.rs index 13008a49..59e4b922 100644 --- a/starstream_ivc_proto/src/neo.rs +++ b/starstream_ivc_proto/src/neo.rs @@ -70,7 +70,7 @@ pub(crate) fn arkworks_to_neo(cs: ConstraintSystemRef) -> NeoStep .collect::>(), // TODO: what's this for? - x_witness_indices: vec![], + step_program_input_witness_indices: vec![], // indices of input variables (we allocate contiguous input, output // pairs for ivc) // From 237ab171c8211e481648673319fa38144b1a19e2 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Tue, 7 Oct 2025 01:44:18 -0500 Subject: [PATCH 008/152] update Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/Cargo.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/starstream_ivc_proto/Cargo.toml b/starstream_ivc_proto/Cargo.toml index 2dd29ed4..72ade78b 100644 --- a/starstream_ivc_proto/Cargo.toml +++ b/starstream_ivc_proto/Cargo.toml @@ -13,9 +13,9 @@ ark-poly-commit = "0.5.0" tracing = { version = "0.1", default-features = false, features = [ "attributes" ] } tracing-subscriber = { version = "0.3" } -neo = { git = "https://github.com/nicarq/halo3", rev = "a835ab9ec346afdbabcedaf4fc1b36f548038979", features = ["neo-logs", "debug-logs", "testing", "neo_dev_only", "fs-guard"] } -neo-math = { git = "https://github.com/nicarq/halo3", rev = "a835ab9ec346afdbabcedaf4fc1b36f548038979" } -neo-ccs = { git = "https://github.com/nicarq/halo3", rev = "a835ab9ec346afdbabcedaf4fc1b36f548038979" } +neo = { git = "https://github.com/nicarq/halo3", rev = "2cdbb7cb1ca6c6fa343985a908e1c1db2d6885dc", features = ["neo-logs", "debug-logs", "testing", "neo_dev_only", "fs-guard"] } +neo-math = { git = "https://github.com/nicarq/halo3", rev = "2cdbb7cb1ca6c6fa343985a908e1c1db2d6885dc" } +neo-ccs = { git = "https://github.com/nicarq/halo3", rev = "2cdbb7cb1ca6c6fa343985a908e1c1db2d6885dc" } p3-goldilocks = { version = "0.3.0", default-features = false } p3-field = "0.3.0" From caaf78144b93b5a0b247b1e2b39cb54218ea207d Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Tue, 14 Oct 2025 22:41:48 -0300 Subject: [PATCH 009/152] refactor neo code and add conversion tests Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/Cargo.toml | 6 +- starstream_ivc_proto/src/lib.rs | 182 +++++++--------- starstream_ivc_proto/src/neo.rs | 357 ++++++++++++++++++++++++++------ 3 files changed, 373 insertions(+), 172 deletions(-) diff --git a/starstream_ivc_proto/Cargo.toml b/starstream_ivc_proto/Cargo.toml index 72ade78b..0b818f8f 100644 --- a/starstream_ivc_proto/Cargo.toml +++ b/starstream_ivc_proto/Cargo.toml @@ -13,9 +13,9 @@ ark-poly-commit = "0.5.0" tracing = { version = "0.1", default-features = false, features = [ "attributes" ] } tracing-subscriber = { version = "0.3" } -neo = { git = "https://github.com/nicarq/halo3", rev = "2cdbb7cb1ca6c6fa343985a908e1c1db2d6885dc", features = ["neo-logs", "debug-logs", "testing", "neo_dev_only", "fs-guard"] } -neo-math = { git = "https://github.com/nicarq/halo3", rev = "2cdbb7cb1ca6c6fa343985a908e1c1db2d6885dc" } -neo-ccs = { git = "https://github.com/nicarq/halo3", rev = "2cdbb7cb1ca6c6fa343985a908e1c1db2d6885dc" } +neo = { git = "https://github.com/nicarq/halo3", rev = "0a89023320b862da2e9bf2aec1197410e1df5b47", features = ["neo-logs", "debug-logs", "testing", "neo_dev_only", "fs-guard"] } +neo-math = { git = "https://github.com/nicarq/halo3", rev = "0a89023320b862da2e9bf2aec1197410e1df5b47" } +neo-ccs = { git = "https://github.com/nicarq/halo3", rev = "0a89023320b862da2e9bf2aec1197410e1df5b47" } p3-goldilocks = { version = "0.3.0", default-features = false } p3-field = "0.3.0" diff --git a/starstream_ivc_proto/src/lib.rs b/starstream_ivc_proto/src/lib.rs index c726aeb2..95bf4ab8 100644 --- a/starstream_ivc_proto/src/lib.rs +++ b/starstream_ivc_proto/src/lib.rs @@ -3,15 +3,18 @@ mod goldilocks; mod memory; mod neo; -use crate::neo::arkworks_to_neo; -use ::neo::{Accumulator, NeoParams, prove_ivc_step_with_extractor}; -use ark_relations::gr1cs::{ConstraintSystem, OptimizationGoal, SynthesisError}; -use circuit::{InterRoundWires, StepCircuitBuilder}; +use crate::neo::StepCircuitNeo; +use ::neo::{ + FoldingSession, NeoParams, NeoStep as _, StepDescriptor, + session::{IvcFinalizeOptions, finalize_ivc_chain_with_options}, +}; +use ark_relations::gr1cs::SynthesisError; +use circuit::StepCircuitBuilder; use goldilocks::FpGoldilocks; -use memory::{DummyMemory, IVCMemory}; +use memory::DummyMemory; +use p3_field::PrimeCharacteristicRing; use std::collections::BTreeMap; -// type F = ark_bn254::Fr; type F = FpGoldilocks; pub struct Transaction

{ @@ -98,14 +101,16 @@ pub enum Instruction { CheckUtxoOutput { utxo_id: F }, } -pub struct ProverOutput {} +pub struct ProverOutput { + pub proof: ::neo::Proof, +} impl Transaction> { - pub fn new_unproven(changes: BTreeMap, ops: Vec) -> Self { + pub fn new_unproven(changes: BTreeMap, mut ops: Vec) -> Self { // TODO: uncomment later when folding works - // for utxo_id in changes.keys() { - // ops.push(Instruction::CheckUtxoOutput { utxo_id: *utxo_id }); - // } + for utxo_id in changes.keys() { + ops.push(Instruction::CheckUtxoOutput { utxo_id: *utxo_id }); + } Self { utxo_deltas: changes, @@ -114,105 +119,67 @@ impl Transaction> { } pub fn prove(&self) -> Result, SynthesisError> { - let mut tx = StepCircuitBuilder::>::new( + let utxos_len = self.utxo_deltas.len(); + + let tx = StepCircuitBuilder::>::new( self.utxo_deltas.clone(), self.proof_like.clone(), ); - let mb = tx.trace_memory_ops(()); - - let mut mem_setup = mb.constraints(); - let num_iters = tx.ops.len(); - let mut cs = ConstraintSystem::::new_ref(); - cs.set_optimization_goal(OptimizationGoal::Constraints); - - let irw = InterRoundWires::new(tx.rom_offset()); - - println!("=============================================="); - println!("Computing step circuit {}", 0); - - let mut irw = tx.make_step_circuit(0, &mut mem_setup, cs.clone(), irw)?; - - println!("=============================================="); + let mut f_circuit = StepCircuitNeo::new(tx); - let mut step = arkworks_to_neo(cs.clone()); - let ccs = step.ccs.clone(); - - let mut acc = Accumulator { - c_z_digest: [0u8; 32], - c_coords: vec![], - y_compact: step.input.clone(), - step: 0, - }; + let y0 = vec![ + ::neo::F::from_u64(1), // current_program_in + ::neo::F::from_u64(utxos_len as u64), // utxos_len_in + ::neo::F::from_u64(0), // n_finalized_in + ]; let params = NeoParams::goldilocks_small_circuits(); - let mut ivc_proofs = vec![]; - - let mut prev_augmented_x = None; - - for i in 0..num_iters { - neo_ccs::relations::check_ccs_rowwise_zero(&step.ccs, &[], &step.witness).unwrap(); - - let is_sat = cs.is_satisfied().unwrap(); - - if !is_sat { - let trace = cs.which_is_unsatisfied().unwrap().unwrap(); - panic!( - "The constraint system was not satisfied; here is a trace indicating which constraint was unsatisfied: \n{trace}", - ) - } - - let step_result = prove_ivc_step_with_extractor( - ¶ms, - &ccs, - &step.witness, - &acc, - i as u64, - None, - &step.output_extractor, - &step.step_binding_step, - ) - .unwrap(); - - let verify_step_ok = ::neo::verify_ivc_step( - &ccs, - &step_result.proof, - &acc, - &step.step_binding_step, - ¶ms, - prev_augmented_x.as_deref(), - ) - .expect("verify_ivc_step should not error"); - - // FIXME: this doesn't work - assert!(verify_step_ok, "step verification failed"); - - acc = step_result.proof.next_accumulator.clone(); - prev_augmented_x = Some(step_result.proof.step_augmented_public_input.clone()); - - ivc_proofs.push(step_result.proof); - - if i < num_iters - 1 { - cs = ConstraintSystem::::new_ref(); - cs.set_optimization_goal(OptimizationGoal::Constraints); - - println!("=============================================="); - - println!("Computing step circuit {}", i + 1); - - let next_irw = tx.make_step_circuit(i + 1, &mut mem_setup, cs.clone(), irw)?; - irw = next_irw; - - step = arkworks_to_neo(cs.clone()); + let mut session = FoldingSession::new( + ¶ms, + Some(y0.clone()), + 0, + ::neo::AppInputBinding::WitnessBound, + ); - println!("=============================================="); - } + for _i in 0..num_iters { + session.prove_step(&mut f_circuit, &()).unwrap(); } - let prover_output = ProverOutput {}; + let descriptor = StepDescriptor { + ccs: f_circuit.shape_ccs.clone().expect("missing step CCS"), + spec: f_circuit.step_spec(), + }; + let (chain, step_ios) = session.finalize(); + + // TODO: this fails right now, but the circuit should be sat + // let ok = ::neo::verify_chain_with_descriptor( + // &descriptor, + // &chain, + // &y0, + // ¶ms, + // &step_ios, + // ::neo::AppInputBinding::WitnessBound, + // ) + // .unwrap(); + + // assert!(ok, "neo chain verification failed"); + + let (final_proof, _final_ccs, _final_public_input) = finalize_ivc_chain_with_options( + &descriptor, + ¶ms, + chain, + ::neo::AppInputBinding::WitnessBound, + IvcFinalizeOptions { embed_ivc_ev: true }, + ) + .map_err(|_| SynthesisError::Unsatisfiable)? + .ok_or(SynthesisError::Unsatisfiable)?; + + let prover_output = ProverOutput { proof: final_proof }; + Ok(Transaction { utxo_deltas: self.utxo_deltas.clone(), proof_like: prover_output, @@ -288,13 +255,12 @@ mod tests { changes.clone(), vec![ Instruction::Nop {}, - // Instruction::Nop {}, - // Instruction::Resume { - // utxo_id: utxo_id2, - // input: F::from(0), - // output: F::from(0), - // }, - // Instruction::DropUtxo { utxo_id: utxo_id2 }, + Instruction::Resume { + utxo_id: utxo_id2, + input: F::from(0), + output: F::from(0), + }, + Instruction::DropUtxo { utxo_id: utxo_id2 }, Instruction::Resume { utxo_id: utxo_id3, input: F::from(42), @@ -304,10 +270,10 @@ mod tests { utxo_id: utxo_id3, output: F::from(42), }, - // Instruction::Yield { - // utxo_id: utxo_id3, - // input: F::from(43), - // }, + Instruction::Yield { + utxo_id: utxo_id3, + input: F::from(43), + }, ], ); diff --git a/starstream_ivc_proto/src/neo.rs b/starstream_ivc_proto/src/neo.rs index 59e4b922..a60aea7f 100644 --- a/starstream_ivc_proto/src/neo.rs +++ b/starstream_ivc_proto/src/neo.rs @@ -1,28 +1,131 @@ -use crate::goldilocks::FpGoldilocks; +use crate::{ + circuit::{InterRoundWires, StepCircuitBuilder}, + goldilocks::FpGoldilocks, + memory::IVCMemory, +}; use ark_ff::{Field, PrimeField}; -use ark_relations::gr1cs::ConstraintSystemRef; -use neo::{CcsStructure, F, IndexExtractor, ivc::StepBindingSpec}; +use ark_relations::gr1cs::{ConstraintSystem, ConstraintSystemRef, OptimizationGoal}; +use neo::{CcsStructure, F, NeoStep, StepArtifacts, StepSpec}; use p3_field::PrimeCharacteristicRing; -pub(crate) struct NeoStep { +pub(crate) struct StepCircuitNeo +where + M: IVCMemory, +{ + pub(crate) shape_ccs: Option>, // stable shape across steps + pub(crate) circuit_builder: StepCircuitBuilder, + pub(crate) irw: InterRoundWires, + pub(crate) mem: M::Allocator, + + debug_prev_state: Option>, +} + +impl StepCircuitNeo +where + M: IVCMemory, +{ + pub fn new(mut circuit_builder: StepCircuitBuilder) -> Self { + let irw = InterRoundWires::new(circuit_builder.rom_offset()); + + let mb = circuit_builder.trace_memory_ops(()); + + Self { + shape_ccs: None, + circuit_builder, + irw, + mem: mb.constraints(), + debug_prev_state: None, + } + } +} + +impl NeoStep for StepCircuitNeo +where + M: IVCMemory, +{ + type ExternalInputs = (); + + fn state_len(&self) -> usize { + 3 + } + + fn step_spec(&self) -> StepSpec { + StepSpec { + y_len: self.state_len(), + const1_index: 0, + y_step_indices: vec![2, 4, 6], + y_prev_indices: Some(vec![1, 3, 5]), + app_input_indices: None, + } + } + + fn synthesize_step( + &mut self, + step_idx: usize, + _z_prev: &[::neo::F], + _inputs: &Self::ExternalInputs, + ) -> StepArtifacts { + let cs = ConstraintSystem::::new_ref(); + cs.set_optimization_goal(OptimizationGoal::Constraints); + + self.irw = self + .circuit_builder + .make_step_circuit(step_idx, &mut self.mem, cs.clone(), self.irw.clone()) + .unwrap(); + + // this hides the proof system errors + // keep it for now so that the tests pass correctly + assert!(cs.is_satisfied().unwrap(), "circuit is not satisfiable"); + + let spec = self.step_spec(); + + let step = arkworks_to_neo(cs.clone()); + + if self.shape_ccs.is_none() { + self.shape_ccs = Some(step.ccs.clone()); + } + + // just as a helper validation, check the state chaining + if let Some(y0_prev) = &self.debug_prev_state { + assert_eq!( + y0_prev, + &spec + .y_prev_indices + .as_ref() + .unwrap() + .iter() + .map(|i| step.witness[*i]) + .collect::>() + ); + } + + self.debug_prev_state.replace( + spec.y_step_indices + .iter() + .map(|i| step.witness[*i]) + .collect::>(), + ); + + StepArtifacts { + ccs: step.ccs, + witness: step.witness, + public_app_inputs: vec![], + spec, + } + } +} + +pub(crate) struct NeoInstance { pub(crate) ccs: CcsStructure, // instance + witness assignments pub(crate) witness: Vec, - // only input assignments - pub(crate) input: Vec, - pub(crate) step_binding_step: StepBindingSpec, - pub(crate) output_extractor: IndexExtractor, } -pub(crate) fn arkworks_to_neo(cs: ConstraintSystemRef) -> NeoStep { +pub(crate) fn arkworks_to_neo(cs: ConstraintSystemRef) -> NeoInstance { cs.finalize(); let matrices = &cs.to_matrices().unwrap()["R1CS"]; - dbg!(cs.num_constraints()); - dbg!(cs.num_instance_variables()); - dbg!(cs.num_witness_variables()); - let a_mat = ark_matrix_to_neo(&cs, &matrices[0]); let b_mat = ark_matrix_to_neo(&cs, &matrices[1]); let c_mat = ark_matrix_to_neo(&cs, &matrices[2]); @@ -31,19 +134,6 @@ pub(crate) fn arkworks_to_neo(cs: ConstraintSystemRef) -> NeoStep let instance_assignment = cs.instance_assignment().unwrap(); assert_eq!(instance_assignment[0], FpGoldilocks::ONE); - assert_eq!(instance_assignment.len() % 2, 1); - - // NOTE: this is not inherent to arkworks, it's just how the circuit is - // constructed (see circuit.rs/ivcify_wires). - // - // input-output pairs are allocated contiguously - // - // we start from 1 to skip the 1 constant - let input_assignments: Vec<_> = instance_assignment[1..] - .iter() - .step_by(2) - .map(ark_field_to_p3_goldilocks) - .collect(); let instance = cs .instance_assignment() @@ -59,43 +149,9 @@ pub(crate) fn arkworks_to_neo(cs: ConstraintSystemRef) -> NeoStep .map(ark_field_to_p3_goldilocks) .collect::>(); - let binding_spec = StepBindingSpec { - // indices of output variables (we allocate contiguous input, output - // pairs for ivc). - // - // see circuit.rs/ivcify_wires - y_step_offsets: (2..) - .step_by(2) - .take(input_assignments.len()) - .collect::>(), - - // TODO: what's this for? - step_program_input_witness_indices: vec![], - // indices of input variables (we allocate contiguous input, output - // pairs for ivc) - // - // see circuit.rs/ivcify_wires - y_prev_witness_indices: (1..) - .step_by(2) - .take(input_assignments.len()) - .collect::>(), - - const1_witness_index: 0, - }; - - let output_extractor = IndexExtractor { - indices: (2..) - .step_by(2) - .take(input_assignments.len()) - .collect::>(), - }; - - NeoStep { + NeoInstance { ccs, witness: [instance, witness].concat(), - input: input_assignments, - step_binding_step: binding_spec, - output_extractor, } } @@ -121,3 +177,182 @@ fn ark_matrix_to_neo( fn ark_field_to_p3_goldilocks(col_v: &FpGoldilocks) -> p3_goldilocks::Goldilocks { F::from_u64(col_v.into_bigint().0[0]) } + +#[cfg(test)] +mod tests { + use crate::{ + F, + neo::{ark_field_to_p3_goldilocks, arkworks_to_neo}, + }; + use ark_r1cs_std::{alloc::AllocVar, eq::EqGadget as _, fields::fp::FpVar}; + use ark_relations::gr1cs::{self, ConstraintSystem}; + use neo::{ + CcsStructure, FoldingSession, NeoParams, NeoStep, StepArtifacts, StepDescriptor, StepSpec, + }; + use p3_field::PrimeCharacteristicRing; + use p3_field::PrimeField; + + #[test] + fn test_ark_field() { + assert_eq!( + ark_field_to_p3_goldilocks(&F::from(20)), + ::neo::F::from_u64(20) + ); + + assert_eq!( + ark_field_to_p3_goldilocks(&F::from(100)), + ::neo::F::from_u64(100) + ); + + assert_eq!( + ark_field_to_p3_goldilocks(&F::from(400)), + ::neo::F::from_u64(400) + ); + + assert_eq!( + ark_field_to_p3_goldilocks(&F::from(u64::MAX)), + ::neo::F::from_u64(u64::MAX) + ); + } + + #[test] + fn test_r1cs_conversion_sat() { + let cs = ConstraintSystem::::new_ref(); + + let var1 = FpVar::new_witness(cs.clone(), || Ok(F::from(1_u64))).unwrap(); + let var2 = FpVar::new_witness(cs.clone(), || Ok(F::from(1_u64))).unwrap(); + + var1.enforce_equal(&var2).unwrap(); + + let step = arkworks_to_neo(cs.clone()); + + let neo_check = + neo_ccs::relations::check_ccs_rowwise_zero(&step.ccs, &[], &step.witness).is_ok(); + + assert_eq!(cs.is_satisfied().unwrap(), neo_check); + } + + #[test] + fn test_r1cs_conversion_unsat() { + let cs = ConstraintSystem::::new_ref(); + + let var1 = FpVar::new_witness(cs.clone(), || Ok(F::from(1_u64))).unwrap(); + let var2 = FpVar::new_witness(cs.clone(), || Ok(F::from(2_u64))).unwrap(); + + var1.enforce_equal(&var2).unwrap(); + + let step = arkworks_to_neo(cs.clone()); + + let neo_check = + neo_ccs::relations::check_ccs_rowwise_zero(&step.ccs, &[], &step.witness).is_ok(); + + assert_eq!(cs.is_satisfied().unwrap(), neo_check); + } + + pub(crate) struct ArkStepAdapter { + shape_ccs: Option>, // stable shape across steps + } + + impl ArkStepAdapter { + pub fn new() -> Self { + Self { shape_ccs: None } + } + } + + impl NeoStep for ArkStepAdapter { + type ExternalInputs = (); + + fn state_len(&self) -> usize { + 1 + } + + fn step_spec(&self) -> StepSpec { + StepSpec { + y_len: 1, + const1_index: 0, + y_step_indices: vec![3], + y_prev_indices: Some(vec![1]), + app_input_indices: None, + } + } + + fn synthesize_step( + &mut self, + _step_idx: usize, + z_prev: &[::neo::F], + _inputs: &Self::ExternalInputs, + ) -> StepArtifacts { + let i = z_prev + .first() + .map(|z_prev| z_prev.as_canonical_biguint().to_u64_digits()[0]) + .unwrap_or(0); + + // TODO: i should really be step_idx here + let cs = make_step(i); + + let step = arkworks_to_neo(cs.clone()); + + if self.shape_ccs.is_none() { + self.shape_ccs = Some(step.ccs.clone()); + } + + StepArtifacts { + ccs: step.ccs, + witness: step.witness, + public_app_inputs: vec![], + spec: self.step_spec(), + } + } + } + #[test] + fn test_arkworks_to_neo() { + let params = NeoParams::goldilocks_small_circuits(); + + let mut session = FoldingSession::new(¶ms, None, 0, neo::AppInputBinding::WitnessBound); + + let mut adapter = ArkStepAdapter::new(); + let _step_result = session.prove_step(&mut adapter, &()).unwrap(); + let _step_result = session.prove_step(&mut adapter, &()).unwrap(); + + let (chain, step_ios) = session.finalize(); + let descriptor = StepDescriptor { + ccs: adapter.shape_ccs.as_ref().unwrap().clone(), + spec: adapter.step_spec().clone(), + }; + + let ok = neo::verify_chain_with_descriptor( + &descriptor, + &chain, + &[::neo::F::from_u64(0)], + ¶ms, + &step_ios, + neo::AppInputBinding::WitnessBound, + ) + .unwrap(); + + assert!(ok, "verify chain"); + } + + fn make_step(i: u64) -> gr1cs::ConstraintSystemRef { + let cs = ConstraintSystem::::new_ref(); + + let var1 = FpVar::new_input(cs.clone(), || Ok(F::from(i))).unwrap(); + let delta = FpVar::new_input(cs.clone(), || Ok(F::from(1))).unwrap(); + let var2 = FpVar::new_input(cs.clone(), || Ok(F::from(i + 1))).unwrap(); + + (var1.clone() + delta.clone()).enforce_equal(&var2).unwrap(); + (var1.clone() + delta.clone()).enforce_equal(&var2).unwrap(); + (var1 + delta).enforce_equal(&var2).unwrap(); + + let is_sat = cs.is_satisfied().unwrap(); + + if !is_sat { + let trace = cs.which_is_unsatisfied().unwrap().unwrap(); + panic!( + "The constraint system was not satisfied; here is a trace indicating which constraint was unsatisfied: \n{trace}", + ) + } + + cs + } +} From 41e0af3b0efd6462407147190e1d8e8442b09357 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Sat, 18 Oct 2025 12:19:40 -0500 Subject: [PATCH 010/152] version bump. tests passing Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/Cargo.toml | 6 +++--- starstream_ivc_proto/src/neo.rs | 16 +--------------- 2 files changed, 4 insertions(+), 18 deletions(-) diff --git a/starstream_ivc_proto/Cargo.toml b/starstream_ivc_proto/Cargo.toml index 0b818f8f..b9805343 100644 --- a/starstream_ivc_proto/Cargo.toml +++ b/starstream_ivc_proto/Cargo.toml @@ -13,9 +13,9 @@ ark-poly-commit = "0.5.0" tracing = { version = "0.1", default-features = false, features = [ "attributes" ] } tracing-subscriber = { version = "0.3" } -neo = { git = "https://github.com/nicarq/halo3", rev = "0a89023320b862da2e9bf2aec1197410e1df5b47", features = ["neo-logs", "debug-logs", "testing", "neo_dev_only", "fs-guard"] } -neo-math = { git = "https://github.com/nicarq/halo3", rev = "0a89023320b862da2e9bf2aec1197410e1df5b47" } -neo-ccs = { git = "https://github.com/nicarq/halo3", rev = "0a89023320b862da2e9bf2aec1197410e1df5b47" } +neo = { git = "https://github.com/nicarq/halo3", rev = "3b2a85115984b2c2cbcf90dce394075e045c6931", features = ["neo-logs", "debug-logs", "testing", "neo_dev_only", "fs-guard"] } +neo-math = { git = "https://github.com/nicarq/halo3", rev = "3b2a85115984b2c2cbcf90dce394075e045c6931" } +neo-ccs = { git = "https://github.com/nicarq/halo3", rev = "3b2a85115984b2c2cbcf90dce394075e045c6931" } p3-goldilocks = { version = "0.3.0", default-features = false } p3-field = "0.3.0" diff --git a/starstream_ivc_proto/src/neo.rs b/starstream_ivc_proto/src/neo.rs index a60aea7f..d58cd9ab 100644 --- a/starstream_ivc_proto/src/neo.rs +++ b/starstream_ivc_proto/src/neo.rs @@ -54,7 +54,6 @@ where y_len: self.state_len(), const1_index: 0, y_step_indices: vec![2, 4, 6], - y_prev_indices: Some(vec![1, 3, 5]), app_input_indices: None, } } @@ -85,19 +84,7 @@ where self.shape_ccs = Some(step.ccs.clone()); } - // just as a helper validation, check the state chaining - if let Some(y0_prev) = &self.debug_prev_state { - assert_eq!( - y0_prev, - &spec - .y_prev_indices - .as_ref() - .unwrap() - .iter() - .map(|i| step.witness[*i]) - .collect::>() - ); - } + // State chaining validation removed - no longer needed with updated neo version self.debug_prev_state.replace( spec.y_step_indices @@ -271,7 +258,6 @@ mod tests { y_len: 1, const1_index: 0, y_step_indices: vec![3], - y_prev_indices: Some(vec![1]), app_input_indices: None, } } From 24fa5455bd8e71dca289b7a91ffe4f1a585bec69 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Wed, 15 Oct 2025 19:59:02 -0300 Subject: [PATCH 011/152] update neo Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/Cargo.toml | 6 +++--- starstream_ivc_proto/src/lib.rs | 22 +++++++++++----------- starstream_ivc_proto/src/neo.rs | 4 ---- 3 files changed, 14 insertions(+), 18 deletions(-) diff --git a/starstream_ivc_proto/Cargo.toml b/starstream_ivc_proto/Cargo.toml index b9805343..c7ea28a2 100644 --- a/starstream_ivc_proto/Cargo.toml +++ b/starstream_ivc_proto/Cargo.toml @@ -13,9 +13,9 @@ ark-poly-commit = "0.5.0" tracing = { version = "0.1", default-features = false, features = [ "attributes" ] } tracing-subscriber = { version = "0.3" } -neo = { git = "https://github.com/nicarq/halo3", rev = "3b2a85115984b2c2cbcf90dce394075e045c6931", features = ["neo-logs", "debug-logs", "testing", "neo_dev_only", "fs-guard"] } -neo-math = { git = "https://github.com/nicarq/halo3", rev = "3b2a85115984b2c2cbcf90dce394075e045c6931" } -neo-ccs = { git = "https://github.com/nicarq/halo3", rev = "3b2a85115984b2c2cbcf90dce394075e045c6931" } +neo = { git = "https://github.com/nicarq/halo3", rev = "997812d75b491682dfe4bd8b0f9bd3ffc06684b0", features = ["neo-logs", "debug-logs", "testing", "neo_dev_only", "fs-guard"] } +neo-math = { git = "https://github.com/nicarq/halo3", rev = "997812d75b491682dfe4bd8b0f9bd3ffc06684b0" } +neo-ccs = { git = "https://github.com/nicarq/halo3", rev = "997812d75b491682dfe4bd8b0f9bd3ffc06684b0" } p3-goldilocks = { version = "0.3.0", default-features = false } p3-field = "0.3.0" diff --git a/starstream_ivc_proto/src/lib.rs b/starstream_ivc_proto/src/lib.rs index 95bf4ab8..f173e945 100644 --- a/starstream_ivc_proto/src/lib.rs +++ b/starstream_ivc_proto/src/lib.rs @@ -156,17 +156,17 @@ impl Transaction> { let (chain, step_ios) = session.finalize(); // TODO: this fails right now, but the circuit should be sat - // let ok = ::neo::verify_chain_with_descriptor( - // &descriptor, - // &chain, - // &y0, - // ¶ms, - // &step_ios, - // ::neo::AppInputBinding::WitnessBound, - // ) - // .unwrap(); - - // assert!(ok, "neo chain verification failed"); + let ok = ::neo::verify_chain_with_descriptor( + &descriptor, + &chain, + &y0, + ¶ms, + &step_ios, + ::neo::AppInputBinding::WitnessBound, + ) + .unwrap(); + + assert!(ok, "neo chain verification failed"); let (final_proof, _final_ccs, _final_public_input) = finalize_ivc_chain_with_options( &descriptor, diff --git a/starstream_ivc_proto/src/neo.rs b/starstream_ivc_proto/src/neo.rs index d58cd9ab..775eaf3a 100644 --- a/starstream_ivc_proto/src/neo.rs +++ b/starstream_ivc_proto/src/neo.rs @@ -72,10 +72,6 @@ where .make_step_circuit(step_idx, &mut self.mem, cs.clone(), self.irw.clone()) .unwrap(); - // this hides the proof system errors - // keep it for now so that the tests pass correctly - assert!(cs.is_satisfied().unwrap(), "circuit is not satisfiable"); - let spec = self.step_spec(); let step = arkworks_to_neo(cs.clone()); From 097d08cd79f9a6dedba875ba9819b1930aadcf0e Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Tue, 21 Oct 2025 03:18:23 -0300 Subject: [PATCH 012/152] (wip) add partial spec Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/README.md | 259 +++++++++++++++++++++++++++++++++ starstream_ivc_proto/graph.png | Bin 0 -> 315441 bytes 2 files changed, 259 insertions(+) create mode 100644 starstream_ivc_proto/README.md create mode 100644 starstream_ivc_proto/graph.png diff --git a/starstream_ivc_proto/README.md b/starstream_ivc_proto/README.md new file mode 100644 index 00000000..d3ee8f41 --- /dev/null +++ b/starstream_ivc_proto/README.md @@ -0,0 +1,259 @@ +## About + +This package implements a standalone circuit for the Starstream interleaving proof. + +### Architecture + +Let's start by defining some context. A Starstream transaction describes +coordinated state transitions between multiple concurrent on-chain programs, +where each transition is analogous to consuming a utxo. Each program is modelled +as a coroutine, which is a resumable function. Resuming a utxo is equal to +consuming it. Yielding from the utxo is equivalent to creating a new utxo. + +The ledger state for a program (utxo) is described by: + +1. A coroutine state. Which includes a program counter (to know from where to +resume the execution), and the values of variables in the stack. +2. The value of the last yield. + +The programs are represented as WASM modules, although the actual ISA does +not matter here. A program can either do native WASM operations, which for the +purposes of the interleaving verification is just a blackbox, or it can interact +with other programs. + +A program is either: + +1. A coordination script. Which doesn't have state persisted in the ledger. +2. A utxo, which has persistent state. + +Coordination scripts can call into utxos with some id, or other coordination +scripts (here the id can just be source code). Utxos can only yield. + +Coordination scripts calling into each other is equivalent to plain coroutine +calls. + +Yielding doesn't necessarily changes control flow to the coordination script +that called resume, because the transaction may end before that, and the next +coordination script could be a different one. Also because we have algebraic +effect handlers, control flow may go to a coordination script that was deeper in +the call stack. + +As mentioned before, programs are modelled as WASM programs, both in the case +of coordination scripts and in the case of utxos. Inter-program communication is +expressed as WASM host (imported) function calls. To verify execution, we use a +*WASM zkVM*. When proving, the only thing we assume about host calls is that the +only memory modified by it is that expressed by the function signature. + +This means we can think of a program trace as a list of native operations with +interspersed blackbox operations (which work as lookup arguments). + +From the program trace, we can use the zkVM to make a zero knowledge that claims +that. + +1. The ISA instructions were executed in accordance with the WASM ISA rules. +2. Host calls interact with the stack according to function types. + +What a single proof doesn't claim is that the values returned by host calls +were correct. + +In the case of lookup arguments for the optimizations (e.g. witnesses for +division, sorting), this can be extended by adding some verification of the +returned values. This spec doesn't focus on this specific case. + +The case that matters for this spec is the case where the host call is supposed +to trigger a change in ledger state and get some value from another program. + +The basic ledger operations that we care about are: + +#### Coordination script + +- resume(utxo: UtxoHandle, value: Value) -> Value + +Changes control flow from the coordination script to the utxo. The `value` +argument needs to match the return value of the last `yield` in that program. + +- new(utxo: ProgramId, value: Value) -> UtxoHandle + +Creates a new entry in the utxo set in the ledger state. It registers the +`ProgramId`, which acts as a verification key, and sets the initial coroutine +state. + +#### UTXO + +- yield(value: Value) -> Value + +Pause execution of the current utxo and move control flow to a coordination +script. This creates a new utxo entry, with the PC = current pc and the +coroutine state with the current variables. + +- burn() + +Explicit drop in the utxo's program. This removes the program (and the coroutine +state) from the ledger state. + +##### Tokens + +- bind(token: TokenHandle) +- unbind(token: TokenHandle) + +Relational arguments. The ledger state has to keep relations of inclusion, where +tokens can be included in utxos. + +#### Shared memory + +- share(value: Value) -> DataHandle +- get(value: DataHandle) -> Value + +`DataHandle` is a type used to represent channel-like shared memory. This is +needed to implement effect handlers, since it requires sharing data across +different memory environments. + +In this case `Value` it's just a placeholder for any value that can be +represented in the Starstream type system and that can be shared across programs +(the language doesn't have pointers, so this should be almost any type). + +A `UtxoHandle` is an identifier of a ledger state entry. Which is associated +with a specific program (the source code), and its current state. + +A `ProgramId` is an identifier of the source code (a verification key). + +### Proving + +All the operations that use the ledger state are communication operations. And +can be thought of as memory operations. Taking inspiration from offline memory +checking (and Nebula), we can bind each proof to an incremental commitment to +all the ledger operations in the current transaction. + +Let's say we have a coordination script, and after execution we get a trace like: + +``` +wasm_op_x +r1 <- call resume utxo_id v1 +wasm_op_y +r2 <- call resume utxo_id v2 +wasm_op_z +``` + +We use the zkVM and we get a proof of that execution. And also the proof is +bound to an incremental commitment `C_coord_comm := Commit(resume, v2, r2) + +Commit(resume, v1, r1)`. + +The straight forward construction for this is by using iterative hashing, for +example with Poseidon. For example: `H(, H(, +)`. + +To reduce the amount of hashing required, a more efficient construction would be +to combine a hash function with a vector commitment scheme, reducing the hashing +needed to one per operation. + +Note that we also need to include a tag for the operation in the commitment, +since that fixes the order of operations. + +Now let's say we have the trace of the utxo that gets resumed. It forms a +dual or complement with the coordination script trace. Where a yield is dual +to resume: + +``` +wasm_op_a +z1 <- call yield y1 +wasm_op_b +z2 <- call yield y2 +wasm_op_c +``` + +Then we bind the zkVM wasm proof to a different commitment: + +`C_utxo_comm := Commit(yield, y2, z2) + Commit(resume, y1, y1)` + +Then we can generate a new trace with the _actual_ interleaving defined by +the functional dependency, by combining both executions into the right order +of interleaving: + +``` +resume utxo:utxo_id in:v1 out:r1 +yield utxo:utxo_id in:y1 out:z1 +resume utxo:utxo_id in:v2 out:r2 +yield utxo:utxo_id in:y2 out:z2 +``` + +Then we need to prove the following things: + +1. The exchange of messages match. + +In this case this means that all of these hold: + + - `v1 == z1` + - `r1 == y1` + - `v2 == z2` + - `r2 == y2` + +2. The exchanged values match the ones in the individual original traces. + +For this we get a single proof, and two commitments: + +- `C_coord_coom'` +- `C_utxo_coom'` + +Then the verifier can check that the commitments match the ones from the +original proofs. This also enforces the same order of operations (and values) in +both (or all n in general) proofs. + +3. The order matches the ids. That is, a resume to a certain utxo_id must match +the id of the utxo that yields in the next step. + +*Note*: The interleaving proof doesn't need to know about the coroutine states, +just about the values of yield and resume. + +### Example + +As a more general example, let's say we have two coordination scripts and two utxos. + +``` +fn coord1(input: Data, u1: Utxo1, u2: Utxo2) { + let v_01 = f(input); + let v_02 = resume u1 v_01; + + let v_03 = g(v_03); + + let v_04 = coord2(v_03); + + let v_05 = h(v_04); + + let v_06 = resume u_2 v_05; + resume u2 nil; + + return; +} + +fn coord2(u1: Utxo1, v_10: u32) { + let v_11 = f(v_10); + let v_12 = resume u1; + return v_12; +} + +utxo Utxo1 { + main { + // current state + yield; + + yield v_20; + yield v_21; + } +} + +utxo Utxo2 { + main { + // current state + yield; + + let v_31 = yield v_30; + return; + } +} +``` + +The flow of execution to proving then looks something like this: + +Note: WASM is an arbitrary trace of wasm opcodes from the corresponding program. + +![img](graph.png) diff --git a/starstream_ivc_proto/graph.png b/starstream_ivc_proto/graph.png new file mode 100644 index 0000000000000000000000000000000000000000..fcd7bb8e1ab99b4f5b1a95b18f79fb15d0751a13 GIT binary patch literal 315441 zcma&ObzEFQ@-GSu4nc!!aDuzTV8NZ>G6|O8?lusDy9FOCxI+?rkPPk+2*KUm^+9&` z-ut`n?e6=7>Cc>VrcZTs)wfFtS67vLfli7J2M6~;L0(1^4i3o=4h|&;75V83=uQUo zG@v=k>$||g;iWzQ!ROefhdf;*ah26`)pD?O^?2uO0q5c2!T!MQNqXoNzvsK1{ zC@CD`NSlI;q_!vgUKYv^eA!DFenfE~x=uNh`_Ba=+>Qw2v5^Nbug~q?13~jlb0AIe zjQZXSSsclZ7?3Qk`b#7qX<+Z;C4)#~;?URm42(;YVXtff9+wT}-vZ5bJXVYuo;2}c z>xrJC;t6-(u5DSX3`mMiD;f;fVS!vAOl=MTM(KC&vUy@o*vw z43kL68_qa?RsdP*L|9*E%s!}p%C#Ll)ULVC4KTp>>r{_{uwdw@!r zgV1IT_IxwEh*tMb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EgQZDKn4)#x8TIF%E)bqgq1NQ~g1^@s6 literal 0 HcmV?d00001 From b2d8aa495117c95f1c8ee13c66941ac713ceea59 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Mon, 27 Oct 2025 14:00:18 -0300 Subject: [PATCH 013/152] add better tests with mocked ledger/executor/programs the e2e.rs has a (partial) mocked version of the ledger and of the program scheduler/executor the goal is to generate the trace/witness for the interleaving proof, while keeping some model of the order of execution, that reflects the spec on the readme. Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/Cargo.toml | 9 +- starstream_ivc_proto/src/circuit.rs | 64 ++- starstream_ivc_proto/src/e2e.rs | 708 ++++++++++++++++++++++++++++ starstream_ivc_proto/src/lib.rs | 142 ++++-- starstream_ivc_proto/src/neo.rs | 2 +- 5 files changed, 848 insertions(+), 77 deletions(-) create mode 100644 starstream_ivc_proto/src/e2e.rs diff --git a/starstream_ivc_proto/Cargo.toml b/starstream_ivc_proto/Cargo.toml index c7ea28a2..f440ad27 100644 --- a/starstream_ivc_proto/Cargo.toml +++ b/starstream_ivc_proto/Cargo.toml @@ -13,10 +13,13 @@ ark-poly-commit = "0.5.0" tracing = { version = "0.1", default-features = false, features = [ "attributes" ] } tracing-subscriber = { version = "0.3" } -neo = { git = "https://github.com/nicarq/halo3", rev = "997812d75b491682dfe4bd8b0f9bd3ffc06684b0", features = ["neo-logs", "debug-logs", "testing", "neo_dev_only", "fs-guard"] } -neo-math = { git = "https://github.com/nicarq/halo3", rev = "997812d75b491682dfe4bd8b0f9bd3ffc06684b0" } -neo-ccs = { git = "https://github.com/nicarq/halo3", rev = "997812d75b491682dfe4bd8b0f9bd3ffc06684b0" } +neo = { git = "https://github.com/nicarq/halo3", rev = "3b2a85115984b2c2cbcf90dce394075e045c6931", features = ["fs-guard"] } +neo-math = { git = "https://github.com/nicarq/halo3", rev = "3b2a85115984b2c2cbcf90dce394075e045c6931" } +neo-ccs = { git = "https://github.com/nicarq/halo3", rev = "3b2a85115984b2c2cbcf90dce394075e045c6931" } +neo-ajtai = { git = "https://github.com/nicarq/halo3", rev = "3b2a85115984b2c2cbcf90dce394075e045c6931" } +rand = "0.9" p3-goldilocks = { version = "0.3.0", default-features = false } p3-field = "0.3.0" p3-symmetric = "0.3.0" +p3-poseidon2 = "0.3.0" diff --git a/starstream_ivc_proto/src/circuit.rs b/starstream_ivc_proto/src/circuit.rs index 80621b4e..44800f9d 100644 --- a/starstream_ivc_proto/src/circuit.rs +++ b/starstream_ivc_proto/src/circuit.rs @@ -1,9 +1,9 @@ use crate::memory::{self, Address, IVCMemory}; -use crate::{F, Instruction, UtxoChange, UtxoId, memory::IVCMemoryAllocated}; +use crate::{memory::IVCMemoryAllocated, LedgerOperation, ProgramId, UtxoChange, F}; use ark_ff::AdditiveGroup as _; use ark_r1cs_std::alloc::AllocationMode; use ark_r1cs_std::{ - GR1CSVar as _, alloc::AllocVar as _, eq::EqGadget, fields::fp::FpVar, prelude::Boolean, + alloc::AllocVar as _, eq::EqGadget, fields::fp::FpVar, prelude::Boolean, GR1CSVar as _, }; use ark_relations::{ gr1cs::{ConstraintSystemRef, LinearCombination, SynthesisError, Variable}, @@ -28,8 +28,8 @@ pub const UTXO_INDEX_MAPPING_SIZE: u64 = 1u64; pub const OUTPUT_CHECK_SIZE: u64 = 2u64; pub struct StepCircuitBuilder { - pub utxos: BTreeMap, - pub ops: Vec, + pub utxos: BTreeMap, + pub ops: Vec>, write_ops: Vec<(ProgramState, ProgramState)>, utxo_order_mapping: HashMap, @@ -230,14 +230,8 @@ impl Wires { .map(|val| Boolean::new_witness(cs.clone(), || Ok(*val)).unwrap()) .collect(); - let [ - resume_switch, - yield_resume_switch, - utxo_yield_switch, - check_utxo_output_switch, - nop_switch, - drop_utxo_switch, - ] = allocated_switches.as_slice() + let [resume_switch, yield_resume_switch, utxo_yield_switch, check_utxo_output_switch, nop_switch, drop_utxo_switch] = + allocated_switches.as_slice() else { unreachable!() }; @@ -401,15 +395,15 @@ impl InterRoundWires { } } -impl Instruction { +impl LedgerOperation { pub fn write_values( &self, coord_read: Vec, utxo_read: Vec, ) -> (ProgramState, ProgramState) { match &self { - Instruction::Nop {} => (ProgramState::dummy(), ProgramState::dummy()), - Instruction::Resume { + LedgerOperation::Nop {} => (ProgramState::dummy(), ProgramState::dummy()), + LedgerOperation::Resume { utxo_id: _, input, output, @@ -430,7 +424,7 @@ impl Instruction { (coord, utxo) } - Instruction::YieldResume { + LedgerOperation::YieldResume { utxo_id: _, output: _, } => { @@ -445,7 +439,7 @@ impl Instruction { (coord, utxo) } - Instruction::Yield { utxo_id: _, input } => { + LedgerOperation::Yield { utxo_id: _, input } => { let coord = ProgramState::dummy(); let utxo = ProgramState { @@ -457,7 +451,7 @@ impl Instruction { (coord, utxo) } - Instruction::CheckUtxoOutput { utxo_id: _ } => { + LedgerOperation::CheckUtxoOutput { utxo_id: _ } => { let coord = ProgramState::dummy(); let utxo = ProgramState { @@ -469,7 +463,7 @@ impl Instruction { (coord, utxo) } - Instruction::DropUtxo { utxo_id: _ } => { + LedgerOperation::DropUtxo { utxo_id: _ } => { let coord = ProgramState::dummy(); let utxo = ProgramState::dummy(); @@ -480,7 +474,7 @@ impl Instruction { } impl> StepCircuitBuilder { - pub fn new(utxos: BTreeMap, ops: Vec) -> Self { + pub fn new(utxos: BTreeMap, ops: Vec>) -> Self { Self { utxos, ops, @@ -636,14 +630,16 @@ impl> StepCircuitBuilder { // address. let (utxo_id, coord_read_cond, utxo_read_cond, coord_write_cond, utxo_write_cond) = match instr { - Instruction::Resume { utxo_id, .. } => (*utxo_id, false, false, true, true), - Instruction::YieldResume { utxo_id, .. } - | Instruction::Yield { utxo_id, .. } => (*utxo_id, true, false, false, true), - Instruction::CheckUtxoOutput { utxo_id } => { + LedgerOperation::Resume { utxo_id, .. } => (*utxo_id, false, false, true, true), + LedgerOperation::YieldResume { utxo_id, .. } + | LedgerOperation::Yield { utxo_id, .. } => { + (*utxo_id, true, false, false, true) + } + LedgerOperation::CheckUtxoOutput { utxo_id } => { (*utxo_id, false, true, false, true) } - Instruction::Nop {} => (F::from(0), false, false, false, false), - Instruction::DropUtxo { utxo_id } => (*utxo_id, false, false, false, false), + LedgerOperation::Nop {} => (F::from(0), false, false, false, false), + LedgerOperation::DropUtxo { utxo_id } => (*utxo_id, false, false, false, false), }; let utxo_addr = *self.utxo_order_mapping.get(&utxo_id).unwrap_or(&2); @@ -686,7 +682,7 @@ impl> StepCircuitBuilder { ); mb.conditional_read( - !matches!(instr, Instruction::Nop {}), + !matches!(instr, LedgerOperation::Nop {}), Address { addr: utxo_addr as u64 + utxos_len, tag: UTXO_INDEX_MAPPING_SEGMENT, @@ -694,7 +690,7 @@ impl> StepCircuitBuilder { ); mb.conditional_read( - matches!(instr, Instruction::CheckUtxoOutput { .. }), + matches!(instr, LedgerOperation::CheckUtxoOutput { .. }), Address { addr: utxo_addr as u64 + utxos_len * 2, tag: OUTPUT_CHECK_SEGMENT, @@ -715,7 +711,7 @@ impl> StepCircuitBuilder { let (coord_write, utxo_write) = &self.write_ops[i]; match instruction { - Instruction::Nop {} => { + LedgerOperation::Nop {} => { let irw = PreWires { nop_switch: true, irw: irw.clone(), @@ -731,7 +727,7 @@ impl> StepCircuitBuilder { Wires::from_irw(&irw, rm, utxo_write, coord_write) } - Instruction::Resume { + LedgerOperation::Resume { utxo_id, input, output, @@ -754,7 +750,7 @@ impl> StepCircuitBuilder { Wires::from_irw(&irw, rm, utxo_write, coord_write) } - Instruction::YieldResume { utxo_id, output } => { + LedgerOperation::YieldResume { utxo_id, output } => { let utxo_addr = *self.utxo_order_mapping.get(utxo_id).unwrap(); let irw = PreWires { @@ -772,7 +768,7 @@ impl> StepCircuitBuilder { Wires::from_irw(&irw, rm, utxo_write, coord_write) } - Instruction::Yield { utxo_id, input } => { + LedgerOperation::Yield { utxo_id, input } => { let utxo_addr = *self.utxo_order_mapping.get(utxo_id).unwrap(); let irw = PreWires { @@ -787,7 +783,7 @@ impl> StepCircuitBuilder { Wires::from_irw(&irw, rm, utxo_write, coord_write) } - Instruction::CheckUtxoOutput { utxo_id } => { + LedgerOperation::CheckUtxoOutput { utxo_id } => { let utxo_addr = *self.utxo_order_mapping.get(utxo_id).unwrap(); let irw = PreWires { @@ -800,7 +796,7 @@ impl> StepCircuitBuilder { Wires::from_irw(&irw, rm, utxo_write, coord_write) } - Instruction::DropUtxo { utxo_id } => { + LedgerOperation::DropUtxo { utxo_id } => { let utxo_addr = *self.utxo_order_mapping.get(utxo_id).unwrap(); let irw = PreWires { diff --git a/starstream_ivc_proto/src/e2e.rs b/starstream_ivc_proto/src/e2e.rs new file mode 100644 index 00000000..0219e75b --- /dev/null +++ b/starstream_ivc_proto/src/e2e.rs @@ -0,0 +1,708 @@ +//* Dummy UTXO VM **just** for testing and to illustrate the data flow. It's not +//* trying to be a zkvm, nor a wasm-like vm. + +use crate::{LedgerOperation, ProgramId, Transaction, UtxoChange, neo::ark_field_to_p3_goldilocks}; +use ark_ff::PrimeField; +use neo_ajtai::{Commitment, PP, commit, decomp_b, setup}; +use neo_ccs::crypto::poseidon2_goldilocks::poseidon2_hash; +use neo_math::ring::Rq as RqEl; +use p3_field::PrimeCharacteristicRing; +use p3_goldilocks::Goldilocks; +use rand::rng; +use std::sync::OnceLock; +use std::{ + cell::RefCell, + collections::{BTreeMap, HashMap, HashSet}, + rc::Rc, +}; + +// TODO: this should be a parameter +static AJTAI_PP: OnceLock> = OnceLock::new(); + +fn get_ajtai_pp() -> &'static PP { + AJTAI_PP.get_or_init(|| { + let mut rng = rng(); + let d = neo_math::ring::D; // ring dimension + let kappa = 128; // security parameter + let m = 4; // vector length + setup(&mut rng, d, kappa, m).expect("Failed to setup Ajtai commitment") + }) +} + +fn incremental_commit(value1: [Goldilocks; 4], value2: [Goldilocks; 4]) -> [Goldilocks; 4] { + let input = [value1, value2].concat(); + + poseidon2_hash(&input) +} + +// TODO: review this, there may be a more efficient conversion +// this is 864 hashes per step +// the important part is that it would have to be done in the circuit too, so review this +fn ajtai_commitment_to_goldilocks(commitment: &Commitment) -> [Goldilocks; 4] { + let mut result = [Goldilocks::ZERO; 4]; + + for chunk in commitment.data.chunks(4) { + let input = [ + result[0], result[1], result[2], result[3], chunk[0], chunk[1], chunk[2], chunk[3], + ]; + + result = poseidon2_hash(&input); + } + + result +} + +fn block_commitment( + op_tag: u64, + utxo_id: crate::F, + input: crate::F, + output: crate::F, +) -> [Goldilocks; 4] { + let z = vec![ + ark_field_to_p3_goldilocks(&crate::F::from(op_tag)), + ark_field_to_p3_goldilocks(&utxo_id), + ark_field_to_p3_goldilocks(&input), + ark_field_to_p3_goldilocks(&output), + ]; + + let b = 2; + let decomp_b = decomp_b(&z, b, neo_math::ring::D, neo_ajtai::DecompStyle::Balanced); + + let commitment = commit(get_ajtai_pp(), &decomp_b); + + ajtai_commitment_to_goldilocks(&commitment) +} + +#[derive(Debug, Clone)] +pub struct IncrementalCommitment { + commitment: [Goldilocks; 4], +} + +impl IncrementalCommitment { + pub fn new() -> Self { + Self { + commitment: [Goldilocks::ZERO; 4], + } + } + + pub fn add_operation(&mut self, op: &LedgerOperation) { + let (tag, utxo_id, input, output) = match op { + LedgerOperation::Resume { + utxo_id, + input, + output, + } => (1, *utxo_id, *input, *output), + LedgerOperation::Yield { utxo_id, input } => (2, *utxo_id, *input, crate::F::from(0)), + LedgerOperation::YieldResume { utxo_id, output } => { + (3, *utxo_id, crate::F::from(0), *output) + } + LedgerOperation::DropUtxo { utxo_id } => { + (4, *utxo_id, crate::F::from(0), crate::F::from(0)) + } + // these are just auxiliary instructions for the proof, not real + // ledger operations + // they don't show up in the wasm execution trace + LedgerOperation::Nop {} => return, + LedgerOperation::CheckUtxoOutput { utxo_id: _ } => return, + }; + + let op_commitment = block_commitment(tag, utxo_id, input, output); + + self.commitment = incremental_commit(op_commitment, self.commitment); + } + + pub fn as_field_elements(&self) -> [Goldilocks; 4] { + self.commitment + } +} + +#[derive(Debug, Clone)] +pub struct ProgramTraceCommitments { + commitments: HashMap, +} + +impl ProgramTraceCommitments { + pub fn new() -> Self { + Self { + commitments: HashMap::new(), + } + } + + fn add_operation(&mut self, op: &LedgerOperation) { + let program_id = match op { + LedgerOperation::Resume { + utxo_id, + input: _, + output: _, + } => utxo_id, + LedgerOperation::Yield { utxo_id, input: _ } => utxo_id, + LedgerOperation::YieldResume { utxo_id, output: _ } => utxo_id, + LedgerOperation::DropUtxo { utxo_id } => utxo_id, + LedgerOperation::Nop {} => return, + LedgerOperation::CheckUtxoOutput { utxo_id: _ } => return, + }; + + self.commitments + .entry(*program_id) + .or_insert_with(IncrementalCommitment::new) + .add_operation(op); + } + + fn get_all_commitments(&self) -> &HashMap { + &self.commitments + } +} + +#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] +pub struct Variable(usize); + +type Value = crate::F; + +trait BlackBox { + fn run(&self, state: &mut HashMap) -> Option; + fn box_clone(&self) -> Box; +} + +impl Clone for Box { + fn clone(&self) -> Self { + self.box_clone() + } +} + +impl BlackBox for F +where + F: Fn(&mut HashMap) -> Option + Clone + 'static, +{ + fn run(&self, state: &mut HashMap) -> Option { + self(state) + } + + fn box_clone(&self) -> Box { + Box::new(self.clone()) + } +} + +#[derive(Clone)] +enum Op { + // pure compuation in the sense that it doesn't interact with the ledger + // this represents the native operations of the wasm vm. + Pure { + f: Box, + }, + New { + initial_state: Value, + output_var: Variable, + }, + Yield { + val: Variable, + }, + Resume { + utxo: Variable, + val: Variable, + }, + Burn {}, +} + +impl std::fmt::Debug for Op { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match self { + Self::Pure { .. } => f.debug_struct("Pure").finish(), + Self::New { + initial_state, + output_var, + } => f + .debug_struct("New") + .field("utxo", initial_state) + .field("output_var", output_var) + .finish(), + Self::Yield { val } => f.debug_struct("Yield").field("val", val).finish(), + Self::Resume { utxo, val } => f + .debug_struct("Resume") + .field("utxo", utxo) + .field("val", val) + .finish(), + Op::Burn {} => f.debug_struct("Burn").finish(), + } + } +} + +pub struct MockedProgram { + code: Vec, + state: MockedProgramState, +} + +pub struct MockedProgramState { + pc: usize, + yield_skip: bool, + thunk: Option, + vars: HashMap, + // output: Option, + input: Option, +} + +impl MockedProgram { + fn new(code: Vec, yielded: bool) -> Rc> { + Rc::new(RefCell::new(MockedProgram { + code, + state: MockedProgramState { + pc: 0, + yield_skip: yielded, + thunk: None, + vars: HashMap::new(), + // output: None, + input: None, + }, + })) + } +} + +#[derive(Clone, Debug)] +pub struct UtxoState { + output: crate::F, + memory: crate::F, +} + +pub struct MockedLedger { + utxos: BTreeMap, +} + +#[derive(Clone, Debug)] +pub enum Thunk { + Resolved(crate::F), + Unresolved(Rc>>), +} + +impl From for Thunk { + fn from(f: crate::F) -> Self { + Thunk::Resolved(f) + } +} + +impl From<&crate::F> for Thunk +where + crate::F: Clone, +{ + fn from(f: &crate::F) -> Self { + Thunk::Resolved(*f) + } +} + +impl From for crate::F { + fn from(thunk: Thunk) -> Self { + match thunk { + Thunk::Resolved(f) => f, + Thunk::Unresolved(maybe_f) => maybe_f.borrow().unwrap(), + } + } +} + +impl Thunk { + fn unresolved() -> Self { + Self::Unresolved(Rc::new(RefCell::new(None))) + } + + fn resolve(&self, f: crate::F) { + match self { + Thunk::Resolved(_fp) => unreachable!("already resolved value"), + Thunk::Unresolved(unresolved) => (*unresolved.borrow_mut()) = Some(f), + } + } +} + +impl MockedLedger { + pub(crate) fn run_mocked_vm( + &mut self, + entry_point: Value, + programs: HashMap>>, + ) -> ( + Transaction>>, + ProgramTraceCommitments, + ) { + let state_pre = self.utxos.clone(); + + let mut instructions: Vec> = vec![]; + let mut commitments = ProgramTraceCommitments::new(); + + let mut current_program = entry_point; + let mut in_coord = true; + let mut prev_program: Option = None; + + let mut consumed = HashSet::new(); + + loop { + let program_state = Rc::clone(programs.get(¤t_program).unwrap()); + + let opcode = program_state + .borrow() + .code + .get(program_state.borrow().state.pc) + .cloned(); + + if let Some(opcode) = opcode { + match opcode { + Op::Pure { f } => { + let new_pc = f.run(&mut program_state.borrow_mut().state.vars); + + if let Some(new_pc) = new_pc { + program_state.borrow_mut().state.pc = new_pc; + } else { + program_state.borrow_mut().state.pc += 1; + } + } + Op::Yield { val } => { + let yield_to = *prev_program.as_ref().unwrap(); + + let yield_val = *program_state.borrow().state.vars.get(&val).unwrap(); + + self.utxos.entry(current_program).and_modify(|state| { + state.output = yield_val; + }); + + let yield_to_program = programs.get(&yield_to).unwrap(); + + let yield_resume_op = LedgerOperation::YieldResume { + utxo_id: current_program.into(), + output: yield_to_program.borrow().state.input.unwrap().into(), + }; + let yield_op = LedgerOperation::Yield { + utxo_id: current_program.into(), + input: program_state.borrow().state.vars.get(&val).unwrap().into(), + }; + + instructions.push(yield_resume_op); + instructions.push(yield_op); + + program_state.borrow_mut().state.pc += 1; + program_state.borrow_mut().state.yield_skip = false; + + prev_program.replace(current_program); + current_program = yield_to; + + in_coord = true; + } + Op::Resume { utxo, val } => { + let utxo_id = *(program_state.borrow().state.vars.get(&utxo).unwrap()); + if !dbg!(program_state.borrow().state.yield_skip) { + let input = *(program_state.borrow().state.vars.get(&val).unwrap()); + + program_state.borrow_mut().state.input.replace(input); + + prev_program.replace(current_program); + + in_coord = false; + current_program = dbg!(utxo_id); + + program_state.borrow_mut().state.yield_skip = true; + + let output_thunk = Thunk::unresolved(); + program_state.borrow_mut().state.thunk = Some(output_thunk.clone()); + + let resume_op = LedgerOperation::Resume { + utxo_id: program_state + .borrow() + .state + .vars + .get(&utxo) + .unwrap() + .into(), + input: program_state.borrow().state.vars.get(&val).unwrap().into(), + output: output_thunk, + }; + + instructions.push(resume_op); + } else { + let output_val = self.utxos.get(&utxo_id).unwrap().output; + + program_state + .borrow() + .state + .thunk + .as_ref() + .unwrap() + .resolve(output_val); + + program_state.borrow_mut().state.pc += 1; + program_state.borrow_mut().state.yield_skip = false; + in_coord = true; + } + } + Op::New { + initial_state, + output_var, + } => { + let utxo_id = 2 + self.utxos.len(); + + program_state + .borrow_mut() + .state + .vars + .insert(output_var, crate::F::from(utxo_id as u64)); + + self.utxos.insert( + ProgramId::from(utxo_id as u64), + UtxoState { + output: crate::F::from(0), + memory: initial_state, + }, + ); + + program_state.borrow_mut().state.pc += 1; + + assert!(in_coord); + } + Op::Burn {} => { + consumed.insert(current_program); + program_state.borrow_mut().state.pc += 1; + + let drop_op = LedgerOperation::DropUtxo { + utxo_id: current_program.into(), + }; + + instructions.push(drop_op); + + let yield_to = *prev_program.as_ref().unwrap(); + + prev_program.replace(current_program); + + in_coord = true; + self.utxos.entry(current_program).and_modify(|state| { + state.output = crate::F::from(0); + }); + + current_program = yield_to; + } + } + } else { + assert!(in_coord); + break; + } + } + + let mut utxo_deltas: BTreeMap = Default::default(); + + for (utxo_id, state_pos) in &self.utxos { + let output_before = state_pre + .get(utxo_id) + .map(|st| st.output) + .unwrap_or_default(); + + utxo_deltas.insert( + *utxo_id, + UtxoChange { + output_before, + output_after: state_pos.output, + consumed: consumed.contains(utxo_id), + }, + ); + } + + for utxo in consumed { + self.utxos.remove(&utxo); + } + + let resolved_instructions: Vec> = instructions + .into_iter() + .map(|instr| match instr { + LedgerOperation::Resume { + utxo_id, + input, + output, + } => LedgerOperation::Resume { + utxo_id: utxo_id.into(), + input: input.into(), + output: output.into(), + }, + LedgerOperation::Yield { utxo_id, input } => LedgerOperation::Yield { + utxo_id: utxo_id.into(), + input: input.into(), + }, + LedgerOperation::YieldResume { utxo_id, output } => LedgerOperation::YieldResume { + utxo_id: utxo_id.into(), + output: output.into(), + }, + LedgerOperation::DropUtxo { utxo_id } => LedgerOperation::DropUtxo { + utxo_id: utxo_id.into(), + }, + LedgerOperation::Nop {} => LedgerOperation::Nop {}, + LedgerOperation::CheckUtxoOutput { utxo_id } => LedgerOperation::CheckUtxoOutput { + utxo_id: utxo_id.into(), + }, + }) + .collect(); + + for op in resolved_instructions.iter() { + commitments.add_operation(op); + } + + ( + Transaction::new_unproven(utxo_deltas, resolved_instructions), + commitments, + ) + } +} + +pub struct ProgramBuilder { + ops: Vec, + yielded: bool, + next_var_id: usize, +} + +impl ProgramBuilder { + pub fn new() -> Self { + Self { + ops: Vec::new(), + yielded: false, + next_var_id: 0, + } + } + + pub fn alloc_var(&mut self) -> Variable { + let var = Variable(self.next_var_id); + self.next_var_id += 1; + var + } + + pub fn set_var(mut self, var: Variable, value: Value) -> Self { + self.ops.push(Op::Pure { + f: Box::new(move |state: &mut HashMap| { + state.insert(var, value); + None + }), + }); + self + } + + pub fn increment_var(mut self, var: Variable, amount: Value) -> Self { + self.ops.push(Op::Pure { + f: Box::new(move |state: &mut HashMap| { + state.entry(var).and_modify(|v| *v += amount); + None + }), + }); + self + } + + pub fn jump_to(mut self, pc: usize) -> Self { + self.ops.push(Op::Pure { + f: Box::new(move |_state: &mut HashMap| Some(pc)), + }); + self + } + + pub fn new_utxo(mut self, initial_state: Value, output_var: Variable) -> Self { + self.ops.push(Op::New { + initial_state, + output_var, + }); + self + } + + pub fn yield_val(mut self, val: Variable) -> Self { + self.ops.push(Op::Yield { val }); + self + } + + pub fn resume(mut self, utxo: Variable, val: Variable) -> Self { + self.ops.push(Op::Resume { utxo, val }); + self + } + + pub fn burn(mut self) -> Self { + self.ops.push(Op::Burn {}); + self + } + + pub fn build(self) -> Rc> { + MockedProgram::new(self.ops, self.yielded) + } +} + +pub struct ProgramContext { + programs: HashMap>>, + next_id: u64, +} + +impl ProgramContext { + pub fn new() -> Self { + Self { + programs: HashMap::new(), + next_id: 1, + } + } + + pub fn add_program_with_id(&mut self, id: Value, builder: ProgramBuilder) { + self.programs.insert(id, builder.build()); + if id >= crate::F::from(self.next_id) { + self.next_id = id.into_bigint().as_ref()[0] + 1; + } + } + + pub fn into_programs(self) -> HashMap>> { + self.programs + } +} + +#[cfg(test)] +mod tests { + use crate::{ + F, + e2e::{MockedLedger, ProgramBuilder, ProgramContext}, + test_utils::init_test_logging, + }; + use std::collections::BTreeMap; + + #[test] + fn test_trace_mocked_vm() { + init_test_logging(); + let mut ctx = ProgramContext::new(); + + let mut coord_builder = ProgramBuilder::new(); + let utxo1 = coord_builder.alloc_var(); + let val1 = coord_builder.alloc_var(); + let utxo2 = coord_builder.alloc_var(); + let val2 = coord_builder.alloc_var(); + + let coordination_script = coord_builder + .new_utxo(F::from(77), utxo1) + .set_var(val1, F::from(42)) + .resume(utxo1, val1) + .increment_var(val1, F::from(1)) + .resume(utxo1, val1) + .new_utxo(F::from(120), utxo2) + .set_var(val2, F::from(0)) + .resume(utxo2, val2) + .resume(utxo2, val2); + + let mut utxo1_builder = ProgramBuilder::new(); + let utxo1_val = utxo1_builder.alloc_var(); + let utxo1 = utxo1_builder + .set_var(utxo1_val, F::from(45)) + .yield_val(utxo1_val) + .jump_to(1); // loop + + let mut utxo2_builder = ProgramBuilder::new(); + let utxo2_val = utxo2_builder.alloc_var(); + let utxo2 = utxo2_builder + .set_var(utxo2_val, F::from(111)) + .yield_val(utxo2_val) + .burn(); + + ctx.add_program_with_id(F::from(1), coordination_script); + ctx.add_program_with_id(F::from(2), utxo1); + ctx.add_program_with_id(F::from(3), utxo2); + + let mut ledger = MockedLedger { + utxos: BTreeMap::default(), + }; + + let (tx, commitments) = ledger.run_mocked_vm(F::from(1), ctx.into_programs()); + + dbg!(&tx); + for (program_id, commitment) in commitments.get_all_commitments() { + let comm = commitment.as_field_elements(); + dbg!(program_id, comm[0], comm[1], comm[2], comm[3]); + } + + tx.prove().unwrap(); + } +} diff --git a/starstream_ivc_proto/src/lib.rs b/starstream_ivc_proto/src/lib.rs index f173e945..e0cfe1d9 100644 --- a/starstream_ivc_proto/src/lib.rs +++ b/starstream_ivc_proto/src/lib.rs @@ -1,7 +1,11 @@ mod circuit; +#[cfg(test)] +mod e2e; mod goldilocks; mod memory; mod neo; +#[cfg(test)] +mod test_utils; use crate::neo::StepCircuitNeo; use ::neo::{ @@ -17,8 +21,9 @@ use std::collections::BTreeMap; type F = FpGoldilocks; +#[derive(Debug)] pub struct Transaction

{ - pub utxo_deltas: BTreeMap, + pub utxo_deltas: BTreeMap, /// An unproven transaction would have here a vector of utxo 'opcodes', /// which are encoded in the `Instruction` enum. /// @@ -33,7 +38,7 @@ pub struct Transaction

{ // (coordination script | utxo). } -pub type UtxoId = F; +pub type ProgramId = F; #[derive(Debug, Clone)] pub struct UtxoChange { @@ -54,7 +59,7 @@ pub struct UtxoChange { // NOTE: see https://github.com/PaimaStudios/Starstream/issues/49#issuecomment-3294246321 #[derive(Debug, Clone)] -pub enum Instruction { +pub enum LedgerOperation { /// A call to starstream_resume from a coordination script. /// /// This stores the input and outputs in memory, and sets the @@ -105,11 +110,13 @@ pub struct ProverOutput { pub proof: ::neo::Proof, } -impl Transaction> { - pub fn new_unproven(changes: BTreeMap, mut ops: Vec) -> Self { - // TODO: uncomment later when folding works +impl Transaction>> { + pub fn new_unproven( + changes: BTreeMap, + mut ops: Vec>, + ) -> Self { for utxo_id in changes.keys() { - ops.push(Instruction::CheckUtxoOutput { utxo_id: *utxo_id }); + ops.push(LedgerOperation::CheckUtxoOutput { utxo_id: *utxo_id }); } Self { @@ -155,7 +162,6 @@ impl Transaction> { }; let (chain, step_ios) = session.finalize(); - // TODO: this fails right now, but the circuit should be sat let ok = ::neo::verify_chain_with_descriptor( &descriptor, &chain, @@ -188,7 +194,7 @@ impl Transaction> { } impl Transaction { - pub fn verify(&self, _changes: BTreeMap) { + pub fn verify(&self, _changes: BTreeMap) { // TODO: fill // } @@ -196,31 +202,18 @@ impl Transaction { #[cfg(test)] mod tests { - use crate::{F, Instruction, Transaction, UtxoChange, UtxoId}; + use crate::{ + F, LedgerOperation, ProgramId, Transaction, UtxoChange, test_utils::init_test_logging, + }; use std::collections::BTreeMap; - use tracing_subscriber::{EnvFilter, fmt}; - - fn init_test_logging() { - static INIT: std::sync::Once = std::sync::Once::new(); - - INIT.call_once(|| { - fmt() - .with_env_filter( - EnvFilter::from_default_env().add_directive(tracing::Level::DEBUG.into()), - ) - .with_test_writer() - .init(); - }); - } - #[test] fn test_starstream_tx() { init_test_logging(); - let utxo_id1: UtxoId = UtxoId::from(110); - let utxo_id2: UtxoId = UtxoId::from(300); - let utxo_id3: UtxoId = UtxoId::from(400); + let utxo_id1: ProgramId = ProgramId::from(110); + let utxo_id2: ProgramId = ProgramId::from(300); + let utxo_id3: ProgramId = ProgramId::from(400); let changes = vec![ ( @@ -254,23 +247,23 @@ mod tests { let tx = Transaction::new_unproven( changes.clone(), vec![ - Instruction::Nop {}, - Instruction::Resume { + LedgerOperation::Nop {}, + LedgerOperation::Resume { utxo_id: utxo_id2, input: F::from(0), output: F::from(0), }, - Instruction::DropUtxo { utxo_id: utxo_id2 }, - Instruction::Resume { + LedgerOperation::DropUtxo { utxo_id: utxo_id2 }, + LedgerOperation::Resume { utxo_id: utxo_id3, input: F::from(42), output: F::from(43), }, - Instruction::YieldResume { + LedgerOperation::YieldResume { utxo_id: utxo_id3, output: F::from(42), }, - Instruction::Yield { + LedgerOperation::Yield { utxo_id: utxo_id3, input: F::from(43), }, @@ -285,7 +278,7 @@ mod tests { #[test] #[should_panic] fn test_fail_starstream_tx_resume_mismatch() { - let utxo_id1: UtxoId = UtxoId::from(110); + let utxo_id1: ProgramId = ProgramId::from(110); let changes = vec![( utxo_id1, @@ -301,17 +294,17 @@ mod tests { let tx = Transaction::new_unproven( changes.clone(), vec![ - Instruction::Nop {}, - Instruction::Resume { + LedgerOperation::Nop {}, + LedgerOperation::Resume { utxo_id: utxo_id1, input: F::from(42), output: F::from(43), }, - Instruction::YieldResume { + LedgerOperation::YieldResume { utxo_id: utxo_id1, output: F::from(42000), }, - Instruction::Yield { + LedgerOperation::Yield { utxo_id: utxo_id1, input: F::from(43), }, @@ -322,4 +315,75 @@ mod tests { proof.verify(changes); } + + #[test] + #[should_panic] + fn test_starstream_tx_invalid_witness() { + init_test_logging(); + + let utxo_id1: ProgramId = ProgramId::from(110); + let utxo_id2: ProgramId = ProgramId::from(300); + let utxo_id3: ProgramId = ProgramId::from(400); + + let changes = vec![ + ( + utxo_id1, + UtxoChange { + output_before: F::from(5), + output_after: F::from(5), + consumed: false, + }, + ), + ( + utxo_id2, + UtxoChange { + output_before: F::from(4), + output_after: F::from(0), + consumed: true, + }, + ), + ( + utxo_id3, + UtxoChange { + output_before: F::from(5), + output_after: F::from(43), + consumed: false, + }, + ), + ] + .into_iter() + .collect::>(); + + let tx = Transaction::new_unproven( + changes.clone(), + vec![ + LedgerOperation::Nop {}, + LedgerOperation::Resume { + utxo_id: utxo_id2, + input: F::from(0), + output: F::from(0), + }, + LedgerOperation::DropUtxo { utxo_id: utxo_id2 }, + LedgerOperation::Resume { + utxo_id: utxo_id3, + input: F::from(42), + // Invalid: output should be F::from(43) to match output_after, + // but we're providing a mismatched value + output: F::from(999), + }, + LedgerOperation::YieldResume { + utxo_id: utxo_id3, + output: F::from(42), + }, + LedgerOperation::Yield { + utxo_id: utxo_id3, + // Invalid: input should match Resume output but doesn't + input: F::from(999), + }, + ], + ); + + // This should fail during proving because the witness is invalid + tx.prove().unwrap(); + } } diff --git a/starstream_ivc_proto/src/neo.rs b/starstream_ivc_proto/src/neo.rs index 775eaf3a..de4b0efa 100644 --- a/starstream_ivc_proto/src/neo.rs +++ b/starstream_ivc_proto/src/neo.rs @@ -157,7 +157,7 @@ fn ark_matrix_to_neo( neo_ccs::Mat::from_row_major(n_rows, n_cols, dense) } -fn ark_field_to_p3_goldilocks(col_v: &FpGoldilocks) -> p3_goldilocks::Goldilocks { +pub fn ark_field_to_p3_goldilocks(col_v: &FpGoldilocks) -> p3_goldilocks::Goldilocks { F::from_u64(col_v.into_bigint().0[0]) } From a997ac2edcaec6c61a26dbdddc7c1109f06506b0 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Wed, 29 Oct 2025 15:19:22 -0300 Subject: [PATCH 014/152] add (p3 compatible) poseidon2 compression gadget for goldilocks Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/src/lib.rs | 1 + starstream_ivc_proto/src/poseidon2/air.rs | 1 + .../src/poseidon2/constants.rs | 204 ++++++++++++++++++ starstream_ivc_proto/src/poseidon2/gadget.rs | 180 ++++++++++++++++ .../src/poseidon2/goldilocks.rs | 99 +++++++++ .../src/poseidon2/linear_layers.rs | 138 ++++++++++++ starstream_ivc_proto/src/poseidon2/math.rs | 80 +++++++ starstream_ivc_proto/src/poseidon2/mod.rs | 175 +++++++++++++++ .../src/poseidon2/vectorized.rs | 1 + 9 files changed, 879 insertions(+) create mode 100644 starstream_ivc_proto/src/poseidon2/air.rs create mode 100644 starstream_ivc_proto/src/poseidon2/constants.rs create mode 100644 starstream_ivc_proto/src/poseidon2/gadget.rs create mode 100644 starstream_ivc_proto/src/poseidon2/goldilocks.rs create mode 100644 starstream_ivc_proto/src/poseidon2/linear_layers.rs create mode 100644 starstream_ivc_proto/src/poseidon2/math.rs create mode 100644 starstream_ivc_proto/src/poseidon2/mod.rs create mode 100644 starstream_ivc_proto/src/poseidon2/vectorized.rs diff --git a/starstream_ivc_proto/src/lib.rs b/starstream_ivc_proto/src/lib.rs index e0cfe1d9..5bc83e99 100644 --- a/starstream_ivc_proto/src/lib.rs +++ b/starstream_ivc_proto/src/lib.rs @@ -4,6 +4,7 @@ mod e2e; mod goldilocks; mod memory; mod neo; +mod poseidon2; #[cfg(test)] mod test_utils; diff --git a/starstream_ivc_proto/src/poseidon2/air.rs b/starstream_ivc_proto/src/poseidon2/air.rs new file mode 100644 index 00000000..8ffe9b0b --- /dev/null +++ b/starstream_ivc_proto/src/poseidon2/air.rs @@ -0,0 +1 @@ +// This file is intentionally empty - AIR implementation was removed diff --git a/starstream_ivc_proto/src/poseidon2/constants.rs b/starstream_ivc_proto/src/poseidon2/constants.rs new file mode 100644 index 00000000..81a576ca --- /dev/null +++ b/starstream_ivc_proto/src/poseidon2/constants.rs @@ -0,0 +1,204 @@ +use crate::F; +use ark_ff::PrimeField; + +/// Degree of the chosen permutation polynomial for Goldilocks, used as the Poseidon2 S-Box. +/// +/// As p - 1 = 2^32 * 3 * 5 * 17 * ... the smallest choice for a degree D satisfying gcd(p - 1, D) = 1 is 7. +pub const GOLDILOCKS_S_BOX_DEGREE: u64 = 7; +pub const HALF_FULL_ROUNDS: usize = 4; +pub const PARTIAL_ROUNDS: usize = 22; + +pub const HL_GOLDILOCKS_8_EXTERNAL_ROUND_CONSTANTS: [[[u64; 8]; 4]; 2] = [ + [ + [ + 0xdd5743e7f2a5a5d9, + 0xcb3a864e58ada44b, + 0xffa2449ed32f8cdc, + 0x42025f65d6bd13ee, + 0x7889175e25506323, + 0x34b98bb03d24b737, + 0xbdcc535ecc4faa2a, + 0x5b20ad869fc0d033, + ], + [ + 0xf1dda5b9259dfcb4, + 0x27515210be112d59, + 0x4227d1718c766c3f, + 0x26d333161a5bd794, + 0x49b938957bf4b026, + 0x4a56b5938b213669, + 0x1120426b48c8353d, + 0x6b323c3f10a56cad, + ], + [ + 0xce57d6245ddca6b2, + 0xb1fc8d402bba1eb1, + 0xb5c5096ca959bd04, + 0x6db55cd306d31f7f, + 0xc49d293a81cb9641, + 0x1ce55a4fe979719f, + 0xa92e60a9d178a4d1, + 0x002cc64973bcfd8c, + ], + [ + 0xcea721cce82fb11b, + 0xe5b55eb8098ece81, + 0x4e30525c6f1ddd66, + 0x43c6702827070987, + 0xaca68430a7b5762a, + 0x3674238634df9c93, + 0x88cee1c825e33433, + 0xde99ae8d74b57176, + ], + ], + [ + [ + 0x014ef1197d341346, + 0x9725e20825d07394, + 0xfdb25aef2c5bae3b, + 0xbe5402dc598c971e, + 0x93a5711f04cdca3d, + 0xc45a9a5b2f8fb97b, + 0xfe8946a924933545, + 0x2af997a27369091c, + ], + [ + 0xaa62c88e0b294011, + 0x058eb9d810ce9f74, + 0xb3cb23eced349ae4, + 0xa3648177a77b4a84, + 0x43153d905992d95d, + 0xf4e2a97cda44aa4b, + 0x5baa2702b908682f, + 0x082923bdf4f750d1, + ], + [ + 0x98ae09a325893803, + 0xf8a6475077968838, + 0xceb0735bf00b2c5f, + 0x0a1a5d953888e072, + 0x2fcb190489f94475, + 0xb5be06270dec69fc, + 0x739cb934b09acf8b, + 0x537750b75ec7f25b, + ], + [ + 0xe9dd318bae1f3961, + 0xf7462137299efe1a, + 0xb1f6b8eee9adb940, + 0xbdebcc8a809dfe6b, + 0x40fc1f791b178113, + 0x3ac1c3362d014864, + 0x9a016184bdb8aeba, + 0x95f2394459fbc25e, + ], + ], +]; + +pub const HL_GOLDILOCKS_8_INTERNAL_ROUND_CONSTANTS: [u64; 22] = [ + 0x488897d85ff51f56, + 0x1140737ccb162218, + 0xa7eeb9215866ed35, + 0x9bd2976fee49fcc9, + 0xc0c8f0de580a3fcc, + 0x4fb2dae6ee8fc793, + 0x343a89f35f37395b, + 0x223b525a77ca72c8, + 0x56ccb62574aaa918, + 0xc4d507d8027af9ed, + 0xa080673cf0b7e95c, + 0xf0184884eb70dcf8, + 0x044f10b0cb3d5c69, + 0xe9e3f7993938f186, + 0x1b761c80e772f459, + 0x606cec607a1b5fac, + 0x14a0c2e1d45f03cd, + 0x4eace8855398574f, + 0xf905ca7103eff3e6, + 0xf8c8f8d20862c059, + 0xb524fe8bdd678e5a, + 0xfbb7865901a1ec41, +]; + +/// Round constants for Poseidon2, in a format that's convenient for R1CS. +#[derive(Debug, Clone)] +pub struct RoundConstants< + F: PrimeField, + const WIDTH: usize, + const HALF_FULL_ROUNDS: usize, + const PARTIAL_ROUNDS: usize, +> { + pub beginning_full_round_constants: [[F; WIDTH]; HALF_FULL_ROUNDS], + pub partial_round_constants: [F; PARTIAL_ROUNDS], + pub ending_full_round_constants: [[F; WIDTH]; HALF_FULL_ROUNDS], +} + +impl + RoundConstants +{ + pub const fn new( + beginning_full_round_constants: [[F; WIDTH]; HALF_FULL_ROUNDS], + partial_round_constants: [F; PARTIAL_ROUNDS], + ending_full_round_constants: [[F; WIDTH]; HALF_FULL_ROUNDS], + ) -> Self { + Self { + beginning_full_round_constants, + partial_round_constants, + ending_full_round_constants, + } + } + + /// Create test constants with simple deterministic values + pub fn test_constants() -> Self { + Self { + beginning_full_round_constants: core::array::from_fn(|round| { + core::array::from_fn(|i| F::from((round * WIDTH + i + 1) as u64)) + }), + partial_round_constants: core::array::from_fn(|round| { + F::from((HALF_FULL_ROUNDS * WIDTH + round + 1) as u64) + }), + ending_full_round_constants: core::array::from_fn(|round| { + core::array::from_fn(|i| { + F::from( + (HALF_FULL_ROUNDS * WIDTH + PARTIAL_ROUNDS + round * WIDTH + i + 1) as u64, + ) + }) + }), + } + } +} + +impl RoundConstants { + // TODO: cache/lazyfy this + pub fn new_goldilocks_8_constants() -> Self { + let [beginning_full_round_constants, ending_full_round_constants] = + HL_GOLDILOCKS_8_EXTERNAL_ROUND_CONSTANTS; + + Self { + beginning_full_round_constants: constants_to_ark_arrays(beginning_full_round_constants), + partial_round_constants: HL_GOLDILOCKS_8_INTERNAL_ROUND_CONSTANTS + .into_iter() + .map(F::from) + .collect::>() + .try_into() + .unwrap(), + ending_full_round_constants: constants_to_ark_arrays(ending_full_round_constants), + } + } +} + +fn constants_to_ark_arrays(beginning_full_round_constants: [[u64; 8]; 4]) -> [[F; 8]; 4] { + beginning_full_round_constants + .into_iter() + .map(|inner| { + inner + .into_iter() + .map(F::from) + .collect::>() + .try_into() + .unwrap() + }) + .collect::>() + .try_into() + .unwrap() +} diff --git a/starstream_ivc_proto/src/poseidon2/gadget.rs b/starstream_ivc_proto/src/poseidon2/gadget.rs new file mode 100644 index 00000000..0d6ea12b --- /dev/null +++ b/starstream_ivc_proto/src/poseidon2/gadget.rs @@ -0,0 +1,180 @@ +use super::constants::RoundConstants; +use super::linear_layers::{ExternalLinearLayer, InternalLinearLayer}; +use crate::poseidon2::constants::{GOLDILOCKS_S_BOX_DEGREE, HALF_FULL_ROUNDS, PARTIAL_ROUNDS}; +use ark_ff::PrimeField; +use ark_r1cs_std::fields::fp::FpVar; +use ark_r1cs_std::prelude::*; +use ark_relations::gr1cs::SynthesisError; + +/// R1CS gadget for Poseidon2 hash function +pub struct Poseidon2Gadget< + F: PrimeField, + ExtLinear: ExternalLinearLayer, + IntLinear: InternalLinearLayer, + const WIDTH: usize, + const SBOX_DEGREE: u64, + const HALF_FULL_ROUNDS: usize, + const PARTIAL_ROUNDS: usize, +> { + constants: RoundConstants, + _phantom: core::marker::PhantomData<(ExtLinear, IntLinear)>, +} + +impl< + F: PrimeField, + ExtLinear: ExternalLinearLayer, + IntLinear: InternalLinearLayer, + const WIDTH: usize, + const SBOX_DEGREE: u64, + const HALF_FULL_ROUNDS: usize, + const PARTIAL_ROUNDS: usize, +> Poseidon2Gadget +{ + pub fn new(constants: RoundConstants) -> Self { + Self { + // constants: constants.allocate(cs.clone())?, + constants, + _phantom: core::marker::PhantomData, + } + } + + /// Compute Poseidon2 permutation in R1CS + pub fn permute(&self, inputs: &[FpVar; WIDTH]) -> Result<[FpVar; WIDTH], SynthesisError> { + let mut state = inputs.clone(); + + ExtLinear::apply(&mut state)?; + + // Beginning full rounds + for round in 0..HALF_FULL_ROUNDS { + self.eval_full_round( + &mut state, + &self.constants.beginning_full_round_constants[round], + )?; + } + + for round in 0..PARTIAL_ROUNDS { + self.eval_partial_round(&mut state, &self.constants.partial_round_constants[round])?; + } + + for round in 0..HALF_FULL_ROUNDS { + self.eval_full_round( + &mut state, + &self.constants.ending_full_round_constants[round], + )?; + } + + Ok(state) + } + + fn eval_full_round( + &self, + state: &mut [FpVar; WIDTH], + round_constants: &[F; WIDTH], + ) -> Result<(), SynthesisError> { + // Add round constants and apply S-box to each element + for (s, r) in state.iter_mut().zip(round_constants.iter()) { + *s = s.clone() + FpVar::constant(*r); + *s = self.eval_sbox(s.clone())?; + } + + // Apply external linear layer + ExtLinear::apply(state)?; + + Ok(()) + } + + fn eval_partial_round( + &self, + state: &mut [FpVar; WIDTH], + round_constant: &F, + ) -> Result<(), SynthesisError> { + // Add round constant and apply S-box to first element only + state[0] = state[0].clone() + FpVar::constant(*round_constant); + state[0] = self.eval_sbox(state[0].clone())?; + + // Apply internal linear layer + IntLinear::apply(state)?; + + Ok(()) + } + + /// Evaluates the S-box over a field variable + fn eval_sbox(&self, x: FpVar) -> Result, SynthesisError> { + match SBOX_DEGREE { + 3 => { + // x^3 + let x2 = x.square()?; + Ok(x2 * &x) + } + 5 => { + // x^5 + let x2 = x.square()?; + let x4 = x2.square()?; + Ok(x4 * &x) + } + 7 => { + // x^7 + let x2 = x.square()?; + let x3 = &x2 * &x; + let x6 = x3.square()?; + Ok(x6 * &x) + } + _ => Err(SynthesisError::Unsatisfiable), + } + } +} + +/// Convenience function to hash inputs using Poseidon2 +pub fn poseidon2_hash< + F: PrimeField, + ExtLinear: ExternalLinearLayer, + IntLinear: InternalLinearLayer, + const WIDTH: usize, + const SBOX_DEGREE: u64, + const HALF_FULL_ROUNDS: usize, + const PARTIAL_ROUNDS: usize, +>( + inputs: &[FpVar; WIDTH], + constants: &RoundConstants, +) -> Result<[FpVar; WIDTH], SynthesisError> { + let gadget = Poseidon2Gadget::< + F, + ExtLinear, + IntLinear, + WIDTH, + SBOX_DEGREE, + HALF_FULL_ROUNDS, + PARTIAL_ROUNDS, + >::new(constants.clone()); + gadget.permute(inputs) +} + +pub fn poseidon2_compress_8_to_4< + F: PrimeField, + ExtLinear: ExternalLinearLayer, + IntLinear: InternalLinearLayer, +>( + inputs: &[FpVar; 8], + constants: &RoundConstants, +) -> Result<[FpVar; 4], SynthesisError> { + let gadget = Poseidon2Gadget::< + F, + ExtLinear, + IntLinear, + 8, + GOLDILOCKS_S_BOX_DEGREE, + HALF_FULL_ROUNDS, + PARTIAL_ROUNDS, + >::new(constants.clone()); + let p_x = gadget.permute(inputs)?; + + // truncation + let mut p_x: [FpVar; 4] = std::array::from_fn(|i| p_x[i].clone()); + + for (p_x, x) in p_x.iter_mut().zip(inputs) { + // feed-forward operation + *p_x += x; + } + + Ok(p_x) +} diff --git a/starstream_ivc_proto/src/poseidon2/goldilocks.rs b/starstream_ivc_proto/src/poseidon2/goldilocks.rs new file mode 100644 index 00000000..99b90f16 --- /dev/null +++ b/starstream_ivc_proto/src/poseidon2/goldilocks.rs @@ -0,0 +1,99 @@ +use crate::goldilocks::FpGoldilocks; +use std::sync::OnceLock; + +/// Degree of the chosen permutation polynomial for Goldilocks, used as the Poseidon2 S-Box. +/// +/// As p - 1 = 2^32 * 3 * 5 * 17 * ... the smallest choice for a degree D satisfying gcd(p - 1, D) = 1 is 7. +const GOLDILOCKS_S_BOX_DEGREE: u64 = 7; + +pub static MATRIX_DIAG_8_GOLDILOCKS: OnceLock<[FpGoldilocks; 8]> = OnceLock::new(); + +pub(crate) fn matrix_diag_8_goldilocks() -> &'static [FpGoldilocks; 8] { + MATRIX_DIAG_8_GOLDILOCKS.get_or_init(|| { + [ + FpGoldilocks::from(0xa98811a1fed4e3a5_u64), + FpGoldilocks::from(0x1cc48b54f377e2a0_u64), + FpGoldilocks::from(0xe40cd4f6c5609a26_u64), + FpGoldilocks::from(0x11de79ebca97a4a3_u64), + FpGoldilocks::from(0x9177c73d8b7e929c_u64), + FpGoldilocks::from(0x2a6fe8085797e791_u64), + FpGoldilocks::from(0x3de6e93329f8d5ad_u64), + FpGoldilocks::from(0x3f7af9125da962fe_u64), + ] + }) +} + +pub static MATRIX_DIAG_12_GOLDILOCKS: OnceLock<[FpGoldilocks; 12]> = OnceLock::new(); + +pub(crate) fn matrix_diag_12_goldilocks() -> &'static [FpGoldilocks; 12] { + MATRIX_DIAG_12_GOLDILOCKS.get_or_init(|| { + [ + FpGoldilocks::from(0xc3b6c08e23ba9300_u64), + FpGoldilocks::from(0xd84b5de94a324fb6_u64), + FpGoldilocks::from(0x0d0c371c5b35b84f_u64), + FpGoldilocks::from(0x7964f570e7188037_u64), + FpGoldilocks::from(0x5daf18bbd996604b_u64), + FpGoldilocks::from(0x6743bc47b9595257_u64), + FpGoldilocks::from(0x5528b9362c59bb70_u64), + FpGoldilocks::from(0xac45e25b7127b68b_u64), + FpGoldilocks::from(0xa2077d7dfbb606b5_u64), + FpGoldilocks::from(0xf3faac6faee378ae_u64), + FpGoldilocks::from(0x0c6388b51545e883_u64), + FpGoldilocks::from(0xd27dbb6944917b60_u64), + ] + }) +} + +pub static MATRIX_DIAG_16_GOLDILOCKS: OnceLock<[FpGoldilocks; 16]> = OnceLock::new(); + +pub(crate) fn matrix_diag_16_goldilocks() -> &'static [FpGoldilocks; 16] { + MATRIX_DIAG_16_GOLDILOCKS.get_or_init(|| { + [ + FpGoldilocks::from(0xde9b91a467d6afc0_u64), + FpGoldilocks::from(0xc5f16b9c76a9be17_u64), + FpGoldilocks::from(0x0ab0fef2d540ac55_u64), + FpGoldilocks::from(0x3001d27009d05773_u64), + FpGoldilocks::from(0xed23b1f906d3d9eb_u64), + FpGoldilocks::from(0x5ce73743cba97054_u64), + FpGoldilocks::from(0x1c3bab944af4ba24_u64), + FpGoldilocks::from(0x2faa105854dbafae_u64), + FpGoldilocks::from(0x53ffb3ae6d421a10_u64), + FpGoldilocks::from(0xbcda9df8884ba396_u64), + FpGoldilocks::from(0xfc1273e4a31807bb_u64), + FpGoldilocks::from(0xc77952573d5142c0_u64), + FpGoldilocks::from(0x56683339a819b85e_u64), + FpGoldilocks::from(0x328fcbd8f0ddc8eb_u64), + FpGoldilocks::from(0xb5101e303fce9cb7_u64), + FpGoldilocks::from(0x774487b8c40089bb_u64), + ] + }) +} + +pub static MATRIX_DIAG_20_GOLDILOCKS: OnceLock<[FpGoldilocks; 20]> = OnceLock::new(); + +pub(crate) fn matrix_diag_20_goldilocks() -> &'static [FpGoldilocks; 20] { + MATRIX_DIAG_20_GOLDILOCKS.get_or_init(|| { + [ + FpGoldilocks::from(0x95c381fda3b1fa57_u64), + FpGoldilocks::from(0xf36fe9eb1288f42c_u64), + FpGoldilocks::from(0x89f5dcdfef277944_u64), + FpGoldilocks::from(0x106f22eadeb3e2d2_u64), + FpGoldilocks::from(0x684e31a2530e5111_u64), + FpGoldilocks::from(0x27435c5d89fd148e_u64), + FpGoldilocks::from(0x3ebed31c414dbf17_u64), + FpGoldilocks::from(0xfd45b0b2d294e3cc_u64), + FpGoldilocks::from(0x48c904473a7f6dbf_u64), + FpGoldilocks::from(0xe0d1b67809295b4d_u64), + FpGoldilocks::from(0xddd1941e9d199dcb_u64), + FpGoldilocks::from(0x8cfe534eeb742219_u64), + FpGoldilocks::from(0xa6e5261d9e3b8524_u64), + FpGoldilocks::from(0x6897ee5ed0f82c1b_u64), + FpGoldilocks::from(0x0e7dcd0739ee5f78_u64), + FpGoldilocks::from(0x493253f3d0d32363_u64), + FpGoldilocks::from(0xbb2737f5845f05c0_u64), + FpGoldilocks::from(0xa187e810b06ad903_u64), + FpGoldilocks::from(0xb635b995936c4918_u64), + FpGoldilocks::from(0x0b3694a940bd2394_u64), + ] + }) +} diff --git a/starstream_ivc_proto/src/poseidon2/linear_layers.rs b/starstream_ivc_proto/src/poseidon2/linear_layers.rs new file mode 100644 index 00000000..b3bda711 --- /dev/null +++ b/starstream_ivc_proto/src/poseidon2/linear_layers.rs @@ -0,0 +1,138 @@ +//! Linear layer implementations for Poseidon2 R1CS gadget + +use crate::{ + F, + poseidon2::{ + goldilocks::{matrix_diag_8_goldilocks, matrix_diag_16_goldilocks}, + math::mds_light_permutation, + }, +}; +use ark_ff::PrimeField; +use ark_r1cs_std::fields::fp::FpVar; +use ark_relations::gr1cs::SynthesisError; + +/// Trait for external linear layer operations +pub trait ExternalLinearLayer { + // fn apply(state: &mut [FpVar; WIDTH]) -> Result<(), SynthesisError>; + + // permute_state_initial, permute_state_terminal are split as the Poseidon2 specifications are slightly different + // with the initial rounds involving an extra matrix multiplication. + + /// Perform the initial external layers of the Poseidon2 permutation on the given state. + fn apply(state: &mut [FpVar; WIDTH]) -> Result<(), SynthesisError>; +} + +/// Trait for internal linear layer operations +pub trait InternalLinearLayer { + fn apply(state: &mut [FpVar; WIDTH]) -> Result<(), SynthesisError>; +} + +pub enum GoldilocksExternalLinearLayer {} + +// /// A generic method performing the transformation: +// /// +// /// `x -> (x + round_constant)^D` +// #[inline(always)] +// pub fn add_round_constant_and_sbox( +// val: &mut FpVar, +// rc: &FpVar, +// ) -> Result<(), SynthesisError> { +// *val += rc; +// *val = val.pow_by_constant(&[GOLDILOCKS_S_BOX_DEGREE])?; + +// Ok(()) +// } + +impl ExternalLinearLayer for GoldilocksExternalLinearLayer { + fn apply(state: &mut [FpVar; WIDTH]) -> Result<(), SynthesisError> { + mds_light_permutation(state)?; + + // for elem in &round_constants.beginning_full_round_constants { + // state + // .iter_mut() + // .zip(elem.iter()) + // .for_each(|(x, c)| add_round_constant_and_sbox(x, c).unwrap()); + // mds_light_permutation(state); + // } + + Ok(()) + } + + // fn permute_terminal( + // round_constants: &AllocatedRoundConstants, + // state: &mut [FpVar; WIDTH], + // ) -> Result<(), SynthesisError> { + // for elem in &round_constants.ending_full_round_constants { + // state + // .iter_mut() + // .zip(elem.iter()) + // .for_each(|(s, rc)| add_round_constant_and_sbox(s, rc).unwrap()); + // mds_light_permutation(state); + // } + + // Ok(()) + // } +} + +pub enum GoldilocksInternalLinearLayer8 {} + +pub enum GoldilocksInternalLinearLayer16 {} + +pub fn matmul_internal( + state: &mut [FpVar; WIDTH], + mat_internal_diag_m_1: &'static [F; WIDTH], +) { + let sum: FpVar = state.iter().sum(); + for i in 0..WIDTH { + state[i] *= FpVar::Constant(mat_internal_diag_m_1[i]); + state[i] += sum.clone(); + } +} + +impl InternalLinearLayer for GoldilocksInternalLinearLayer8 { + fn apply(state: &mut [FpVar; 8]) -> Result<(), SynthesisError> { + matmul_internal(state, matrix_diag_8_goldilocks()); + + Ok(()) + } +} + +impl InternalLinearLayer for GoldilocksInternalLinearLayer16 { + fn apply(state: &mut [FpVar; 16]) -> Result<(), SynthesisError> { + matmul_internal(state, matrix_diag_16_goldilocks()); + + Ok(()) + } +} + +// /// Default external linear layer for width 4 (commonly used for Goldilocks) +// pub struct DefaultExternalLinearLayer4; + +// impl ExternalLinearLayer for DefaultExternalLinearLayer4 { +// fn apply(state: &mut [FpVar; 4]) -> Result<(), SynthesisError> { +// // Placeholder implementation for width 4 +// let mut new_state = state.clone(); + +// // Simple mixing (replace with actual Poseidon2 matrix) +// new_state[0] = &state[0] + &state[1] + &state[2] + &state[3]; +// new_state[1] = &state[0] + &state[1]; +// new_state[2] = &state[0] + &state[2]; +// new_state[3] = &state[0] + &state[3]; + +// *state = new_state; +// Ok(()) +// } +// } + +// /// Default internal linear layer for width 4 +// pub struct DefaultInternalLinearLayer4; + +// impl InternalLinearLayer for DefaultInternalLinearLayer4 { +// fn apply(state: &mut [FpVar; 4]) -> Result<(), SynthesisError> { +// // Simple internal linear layer for width 4 +// let sum = &state[1] + &state[2] + &state[3]; +// state[0] = &state[0] + ∑ + +// Ok(()) +// } +// } diff --git a/starstream_ivc_proto/src/poseidon2/math.rs b/starstream_ivc_proto/src/poseidon2/math.rs new file mode 100644 index 00000000..62d7ece7 --- /dev/null +++ b/starstream_ivc_proto/src/poseidon2/math.rs @@ -0,0 +1,80 @@ +use ark_ff::PrimeField; +use ark_r1cs_std::fields::{FieldVar as _, fp::FpVar}; +use ark_relations::gr1cs::SynthesisError; + +/// Multiply a 4-element vector x by: +/// [ 2 3 1 1 ] +/// [ 1 2 3 1 ] +/// [ 1 1 2 3 ] +/// [ 3 1 1 2 ]. +#[inline(always)] +fn apply_mat4(x: &mut [FpVar]) -> Result<(), SynthesisError> { + let t01 = x[0].clone() + &x[1]; + let t23 = x[2].clone() + &x[3]; + let t0123 = t01.clone() + &t23; + let t01123 = t0123.clone() + &x[1]; + let t01233 = t0123 + &x[3]; + + // The order here is important. Need to overwrite x[0] and x[2] after x[1] and x[3]. + x[3] = t01233.clone() + &x[0].double()?; // 3*x[0] + x[1] + x[2] + 2*x[3] + x[1] = t01123.clone() + &x[2].double()?; // x[0] + 2*x[1] + 3*x[2] + x[3] + x[0] = t01123 + &t01; // 2*x[0] + 3*x[1] + x[2] + x[3] + x[2] = t01233 + &t23; // x[0] + x[1] + 2*x[2] + 3*x[3] + + Ok(()) +} + +/// Implement the matrix multiplication used by the external layer. +/// +/// Given a 4x4 MDS matrix M, we multiply by the `4N x 4N` matrix +/// `[[2M M ... M], [M 2M ... M], ..., [M M ... 2M]]`. +/// +/// # Panics +/// This will panic if `WIDTH` is not supported. Currently, the +/// supported `WIDTH` values are 2, 3, 4, 8, 12, 16, 20, 24.` +#[inline(always)] +pub fn mds_light_permutation( + state: &mut [FpVar; WIDTH], +) -> Result<(), SynthesisError> { + match WIDTH { + 2 => { + let sum = state[0].clone() + state[1].clone(); + state[0] += sum.clone(); + state[1] += sum; + } + + 3 => { + let sum = state[0].clone() + state[1].clone() + state[2].clone(); + state[0] += sum.clone(); + state[1] += sum.clone(); + state[2] += sum; + } + + 4 | 8 | 12 | 16 | 20 | 24 => { + // First, we apply M_4 to each consecutive four elements of the state. + // In Appendix B's terminology, this replaces each x_i with x_i'. + for chunk in state.chunks_exact_mut(4) { + // mdsmat.permute_mut(chunk.try_into().unwrap()); + apply_mat4(chunk)?; + } + // Now, we apply the outer circulant matrix (to compute the y_i values). + + // We first precompute the four sums of every four elements. + let sums: [FpVar; 4] = + core::array::from_fn(|k| (0..WIDTH).step_by(4).map(|j| state[j + k].clone()).sum()); + + // The formula for each y_i involves 2x_i' term and x_j' terms for each j that equals i mod 4. + // In other words, we can add a single copy of x_i' to the appropriate one of our precomputed sums + state + .iter_mut() + .enumerate() + .for_each(|(i, elem)| *elem += sums[i % 4].clone()); + } + + _ => { + panic!("Unsupported width"); + } + } + + Ok(()) +} diff --git a/starstream_ivc_proto/src/poseidon2/mod.rs b/starstream_ivc_proto/src/poseidon2/mod.rs new file mode 100644 index 00000000..5c72de1b --- /dev/null +++ b/starstream_ivc_proto/src/poseidon2/mod.rs @@ -0,0 +1,175 @@ +//! Poseidon2 hash function implementation for R1CS (SNARK) systems using Arkworks. + +pub mod constants; +pub mod gadget; +pub mod goldilocks; +pub mod linear_layers; +pub mod math; + +use crate::{ + F, + poseidon2::{ + gadget::poseidon2_compress_8_to_4, + linear_layers::{GoldilocksExternalLinearLayer, GoldilocksInternalLinearLayer8}, + }, +}; +use ark_r1cs_std::fields::fp::FpVar; +use ark_relations::gr1cs::SynthesisError; +pub use constants::RoundConstants; + +#[allow(unused)] +pub fn compress(inputs: &[FpVar; 8]) -> Result<[FpVar; 4], SynthesisError> { + let constants = RoundConstants::new_goldilocks_8_constants(); + + poseidon2_compress_8_to_4::, GoldilocksInternalLinearLayer8>( + inputs, &constants, + ) +} + +#[cfg(test)] +mod tests { + use super::*; + use crate::{ + F, + poseidon2::{ + constants::GOLDILOCKS_S_BOX_DEGREE, + gadget::poseidon2_hash, + linear_layers::{GoldilocksExternalLinearLayer, GoldilocksInternalLinearLayer8}, + }, + }; + use ark_r1cs_std::{GR1CSVar, alloc::AllocVar, fields::fp::FpVar}; + use ark_relations::gr1cs::{ConstraintSystem, SynthesisError}; + + const WIDTH: usize = 8; + const HALF_FULL_ROUNDS: usize = 4; + const PARTIAL_ROUNDS: usize = 22; + + #[test] + fn test_poseidon2_gadget_basic() -> Result<(), SynthesisError> { + let cs = ConstraintSystem::::new_ref(); + + let constants = RoundConstants::new_goldilocks_8_constants(); + + let input_values = [ + F::from(0), + F::from(0), + F::from(0), + F::from(0), + F::from(0), + F::from(0), + F::from(0), + F::from(0), + ]; + + let input_vars = input_values + .iter() + .map(|&val| FpVar::new_witness(cs.clone(), || Ok(val))) + .collect::, _>>()?; + let input_array: [FpVar; WIDTH] = input_vars.try_into().unwrap(); + + let result = poseidon2_hash::< + F, + GoldilocksExternalLinearLayer<8>, + GoldilocksInternalLinearLayer8, + WIDTH, + GOLDILOCKS_S_BOX_DEGREE, + HALF_FULL_ROUNDS, + PARTIAL_ROUNDS, + >(&input_array, &constants)?; + + assert!(cs.is_satisfied()?); + + let output_values: Vec = result + .iter() + .map(|var: &FpVar| var.value().unwrap()) + .collect(); + + // output taken from the plonky3 implementation + let expected: [F; 8] = [ + F::from(12033154258266855215_u64), + F::from(10280848056061907209_u64), + F::from(2185915012395546036_u64), + F::from(14655708400709920811_u64), + F::from(8156942431357196992_u64), + F::from(4422236401544933648_u64), + F::from(12369536641900949_u64), + F::from(7054567940610806767_u64), + ]; + + // At least one output should be non-zero (very likely with our placeholder linear layers) + assert!(output_values.iter().any(|&val| val != F::from(0u64))); + + println!("Input: {:?}", input_values); + println!("Output: {:?}", output_values); + println!("Constraint system satisfied: {}", cs.is_satisfied()?); + println!("Number of constraints: {}", cs.num_constraints()); + + assert_eq!(output_values, expected); + + Ok(()) + } + + #[test] + fn test_poseidon2_gadget_inc() -> Result<(), SynthesisError> { + let cs = ConstraintSystem::::new_ref(); + + let constants = RoundConstants::new_goldilocks_8_constants(); + + // Create test inputs + let input_values = [ + F::from(1), + F::from(2), + F::from(3), + F::from(4), + F::from(5), + F::from(6), + F::from(7), + F::from(8), + ]; + + let input_vars = input_values + .iter() + .map(|&val| FpVar::new_witness(cs.clone(), || Ok(val))) + .collect::, _>>()?; + let input_array: [FpVar; WIDTH] = input_vars.try_into().unwrap(); + + let result = poseidon2_hash::< + F, + GoldilocksExternalLinearLayer<8>, + GoldilocksInternalLinearLayer8, + WIDTH, + GOLDILOCKS_S_BOX_DEGREE, + HALF_FULL_ROUNDS, + PARTIAL_ROUNDS, + >(&input_array, &constants)?; + + // Check that the constraint system is satisfied + assert!(cs.is_satisfied()?); + + let output_values: Vec = result + .iter() + .map(|var: &FpVar| var.value().unwrap()) + .collect(); + + // output taken from the plonky3 implementation + let expected: [F; 8] = [ + F::from(18388235340048743902_u64), + F::from(11155847389840004280_u64), + F::from(8258921485236881363_u64), + F::from(13238911595928314283_u64), + F::from(1414783942044928333_u64), + F::from(14855162370750728991_u64), + F::from(872655314674193689_u64), + F::from(10410794385812429044_u64), + ]; + + println!("Input: {:?}", input_values); + println!("Output: {:?}", output_values); + println!("Constraint system satisfied: {}", cs.is_satisfied()?); + println!("Number of constraints: {}", cs.num_constraints()); + + assert_eq!(output_values, expected); + + Ok(()) + } +} diff --git a/starstream_ivc_proto/src/poseidon2/vectorized.rs b/starstream_ivc_proto/src/poseidon2/vectorized.rs new file mode 100644 index 00000000..146a61a6 --- /dev/null +++ b/starstream_ivc_proto/src/poseidon2/vectorized.rs @@ -0,0 +1 @@ +// This file is intentionally empty - vectorized AIR implementation was removed From 71c58a9f01f3222b5662fe841260cdf525343267 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Mon, 3 Nov 2025 13:44:18 -0300 Subject: [PATCH 015/152] circuit: add per-program io commitment using poseidon2 Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/src/circuit.rs | 161 ++++++++++++++++++---- starstream_ivc_proto/src/lib.rs | 10 +- starstream_ivc_proto/src/memory.rs | 16 ++- starstream_ivc_proto/src/poseidon2/mod.rs | 30 +++- 4 files changed, 190 insertions(+), 27 deletions(-) diff --git a/starstream_ivc_proto/src/circuit.rs b/starstream_ivc_proto/src/circuit.rs index 44800f9d..7ae87c36 100644 --- a/starstream_ivc_proto/src/circuit.rs +++ b/starstream_ivc_proto/src/circuit.rs @@ -1,14 +1,16 @@ use crate::memory::{self, Address, IVCMemory}; -use crate::{memory::IVCMemoryAllocated, LedgerOperation, ProgramId, UtxoChange, F}; +use crate::poseidon2::{compress, compress_trace}; +use crate::{F, LedgerOperation, ProgramId, UtxoChange, memory::IVCMemoryAllocated}; use ark_ff::AdditiveGroup as _; use ark_r1cs_std::alloc::AllocationMode; use ark_r1cs_std::{ - alloc::AllocVar as _, eq::EqGadget, fields::fp::FpVar, prelude::Boolean, GR1CSVar as _, + GR1CSVar as _, alloc::AllocVar as _, eq::EqGadget, fields::fp::FpVar, prelude::Boolean, }; use ark_relations::{ gr1cs::{ConstraintSystemRef, LinearCombination, SynthesisError, Variable}, ns, }; +use std::array; use std::collections::{BTreeMap, HashMap, HashSet}; use std::marker::PhantomData; use tracing::debug_span; @@ -23,7 +25,11 @@ pub const UTXO_INDEX_MAPPING_SEGMENT: u64 = 10u64; /// expects. pub const OUTPUT_CHECK_SEGMENT: u64 = 11u64; -pub const PROGRAM_STATE_SIZE: u64 = 4u64; +pub const PROGRAM_STATE_SIZE: u64 = + 4u64 // state + + 4u64 // commitment +; + pub const UTXO_INDEX_MAPPING_SIZE: u64 = 1u64; pub const OUTPUT_CHECK_SIZE: u64 = 2u64; @@ -83,6 +89,7 @@ pub struct ProgramStateWires { finalized: FpVar, input: FpVar, output: FpVar, + commitment: [FpVar; 4], } // helper so that we always allocate witnesses in the same order @@ -112,6 +119,7 @@ pub struct ProgramState { finalized: bool, input: F, output: F, + commitment: [F; 4], } /// IVC wires (state between steps) @@ -131,12 +139,16 @@ impl ProgramStateWires { const OUTPUT: &str = "output"; fn to_var_vec(&self) -> Vec> { - vec![ - self.consumed.clone(), - self.finalized.clone(), - self.input.clone(), - self.output.clone(), + [ + vec![ + self.consumed.clone(), + self.finalized.clone(), + self.input.clone(), + self.output.clone(), + ], + self.commitment.to_vec(), ] + .concat() } fn conditionally_enforce_equal( @@ -179,6 +191,7 @@ impl ProgramStateWires { finalized: utxo_read_wires[1].clone(), input: utxo_read_wires[2].clone(), output: utxo_read_wires[3].clone(), + commitment: array::from_fn(|i| utxo_read_wires[i + 4].clone()), } } @@ -186,6 +199,12 @@ impl ProgramStateWires { cs: ConstraintSystemRef, utxo_write_values: &ProgramState, ) -> Result { + let commitment = utxo_write_values + .commitment + .iter() + .map(|comm_limb| FpVar::new_witness(cs.clone(), || Ok(comm_limb))) + .collect::, _>>()?; + Ok(ProgramStateWires { consumed: FpVar::from(Boolean::new_witness(cs.clone(), || { Ok(utxo_write_values.consumed) @@ -195,6 +214,7 @@ impl ProgramStateWires { })?), input: FpVar::new_witness(cs.clone(), || Ok(utxo_write_values.input))?, output: FpVar::new_witness(cs.clone(), || Ok(utxo_write_values.output))?, + commitment: commitment.try_into().unwrap(), }) } } @@ -230,8 +250,14 @@ impl Wires { .map(|val| Boolean::new_witness(cs.clone(), || Ok(*val)).unwrap()) .collect(); - let [resume_switch, yield_resume_switch, utxo_yield_switch, check_utxo_output_switch, nop_switch, drop_utxo_switch] = - allocated_switches.as_slice() + let [ + resume_switch, + yield_resume_switch, + utxo_yield_switch, + check_utxo_output_switch, + nop_switch, + drop_utxo_switch, + ] = allocated_switches.as_slice() else { unreachable!() }; @@ -279,6 +305,7 @@ impl Wires { let utxo_read_wires = ProgramStateWires::from_vec(utxo_read_wires); let utxo_write_wires = ProgramStateWires::from_write_values(cs.clone(), utxo_write_values)?; + let coord_write_wires = ProgramStateWires::from_write_values(cs.clone(), coord_write_values)?; @@ -305,6 +332,12 @@ impl Wires { &utxo_write_wires.to_var_vec(), )?; + constraint_incremental_commitment( + &utxo_read_wires, + &utxo_write_wires, + &(utxo_conditional_write_switch & !check_utxo_output_switch), + )?; + let coordination_script = FpVar::::new_constant(cs.clone(), F::from(1))?; let rom_read_wires = rm.conditional_read( @@ -357,6 +390,30 @@ impl Wires { } } +fn constraint_incremental_commitment( + utxo_read_wires: &ProgramStateWires, + utxo_write_wires: &ProgramStateWires, + cond: &Boolean, +) -> Result<(), SynthesisError> { + let result = compress(&array::from_fn(|i| { + if i == 0 { + utxo_write_wires.input.clone() + } else if i == 1 { + utxo_write_wires.output.clone() + } else if i >= 4 { + (utxo_read_wires.commitment[i - 4]).clone() + } else { + FpVar::Constant(F::from(0)) + } + }))?; + + utxo_write_wires + .commitment + .conditional_enforce_equal(&result, cond)?; + + Ok(()) +} + impl InterRoundWires { pub fn new(rom_offset: F) -> Self { InterRoundWires { @@ -413,6 +470,18 @@ impl LedgerOperation { finalized: coord_read[1] == F::from(1), input: *input, output: *output, + commitment: compress_trace(&array::from_fn(|i| { + if i == 0 { + *input + } else if i == 1 { + *output + } else if i >= 4 { + coord_read[i] + } else { + F::from(0) + } + })) + .unwrap(), }; let utxo = ProgramState { @@ -420,6 +489,18 @@ impl LedgerOperation { finalized: utxo_read[1] == F::from(1), input: utxo_read[2], output: utxo_read[3], + commitment: compress_trace(&array::from_fn(|i| { + if i == 0 { + utxo_read[2] + } else if i == 1 { + utxo_read[3] + } else if i >= 4 { + utxo_read[i] + } else { + F::from(0) + } + })) + .unwrap(), }; (coord, utxo) @@ -435,6 +516,18 @@ impl LedgerOperation { finalized: utxo_read[1] == F::from(1), input: utxo_read[2], output: utxo_read[3], + commitment: compress_trace(&array::from_fn(|i| { + if i == 0 { + utxo_read[2] + } else if i == 1 { + utxo_read[3] + } else if i >= 4 { + utxo_read[i] + } else { + F::from(0) + } + })) + .unwrap(), }; (coord, utxo) @@ -447,6 +540,18 @@ impl LedgerOperation { finalized: utxo_read[1] == F::from(1), input: F::from(0), output: *input, + commitment: compress_trace(&array::from_fn(|i| { + if i == 0 { + F::from(0) + } else if i == 1 { + *input + } else if i >= 4 { + utxo_read[i] + } else { + F::from(0) + } + })) + .unwrap(), }; (coord, utxo) @@ -459,6 +564,7 @@ impl LedgerOperation { finalized: true, input: utxo_read[2], output: utxo_read[3], + commitment: array::from_fn(|i| utxo_read[i]), }; (coord, utxo) @@ -524,6 +630,8 @@ impl> StepCircuitBuilder { irw.update(next_wires); + tracing::debug!("constraints: {}", cs.num_constraints()); + Ok(irw) } @@ -575,6 +683,7 @@ impl> StepCircuitBuilder { finalized: false, input: F::from(0), output: *output_before, + commitment: array::from_fn(|_i| F::from(0)), } .to_field_vec(), ); @@ -1064,24 +1173,29 @@ impl ProgramState { finalized: false, input: F::ZERO, output: F::ZERO, + commitment: array::from_fn(|_i| F::from(0)), } } fn to_field_vec(&self) -> Vec { - vec![ - if self.consumed { - F::from(1) - } else { - F::from(0) - }, - if self.finalized { - F::from(1) - } else { - F::from(0) - }, - self.input, - self.output, + [ + vec![ + if self.consumed { + F::from(1) + } else { + F::from(0) + }, + if self.finalized { + F::from(1) + } else { + F::from(0) + }, + self.input, + self.output, + ], + self.commitment.to_vec(), ] + .concat() } pub fn debug_print(&self) { @@ -1089,5 +1203,6 @@ impl ProgramState { tracing::debug!("finalized={}", self.finalized); tracing::debug!("input={}", self.input); tracing::debug!("output={}", self.output); + tracing::debug!("commitment={:?}", self.commitment); } } diff --git a/starstream_ivc_proto/src/lib.rs b/starstream_ivc_proto/src/lib.rs index 5bc83e99..ad6e8b25 100644 --- a/starstream_ivc_proto/src/lib.rs +++ b/starstream_ivc_proto/src/lib.rs @@ -19,6 +19,7 @@ use goldilocks::FpGoldilocks; use memory::DummyMemory; use p3_field::PrimeCharacteristicRing; use std::collections::BTreeMap; +use std::time::Instant; type F = FpGoldilocks; @@ -154,7 +155,10 @@ impl Transaction>> { ); for _i in 0..num_iters { + let start = Instant::now(); session.prove_step(&mut f_circuit, &()).unwrap(); + let elapsed = start.elapsed(); + println!("Step {} took {:?}", _i, elapsed); } let descriptor = StepDescriptor { @@ -175,6 +179,8 @@ impl Transaction>> { assert!(ok, "neo chain verification failed"); + let start = Instant::now(); + let (final_proof, _final_ccs, _final_public_input) = finalize_ivc_chain_with_options( &descriptor, ¶ms, @@ -185,6 +191,8 @@ impl Transaction>> { .map_err(|_| SynthesisError::Unsatisfiable)? .ok_or(SynthesisError::Unsatisfiable)?; + println!("Spartan proof took {} ms", start.elapsed().as_millis()); + let prover_output = ProverOutput { proof: final_proof }; Ok(Transaction { @@ -209,7 +217,7 @@ mod tests { use std::collections::BTreeMap; #[test] - fn test_starstream_tx() { + fn test_starstream_tx_success() { init_test_logging(); let utxo_id1: ProgramId = ProgramId::from(110); diff --git a/starstream_ivc_proto/src/memory.rs b/starstream_ivc_proto/src/memory.rs index bb5ba093..1450f9f6 100644 --- a/starstream_ivc_proto/src/memory.rs +++ b/starstream_ivc_proto/src/memory.rs @@ -93,11 +93,18 @@ impl IVCMemory for DummyMemory { last } else { - vec![F::from(0), F::from(0), F::from(0), F::from(0)] + let mem_value_size = self.mems.get(&address.tag).unwrap().0; + std::iter::repeat_n(F::from(0), mem_value_size as usize).collect() } } fn conditional_write(&mut self, cond: bool, address: Address, values: Vec) { + assert_eq!( + self.mems.get(&address.tag).unwrap().0 as usize, + values.len(), + "write doesn't match mem value size" + ); + if cond { self.writes.entry(address).or_default().push_back(values); } @@ -204,6 +211,13 @@ impl IVCMemoryAllocated for DummyMemoryConstraints { } let mem = self.mems.get(&address.tag).copied().unwrap(); + + assert_eq!( + mem.0 as usize, + vals.len(), + "write doesn't match mem value size" + ); + tracing::debug!( "write values {:?} at address {} in segment {}", vals.iter() diff --git a/starstream_ivc_proto/src/poseidon2/mod.rs b/starstream_ivc_proto/src/poseidon2/mod.rs index 5c72de1b..7cfa4387 100644 --- a/starstream_ivc_proto/src/poseidon2/mod.rs +++ b/starstream_ivc_proto/src/poseidon2/mod.rs @@ -13,8 +13,8 @@ use crate::{ linear_layers::{GoldilocksExternalLinearLayer, GoldilocksInternalLinearLayer8}, }, }; -use ark_r1cs_std::fields::fp::FpVar; -use ark_relations::gr1cs::SynthesisError; +use ark_r1cs_std::{GR1CSVar as _, alloc::AllocVar as _, fields::fp::FpVar}; +use ark_relations::gr1cs::{ConstraintSystem, SynthesisError}; pub use constants::RoundConstants; #[allow(unused)] @@ -26,6 +26,32 @@ pub fn compress(inputs: &[FpVar; 8]) -> Result<[FpVar; 4], SynthesisError> ) } +#[allow(unused)] +pub fn compress_trace(inputs: &[F; 8]) -> Result<[F; 4], SynthesisError> { + // TODO: obviously this is not a good way of implementing this, but the + // implementation is currently not general enough to be used over both FpVar and + // just plain field elements + // + // for now, we just create a throw-away constraint system and get the values + // from that computation + let cs = ConstraintSystem::::new_ref(); + + let inputs = inputs + .iter() + .map(|input| FpVar::new_witness(cs.clone(), || Ok(input))) + .collect::, _>>()?; + + let constants = RoundConstants::new_goldilocks_8_constants(); + + let compressed = poseidon2_compress_8_to_4::< + F, + GoldilocksExternalLinearLayer<8>, + GoldilocksInternalLinearLayer8, + >(inputs[..].try_into().unwrap(), &constants)?; + + Ok(std::array::from_fn(|i| compressed[i].value().unwrap())) +} + #[cfg(test)] mod tests { use super::*; From 213556b6060ac3630523cbddf025d39358e89c2b Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Mon, 3 Nov 2025 13:53:15 -0300 Subject: [PATCH 016/152] add (still unused) nebula mcc implementation with the IVCMemory interface Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/src/lib.rs | 2 + .../src/{memory.rs => memory/dummy.rs} | 77 +-- starstream_ivc_proto/src/memory/mod.rs | 61 +++ .../src/memory/nebula/gadget.rs | 485 ++++++++++++++++++ starstream_ivc_proto/src/memory/nebula/ic.rs | 123 +++++ starstream_ivc_proto/src/memory/nebula/mod.rs | 335 ++++++++++++ .../src/memory/nebula/tracer.rs | 203 ++++++++ starstream_ivc_proto/src/test_utils.rs | 16 + 8 files changed, 1246 insertions(+), 56 deletions(-) rename starstream_ivc_proto/src/{memory.rs => memory/dummy.rs} (73%) create mode 100644 starstream_ivc_proto/src/memory/mod.rs create mode 100644 starstream_ivc_proto/src/memory/nebula/gadget.rs create mode 100644 starstream_ivc_proto/src/memory/nebula/ic.rs create mode 100644 starstream_ivc_proto/src/memory/nebula/mod.rs create mode 100644 starstream_ivc_proto/src/memory/nebula/tracer.rs create mode 100644 starstream_ivc_proto/src/test_utils.rs diff --git a/starstream_ivc_proto/src/lib.rs b/starstream_ivc_proto/src/lib.rs index ad6e8b25..182c2e02 100644 --- a/starstream_ivc_proto/src/lib.rs +++ b/starstream_ivc_proto/src/lib.rs @@ -8,6 +8,8 @@ mod poseidon2; #[cfg(test)] mod test_utils; +pub use memory::nebula; + use crate::neo::StepCircuitNeo; use ::neo::{ FoldingSession, NeoParams, NeoStep as _, StepDescriptor, diff --git a/starstream_ivc_proto/src/memory.rs b/starstream_ivc_proto/src/memory/dummy.rs similarity index 73% rename from starstream_ivc_proto/src/memory.rs rename to starstream_ivc_proto/src/memory/dummy.rs index 1450f9f6..8d674a8b 100644 --- a/starstream_ivc_proto/src/memory.rs +++ b/starstream_ivc_proto/src/memory/dummy.rs @@ -1,59 +1,24 @@ +use super::Address; +use super::IVCMemory; +use super::IVCMemoryAllocated; use ark_ff::PrimeField; -use ark_r1cs_std::{GR1CSVar, alloc::AllocVar, fields::fp::FpVar, prelude::Boolean}; -use ark_relations::gr1cs::{ConstraintSystemRef, SynthesisError}; -use std::{ - collections::{BTreeMap, VecDeque}, - marker::PhantomData, -}; - -#[derive(PartialOrd, Ord, PartialEq, Eq, Debug, Clone)] -pub struct Address { - pub addr: F, - pub tag: u64, -} - -pub trait IVCMemory { - type Allocator: IVCMemoryAllocated; - type Params; - - fn new(info: Self::Params) -> Self; - - fn register_mem(&mut self, tag: u64, size: u64, debug_name: &'static str); - - fn init(&mut self, address: Address, values: Vec); - - fn conditional_read(&mut self, cond: bool, address: Address) -> Vec; - fn conditional_write(&mut self, cond: bool, address: Address, value: Vec); - - fn constraints(self) -> Self::Allocator; -} - -pub trait IVCMemoryAllocated { - fn get_cs(&self) -> ConstraintSystemRef; - fn start_step(&mut self, cs: ConstraintSystemRef) -> Result<(), SynthesisError>; - fn finish_step(&mut self, is_last_step: bool) -> Result<(), SynthesisError>; - - fn conditional_read( - &mut self, - cond: &Boolean, - address: &Address>, - ) -> Result>, SynthesisError>; - - fn conditional_write( - &mut self, - cond: &Boolean, - address: &Address>, - vals: &[FpVar], - ) -> Result<(), SynthesisError>; -} +use ark_r1cs_std::GR1CSVar as _; +use ark_r1cs_std::alloc::AllocVar as _; +use ark_r1cs_std::fields::fp::FpVar; +use ark_r1cs_std::prelude::Boolean; +use ark_relations::gr1cs::ConstraintSystemRef; +use ark_relations::gr1cs::SynthesisError; +use std::collections::BTreeMap; +use std::collections::VecDeque; +use std::marker::PhantomData; pub struct DummyMemory { - phantom: PhantomData, - reads: BTreeMap, VecDeque>>, - writes: BTreeMap, VecDeque>>, - init: BTreeMap, Vec>, + pub(crate) phantom: PhantomData, + pub(crate) reads: BTreeMap, VecDeque>>, + pub(crate) writes: BTreeMap, VecDeque>>, + pub(crate) init: BTreeMap, Vec>, - mems: BTreeMap, + pub(crate) mems: BTreeMap, } impl IVCMemory for DummyMemory { @@ -121,11 +86,11 @@ impl IVCMemory for DummyMemory { } pub struct DummyMemoryConstraints { - cs: Option>, - reads: BTreeMap, VecDeque>>, - writes: BTreeMap, VecDeque>>, + pub(crate) cs: Option>, + pub(crate) reads: BTreeMap, VecDeque>>, + pub(crate) writes: BTreeMap, VecDeque>>, - mems: BTreeMap, + pub(crate) mems: BTreeMap, } impl IVCMemoryAllocated for DummyMemoryConstraints { diff --git a/starstream_ivc_proto/src/memory/mod.rs b/starstream_ivc_proto/src/memory/mod.rs new file mode 100644 index 00000000..351f0f65 --- /dev/null +++ b/starstream_ivc_proto/src/memory/mod.rs @@ -0,0 +1,61 @@ +use crate::F; +use ark_ff::PrimeField; +use ark_r1cs_std::{alloc::AllocVar, fields::fp::FpVar, prelude::Boolean}; +use ark_relations::gr1cs::{ConstraintSystemRef, SynthesisError}; +pub use dummy::DummyMemory; + +mod dummy; +pub mod nebula; + +#[derive(PartialOrd, Ord, PartialEq, Eq, Debug, Clone)] +pub struct Address { + pub addr: F, + pub tag: u64, +} + +impl Address { + pub(crate) fn allocate( + &self, + cs: ConstraintSystemRef, + ) -> Result>, SynthesisError> { + Ok(Address { + addr: FpVar::new_witness(cs, || Ok(F::from(self.addr)))?, + tag: self.tag, + }) + } +} + +pub trait IVCMemory { + type Allocator: IVCMemoryAllocated; + type Params; + + fn new(info: Self::Params) -> Self; + + fn register_mem(&mut self, tag: u64, size: u64, debug_name: &'static str); + + fn init(&mut self, address: Address, values: Vec); + + fn conditional_read(&mut self, cond: bool, address: Address) -> Vec; + fn conditional_write(&mut self, cond: bool, address: Address, value: Vec); + + fn constraints(self) -> Self::Allocator; +} + +pub trait IVCMemoryAllocated { + fn get_cs(&self) -> ConstraintSystemRef; + fn start_step(&mut self, cs: ConstraintSystemRef) -> Result<(), SynthesisError>; + fn finish_step(&mut self, is_last_step: bool) -> Result<(), SynthesisError>; + + fn conditional_read( + &mut self, + cond: &Boolean, + address: &Address>, + ) -> Result>, SynthesisError>; + + fn conditional_write( + &mut self, + cond: &Boolean, + address: &Address>, + vals: &[FpVar], + ) -> Result<(), SynthesisError>; +} diff --git a/starstream_ivc_proto/src/memory/nebula/gadget.rs b/starstream_ivc_proto/src/memory/nebula/gadget.rs new file mode 100644 index 00000000..9a87faf7 --- /dev/null +++ b/starstream_ivc_proto/src/memory/nebula/gadget.rs @@ -0,0 +1,485 @@ +use super::Address; +use super::MemOp; +use super::ic::{IC, ICPlain}; +use crate::F; +use crate::memory::IVCMemoryAllocated; +use crate::memory::nebula::tracer::NebulaMemoryParams; +use ark_ff::Field; +use ark_ff::PrimeField; +use ark_r1cs_std::GR1CSVar as _; +use ark_r1cs_std::alloc::AllocVar as _; +use ark_r1cs_std::fields::fp::FpVar; +use ark_r1cs_std::prelude::Boolean; +use ark_relations::gr1cs::ConstraintSystemRef; +use ark_relations::gr1cs::SynthesisError; +use std::collections::BTreeMap; +use std::collections::VecDeque; + +pub struct NebulaMemoryConstraints { + pub(crate) cs: Option>, + pub(crate) reads: BTreeMap, VecDeque>>, + pub(crate) writes: BTreeMap, VecDeque>>, + + pub(crate) fs: BTreeMap, MemOp>, + pub(crate) is: BTreeMap, MemOp>, + + pub(crate) mems: BTreeMap, + + pub(crate) ic_rs_ws: ICPlain, + pub(crate) ic_is_fs: ICPlain, + + pub(crate) step_ic_rs_ws: Option, + pub(crate) step_ic_is_fs: Option, + + pub(crate) expected_rw_ws: ICPlain, + pub(crate) expected_is_fs: ICPlain, + + pub(crate) ts: F, + pub(crate) step_ts: Option>, + + pub(crate) current_step: usize, + pub(crate) params: NebulaMemoryParams, + + pub(crate) c0: F, + pub(crate) c0_wire: Option>, + pub(crate) c1: F, + pub(crate) c1_wire: Option>, + + pub(crate) multiset_fingerprints: FingerPrintPreWires, + pub(crate) fingerprint_wires: Option, + + pub(crate) debug_sets: Multisets, +} + +#[derive(Default)] +pub struct Multisets { + is: BTreeMap, MemOp>, + fs: BTreeMap, MemOp>, + rs: BTreeMap, MemOp>, + ws: BTreeMap, MemOp>, +} + +impl std::fmt::Debug for Multisets { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let format_set = |set: &BTreeMap, MemOp>| { + let entries: Vec = set + .iter() + .map(|(addr, op)| format!("({}, {:?}, {})", addr.addr, op.values, op.timestamp)) + .collect(); + format!("[{}]", entries.join(", ")) + }; + + writeln!(f, "\n")?; + + writeln!(f, "is: {}", format_set(&self.is))?; + writeln!(f, "fs: {}", format_set(&self.fs))?; + writeln!(f, "rs: {}", format_set(&self.rs))?; + write!(f, "ws: {}", format_set(&self.ws)) + } +} + +pub struct FingerPrintPreWires { + pub is: F, + pub fs: F, + pub rs: F, + pub ws: F, +} + +impl FingerPrintPreWires { + fn allocate(&self, cs: ConstraintSystemRef) -> Result { + Ok(FingerPrintWires { + is: FpVar::new_witness(cs.clone(), || Ok(self.is))?, + fs: FpVar::new_witness(cs.clone(), || Ok(self.fs))?, + rs: FpVar::new_witness(cs.clone(), || Ok(self.rs))?, + ws: FpVar::new_witness(cs.clone(), || Ok(self.ws))?, + }) + } + + fn check(&self) -> bool { + let result = self.is * self.ws == self.fs * self.rs; + + if !result { + tracing::error!( + "multiset safety check failed: is={:?}, ws={:?}, fs={:?}, rs={:?}", + self.is, + self.ws, + self.fs, + self.rs + ); + } + + result + } +} + +pub struct FingerPrintWires { + pub is: FpVar, + pub fs: FpVar, + pub rs: FpVar, + pub ws: FpVar, +} + +impl FingerPrintWires { + fn values(&self) -> Result { + Ok(FingerPrintPreWires { + is: self.is.value()?, + fs: self.fs.value()?, + rs: self.rs.value()?, + ws: self.ws.value()?, + }) + } +} + +impl IVCMemoryAllocated for NebulaMemoryConstraints { + fn start_step(&mut self, cs: ConstraintSystemRef) -> Result<(), SynthesisError> { + self.cs.replace(cs.clone()); + + self.step_ic_rs_ws + .replace(self.ic_rs_ws.allocate(cs.clone())?); + + self.step_ts + .replace(FpVar::new_witness(cs.clone(), || Ok(self.ts))?); + + self.step_ic_is_fs + .replace(self.ic_is_fs.allocate(cs.clone())?); + + self.fingerprint_wires + .replace(self.multiset_fingerprints.allocate(cs.clone())?); + + self.c0_wire + .replace(FpVar::new_witness(cs.clone(), || Ok(self.c0))?); + + self.c1_wire + .replace(FpVar::new_witness(cs.clone(), || Ok(self.c1))?); + + self.scan(cs)?; + + Ok(()) + } + + fn finish_step(&mut self, is_last_step: bool) -> Result<(), SynthesisError> { + self.cs = None; + + self.current_step += 1; + + self.ic_rs_ws = self.step_ic_rs_ws.take().unwrap().values(); + self.ic_is_fs = self.step_ic_is_fs.take().unwrap().values(); + + self.multiset_fingerprints = self.fingerprint_wires.take().unwrap().values()?; + + if is_last_step { + assert!( + self.ic_rs_ws + .comm + .iter() + .zip(self.expected_rw_ws.comm.iter()) + .all(|(x, y)| x == y) + ); + + assert!( + self.ic_is_fs + .comm + .iter() + .zip(self.expected_is_fs.comm.iter()) + .all(|(x, y)| x == y) + ); + + for ops in self.reads.values() { + assert!(ops.is_empty()); + } + + for ops in self.writes.values() { + assert!(ops.is_empty()); + } + + if !self.multiset_fingerprints.check() { + dbg!(&self.debug_sets); + tracing::debug!(sets=?self.debug_sets); + panic!("sanity check of multisets failed"); + } + } + + Ok(()) + } + + fn get_cs(&self) -> ConstraintSystemRef { + self.cs.as_ref().unwrap().clone() + } + + fn conditional_read( + &mut self, + cond: &Boolean, + address: &Address>, + ) -> Result>, SynthesisError> { + let _guard = tracing::debug_span!("nebula_conditional_read").entered(); + + // ts <- ts + 1 + self.inc_ts(cond)?; + + let mem = self.get_mem_info(address); + let address_val = self.get_address_val(address); + + let rv = self.get_read_op(cond, &address_val, mem.0)?; + let wv = self.get_write_op(cond, &address_val, mem.0)?; + + self.update_ic_with_ops(&cond, address, &rv, &wv)?; + + tracing::debug!( + "nebula read {:?} at address {} in segment {}", + rv.values + .iter() + .map(|v| v.value().unwrap().into_bigint()) + .collect::>(), + address_val.addr, + mem.1, + ); + + Ok(rv.values) + } + + fn conditional_write( + &mut self, + cond: &Boolean, + address: &Address>, + vals: &[FpVar], + ) -> Result<(), SynthesisError> { + let _guard = tracing::debug_span!("nebula_conditional_write").entered(); + + let mem = self.get_mem_info(address); + + assert_eq!( + mem.0 as usize, + vals.len(), + "write doesn't match mem value size" + ); + + // ts <- ts + 1 + self.inc_ts(cond)?; + + let address_val = self.get_address_val(address); + + let rv = self.get_read_op(cond, &address_val, mem.0)?; + let wv = self.get_write_op(cond, &address_val, mem.0)?; + + self.update_ic_with_ops(cond, address, &rv, &wv)?; + + for ((_, val), expected) in vals.iter().enumerate().zip(wv.values.iter()) { + assert_eq!(val.value().unwrap(), expected.value().unwrap()); + } + + tracing::debug!( + "nebula write values {:?} at address {} in segment {}", + vals.iter() + .map(|v| v.value().unwrap().into_bigint()) + .collect::>(), + address_val.addr, + mem.1, + ); + + Ok(()) + } +} + +impl NebulaMemoryConstraints { + fn inc_ts(&mut self, cond: &Boolean) -> Result<(), SynthesisError> { + let ts = self.step_ts.as_mut().unwrap(); + let ts_plus_one = &*ts + FpVar::Constant(F::from(1)); + *ts = cond.select(&ts_plus_one, ts)?; + Ok(()) + } + + fn get_address_val(&self, address: &Address>) -> Address { + Address { + addr: address.addr.value().unwrap().into_bigint().as_ref()[0], + tag: address.tag, + } + } + + fn get_mem_info(&self, address: &Address>) -> (u64, &'static str) { + self.mems.get(&address.tag).copied().unwrap() + } + + fn get_read_op( + &mut self, + cond: &Boolean, + address_val: &Address, + mem_size: u64, + ) -> Result>, SynthesisError> { + let cs = self.get_cs(); + + if cond.value()? { + let a_reads = self.reads.get_mut(address_val).unwrap(); + a_reads + .pop_front() + .expect("no entry in read set") + .allocate(cs) + } else { + MemOp::padding(mem_size).allocate(cs) + } + } + + fn get_write_op( + &mut self, + cond: &Boolean, + address_val: &Address, + mem_size: u64, + ) -> Result>, SynthesisError> { + let cs = self.get_cs(); + + if cond.value()? { + let a_writes = self.writes.get_mut(address_val).unwrap(); + a_writes + .pop_front() + .expect("no entry in write set") + .allocate(cs) + } else { + MemOp::padding(mem_size).allocate(cs) + } + } + + fn update_ic_with_ops( + &mut self, + cond: &Boolean, + address: &Address>, + rv: &MemOp>, + wv: &MemOp>, + ) -> Result<(), SynthesisError> { + let cs = self.get_cs(); + + Self::hash_avt( + cond, + &mut self.fingerprint_wires.as_mut().unwrap().rs, + self.c0_wire.as_ref().unwrap(), + self.c1_wire.as_ref().unwrap(), + &cs, + &address, + rv, + &mut self.debug_sets.rs, + )?; + + self.step_ic_rs_ws + .as_mut() + .unwrap() + .increment(address, rv)?; + + Self::hash_avt( + cond, + &mut self.fingerprint_wires.as_mut().unwrap().ws, + self.c0_wire.as_ref().unwrap(), + self.c1_wire.as_ref().unwrap(), + &cs, + &address, + wv, + &mut self.debug_sets.ws, + )?; + + self.step_ic_rs_ws + .as_mut() + .unwrap() + .increment(address, wv)?; + + Ok(()) + } + + fn scan(&mut self, cs: ConstraintSystemRef) -> Result<(), SynthesisError> { + Ok( + for (addr, is_v) in self + .is + .iter() + .skip(self.params.scan_batch_size * self.current_step) + .take(self.params.scan_batch_size) + { + let fs_v = self.fs.get(addr).unwrap(); + + let address = addr.allocate(cs.clone())?; + let is_entry = is_v.allocate(cs.clone())?; + + self.step_ic_is_fs + .as_mut() + .unwrap() + .increment(&address, &is_entry)?; + + let fs_entry = fs_v.allocate(cs.clone())?; + + self.step_ic_is_fs + .as_mut() + .unwrap() + .increment(&address, &fs_entry)?; + + Self::hash_avt( + &Boolean::constant(true), + &mut self.fingerprint_wires.as_mut().unwrap().is, + self.c0_wire.as_ref().unwrap(), + self.c1_wire.as_ref().unwrap(), + &cs, + &address, + &is_entry, + &mut self.debug_sets.is, + )?; + + Self::hash_avt( + &Boolean::constant(true), + &mut self.fingerprint_wires.as_mut().unwrap().fs, + self.c0_wire.as_ref().unwrap(), + self.c1_wire.as_ref().unwrap(), + &cs, + &address, + &fs_entry, + &mut self.debug_sets.fs, + )?; + }, + ) + } + + fn hash_avt( + cond: &Boolean, + wire: &mut FpVar, + c0: &FpVar, + c1: &FpVar, + cs: &ConstraintSystemRef, + address: &Address>, + vt: &MemOp>, + debug_set: &mut BTreeMap, MemOp>, + ) -> Result<(), SynthesisError> { + // TODO: I think this is incorrect, why isn't this allocated before? + let ts = FpVar::new_witness(cs.clone(), || Ok(F::from(vt.timestamp))).unwrap(); + let fingerprint = fingerprint(c0, c1, &ts, &address.addr, vt.values.as_ref())?; + + if cond.value()? { + debug_set.insert( + Address { + addr: address.addr.value()?, + tag: address.tag, + }, + MemOp { + values: vt.debug_values(), + timestamp: vt.timestamp, + }, + ); + } + + *wire *= cond.select(&fingerprint, &FpVar::Constant(F::ONE))?; + + Ok(()) + } +} + +fn fingerprint( + c0: &FpVar, + c1: &FpVar, + timestamp: &FpVar, + addr: &FpVar, + values: &[FpVar], +) -> Result, SynthesisError> { + let mut x = timestamp + c1 * addr; + + let mut c1_p = c1.clone(); + + for v in values { + c1_p = c1_p * c1; + + x += v * &c1_p; + } + + Ok(c0 - x) +} diff --git a/starstream_ivc_proto/src/memory/nebula/ic.rs b/starstream_ivc_proto/src/memory/nebula/ic.rs new file mode 100644 index 00000000..713f3b58 --- /dev/null +++ b/starstream_ivc_proto/src/memory/nebula/ic.rs @@ -0,0 +1,123 @@ +use super::Address; +use super::MemOp; +use crate::F; +use crate::poseidon2::compress; +use ark_ff::AdditiveGroup as _; +use ark_r1cs_std::GR1CSVar as _; +use ark_r1cs_std::alloc::AllocVar as _; +use ark_r1cs_std::fields::fp::FpVar; +use ark_relations::gr1cs::ConstraintSystemRef; +use ark_relations::gr1cs::SynthesisError; +use std::array; + +pub struct ICPlain { + pub comm: [F; 4], +} + +impl ICPlain { + pub fn zero() -> Self { + Self { comm: [F::ZERO; 4] } + } + + pub fn increment(&mut self, a: &Address, vt: &MemOp) -> Result<(), SynthesisError> { + let hash_input = array::from_fn(|i| { + if i == 0 { + F::from(a.addr) + } else if i == 1 { + F::from(a.tag) + } else if i == 2 { + F::from(vt.timestamp) + } else { + vt.values.get(i - 3).copied().unwrap_or(F::ZERO) + } + }); + + let hash_to_field = crate::poseidon2::compress_trace(&hash_input)?; + + let concat = array::from_fn(|i| { + if i < 4 { + hash_to_field[i] + } else { + self.comm[i - 4] + } + }); + + self.comm = crate::poseidon2::compress_trace(&concat)?; + + Ok(()) + } + + pub fn allocate(&self, cs: ConstraintSystemRef) -> Result { + Ok(IC { + comm: [ + FpVar::new_witness(cs.clone(), || Ok(self.comm[0]))?, + FpVar::new_witness(cs.clone(), || Ok(self.comm[1]))?, + FpVar::new_witness(cs.clone(), || Ok(self.comm[2]))?, + FpVar::new_witness(cs.clone(), || Ok(self.comm[3]))?, + ], + }) + } +} + +pub struct IC { + pub comm: [FpVar; 4], +} + +impl IC { + pub fn zero(cs: ConstraintSystemRef) -> Result { + Ok(IC { + comm: [ + FpVar::new_witness(cs.clone(), || Ok(F::from(0)))?, + FpVar::new_witness(cs.clone(), || Ok(F::from(0)))?, + FpVar::new_witness(cs.clone(), || Ok(F::from(0)))?, + FpVar::new_witness(cs.clone(), || Ok(F::from(0)))?, + ], + }) + } + + pub fn increment( + &mut self, + a: &Address>, + vt: &MemOp>, + ) -> Result<(), SynthesisError> { + let cs = self.comm.cs(); + + let hash_to_field = compress(&array::from_fn(|i| { + if i == 0 { + a.addr.clone() + } else if i == 1 { + FpVar::new_witness(cs.clone(), || Ok(F::from(a.tag))).unwrap() + } else if i == 2 { + FpVar::new_witness(cs.clone(), || Ok(F::from(vt.timestamp))).unwrap() + } else { + vt.values + .get(i - 3) + .cloned() + .unwrap_or_else(|| FpVar::new_witness(cs.clone(), || Ok(F::ZERO)).unwrap()) + } + }))?; + + let concat = array::from_fn(|i| { + if i < 4 { + hash_to_field[i].clone() + } else { + self.comm[i - 4].clone() + } + }); + + self.comm = compress(&concat)?; + + Ok(()) + } + + pub fn values(&self) -> ICPlain { + ICPlain { + comm: [ + self.comm[0].value().unwrap(), + self.comm[1].value().unwrap(), + self.comm[2].value().unwrap(), + self.comm[3].value().unwrap(), + ], + } + } +} diff --git a/starstream_ivc_proto/src/memory/nebula/mod.rs b/starstream_ivc_proto/src/memory/nebula/mod.rs new file mode 100644 index 00000000..adf51394 --- /dev/null +++ b/starstream_ivc_proto/src/memory/nebula/mod.rs @@ -0,0 +1,335 @@ +pub mod gadget; +pub mod ic; +pub mod tracer; + +use super::Address; +use crate::F; +use ark_ff::{AdditiveGroup as _, PrimeField}; +use ark_r1cs_std::GR1CSVar as _; +use ark_r1cs_std::alloc::AllocVar; +use ark_r1cs_std::fields::fp::FpVar; +use ark_relations::gr1cs::{ConstraintSystemRef, SynthesisError}; +pub use gadget::NebulaMemoryConstraints; + +#[derive(Debug, Clone, PartialEq, Eq)] +pub struct MemOp { + pub values: Vec, + pub timestamp: u64, +} + +impl MemOp { + pub fn allocate(&self, cs: ConstraintSystemRef) -> Result>, SynthesisError> + where + F: PrimeField, + { + Ok(MemOp { + values: self + .values + .iter() + .map(|v| FpVar::new_witness(cs.clone(), || Ok(*v))) + .collect::, _>>()?, + timestamp: self.timestamp, + }) + } +} + +impl MemOp> +where + F: PrimeField, +{ + pub fn padding(segment_size: u64) -> MemOp { + MemOp { + values: std::iter::repeat_with(|| F::ZERO) + .take(segment_size as usize) + .collect::>(), + timestamp: 0, + } + } + + pub fn debug_values(&self) -> Vec { + self.values.iter().map(|v| v.value().unwrap()).collect() + } +} + +#[cfg(test)] +mod tests { + use super::*; + use crate::memory::IVCMemory; + use crate::memory::IVCMemoryAllocated; + use crate::memory::nebula::tracer::NebulaMemory; + use crate::memory::nebula::tracer::NebulaMemoryParams; + use crate::test_utils::init_test_logging; + use ark_r1cs_std::alloc::AllocVar; + use ark_r1cs_std::fields::fp::FpVar; + use ark_r1cs_std::prelude::Boolean; + use ark_relations::gr1cs::ConstraintSystem; + + #[test] + fn test_nebula_memory_constraints_satisfiability() { + init_test_logging(); + + let mut memory = NebulaMemory::new(NebulaMemoryParams { scan_batch_size: 1 }); + + memory.register_mem(1, 2, "test_segment"); + + let address = Address { addr: 10, tag: 1 }; + let initial_values = vec![F::from(42), F::from(100)]; + memory.init(address.clone(), initial_values.clone()); + memory.conditional_read(true, address.clone()); + + memory.conditional_write(true, address.clone(), vec![F::from(123), F::from(456)]); + memory.conditional_write(false, address.clone(), vec![F::from(0), F::from(0)]); + + assert_eq!( + memory.conditional_read(false, address.clone()), + vec![F::from(0), F::from(0)] + ); + + assert_eq!( + memory.conditional_read(true, address.clone()), + vec![F::from(123), F::from(456)] + ); + + let mut constraints = memory.constraints(); + + let cs = ConstraintSystem::::new_ref(); + + constraints.start_step(cs.clone()).unwrap(); + + let addr_var = FpVar::new_witness(cs.clone(), || Ok(F::from(10))).unwrap(); + let address_var = Address { + addr: addr_var, + tag: 1, + }; + + let true_cond = Boolean::new_witness(cs.clone(), || Ok(true)).unwrap(); + let false_cond = Boolean::new_witness(cs.clone(), || Ok(false)).unwrap(); + + let _read_result = constraints + .conditional_read(&true_cond, &address_var) + .unwrap(); + + let write_vals = vec![ + FpVar::new_witness(cs.clone(), || Ok(F::from(123))).unwrap(), + FpVar::new_witness(cs.clone(), || Ok(F::from(456))).unwrap(), + ]; + + let false_write_vals = vec![ + FpVar::new_witness(cs.clone(), || Ok(F::from(0))).unwrap(), + FpVar::new_witness(cs.clone(), || Ok(F::from(0))).unwrap(), + ]; + + constraints + .conditional_write(&true_cond, &address_var, &write_vals) + .unwrap(); + + constraints + .conditional_write(&false_cond, &address_var, &false_write_vals) + .unwrap(); + + constraints + .conditional_read(&false_cond, &address_var) + .unwrap(); + + let _read_result2 = constraints + .conditional_read(&true_cond, &address_var) + .unwrap(); + + constraints.finish_step(true).unwrap(); + + assert!( + cs.is_satisfied().unwrap(), + "Constraint system should be satisfiable" + ); + } + + // NOTE: for folding, we need conditional reads and conditional writes to be + // gated, but we still want to keep the same shape across steps + #[test] + fn test_circuit_shape_consistency_across_conditions() { + init_test_logging(); + fn create_constraint_system_with_conditions( + read_cond: bool, + write_cond: bool, + ) -> ark_relations::gr1cs::ConstraintSystemRef { + let mut memory = NebulaMemory::new(NebulaMemoryParams { scan_batch_size: 1 }); + memory.register_mem(1, 2, "test_segment"); + + let address = Address { addr: 10, tag: 1 }; + let initial_values = vec![F::from(42), F::from(100)]; + memory.init(address.clone(), initial_values); + + memory.conditional_read(read_cond, address.clone()); + memory.conditional_write( + write_cond, + address.clone(), + vec![F::from(123), F::from(456)], + ); + + let mut constraints = memory.constraints(); + let cs = ConstraintSystem::::new_ref(); + + constraints.start_step(cs.clone()).unwrap(); + + let addr_var = FpVar::new_witness(cs.clone(), || Ok(F::from(10))).unwrap(); + let address_var = Address { + addr: addr_var, + tag: 1, + }; + + let cond_read = Boolean::new_witness(cs.clone(), || Ok(read_cond)).unwrap(); + let cond_write = Boolean::new_witness(cs.clone(), || Ok(write_cond)).unwrap(); + + let _read_result = constraints + .conditional_read(&cond_read, &address_var) + .unwrap(); + + let write_vals = vec![ + FpVar::new_witness(cs.clone(), || Ok(F::from(if write_cond { 123 } else { 0 }))) + .unwrap(), + FpVar::new_witness(cs.clone(), || Ok(F::from(if write_cond { 456 } else { 0 }))) + .unwrap(), + ]; + + constraints + .conditional_write(&cond_write, &address_var, &write_vals) + .unwrap(); + + constraints.finish_step(true).unwrap(); + + std::mem::drop(constraints); + + cs + } + + let condition_combinations = [(true, true), (true, false), (false, true), (false, false)]; + let constraint_systems: Vec<_> = condition_combinations + .iter() + .map(|&(read_cond, write_cond)| { + create_constraint_system_with_conditions(read_cond, write_cond) + }) + .collect(); + + let reference_cs = &constraint_systems[0]; + let expected_constraints = reference_cs.num_constraints(); + let expected_instance_vars = reference_cs.num_instance_variables(); + let expected_witness_vars = reference_cs.num_witness_variables(); + + for (i, cs) in constraint_systems.iter().enumerate() { + let (read_cond, write_cond) = condition_combinations[i]; + + assert_eq!( + cs.num_constraints(), + expected_constraints, + "Number of constraints should be the same for ({},{})", + read_cond, + write_cond + ); + + assert_eq!( + cs.num_instance_variables(), + expected_instance_vars, + "Number of instance variables should be the same for ({},{})", + read_cond, + write_cond + ); + + assert_eq!( + cs.num_witness_variables(), + expected_witness_vars, + "Number of witness variables should be the same for ({},{})", + read_cond, + write_cond + ); + + assert!( + cs.is_satisfied().unwrap(), + "Constraint system ({},{}) should be satisfiable", + read_cond, + write_cond + ); + } + + println!( + "Circuit shape consistency verified: {} constraints, {} instance vars, {} witness vars", + expected_constraints, expected_instance_vars, expected_witness_vars + ); + } + + #[test] + fn test_scan_batch_size_multi_step() { + init_test_logging(); + + let scan_batch_size = 2; + let num_steps = 3; + let total_addresses = scan_batch_size * num_steps; // 6 addresses + + let mut memory = NebulaMemory::new(NebulaMemoryParams { scan_batch_size }); + memory.register_mem(1, 2, "test_segment"); + + let addresses: Vec> = (0..total_addresses) + .map(|i| Address { + addr: i as u64, + tag: 1, + }) + .collect(); + + for (i, addr) in addresses.iter().enumerate() { + memory.init( + addr.clone(), + vec![F::from(i as u64 * 10), F::from(i as u64 * 10 + 1)], + ); + } + + for (step, addr) in addresses.iter().enumerate().take(num_steps) { + memory.conditional_read(true, addr.clone()); + memory.conditional_write( + true, + addr.clone(), + vec![F::from(100 + step as u64), F::from(200 + step as u64)], + ); + } + + let mut constraints = memory.constraints(); + + for step in 0..num_steps { + let cs = ConstraintSystem::::new_ref(); + constraints.start_step(cs.clone()).unwrap(); + + let addr_var = FpVar::new_witness(cs.clone(), || Ok(F::from(step as u64))).unwrap(); + let address_var = Address { + addr: addr_var, + tag: 1, + }; + + let true_cond = Boolean::new_witness(cs.clone(), || Ok(true)).unwrap(); + + let _read_result = constraints + .conditional_read(&true_cond, &address_var) + .unwrap(); + + let write_vals = vec![ + FpVar::new_witness(cs.clone(), || Ok(F::from(100 + step as u64))).unwrap(), + FpVar::new_witness(cs.clone(), || Ok(F::from(200 + step as u64))).unwrap(), + ]; + + constraints + .conditional_write(&true_cond, &address_var, &write_vals) + .unwrap(); + + let is_last_step = step == num_steps - 1; + constraints.finish_step(is_last_step).unwrap(); + + assert!( + cs.is_satisfied().unwrap(), + "Constraint system should be satisfiable for step {}", + step + ); + } + + println!( + "Multi-step scan batch test completed: {} addresses, {} steps, batch size {}", + total_addresses, num_steps, scan_batch_size + ); + } +} diff --git a/starstream_ivc_proto/src/memory/nebula/tracer.rs b/starstream_ivc_proto/src/memory/nebula/tracer.rs new file mode 100644 index 00000000..3214cc22 --- /dev/null +++ b/starstream_ivc_proto/src/memory/nebula/tracer.rs @@ -0,0 +1,203 @@ +use ark_ff::AdditiveGroup; +use ark_ff::Field as _; + +use super::Address; +use super::MemOp; +use super::NebulaMemoryConstraints; +use super::ic::ICPlain; +use crate::F; +use crate::memory::IVCMemory; +use crate::memory::nebula::gadget::FingerPrintPreWires; +use std::collections::BTreeMap; +use std::collections::VecDeque; + +pub struct NebulaMemory { + pub(crate) rs: BTreeMap, VecDeque>>, + pub(crate) ws: BTreeMap, VecDeque>>, + pub(crate) is: BTreeMap, MemOp>, + + pub(crate) mems: BTreeMap, + + ic_rs_ws: ICPlain, + + ts: u64, + + params: NebulaMemoryParams, +} + +impl NebulaMemory { + fn perform_memory_operation( + &mut self, + cond: bool, + address: &Address, + new_values: Option>, + ) -> Vec { + if cond { + self.ts += 1; + } + + let segment_size = self.mems.get(&address.tag).unwrap().0; + + let rv = if cond { + self.ws + .get(address) + .and_then(|writes| writes.back().cloned()) + .unwrap_or_else(|| self.is.get(address).unwrap().clone()) + } else { + MemOp::padding(segment_size) + }; + + assert!(!cond || rv.timestamp < self.ts); + + let wv = if cond { + MemOp { + values: new_values.unwrap_or_else(|| rv.values.clone()), + timestamp: self.ts, + } + } else { + MemOp::padding(segment_size) + }; + + // println!( + // "Tracing: incrementing ic_rs_ws with rv: {:?}, wv: {:?}", + // rv, wv + // ); + self.ic_rs_ws.increment(address, &rv).unwrap(); + self.ic_rs_ws.increment(address, &wv).unwrap(); + // println!( + // "Tracing: ic_rs_ws after increment: {:?}", + // self.ic_rs_ws.comm + // ); + + if !cond { + let mem_value_size = self.mems.get(&address.tag).unwrap().0; + return std::iter::repeat_n(F::from(0), mem_value_size as usize).collect(); + } + + let reads = self.rs.entry(address.clone()).or_default(); + reads.push_back(rv.clone()); + + self.ws + .entry(address.clone()) + .or_default() + .push_back(wv.clone()); + + rv.values + } + + pub fn get_ic_rs_ws(&self) -> [F; 4] { + self.ic_rs_ws.comm + } +} + +pub struct NebulaMemoryParams { + pub scan_batch_size: usize, +} + +impl IVCMemory for NebulaMemory { + type Allocator = NebulaMemoryConstraints; + + type Params = NebulaMemoryParams; + + fn new(params: Self::Params) -> Self { + NebulaMemory { + rs: BTreeMap::default(), + ws: BTreeMap::default(), + is: BTreeMap::default(), + mems: BTreeMap::default(), + ts: 0, + ic_rs_ws: ICPlain::zero(), + params, + } + } + + fn register_mem(&mut self, tag: u64, size: u64, debug_name: &'static str) { + self.mems.insert(tag, (size, debug_name)); + } + + fn init(&mut self, address: Address, values: Vec) { + self.is.insert( + address, + MemOp { + values: values.clone(), + timestamp: 0, + }, + ); + } + + fn conditional_read(&mut self, cond: bool, address: Address) -> Vec { + self.perform_memory_operation(cond, &address, None) + } + + fn conditional_write(&mut self, cond: bool, address: Address, values: Vec) { + assert_eq!( + self.mems.get(&address.tag).unwrap().0 as usize, + values.len(), + "write doesn't match mem value size" + ); + + self.perform_memory_operation(cond, &address, Some(values)); + } + + fn constraints(self) -> Self::Allocator { + let mut ic_is_fs = ICPlain::zero(); + + // compute FS such that: + // + // IS U WS = RS U FS + // + // (Lemma 2 in the Nebula paper) + let mut fs = BTreeMap::default(); + + for (addr, vt) in self.is.iter().chain( + self.ws + .iter() + .flat_map(|(addr, queue)| queue.iter().map(move |vt| (addr, vt))), + ) { + if !self.rs.get(addr).map_or(false, |vals| vals.contains(vt)) { + fs.insert(addr.clone(), vt.clone()); + } + } + + for (addr, is_v) in self.is.iter() { + let fs_v = fs.get(addr).unwrap_or(is_v); + + ic_is_fs.increment(addr, is_v).unwrap(); + ic_is_fs.increment(addr, fs_v).unwrap(); + } + + assert_eq!(self.is.len() % self.params.scan_batch_size, 0); + NebulaMemoryConstraints { + cs: None, + reads: self.rs, + writes: self.ws, + mems: self.mems, + ic_rs_ws: ICPlain::zero(), + ic_is_fs: ICPlain::zero(), + ts: F::ZERO, + step_ts: None, + expected_rw_ws: self.ic_rs_ws, + expected_is_fs: ic_is_fs, + fs: fs, + is: self.is, + current_step: 0, + params: self.params, + step_ic_rs_ws: None, + step_ic_is_fs: None, + // TODO: + c0: F::from(1), + c1: F::from(2), + c0_wire: None, + c1_wire: None, + multiset_fingerprints: FingerPrintPreWires { + is: F::ONE, + fs: F::ONE, + rs: F::ONE, + ws: F::ONE, + }, + fingerprint_wires: None, + + debug_sets: Default::default(), + } + } +} diff --git a/starstream_ivc_proto/src/test_utils.rs b/starstream_ivc_proto/src/test_utils.rs new file mode 100644 index 00000000..80855189 --- /dev/null +++ b/starstream_ivc_proto/src/test_utils.rs @@ -0,0 +1,16 @@ +use tracing_subscriber::{EnvFilter, fmt}; + +pub(crate) fn init_test_logging() { + static INIT: std::sync::Once = std::sync::Once::new(); + + INIT.call_once(|| { + fmt() + .with_env_filter( + EnvFilter::from_default_env() + .add_directive("starstream_ivc_proto=debug".parse().unwrap()) + .add_directive("warn".parse().unwrap()) // Default to warn for everything else + ) + .with_test_writer() + .init(); + }); +} From 20fe27e439dba68559440c882eacb24a09e6d6b0 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Fri, 14 Nov 2025 21:17:53 -0300 Subject: [PATCH 017/152] chore: cleanup unused code from the poseidon2 module Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/src/poseidon2/air.rs | 1 - .../src/poseidon2/constants.rs | 35 ------- starstream_ivc_proto/src/poseidon2/gadget.rs | 2 +- .../src/poseidon2/goldilocks.rs | 11 ++- .../src/poseidon2/linear_layers.rs | 92 +------------------ starstream_ivc_proto/src/poseidon2/mod.rs | 1 - .../src/poseidon2/vectorized.rs | 1 - 7 files changed, 8 insertions(+), 135 deletions(-) delete mode 100644 starstream_ivc_proto/src/poseidon2/air.rs delete mode 100644 starstream_ivc_proto/src/poseidon2/vectorized.rs diff --git a/starstream_ivc_proto/src/poseidon2/air.rs b/starstream_ivc_proto/src/poseidon2/air.rs deleted file mode 100644 index 8ffe9b0b..00000000 --- a/starstream_ivc_proto/src/poseidon2/air.rs +++ /dev/null @@ -1 +0,0 @@ -// This file is intentionally empty - AIR implementation was removed diff --git a/starstream_ivc_proto/src/poseidon2/constants.rs b/starstream_ivc_proto/src/poseidon2/constants.rs index 81a576ca..9afb20e1 100644 --- a/starstream_ivc_proto/src/poseidon2/constants.rs +++ b/starstream_ivc_proto/src/poseidon2/constants.rs @@ -133,41 +133,6 @@ pub struct RoundConstants< pub ending_full_round_constants: [[F; WIDTH]; HALF_FULL_ROUNDS], } -impl - RoundConstants -{ - pub const fn new( - beginning_full_round_constants: [[F; WIDTH]; HALF_FULL_ROUNDS], - partial_round_constants: [F; PARTIAL_ROUNDS], - ending_full_round_constants: [[F; WIDTH]; HALF_FULL_ROUNDS], - ) -> Self { - Self { - beginning_full_round_constants, - partial_round_constants, - ending_full_round_constants, - } - } - - /// Create test constants with simple deterministic values - pub fn test_constants() -> Self { - Self { - beginning_full_round_constants: core::array::from_fn(|round| { - core::array::from_fn(|i| F::from((round * WIDTH + i + 1) as u64)) - }), - partial_round_constants: core::array::from_fn(|round| { - F::from((HALF_FULL_ROUNDS * WIDTH + round + 1) as u64) - }), - ending_full_round_constants: core::array::from_fn(|round| { - core::array::from_fn(|i| { - F::from( - (HALF_FULL_ROUNDS * WIDTH + PARTIAL_ROUNDS + round * WIDTH + i + 1) as u64, - ) - }) - }), - } - } -} - impl RoundConstants { // TODO: cache/lazyfy this pub fn new_goldilocks_8_constants() -> Self { diff --git a/starstream_ivc_proto/src/poseidon2/gadget.rs b/starstream_ivc_proto/src/poseidon2/gadget.rs index 0d6ea12b..1ceb8bca 100644 --- a/starstream_ivc_proto/src/poseidon2/gadget.rs +++ b/starstream_ivc_proto/src/poseidon2/gadget.rs @@ -124,7 +124,7 @@ impl< } } -/// Convenience function to hash inputs using Poseidon2 +#[cfg(test)] pub fn poseidon2_hash< F: PrimeField, ExtLinear: ExternalLinearLayer, diff --git a/starstream_ivc_proto/src/poseidon2/goldilocks.rs b/starstream_ivc_proto/src/poseidon2/goldilocks.rs index 99b90f16..62ebe452 100644 --- a/starstream_ivc_proto/src/poseidon2/goldilocks.rs +++ b/starstream_ivc_proto/src/poseidon2/goldilocks.rs @@ -1,11 +1,6 @@ use crate::goldilocks::FpGoldilocks; use std::sync::OnceLock; -/// Degree of the chosen permutation polynomial for Goldilocks, used as the Poseidon2 S-Box. -/// -/// As p - 1 = 2^32 * 3 * 5 * 17 * ... the smallest choice for a degree D satisfying gcd(p - 1, D) = 1 is 7. -const GOLDILOCKS_S_BOX_DEGREE: u64 = 7; - pub static MATRIX_DIAG_8_GOLDILOCKS: OnceLock<[FpGoldilocks; 8]> = OnceLock::new(); pub(crate) fn matrix_diag_8_goldilocks() -> &'static [FpGoldilocks; 8] { @@ -23,8 +18,10 @@ pub(crate) fn matrix_diag_8_goldilocks() -> &'static [FpGoldilocks; 8] { }) } +#[allow(unused)] pub static MATRIX_DIAG_12_GOLDILOCKS: OnceLock<[FpGoldilocks; 12]> = OnceLock::new(); +#[allow(unused)] pub(crate) fn matrix_diag_12_goldilocks() -> &'static [FpGoldilocks; 12] { MATRIX_DIAG_12_GOLDILOCKS.get_or_init(|| { [ @@ -44,8 +41,10 @@ pub(crate) fn matrix_diag_12_goldilocks() -> &'static [FpGoldilocks; 12] { }) } +#[allow(unused)] pub static MATRIX_DIAG_16_GOLDILOCKS: OnceLock<[FpGoldilocks; 16]> = OnceLock::new(); +#[allow(unused)] pub(crate) fn matrix_diag_16_goldilocks() -> &'static [FpGoldilocks; 16] { MATRIX_DIAG_16_GOLDILOCKS.get_or_init(|| { [ @@ -69,8 +68,10 @@ pub(crate) fn matrix_diag_16_goldilocks() -> &'static [FpGoldilocks; 16] { }) } +#[allow(unused)] pub static MATRIX_DIAG_20_GOLDILOCKS: OnceLock<[FpGoldilocks; 20]> = OnceLock::new(); +#[allow(unused)] pub(crate) fn matrix_diag_20_goldilocks() -> &'static [FpGoldilocks; 20] { MATRIX_DIAG_20_GOLDILOCKS.get_or_init(|| { [ diff --git a/starstream_ivc_proto/src/poseidon2/linear_layers.rs b/starstream_ivc_proto/src/poseidon2/linear_layers.rs index b3bda711..009f3c80 100644 --- a/starstream_ivc_proto/src/poseidon2/linear_layers.rs +++ b/starstream_ivc_proto/src/poseidon2/linear_layers.rs @@ -2,82 +2,32 @@ use crate::{ F, - poseidon2::{ - goldilocks::{matrix_diag_8_goldilocks, matrix_diag_16_goldilocks}, - math::mds_light_permutation, - }, + poseidon2::{goldilocks::matrix_diag_8_goldilocks, math::mds_light_permutation}, }; use ark_ff::PrimeField; use ark_r1cs_std::fields::fp::FpVar; use ark_relations::gr1cs::SynthesisError; -/// Trait for external linear layer operations pub trait ExternalLinearLayer { - // fn apply(state: &mut [FpVar; WIDTH]) -> Result<(), SynthesisError>; - - // permute_state_initial, permute_state_terminal are split as the Poseidon2 specifications are slightly different - // with the initial rounds involving an extra matrix multiplication. - - /// Perform the initial external layers of the Poseidon2 permutation on the given state. fn apply(state: &mut [FpVar; WIDTH]) -> Result<(), SynthesisError>; } -/// Trait for internal linear layer operations pub trait InternalLinearLayer { fn apply(state: &mut [FpVar; WIDTH]) -> Result<(), SynthesisError>; } pub enum GoldilocksExternalLinearLayer {} -// /// A generic method performing the transformation: -// /// -// /// `x -> (x + round_constant)^D` -// #[inline(always)] -// pub fn add_round_constant_and_sbox( -// val: &mut FpVar, -// rc: &FpVar, -// ) -> Result<(), SynthesisError> { -// *val += rc; -// *val = val.pow_by_constant(&[GOLDILOCKS_S_BOX_DEGREE])?; - -// Ok(()) -// } - impl ExternalLinearLayer for GoldilocksExternalLinearLayer { fn apply(state: &mut [FpVar; WIDTH]) -> Result<(), SynthesisError> { mds_light_permutation(state)?; - // for elem in &round_constants.beginning_full_round_constants { - // state - // .iter_mut() - // .zip(elem.iter()) - // .for_each(|(x, c)| add_round_constant_and_sbox(x, c).unwrap()); - // mds_light_permutation(state); - // } - Ok(()) } - - // fn permute_terminal( - // round_constants: &AllocatedRoundConstants, - // state: &mut [FpVar; WIDTH], - // ) -> Result<(), SynthesisError> { - // for elem in &round_constants.ending_full_round_constants { - // state - // .iter_mut() - // .zip(elem.iter()) - // .for_each(|(s, rc)| add_round_constant_and_sbox(s, rc).unwrap()); - // mds_light_permutation(state); - // } - - // Ok(()) - // } } pub enum GoldilocksInternalLinearLayer8 {} -pub enum GoldilocksInternalLinearLayer16 {} - pub fn matmul_internal( state: &mut [FpVar; WIDTH], mat_internal_diag_m_1: &'static [F; WIDTH], @@ -96,43 +46,3 @@ impl InternalLinearLayer for GoldilocksInternalLinearLayer8 { Ok(()) } } - -impl InternalLinearLayer for GoldilocksInternalLinearLayer16 { - fn apply(state: &mut [FpVar; 16]) -> Result<(), SynthesisError> { - matmul_internal(state, matrix_diag_16_goldilocks()); - - Ok(()) - } -} - -// /// Default external linear layer for width 4 (commonly used for Goldilocks) -// pub struct DefaultExternalLinearLayer4; - -// impl ExternalLinearLayer for DefaultExternalLinearLayer4 { -// fn apply(state: &mut [FpVar; 4]) -> Result<(), SynthesisError> { -// // Placeholder implementation for width 4 -// let mut new_state = state.clone(); - -// // Simple mixing (replace with actual Poseidon2 matrix) -// new_state[0] = &state[0] + &state[1] + &state[2] + &state[3]; -// new_state[1] = &state[0] + &state[1]; -// new_state[2] = &state[0] + &state[2]; -// new_state[3] = &state[0] + &state[3]; - -// *state = new_state; -// Ok(()) -// } -// } - -// /// Default internal linear layer for width 4 -// pub struct DefaultInternalLinearLayer4; - -// impl InternalLinearLayer for DefaultInternalLinearLayer4 { -// fn apply(state: &mut [FpVar; 4]) -> Result<(), SynthesisError> { -// // Simple internal linear layer for width 4 -// let sum = &state[1] + &state[2] + &state[3]; -// state[0] = &state[0] + ∑ - -// Ok(()) -// } -// } diff --git a/starstream_ivc_proto/src/poseidon2/mod.rs b/starstream_ivc_proto/src/poseidon2/mod.rs index 7cfa4387..7888f796 100644 --- a/starstream_ivc_proto/src/poseidon2/mod.rs +++ b/starstream_ivc_proto/src/poseidon2/mod.rs @@ -17,7 +17,6 @@ use ark_r1cs_std::{GR1CSVar as _, alloc::AllocVar as _, fields::fp::FpVar}; use ark_relations::gr1cs::{ConstraintSystem, SynthesisError}; pub use constants::RoundConstants; -#[allow(unused)] pub fn compress(inputs: &[FpVar; 8]) -> Result<[FpVar; 4], SynthesisError> { let constants = RoundConstants::new_goldilocks_8_constants(); diff --git a/starstream_ivc_proto/src/poseidon2/vectorized.rs b/starstream_ivc_proto/src/poseidon2/vectorized.rs deleted file mode 100644 index 146a61a6..00000000 --- a/starstream_ivc_proto/src/poseidon2/vectorized.rs +++ /dev/null @@ -1 +0,0 @@ -// This file is intentionally empty - vectorized AIR implementation was removed From 16a5549df82494541202bcfa8abb4484e4bd39d2 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Fri, 14 Nov 2025 21:24:52 -0300 Subject: [PATCH 018/152] fix: replace DummyMemory with NebulaMemory to resolve type mismatch Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/starstream_ivc_proto/src/lib.rs b/starstream_ivc_proto/src/lib.rs index 182c2e02..732bb89c 100644 --- a/starstream_ivc_proto/src/lib.rs +++ b/starstream_ivc_proto/src/lib.rs @@ -18,7 +18,7 @@ use ::neo::{ use ark_relations::gr1cs::SynthesisError; use circuit::StepCircuitBuilder; use goldilocks::FpGoldilocks; -use memory::DummyMemory; +use memory::nebula::NebulaMemory; use p3_field::PrimeCharacteristicRing; use std::collections::BTreeMap; use std::time::Instant; @@ -132,7 +132,7 @@ impl Transaction>> { pub fn prove(&self) -> Result, SynthesisError> { let utxos_len = self.utxo_deltas.len(); - let tx = StepCircuitBuilder::>::new( + let tx = StepCircuitBuilder::>::new( self.utxo_deltas.clone(), self.proof_like.clone(), ); From 82b4c7bd0735e527ed24c0f0243fe91414f4bf12 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Mon, 17 Nov 2025 18:27:09 -0300 Subject: [PATCH 019/152] (wip) bump nightstream version to new impl tests still not passing Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/Cargo.toml | 14 ++- starstream_ivc_proto/src/lib.rs | 125 +++++++++---------- starstream_ivc_proto/src/neo.rs | 207 +++++++++----------------------- 3 files changed, 128 insertions(+), 218 deletions(-) diff --git a/starstream_ivc_proto/Cargo.toml b/starstream_ivc_proto/Cargo.toml index f440ad27..6b3968d0 100644 --- a/starstream_ivc_proto/Cargo.toml +++ b/starstream_ivc_proto/Cargo.toml @@ -11,15 +11,17 @@ ark-bn254 = { version = "0.5.0", features = ["scalar_field"] } ark-poly = "0.5.0" ark-poly-commit = "0.5.0" tracing = { version = "0.1", default-features = false, features = [ "attributes" ] } -tracing-subscriber = { version = "0.3" } +tracing-subscriber = { version = "0.3", features = ["env-filter"] } -neo = { git = "https://github.com/nicarq/halo3", rev = "3b2a85115984b2c2cbcf90dce394075e045c6931", features = ["fs-guard"] } -neo-math = { git = "https://github.com/nicarq/halo3", rev = "3b2a85115984b2c2cbcf90dce394075e045c6931" } -neo-ccs = { git = "https://github.com/nicarq/halo3", rev = "3b2a85115984b2c2cbcf90dce394075e045c6931" } -neo-ajtai = { git = "https://github.com/nicarq/halo3", rev = "3b2a85115984b2c2cbcf90dce394075e045c6931" } -rand = "0.9" +neo-fold = { git = "https://github.com/nicarq/Nightstream.git", rev = "cb16b3f4d08d0bed4c0701aec51a26f8ffe38721", features = ["fs-guard", "debug-logs"] } +neo-math = { git = "https://github.com/nicarq/Nightstream.git", rev = "cb16b3f4d08d0bed4c0701aec51a26f8ffe38721" } +neo-ccs = { git = "https://github.com/nicarq/Nightstream.git", rev = "cb16b3f4d08d0bed4c0701aec51a26f8ffe38721" } +neo-ajtai = { git = "https://github.com/nicarq/Nightstream.git", rev = "cb16b3f4d08d0bed4c0701aec51a26f8ffe38721" } +neo-params = { git = "https://github.com/nicarq/Nightstream.git", rev = "cb16b3f4d08d0bed4c0701aec51a26f8ffe38721" } p3-goldilocks = { version = "0.3.0", default-features = false } p3-field = "0.3.0" p3-symmetric = "0.3.0" p3-poseidon2 = "0.3.0" +rand_chacha = "0.9.0" +rand = "0.9" diff --git a/starstream_ivc_proto/src/lib.rs b/starstream_ivc_proto/src/lib.rs index 732bb89c..17a53d29 100644 --- a/starstream_ivc_proto/src/lib.rs +++ b/starstream_ivc_proto/src/lib.rs @@ -9,19 +9,20 @@ mod poseidon2; mod test_utils; pub use memory::nebula; - -use crate::neo::StepCircuitNeo; -use ::neo::{ - FoldingSession, NeoParams, NeoStep as _, StepDescriptor, - session::{IvcFinalizeOptions, finalize_ivc_chain_with_options}, -}; -use ark_relations::gr1cs::SynthesisError; +use neo_ajtai::AjtaiSModule; +use neo_ccs::CcsStructure; +use neo_fold::pi_ccs::FoldingMode; +use neo_fold::session::FoldingSession; +use neo_params::NeoParams; + +use crate::circuit::InterRoundWires; +use crate::memory::IVCMemory; +use crate::neo::arkworks_to_neo_ccs; +use crate::{memory::DummyMemory, neo::StepCircuitNeo}; +use ark_relations::gr1cs::{ConstraintSystem, SynthesisError}; use circuit::StepCircuitBuilder; use goldilocks::FpGoldilocks; -use memory::nebula::NebulaMemory; -use p3_field::PrimeCharacteristicRing; use std::collections::BTreeMap; -use std::time::Instant; type F = FpGoldilocks; @@ -111,7 +112,8 @@ pub enum LedgerOperation { } pub struct ProverOutput { - pub proof: ::neo::Proof, + // pub proof: Proof, + pub proof: (), } impl Transaction>> { @@ -130,78 +132,68 @@ impl Transaction>> { } pub fn prove(&self) -> Result, SynthesisError> { - let utxos_len = self.utxo_deltas.len(); + let shape_ccs = ccs_step_shape()?; - let tx = StepCircuitBuilder::>::new( + let tx = StepCircuitBuilder::>::new( self.utxo_deltas.clone(), self.proof_like.clone(), ); let num_iters = tx.ops.len(); - let mut f_circuit = StepCircuitNeo::new(tx); + let n = shape_ccs.n.max(shape_ccs.m); - let y0 = vec![ - ::neo::F::from_u64(1), // current_program_in - ::neo::F::from_u64(utxos_len as u64), // utxos_len_in - ::neo::F::from_u64(0), // n_finalized_in - ]; + let mut f_circuit = StepCircuitNeo::new(tx, shape_ccs.clone()); - let params = NeoParams::goldilocks_small_circuits(); + // since we are using square matrices, n = m + neo::setup_ajtai_for_dims(n); - let mut session = FoldingSession::new( - ¶ms, - Some(y0.clone()), - 0, - ::neo::AppInputBinding::WitnessBound, - ); + let l = AjtaiSModule::from_global_for_dims(neo_math::D, n).expect("AjtaiSModule init"); + + let params = NeoParams::goldilocks_auto_r1cs_ccs(n) + .expect("goldilocks_auto_r1cs_ccs should find valid params"); + + let mut session = FoldingSession::new(FoldingMode::PaperExact, params, l.clone()); for _i in 0..num_iters { - let start = Instant::now(); session.prove_step(&mut f_circuit, &()).unwrap(); - let elapsed = start.elapsed(); - println!("Step {} took {:?}", _i, elapsed); } - let descriptor = StepDescriptor { - ccs: f_circuit.shape_ccs.clone().expect("missing step CCS"), - spec: f_circuit.step_spec(), - }; - let (chain, step_ios) = session.finalize(); + let run = session.finalize(&shape_ccs).unwrap(); - let ok = ::neo::verify_chain_with_descriptor( - &descriptor, - &chain, - &y0, - ¶ms, - &step_ios, - ::neo::AppInputBinding::WitnessBound, - ) - .unwrap(); + let mcss_public = session.mcss_public(); + let ok = session + .verify(&shape_ccs, &mcss_public, &run) + .expect("verify should run"); + assert!(ok, "optimized verification should pass"); - assert!(ok, "neo chain verification failed"); + Ok(Transaction { + utxo_deltas: self.utxo_deltas.clone(), + proof_like: ProverOutput { proof: () }, + }) + } +} - let start = Instant::now(); +fn ccs_step_shape() -> Result, SynthesisError> { + let _span = tracing::debug_span!("dummy circuit").entered(); - let (final_proof, _final_ccs, _final_public_input) = finalize_ivc_chain_with_options( - &descriptor, - ¶ms, - chain, - ::neo::AppInputBinding::WitnessBound, - IvcFinalizeOptions { embed_ivc_ev: true }, - ) - .map_err(|_| SynthesisError::Unsatisfiable)? - .ok_or(SynthesisError::Unsatisfiable)?; + tracing::debug!("constructing nop circuit to get initial (stable) ccs shape"); - println!("Spartan proof took {} ms", start.elapsed().as_millis()); + let cs = ConstraintSystem::new_ref(); + cs.set_optimization_goal(ark_relations::gr1cs::OptimizationGoal::Constraints); - let prover_output = ProverOutput { proof: final_proof }; + let mut dummy_tx = StepCircuitBuilder::>::new( + Default::default(), + vec![LedgerOperation::Nop {}], + ); - Ok(Transaction { - utxo_deltas: self.utxo_deltas.clone(), - proof_like: prover_output, - }) - } + let mb = dummy_tx.trace_memory_ops(()); + let irw = InterRoundWires::new(dummy_tx.rom_offset()); + dummy_tx.make_step_circuit(0, &mut mb.constraints(), cs.clone(), irw)?; + + cs.finalize(); + + Ok(arkworks_to_neo_ccs(&cs)) } impl Transaction { @@ -218,6 +210,17 @@ mod tests { }; use std::collections::BTreeMap; + #[test] + fn test_nop() { + init_test_logging(); + + let changes = vec![].into_iter().collect::>(); + let tx = Transaction::new_unproven(changes.clone(), vec![LedgerOperation::Nop {}]); + let proof = tx.prove().unwrap(); + + proof.verify(changes); + } + #[test] fn test_starstream_tx_success() { init_test_logging(); diff --git a/starstream_ivc_proto/src/neo.rs b/starstream_ivc_proto/src/neo.rs index de4b0efa..8e849f22 100644 --- a/starstream_ivc_proto/src/neo.rs +++ b/starstream_ivc_proto/src/neo.rs @@ -5,36 +5,39 @@ use crate::{ }; use ark_ff::{Field, PrimeField}; use ark_relations::gr1cs::{ConstraintSystem, ConstraintSystemRef, OptimizationGoal}; -use neo::{CcsStructure, F, NeoStep, StepArtifacts, StepSpec}; +use neo_ccs::CcsStructure; +use neo_fold::session::{NeoStep, StepArtifacts, StepSpec}; +use neo_math::D; use p3_field::PrimeCharacteristicRing; +use rand::SeedableRng as _; pub(crate) struct StepCircuitNeo where M: IVCMemory, { - pub(crate) shape_ccs: Option>, // stable shape across steps + pub(crate) shape_ccs: CcsStructure, // stable shape across steps pub(crate) circuit_builder: StepCircuitBuilder, pub(crate) irw: InterRoundWires, pub(crate) mem: M::Allocator, - - debug_prev_state: Option>, } impl StepCircuitNeo where M: IVCMemory, { - pub fn new(mut circuit_builder: StepCircuitBuilder) -> Self { + pub fn new( + mut circuit_builder: StepCircuitBuilder, + shape_ccs: CcsStructure, + ) -> Self { let irw = InterRoundWires::new(circuit_builder.rom_offset()); let mb = circuit_builder.trace_memory_ops(()); Self { - shape_ccs: None, + shape_ccs, circuit_builder, irw, mem: mb.constraints(), - debug_prev_state: None, } } } @@ -54,14 +57,15 @@ where y_len: self.state_len(), const1_index: 0, y_step_indices: vec![2, 4, 6], - app_input_indices: None, + app_input_indices: Some(vec![1, 3, 5]), + m_in: 7, } } fn synthesize_step( &mut self, step_idx: usize, - _z_prev: &[::neo::F], + _z_prev: &[::neo_math::F], _inputs: &Self::ExternalInputs, ) -> StepArtifacts { let cs = ConstraintSystem::::new_ref(); @@ -74,20 +78,15 @@ where let spec = self.step_spec(); - let step = arkworks_to_neo(cs.clone()); + let mut step = arkworks_to_neo(cs.clone()); - if self.shape_ccs.is_none() { - self.shape_ccs = Some(step.ccs.clone()); - } + assert!(cs.is_satisfied().unwrap()); - // State chaining validation removed - no longer needed with updated neo version + let padded_witness_len = step.ccs.n.max(step.ccs.m); + step.witness.resize(padded_witness_len, neo_math::F::ZERO); - self.debug_prev_state.replace( - spec.y_step_indices - .iter() - .map(|i| step.witness[*i]) - .collect::>(), - ); + neo_ccs::check_ccs_rowwise_zero(&step.ccs, &[], &step.witness).unwrap(); + neo_ccs::check_ccs_rowwise_zero(&self.shape_ccs, &[], &step.witness).unwrap(); StepArtifacts { ccs: step.ccs, @@ -99,21 +98,15 @@ where } pub(crate) struct NeoInstance { - pub(crate) ccs: CcsStructure, + pub(crate) ccs: CcsStructure, // instance + witness assignments - pub(crate) witness: Vec, + pub(crate) witness: Vec, } pub(crate) fn arkworks_to_neo(cs: ConstraintSystemRef) -> NeoInstance { cs.finalize(); - let matrices = &cs.to_matrices().unwrap()["R1CS"]; - - let a_mat = ark_matrix_to_neo(&cs, &matrices[0]); - let b_mat = ark_matrix_to_neo(&cs, &matrices[1]); - let c_mat = ark_matrix_to_neo(&cs, &matrices[2]); - - let ccs = neo_ccs::r1cs_to_ccs(a_mat, b_mat, c_mat); + let ccs = arkworks_to_neo_ccs(&cs); let instance_assignment = cs.instance_assignment().unwrap(); assert_eq!(instance_assignment[0], FpGoldilocks::ONE); @@ -138,27 +131,49 @@ pub(crate) fn arkworks_to_neo(cs: ConstraintSystemRef) -> NeoInsta } } +pub(crate) fn arkworks_to_neo_ccs( + cs: &ConstraintSystemRef, +) -> neo_ccs::CcsStructure { + let matrices = &cs.to_matrices().unwrap()["R1CS"]; + + let a_mat = ark_matrix_to_neo(cs, &matrices[0]); + let b_mat = ark_matrix_to_neo(cs, &matrices[1]); + let c_mat = ark_matrix_to_neo(cs, &matrices[2]); + + let ccs = neo_ccs::r1cs_to_ccs(a_mat, b_mat, c_mat); + + ccs.ensure_identity_first() + .expect("ensure_identity_first should succeed"); + + ccs +} + fn ark_matrix_to_neo( cs: &ConstraintSystemRef, sparse_matrix: &[Vec<(FpGoldilocks, usize)>], -) -> neo_ccs::Mat { - let n_rows = cs.num_constraints(); - let n_cols = cs.num_variables(); +) -> neo_ccs::Mat { + let n = cs.num_constraints().max(cs.num_variables()); // TODO: would be nice to just be able to construct the sparse matrix - let mut dense = vec![F::from_u64(0); n_rows * n_cols]; + let mut dense = vec![neo_math::F::from_u64(0); n * n]; for (row_i, row) in sparse_matrix.iter().enumerate() { for (col_v, col_i) in row.iter() { - dense[n_cols * row_i + col_i] = ark_field_to_p3_goldilocks(col_v); + dense[n * row_i + col_i] = ark_field_to_p3_goldilocks(col_v); } } - neo_ccs::Mat::from_row_major(n_rows, n_cols, dense) + neo_ccs::Mat::from_row_major(n, n, dense) } pub fn ark_field_to_p3_goldilocks(col_v: &FpGoldilocks) -> p3_goldilocks::Goldilocks { - F::from_u64(col_v.into_bigint().0[0]) + neo_math::F::from_u64(col_v.into_bigint().0[0]) +} + +pub(crate) fn setup_ajtai_for_dims(m: usize) { + let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(42); + let pp = neo_ajtai::setup(&mut rng, D, 4, m).expect("Ajtai setup should succeed"); + let _ = neo_ajtai::set_global_pp(pp); } #[cfg(test)] @@ -168,33 +183,29 @@ mod tests { neo::{ark_field_to_p3_goldilocks, arkworks_to_neo}, }; use ark_r1cs_std::{alloc::AllocVar, eq::EqGadget as _, fields::fp::FpVar}; - use ark_relations::gr1cs::{self, ConstraintSystem}; - use neo::{ - CcsStructure, FoldingSession, NeoParams, NeoStep, StepArtifacts, StepDescriptor, StepSpec, - }; + use ark_relations::gr1cs::ConstraintSystem; use p3_field::PrimeCharacteristicRing; - use p3_field::PrimeField; #[test] fn test_ark_field() { assert_eq!( ark_field_to_p3_goldilocks(&F::from(20)), - ::neo::F::from_u64(20) + ::neo_math::F::from_u64(20) ); assert_eq!( ark_field_to_p3_goldilocks(&F::from(100)), - ::neo::F::from_u64(100) + ::neo_math::F::from_u64(100) ); assert_eq!( ark_field_to_p3_goldilocks(&F::from(400)), - ::neo::F::from_u64(400) + ::neo_math::F::from_u64(400) ); assert_eq!( ark_field_to_p3_goldilocks(&F::from(u64::MAX)), - ::neo::F::from_u64(u64::MAX) + ::neo_math::F::from_u64(u64::MAX) ); } @@ -231,110 +242,4 @@ mod tests { assert_eq!(cs.is_satisfied().unwrap(), neo_check); } - - pub(crate) struct ArkStepAdapter { - shape_ccs: Option>, // stable shape across steps - } - - impl ArkStepAdapter { - pub fn new() -> Self { - Self { shape_ccs: None } - } - } - - impl NeoStep for ArkStepAdapter { - type ExternalInputs = (); - - fn state_len(&self) -> usize { - 1 - } - - fn step_spec(&self) -> StepSpec { - StepSpec { - y_len: 1, - const1_index: 0, - y_step_indices: vec![3], - app_input_indices: None, - } - } - - fn synthesize_step( - &mut self, - _step_idx: usize, - z_prev: &[::neo::F], - _inputs: &Self::ExternalInputs, - ) -> StepArtifacts { - let i = z_prev - .first() - .map(|z_prev| z_prev.as_canonical_biguint().to_u64_digits()[0]) - .unwrap_or(0); - - // TODO: i should really be step_idx here - let cs = make_step(i); - - let step = arkworks_to_neo(cs.clone()); - - if self.shape_ccs.is_none() { - self.shape_ccs = Some(step.ccs.clone()); - } - - StepArtifacts { - ccs: step.ccs, - witness: step.witness, - public_app_inputs: vec![], - spec: self.step_spec(), - } - } - } - #[test] - fn test_arkworks_to_neo() { - let params = NeoParams::goldilocks_small_circuits(); - - let mut session = FoldingSession::new(¶ms, None, 0, neo::AppInputBinding::WitnessBound); - - let mut adapter = ArkStepAdapter::new(); - let _step_result = session.prove_step(&mut adapter, &()).unwrap(); - let _step_result = session.prove_step(&mut adapter, &()).unwrap(); - - let (chain, step_ios) = session.finalize(); - let descriptor = StepDescriptor { - ccs: adapter.shape_ccs.as_ref().unwrap().clone(), - spec: adapter.step_spec().clone(), - }; - - let ok = neo::verify_chain_with_descriptor( - &descriptor, - &chain, - &[::neo::F::from_u64(0)], - ¶ms, - &step_ios, - neo::AppInputBinding::WitnessBound, - ) - .unwrap(); - - assert!(ok, "verify chain"); - } - - fn make_step(i: u64) -> gr1cs::ConstraintSystemRef { - let cs = ConstraintSystem::::new_ref(); - - let var1 = FpVar::new_input(cs.clone(), || Ok(F::from(i))).unwrap(); - let delta = FpVar::new_input(cs.clone(), || Ok(F::from(1))).unwrap(); - let var2 = FpVar::new_input(cs.clone(), || Ok(F::from(i + 1))).unwrap(); - - (var1.clone() + delta.clone()).enforce_equal(&var2).unwrap(); - (var1.clone() + delta.clone()).enforce_equal(&var2).unwrap(); - (var1 + delta).enforce_equal(&var2).unwrap(); - - let is_sat = cs.is_satisfied().unwrap(); - - if !is_sat { - let trace = cs.which_is_unsatisfied().unwrap().unwrap(); - panic!( - "The constraint system was not satisfied; here is a trace indicating which constraint was unsatisfied: \n{trace}", - ) - } - - cs - } } From 49a1f9e4914345bdb7da2d7ddfb66ca75aefde6b Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Mon, 17 Nov 2025 20:47:01 -0300 Subject: [PATCH 020/152] refactor: add debug prints for matrix conversion constraints and variables Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/src/neo.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/starstream_ivc_proto/src/neo.rs b/starstream_ivc_proto/src/neo.rs index 8e849f22..7e1cc999 100644 --- a/starstream_ivc_proto/src/neo.rs +++ b/starstream_ivc_proto/src/neo.rs @@ -152,8 +152,12 @@ fn ark_matrix_to_neo( cs: &ConstraintSystemRef, sparse_matrix: &[Vec<(FpGoldilocks, usize)>], ) -> neo_ccs::Mat { + // the final result should be a square matrix (but the sparse matrix may not be) let n = cs.num_constraints().max(cs.num_variables()); + dbg!(cs.num_constraints()); + dbg!(cs.num_variables()); + // TODO: would be nice to just be able to construct the sparse matrix let mut dense = vec![neo_math::F::from_u64(0); n * n]; From 9d294d21510b71f9d271fcf364698ac6f2881ebb Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Mon, 17 Nov 2025 20:47:08 -0300 Subject: [PATCH 021/152] feat: add reversibility assertion in ark_field_to_p3_goldilocks conversion Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/src/neo.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/starstream_ivc_proto/src/neo.rs b/starstream_ivc_proto/src/neo.rs index 7e1cc999..32f5d878 100644 --- a/starstream_ivc_proto/src/neo.rs +++ b/starstream_ivc_proto/src/neo.rs @@ -171,7 +171,13 @@ fn ark_matrix_to_neo( } pub fn ark_field_to_p3_goldilocks(col_v: &FpGoldilocks) -> p3_goldilocks::Goldilocks { - neo_math::F::from_u64(col_v.into_bigint().0[0]) + let result = neo_math::F::from_u64(col_v.into_bigint().0[0]); + + // Assert that we can convert back and get the same element + let converted_back = FpGoldilocks::from(result.as_u64()); + assert_eq!(*col_v, converted_back, "Field element conversion is not reversible"); + + result } pub(crate) fn setup_ajtai_for_dims(m: usize) { From 234510f204a47de022b01bb7c10ca01f24e8a0a6 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Mon, 17 Nov 2025 20:47:44 -0300 Subject: [PATCH 022/152] fix: simplify ark_field_to_p3_goldilocks conversion logic Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/src/neo.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/starstream_ivc_proto/src/neo.rs b/starstream_ivc_proto/src/neo.rs index 32f5d878..00e6c599 100644 --- a/starstream_ivc_proto/src/neo.rs +++ b/starstream_ivc_proto/src/neo.rs @@ -171,10 +171,11 @@ fn ark_matrix_to_neo( } pub fn ark_field_to_p3_goldilocks(col_v: &FpGoldilocks) -> p3_goldilocks::Goldilocks { - let result = neo_math::F::from_u64(col_v.into_bigint().0[0]); + let original_u64 = col_v.into_bigint().0[0]; + let result = neo_math::F::from_u64(original_u64); // Assert that we can convert back and get the same element - let converted_back = FpGoldilocks::from(result.as_u64()); + let converted_back = FpGoldilocks::from(original_u64); assert_eq!(*col_v, converted_back, "Field element conversion is not reversible"); result From d34296dc1be8212c3356ff8d90b34e3335b685bf Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Thu, 20 Nov 2025 13:30:05 -0300 Subject: [PATCH 023/152] bump nightstream to 5af5fce Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/Cargo.toml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/starstream_ivc_proto/Cargo.toml b/starstream_ivc_proto/Cargo.toml index 6b3968d0..2f63c312 100644 --- a/starstream_ivc_proto/Cargo.toml +++ b/starstream_ivc_proto/Cargo.toml @@ -13,11 +13,11 @@ ark-poly-commit = "0.5.0" tracing = { version = "0.1", default-features = false, features = [ "attributes" ] } tracing-subscriber = { version = "0.3", features = ["env-filter"] } -neo-fold = { git = "https://github.com/nicarq/Nightstream.git", rev = "cb16b3f4d08d0bed4c0701aec51a26f8ffe38721", features = ["fs-guard", "debug-logs"] } -neo-math = { git = "https://github.com/nicarq/Nightstream.git", rev = "cb16b3f4d08d0bed4c0701aec51a26f8ffe38721" } -neo-ccs = { git = "https://github.com/nicarq/Nightstream.git", rev = "cb16b3f4d08d0bed4c0701aec51a26f8ffe38721" } -neo-ajtai = { git = "https://github.com/nicarq/Nightstream.git", rev = "cb16b3f4d08d0bed4c0701aec51a26f8ffe38721" } -neo-params = { git = "https://github.com/nicarq/Nightstream.git", rev = "cb16b3f4d08d0bed4c0701aec51a26f8ffe38721" } +neo-fold = { git = "https://github.com/nicarq/Nightstream.git", rev = "5af5fce2058917ac9f3518e1c689ae1d81656790", features = ["fs-guard", "debug-logs"] } +neo-math = { git = "https://github.com/nicarq/Nightstream.git", rev = "5af5fce2058917ac9f3518e1c689ae1d81656790" } +neo-ccs = { git = "https://github.com/nicarq/Nightstream.git", rev = "5af5fce2058917ac9f3518e1c689ae1d81656790" } +neo-ajtai = { git = "https://github.com/nicarq/Nightstream.git", rev = "5af5fce2058917ac9f3518e1c689ae1d81656790" } +neo-params = { git = "https://github.com/nicarq/Nightstream.git", rev = "5af5fce2058917ac9f3518e1c689ae1d81656790" } p3-goldilocks = { version = "0.3.0", default-features = false } p3-field = "0.3.0" From c53b0ecc7a1c26be7a14b9c78dbd6d847f902f48 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Tue, 9 Dec 2025 00:48:02 -0300 Subject: [PATCH 024/152] add effect handlers to the README.md (which is the spec) Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/README.md | 228 +++++++++++++++++- ...ffect-handlers-codegen-script-non-tail.png | Bin 0 -> 57474 bytes .../effect-handlers-codegen-simple.png | Bin 0 -> 123661 bytes 3 files changed, 222 insertions(+), 6 deletions(-) create mode 100644 starstream_ivc_proto/effect-handlers-codegen-script-non-tail.png create mode 100644 starstream_ivc_proto/effect-handlers-codegen-simple.png diff --git a/starstream_ivc_proto/README.md b/starstream_ivc_proto/README.md index d3ee8f41..e6921687 100644 --- a/starstream_ivc_proto/README.md +++ b/starstream_ivc_proto/README.md @@ -23,7 +23,7 @@ with other programs. A program is either: -1. A coordination script. Which doesn't have state persisted in the ledger. +1. A coordination script. Which has no state persisted in the ledger. 2. A utxo, which has persistent state. Coordination scripts can call into utxos with some id, or other coordination @@ -32,7 +32,7 @@ scripts (here the id can just be source code). Utxos can only yield. Coordination scripts calling into each other is equivalent to plain coroutine calls. -Yielding doesn't necessarily changes control flow to the coordination script +Yielding doesn't necessarily change control flow to the coordination script that called resume, because the transaction may end before that, and the next coordination script could be a different one. Also because we have algebraic effect handlers, control flow may go to a coordination script that was deeper in @@ -45,7 +45,7 @@ expressed as WASM host (imported) function calls. To verify execution, we use a only memory modified by it is that expressed by the function signature. This means we can think of a program trace as a list of native operations with -interspersed blackbox operations (which work as lookup arguments). +interspersed black-box operations (which work as lookup arguments). From the program trace, we can use the zkVM to make a zero knowledge that claims that. @@ -53,8 +53,8 @@ that. 1. The ISA instructions were executed in accordance with the WASM ISA rules. 2. Host calls interact with the stack according to function types. -What a single proof doesn't claim is that the values returned by host calls -were correct. +A single proof does not claim that the values returned by host calls were +correct. In the case of lookup arguments for the optimizations (e.g. witnesses for division, sorting), this can be extended by adding some verification of the @@ -138,7 +138,7 @@ We use the zkVM and we get a proof of that execution. And also the proof is bound to an incremental commitment `C_coord_comm := Commit(resume, v2, r2) + Commit(resume, v1, r1)`. -The straight forward construction for this is by using iterative hashing, for +The straightforward construction for this is by using iterative hashing, for example with Poseidon. For example: `H(, H(, )`. @@ -257,3 +257,219 @@ The flow of execution to proving then looks something like this: Note: WASM is an arbitrary trace of wasm opcodes from the corresponding program. ![img](graph.png) + +## Proving algebraic effects + +### Background + +Algebraic effect handlers involve two things: + +**The ability to declare which effects can be performed by a function.** + +For example: + +```rust +fn pure(x: u32) : u32 / {} = { + x + 1 +} +``` + +```rust +fn effectful(x: u32) : u32 / { IO } = { + do print("x: " ++ x) + + pure(x) +} +``` + +In their simpler form, the effects of a function are the union of all the +interfaces used in its body. In this case we can imagine that IO is an interface +that allows printing: + +```ts +interface IO { + print(x: String): () +} +``` + +**The ability to define handlers for effects.** + +```rust +fn pure2(x: u32) : (u32, String) / {} { + let mut logs = ""; + + try { + effectful(x) + } + with IO { + def print(s) = { + logs += s; + logs += "/n"; + + resume(()); + } + } +} +``` + +In a way, interfaces define a DSL of allowed operations, and handlers give +meaning to those operations by running them. + +Depending on the implementation, we can distinguish between a few types of +handlers: + +1. Single tail-resumption. + +```python +with Interface { + def op(x: u32): u32 { + let y = x+1 + resume(y) + + # nothing happens here + } +} +``` + +There are basically equivalent to function calls. In an environment with shared +memory, these can be implemented as closures. + +In our case, since the continuation could (will?) be running in a different VM +instance, instead we need to think of this more like a channel, where we use a +host call to pass the data from one VM to the other. + +The important thing is that control flow doesn't need to go back to the handler. + + +2. Single non-tail-resumption. + +```python +with Interface { + def op(x: u32): u32 { + let now = Time.now(); + + let y = x+1 + resume(y) + + print(now.elapsed()); # we eventually come back here after the continuation finishes. + } +} +``` + +The tricky part about these is that the handler may be invoked again before +reaching the "exit code". + +There are at least two ways of handling that. + +One is to put the code after resume in a stack, potentially as a closure. Then +before resuming, the continuation code gets pushed into a stack (in the function +stack). + +The other way is to make the handler run in its own VM, and just spawn a new one +(with its own proof) per call to the handler. + +3. Storing the continuation + +```python +let queue = emptyQueue(); +try { + f() + + while let Some(k) = queue.pop() { + k() + } +} +with Interface { + def op(x: u32): u32 { + queue.push(lambda: resume(x + 1)) + } +} +``` + +This can be compiled into a local closure (can only be called from the same +program), so it's not different from just executing the resumption inline. + +The issues with this are more about: + +- linearity: probably want to resume every program at least once (so the queue +has to be linear), and not allow resuming twice (since probably we don't want +this feature) +- static checking of captures maybe, since the call to `k` in the `try` may also +perform effects. It also shouldn't be possible to return the boxed closure. + +4. Non resumptive + +```python +with Interface { + def op(x: u32): never { + print(x + 1) + } +} +``` + +This is not necessarily difficult to implement, and it needs to happen at the +last yield of a utxo in the transaction anyway, since the resume will happen in +the next transaction. + +We may not want to allow defining these though, and enshrine `yield` as a +special effect. + +5. Multi-shot + +It's still undecided whether we want to have this feature (and what would be the semantics + +## Proving + +The cases outlined above can be proved with the architecture outlined in the +previous section without too many changes. The main constraint that we have +is that we can't share memory trivially, which also means we can't just send +closures back and forth. What we can pass back and forth however is the id +of a VM instance (a coroutine). Note that these can be just transaction-local +identifiers, like an index into a contiguous memory/table. Program identifier +hashes can be stored in this table and verified when necessary, but the main +thing we care about here is about interleaving consistency. + +The general outline follows. + +Each effectul function receives a dictionary mapping effects to coroutines. +This can be just encoded through parameter passing. So a function with type: `() +-> () / { singleton_effect }` is compiled into a function of (wasm) type `(k: +coroutine_id) -> ()`. + +This is most likely simpler to prove, but the alternative is to have the the +interleaving proof machinery keep track of the dictionary of installed handlers +(and uninstalling them). The trade-off is a slightly more complicated ABI. + +Invoking a handler is _resuming_ a specific coroutine (received as an argument). +The operation to perform can be passed as an argument encoded as a tagged union. +The tag doesn't have to be a small integer like it's usually done with enums, it +can be for example a hash that identifies the operation. + +Installing a handler is conceptually: + +1. Passing the current coroutine id (wasm vm) id as a parameter in the right position. +(Or call an operation to register a handlers for a certain operation, in the +alternative way). + +2. Setup a trampoline-like loop to drive the handlers. Note that if the +operation is not supported we can just flag an error here that aborts the +transaction. + +### Tail-resumptive basic code lowering example: + +![img](effect-handlers-codegen-simple.png) + +*Note:* matching colors are for the equality constraints that need to be +enforced by the proof, or to identify the coroutine id. + +### Non tail-resumptive example: + +For non-tail resumptive effects, the main difference is that a stack (heap +memory) is needed to keep track of the "exit calls" to run after resumptions. + +For example, the script could look like this: + +**Note** that this also technically stores a continuation. + +![img](effect-handlers-codegen-script-non-tail.png) + diff --git a/starstream_ivc_proto/effect-handlers-codegen-script-non-tail.png b/starstream_ivc_proto/effect-handlers-codegen-script-non-tail.png new file mode 100644 index 0000000000000000000000000000000000000000..6d7143c450d86b16d5e2e20cc117f587a2c42173 GIT binary patch literal 57474 zcmcGVWmgwH32;{4$1Pek=pRFy?N#6m}85c+RxNax=b;S^=QYWuF76ylQyB(?j9@erxLBhfKYF)Oqoe&j+;EvKfYiiD>P-vu?gTA#HI z40ccOymp1m)%p0t0Q~D`r|fzX;$x@Y<+Zi7{zoIYNdKSX=2NY0hPwKzbH!=~f>kIb z*3EP3pwN>5A_&JAgPdn77vn&zRQ34fJT&bGCBm(w7sDdfhRe0pZ@<4c-XC@{dVd_* z>(|4L|86027kb#ZN9nL-iPvnh;hfGnT*;U~v3=L2{Cg@*Xw=tk0WJlvNFrarLnhz=4UPu)q{R>o^gvmw zAT~(z?ZFu@*O3A%wRunlxhaCXn4K3%eFw>_&(nbzDpxS$6U45b5ThLkx}RcDG* zjeJu5c&Ce-CxO58i3DeDnI_Ep1J%)n4Y5KQ-Z>Hoa~!^>Zjh51;q}H2%u~6n$cnG+`n{kpq#l*!B7QGe%pdzvHy&h-)64E}Tfz7RmZp7Af$0scHOCx`}A$CYfCuEl&hpU(~=yNLXuvb`&rN zmyd52i0Ar!Uq=tOIx)FGb0-(I2Od)b^DA7|Vo=F%?!!;c!6TJG|Z!jtJ5&&xi0kihG_vw9AhnF zS=G7`dES#eVEe$>PmUoPpPoLbNs0`p@^L-Z00(Brkf$M&@nf!iB=Z#=796phD~Q_r z$`*Lhr$3Rzdf{gtOza{-^nhCb`N9Dz2RslTP|&p^OMDe_MY`asL!*;5R0^8iHI700 zZ|{{AGW~QM)p~CwEq2InjzexQc27;uox57`{DMLHN;tL;unlp zt~<%MEZX8BYJVBLjT>?Su!6Nrp|tV4azRWImL0p_P{8TnX7KX>m$r^yLD`xxhs}_p zowRy`IlM|H^ibuJN0{f-cmG=7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D5mXMrpS*^rI?#XIbD`eLq{}jP~ccI!rKI z!zI)lWA4J}N|1ro4)3+*w>_xtq9?w4MZ5*&Td;Q(!N2f7G~9ek08aS{L8fI{iaf`T zPZ=VVH~72+X6RGtW`T@x|5vm8kE1Cj#E%4T04pVEpUzD_7U=h)B*%X|QqSi|SJw30 z=^LW2L!sKf0|PPDBQ<#SnN19%$1h?>M5Z$^sps~fBPd!I0Sh}=S93d~G!ra{intH_ z;1zJ18&84EX`O)__cbz5L9+O3eJH@s^@aD7eU|yvEoW348Ea8x(1=gmEwA>Ry(GsC zSMK==pdSvTDk+HIjAX9Ej;H<$A|+Gx>&iK(>Wl#p21rpsY`c(MClX(3DEVh@6G;=! zk*ke9iP;Q1l5{`~u4DM#QCK22yIxHVE|5#%9sp*?QU6sS<~0)SU(F48CLOzKZX`-* z5#1I8X#8L?&wnEo3S(GNEH)LW#8moE zA>=LT5$H$M_wKP(B@dyTn{%x~ZK#^<{}{0#jPcVnGHKkn%-k zYv3%9yc63RRYq>y4lBqWOClRGb)RLBE+u$;qR-n7})t6#Z`k&(Eo2g*M!q zO8@uU&p_Mbb7+CL;u6pkASYWGIcit4e;fc@<=b6~IO~6`C;Jr5jrb7$fHD884%oGY zX_UDq*@{jEATEW<3S08?`DN)Zf1j780+sx90CG?1Ov4!1DzcMUEogsF2Dy!R$5j;LPl0X z`j)A*99-@eT<(ULv@~2=`Vs~&_y1(@_H}kgh5hdt-1i}AKnB=E2&AiZ|4xkt HGWP!fc)>pb literal 0 HcmV?d00001 diff --git a/starstream_ivc_proto/effect-handlers-codegen-simple.png b/starstream_ivc_proto/effect-handlers-codegen-simple.png new file mode 100644 index 0000000000000000000000000000000000000000..500774593bc1aff5d9202d7e6d53436a2a1f385e GIT binary patch literal 123661 zcmc$_1yfwl(*_EQy9ELyxWnSX-Q9I@C$LCxf&>T<+})F~xVytbg1fsUxGnB>$?yNx zy&vKBsjX8rTQ%pLo}QlWr=N~cSCzv;Cq;*YgTqpgm)3-XL(qb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M)5x967q(Ut3bHxJ~1Oz>kZf`CGD_`i~93ln1;V>u7B z1*z>mIonmr%;v{>CmH(*piAp{6f2ya@Yj<_wGd{ldT)ImdXHwc`lak3RlW-C?_9f) zV?W~9lDwp49+uZ$$s^(H2p%VhK8q^epD2!`SKa-mDlMB9p9eFlJND?23W!jll^W~@ z-YRu{Vp-h~N_`WtV?0ZbR0nC0(>iLKt$MzyCFr)X_&eVZzWW=JaKq3ZuS*}(ar-dt zgt3Vx*?{LKQXr*~K9H&A-e41EJyOEgXQ)Yy+yt9% z9uZRxyS%;!&+P9P><3koY86+MumN7;(R51dJGcI**Uz}i-%_g?1bYIOQ==9cd!f5i z`=xJsWD+~rIg{P>i@e%h2l~?uJ<$`F|GIhH41MH--AwjeTE{+T1UyQf`4v_B9-o7~ zmVaIuMj!c&5sn(N%qM2FJlT1PYX?>=&H<}h&_UD zo2y#*p`Dzqzn{?j8GMAA8dxcD_HDd!*5yM!+-u;F z;WSGTe}nHXa&}Qdwurs`Wul+|PbPjUr8NWl@u54nWm(_EulRb7;HlR?f`vOcT9V6n zNdO_{&&J)x z9}ibm{0=6VtG}SQ-ytS{Y+k_$x%h?KjeCB!={67w28$6qI~Z#b~#I29# z2>TR8%v(&JR&n`d2V3;#B3hhb=jvD<)se}G+U*J!=4^y=dhBs}<_R6nccE~p0h$x~ zImOQp4cY&8a5Ri&q;I#Fj^*OwQiNG}!2a-u1?mSx1afX%mozVFt6#jNuBqpud0GFm zw*Eyepr)q2rsh3QOUVBc2o3)OdMoDt7vKUMOmPI1|3?E18X6c0^AElIe`PLR{H5e6 zW;2!}bM~iYJ^7w Date: Thu, 18 Dec 2025 03:08:41 -0300 Subject: [PATCH 025/152] update spec: add concurrency example and update/clarify the "ledger operations" Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/README.md | 565 ++++++++++++++++++++++++++++++--- 1 file changed, 522 insertions(+), 43 deletions(-) diff --git a/starstream_ivc_proto/README.md b/starstream_ivc_proto/README.md index e6921687..41dcbed8 100644 --- a/starstream_ivc_proto/README.md +++ b/starstream_ivc_proto/README.md @@ -6,9 +6,10 @@ This package implements a standalone circuit for the Starstream interleaving pro Let's start by defining some context. A Starstream transaction describes coordinated state transitions between multiple concurrent on-chain programs, -where each transition is analogous to consuming a utxo. Each program is modelled -as a coroutine, which is a resumable function. Resuming a utxo is equal to -consuming it. Yielding from the utxo is equivalent to creating a new utxo. +where each transition is analogous to consuming a utxo (a utxo is a one-shot +continuation). Each program is modelled as a coroutine, which is a resumable +function. Resuming a utxo is equal to spending it. Yielding from the utxo is +equivalent to creating a new utxo. The ledger state for a program (utxo) is described by: @@ -23,11 +24,14 @@ with other programs. A program is either: -1. A coordination script. Which has no state persisted in the ledger. +1. A coordination script. Which has no state persisted in the ledger. Since it's +stateless, the proof needs to also ensure that it runs fully. They can suspend +for calling into effect handlers, but this is just internal to the transaction. 2. A utxo, which has persistent state. -Coordination scripts can call into utxos with some id, or other coordination -scripts (here the id can just be source code). Utxos can only yield. +Coordination scripts can call into utxos with their address, or other +coordination scripts (these get transient ids that are local to the +transaction). Coordination scripts calling into each other is equivalent to plain coroutine calls. @@ -45,7 +49,8 @@ expressed as WASM host (imported) function calls. To verify execution, we use a only memory modified by it is that expressed by the function signature. This means we can think of a program trace as a list of native operations with -interspersed black-box operations (which work as lookup arguments). +interspersed black-box operations (which is effectively a lookup argument of +host call execution). From the program trace, we can use the zkVM to make a zero knowledge that claims that. @@ -63,59 +68,131 @@ returned values. This spec doesn't focus on this specific case. The case that matters for this spec is the case where the host call is supposed to trigger a change in ledger state and get some value from another program. -The basic ledger operations that we care about are: +### Transaction -#### Coordination script +A transaction is made of: + +1. A list of inputs. And input is a "pointer" to an entry in the ledger state (a +utxo). The entry in the ledger state has the serialized coroutine state and a +verification key for a zk proof that gatekeeps spending. +2. A list of outputs (these are the new entries to the ledger). These also need +to have a reference to input they are spending, if any. +3. Proofs: + +- One proof per input. +- One proof per coordination script (and there is at least one). +- The verification keys (which include a hash of the wasm module) for all +coordination scripts. +- The entrypoint (an index into the coordination scripts verification keys). +- The transaction or interleaving proof. + +Verification involves: + +1. For each input (spent utxo), take the proof (in the tx) and the verification +key (in the ledger). +2. Find if there is an output referencing it (if not, just use null). +3. Run `proof.verify(input, verification_key, output)`. +4. If succesful, remove that input from the ledger. And insert the new output. +Remove the output from the list. +5. Outputs without an input can just be added to the ledger. +6. Verify each coordination script proof by itself. Potentially in parallel. +7. Verify the interleaving/transaction proof. Verification for this uses a +commitment to all the lookup tables used in the other proofs. + +**Note** that the above could be compressed into a single proof too by encoding +the above as a circuit (with PCD for the wasm proofs, probably?), this is the +unaggregated scheme. + +The basic "ledger" operations that we care about are: + +### Shared + +- resume(f: Continuation, value: Value) -> (Value, Continuation) + +Changes control flow from the current program to the utxo. The `value` argument +needs to match the return value of the last `yield` in that program. -- resume(utxo: UtxoHandle, value: Value) -> Value +It's important that you get a handle too when resumed, since that allows +basically RPC, by allowing the utxo or coordination script to answer back with +an answer for a request. This means an effect handlers involves two resumes in a +row in a caller -> handler -> caller flow. -Changes control flow from the coordination script to the utxo. The `value` -argument needs to match the return value of the last `yield` in that program. +When performed from a utxo, these don't create a utxo entry. It's expected that +effect handlers are atomic in the transaction. -- new(utxo: ProgramId, value: Value) -> UtxoHandle +The circuit for resume needs to take care of: + +1. The Continuation returned matches the previous program (the previous opcode +in the witness was a resume from that program). +2. The next opcode in the witness trace has a vm id matching `f`. +3. The next opcode for the resumed utxo (which could be yield or resume) has a +return value that matches the input. +4. Utxo's can't resume utxos. +5. Maybe check that continuations are linear/one-shot (by enforcing a nonce on +the continuation). Not sure if this is needed or utxos can just take care of it. + +- program_id(f: Continuation) -> ProgramId + +Get the hash of the program with the given id. This can be used to attest the +caller after resumption. For example, a method that only wants to be called by a +particular coordination script. + +** NOTE: ** that using this for attestation is fundamentally the same as lookup +argument. That is, instead of asking the program id and asserting a fixed one, +you could just ask for a proof and verify it with the program's key. + +The difference is that this allows "batching" (each check is just a lookup into +a process table, and there can be a single proof). It also has the flexibility +of allowing indirection to have a list of allowed callers, for example. + +#### Coordination script + +- new(utxo: UtxoProgramHash, ..args) -> Continuation Creates a new entry in the utxo set in the ledger state. It registers the `ProgramId`, which acts as a verification key, and sets the initial coroutine -state. +state. `Continuation` is basically the address. -#### UTXO +- new_coord(coord: CoordScriptHash, ..args) -> Continuation -- yield(value: Value) -> Value +Register a new coordination script in this transaction, in a cold state (don't +start running it). It can then be called with `resume`. The `args` are the input +to the coordination script. -Pause execution of the current utxo and move control flow to a coordination -script. This creates a new utxo entry, with the PC = current pc and the -coroutine state with the current variables. +When doing the non-zk mode run, this doesn't need to do anything except allocate +a new id for this vm and recording the inputs. But it also would be possible to +allocate it and write the inputs to the initial stack. -- burn() +In the interleaving circuit this is similar. This generates a new transient id +for this wasm vm, which is used as the continuation id. Then it stores the input +in memory. When checking the aggregated proofs, the verifier needs to use the +same inputs to verify the coordination script wasm proof. -Explicit drop in the utxo's program. This removes the program (and the coroutine -state) from the ledger state. +#### Utxo -##### Tokens +- yield() -> (Value, Continuation) -- bind(token: TokenHandle) -- unbind(token: TokenHandle) +Pause execution of the current utxo and move control flow to the previous +coordination script if any. If not, this creates a new utxo entry, with the PC = +current pc and the coroutine state with the current variables. -Relational arguments. The ledger state has to keep relations of inclusion, where -tokens can be included in utxos. +The difference with `resume` is that it doesn't take a continuation as a target. -#### Shared memory +Because of this, only `yield` can be used as the last operation for a utxo in a +transaction. -- share(value: Value) -> DataHandle -- get(value: DataHandle) -> Value +- burn() -`DataHandle` is a type used to represent channel-like shared memory. This is -needed to implement effect handlers, since it requires sharing data across -different memory environments. +Explicit drop in the utxo's program. This removes the program (and the coroutine +state) from the ledger state. It's equivalent to a coroutine return. -In this case `Value` it's just a placeholder for any value that can be -represented in the Starstream type system and that can be shared across programs -(the language doesn't have pointers, so this should be almost any type). +##### Tokens -A `UtxoHandle` is an identifier of a ledger state entry. Which is associated -with a specific program (the source code), and its current state. +- bind(token: Continuation) +- unbind(token: Continuation) -A `ProgramId` is an identifier of the source code (a verification key). +Relational arguments. The ledger state has to keep relations of inclusion, where +tokens can be included in utxos. ### Proving @@ -434,7 +511,7 @@ The general outline follows. Each effectul function receives a dictionary mapping effects to coroutines. This can be just encoded through parameter passing. So a function with type: `() -> () / { singleton_effect }` is compiled into a function of (wasm) type `(k: -coroutine_id) -> ()`. +coroutine_id) -> ()`. This is sometimes called implicit capability passing. This is most likely simpler to prove, but the alternative is to have the the interleaving proof machinery keep track of the dictionary of installed handlers @@ -447,9 +524,9 @@ can be for example a hash that identifies the operation. Installing a handler is conceptually: -1. Passing the current coroutine id (wasm vm) id as a parameter in the right position. -(Or call an operation to register a handlers for a certain operation, in the -alternative way). +1. Passing the current continuation id (wasm vm) as a parameter in the right +position. (Or call an operation to register a handlers for a certain operation, +in the alternative way). 2. Setup a trampoline-like loop to drive the handlers. Note that if the operation is not supported we can just flag an error here that aborts the @@ -473,3 +550,405 @@ For example, the script could look like this: ![img](effect-handlers-codegen-script-non-tail.png) +## Concurrency + channels + +First thing to note here is that effect handlers are well studied for +implementing user-defined concurrency primitives. + +Some references (for something like green threads): + +https://kcsrk.info/ocaml/multicore/2015/05/20/effects-multicore/ + +Note that a fiber is not really that much different from a sandboxed wasm +function, except maybe for the overhead. Capturing a fiber by a pointer is not +any different than just having an id for each vm and storing that. + +There is also effekt: + +https://effekt-lang.org/docs/casestudies/scheduler + +Implementing channels on top of that is not necessarily that far-fetched. + +See for example: + +https://tinyurl.com/4rsf6738 + +But a more sophisticated system can also be implemented by also implementing +things like signals. + +The argument here is that algebraic effect handlers can be used to implement a +user-defined scheduler for multi-threading (and there are libraries that do this +in ocaml, scala, effekt, and probably others), so why hardcode one into the +ledger instead of just providing the primitives for that (one-shot +continuations). + +Especially considering that with zk we can just hide it from the ledger just by +encoding the control flow and communication rules into the interleaving circuit +(which the ledger knows about, but it's an opaque verification key required to +accept a transaction). That also makes it easier to port Starstream to different +ledgers. + +An example (may be buggy, treat as pseudocode) of how this would work in our +case: + +** DISCLAIMER: ** I'm going to use a mix of low level and high level syntax to +try to make things less magic. I'm going to use the high-level syntax for effect +handler definitions (see previous section for the lowering to the ISA). But a +lower-level syntax for coordination script handling, wherever needed. + +```typescript +type EventId = u64; +type ChannelId = EventId; + +// a green threads scheduler with conditions/signals +interface Scheduler { + fn suspend(); + fn wait_on(EventId); + fn signal(EventId); + fn schedule(Continuation); +} + +interface Channel { + fn new_chan(): ChannelId; + fn send(ChannelId, Any); + fn recv(ChannelId): Any; +} +``` + +```rust +mod concurrent { + script { + // actual high-level definition + fn with_threads(f: () => () / { Scheduler }); + + // lower level definition + fn with_threads(f: Continuation) { + let queue = empty_queue(); + let conditions = empty_map(); + + queue.insert(|| f.resume()); + // which lowers to: + // queue.insert(|| starstream::resume(f)); + + while let Some(next) = queue.pop() { + try { + next(); + } + with Scheduler { + fn suspend() { + // reminder, this is a closure that just captures a "pointer" to a + // wasm sandbox (continuation or fiber if you want). + + // and this is just a local closure, it can't be sent to other vm + // (since that requires shared memory). + // + // check the previous section for the low level representation. + + // NOTE that it's not **possible** to make a transaction without + // resuming each task that calls `suspend` as long as this scheduler + // is used. + + // That's because the coordination script doesn't end in that case, + // so it's not possible to make a proof. + queue.push(|| resume()); + } + fn wait_on(event) { + conditions.insert(event, || resume()); + } + fn signal(event) { + if let Some(k) = conditions.remove(event) { + queue.insert(k); + } + + resume(); + } + fn schedule(k) { + queue.insert(k); + + resume(); + } + } + } + } + + // actual high-level definition + fn with_channels(f: () => () / { Channel }); + + // low-level representation + fn with_channels(f: Continuation) { + let channels: Map> = empty_map(); + let channel_id = 0; + + try { + resume(f, ()); + } + with Channel { + fn new_chan(): ChannelId { + channels.insert(channel_id, empty_queue()); + + channel_id += 1; + } + fn send(channel_id, msg) { + channels[channel_id].push(msg); + do signal(channel_id); + do suspend(); + } + fn recv(channel_id): Any { + if let Some(msg) = channels[channel_id].pop() { + resume(msg); + } + else { + do wait_on(channel_id); + + let msg = channels[channel_id].pop().unwrap() + + resume(msg); + } + } + } + } + } +} +``` + +### Usage + +```rust +data Action = Add Int | End + +utxo Streamable { + storage { + // SIDE NOTE: this doesn't need to be an actual list + // + // it could be a vector commitment and we could inject proofs of containment + // maybe + // + // but for now just assume it's an actual list in memory + actions: List + } + + main { + yield with Stream { + fn process(count: u32, channel_id: ChannelId) / { Channel } { + // assume that take also removes from the list + for action in storage.action.take(count) { + do send(storage.action); + } + + if storage.actions.is_empty() { + builtin::burn(); + } + } + + fn insert(action: Action) { + // check some permission probably + self.actions.push(action); + } + } + } +} +``` + +```rust +utxo Accumulator { + storage { + accum: Int + } + + main { + yield with Consumer { + fn process(channel_id: ChannelId) / { Channel } { + loop { + let action = do recv(channel_id); + + match action { + Add(i) => { + storage.accum += i + }, + End => { + break; + } + } + } + } + } + } +} +``` + +```rust +mod consumer { + script { + fn consumer_script(input: (Consumer, ChannelId)) / { Channel } { + let (utxo, chan) = input; + utxo.process(chan); + } + } +} +``` + +```rust +mod streamable { + import consumer; + + script { + fn enqueue_action(utxo: Streamable, action: Action) { + utxo.insert(action); + } + + fn process_10(input: (Streamable, ChannelId)) { + let (utxo, chan) = input; + utxo.process(10, chan); + } + + fn aggregate_on(consumer: Consumer) / { Channel, Scheduler } { + let chan = do new_chan(); + + let consumer_coord = builtins::new_coord(consumer_script, consumer, chan); + + do schedule(consumer_coord); + // or just take a list as a parameter + for utxo in Streamable { + let process_10_coord = builtins::new_coord(process_10, utxo, chan); + + do schedule(process_10_coord); + } + } + } +} +``` + + +Putting everything together: + +```rust +script { + import concurrent; + import streamable; + + // or main + fn main(consumer: Consumer) { + // disclaimer: low level code, ideally it should be desugared from something + // that makes the wrapping easier to see. + + // this is equivalent to (in effekt-like syntax): + // + // with_threads { + // with_channels { + // aggregate_on(consumer); + // } + // } + // + let aggregation_script = builtin::new_coord(concurrent::aggregate_on, consumer); + let channel_handler = builtin::new_coord(concurrent::with_channels, aggregation_script); + let thread_handler = builtin::new_coord(concurrent::with_threads, channel_handler); + + // remember that new_coord doesn't run anything, it just gives an id to a + // new instance, and binds (curry) the arguments. + + // you can also think that every coordination script just has a yield as the + // first instruction. + resume(thread_handler, ()); + // actual syntax: + // thread_handler.resume(()); + } +} +``` + +## Attestation + +Interfaces are generally not enough to ensure safety as long as two or more +independent processes are involved. Even if the interface is implemented +"correctly", there are details that are just not possible to express without +having some way of doing attestation (or maybe contracts?). + +This is not unlike running a distributed system on a distributed scheduler, but +trying to ensure some properties about it (like fairness). A checked +coordination script is like running a kernel in a TEE (although it behaves more +like a lookup argument since it's based on the proof of the coordination script +wasm). + +Now lets say the previous script actually generates a **single** wasm module. +Basically, `import` behaves like it does in languages where everything gets +statically linked (like rust). + +Since the module has a unique hash, and all its functions can be trusted, then +both utxos can just check for that. And there is no need of doing it explicitly +in the syntax since the entire script can be trusted. + +Instead of hardcoding the script hash, a modifiable list can be kept, where only +the owner (whatever that means) of each utxo can add or remove to it. + +Or indirection could be used to keep a single utxo with a list. + +It may also be possible to only check this condition once per utxo if we don't +allow more than one wasm module for the coordination script. + +### Without wrapper script + +If for some reason we don't want to have the monolithic wrapper script, and we +want to just spawn and compose arbitrary ones. + +Here the tricky part is that the utxo potentially would only see the immediate +caller, and in this case the runtime would be the root. But + +1. Coordination scripts could also be able to check for their callers too in the +same way, making transitivity possible. So the coordination script enforces a +runtime. + +```rust +fn aggregate_on(consumer: Consumer) / { Channel, Scheduler } { + assert(context.caller == concurrent::module_hash); + + let chan = do new_chan(); + + // ... rest +} +``` + +There is no need for the utxo to examine the call-stack. + +Of course the issue here is that there may be something else in the middle, but +it's unclear whether that's a limitation in practice. + +2. The other way is to just check for the handler in every method call. + +Remember that a handler compiles from: + +```rust +fn process(channel_id: ChannelId) / { Channel }; +``` + +To: + +```rust +fn process(channel_id: ChannelId, channel_handler: Continuation); +``` + +Therefore, it's possible to ask for `program_hash(channel_handler) == +concurrent::hash` before invoking a handler. + +What's the proper syntax for this is uncertain. It could be something like: + +```rust +fn process(channel_id: ChannelId) / { Channel[concurrent::hash] }; +``` + +Or some other annotation that allows using dynamic lists easily. + +But the lowering doesn't seem particularly different. + +And the same thing applies when receiving a request, since it's: + +```rust +let (r, k) = yield(); + +match { + Stream::process => { + assert(program_hash(k) == concurrent::hash) + } +} +``` + +It's not necessarily more expensive since the hash could be cached in the utxo's +memory (to reduce the amount of host calls), but it makes things more complex. \ No newline at end of file From 4e488f746b1837f56624adf64289a8e7b01c7532 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Thu, 18 Dec 2025 03:53:34 -0300 Subject: [PATCH 026/152] spec: fix some type inconsistencies Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/README.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/starstream_ivc_proto/README.md b/starstream_ivc_proto/README.md index 41dcbed8..c484b08a 100644 --- a/starstream_ivc_proto/README.md +++ b/starstream_ivc_proto/README.md @@ -731,8 +731,8 @@ utxo Streamable { yield with Stream { fn process(count: u32, channel_id: ChannelId) / { Channel } { // assume that take also removes from the list - for action in storage.action.take(count) { - do send(storage.action); + for action in storage.actions.take(count) { + do send(channel_id, storage.action); } if storage.actions.is_empty() { @@ -779,7 +779,7 @@ utxo Accumulator { ```rust mod consumer { script { - fn consumer_script(input: (Consumer, ChannelId)) / { Channel } { + fn consumer_script(utxo: Consumer, chan: ChannelId) / { Channel } { let (utxo, chan) = input; utxo.process(chan); } @@ -792,12 +792,11 @@ mod streamable { import consumer; script { - fn enqueue_action(utxo: Streamable, action: Action) { + fn push_action(utxo: Streamable, action: Action) { utxo.insert(action); } - fn process_10(input: (Streamable, ChannelId)) { - let (utxo, chan) = input; + fn process_10(utxo: Streamable, chan: ChannelId) { utxo.process(10, chan); } @@ -813,6 +812,9 @@ mod streamable { do schedule(process_10_coord); } + + // stop the consumer + do send(chan, Action::End); } } } From edf95df330d69142f7e94c067d734bade72df0fb Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Thu, 18 Dec 2025 12:52:57 -0300 Subject: [PATCH 027/152] spec: fix more inconsistencies and add more notes Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/README.md | 66 ++++++++++++++++++++++------------ 1 file changed, 44 insertions(+), 22 deletions(-) diff --git a/starstream_ivc_proto/README.md b/starstream_ivc_proto/README.md index c484b08a..ef3571d2 100644 --- a/starstream_ivc_proto/README.md +++ b/starstream_ivc_proto/README.md @@ -72,7 +72,7 @@ to trigger a change in ledger state and get some value from another program. A transaction is made of: -1. A list of inputs. And input is a "pointer" to an entry in the ledger state (a +1. A list of inputs. An input is a "pointer" to an entry in the ledger state (a utxo). The entry in the ledger state has the serialized coroutine state and a verification key for a zk proof that gatekeeps spending. 2. A list of outputs (these are the new entries to the ledger). These also need @@ -107,7 +107,9 @@ The basic "ledger" operations that we care about are: ### Shared -- resume(f: Continuation, value: Value) -> (Value, Continuation) +#### resuming + +- **resume(f: Continuation, value: Value) -> (Value, Continuation)** Changes control flow from the current program to the utxo. The `value` argument needs to match the return value of the last `yield` in that program. @@ -120,7 +122,7 @@ row in a caller -> handler -> caller flow. When performed from a utxo, these don't create a utxo entry. It's expected that effect handlers are atomic in the transaction. -The circuit for resume needs to take care of: +The circuit for **resume** needs to take care of: 1. The Continuation returned matches the previous program (the previous opcode in the witness was a resume from that program). @@ -131,7 +133,9 @@ return value that matches the input. 5. Maybe check that continuations are linear/one-shot (by enforcing a nonce on the continuation). Not sure if this is needed or utxos can just take care of it. -- program_id(f: Continuation) -> ProgramId +#### program hash (coordination script attestation) + +- **program_hash(f: Continuation) -> ProgramId** Get the hash of the program with the given id. This can be used to attest the caller after resumption. For example, a method that only wants to be called by a @@ -141,19 +145,27 @@ particular coordination script. argument. That is, instead of asking the program id and asserting a fixed one, you could just ask for a proof and verify it with the program's key. -The difference is that this allows "batching" (each check is just a lookup into -a process table, and there can be a single proof). It also has the flexibility -of allowing indirection to have a list of allowed callers, for example. +The difference is that this allows "batching". It also has the flexibility of +allowing indirection to have a list of allowed callers, for example. + +In the proof context, this is essentially a lookup into a "process table", that +has one entry per wasm program in the transaction, and it stores a hash of the +wasm module. To verify the transaction this table has to be used as the public +instance for the respective wasm proof. #### Coordination script -- new(utxo: UtxoProgramHash, ..args) -> Continuation +##### new utxo + +- **new(utxo: UtxoProgramHash, ..args) -> Continuation** Creates a new entry in the utxo set in the ledger state. It registers the `ProgramId`, which acts as a verification key, and sets the initial coroutine state. `Continuation` is basically the address. -- new_coord(coord: CoordScriptHash, ..args) -> Continuation +##### new coordination script (spawn) + +- **new_coord(coord: CoordScriptHash, ..args) -> Continuation** Register a new coordination script in this transaction, in a cold state (don't start running it). It can then be called with `resume`. The `args` are the input @@ -170,7 +182,9 @@ same inputs to verify the coordination script wasm proof. #### Utxo -- yield() -> (Value, Continuation) +##### Yield + +- **yield() -> (Value, Continuation)** Pause execution of the current utxo and move control flow to the previous coordination script if any. If not, this creates a new utxo entry, with the PC = @@ -181,7 +195,9 @@ The difference with `resume` is that it doesn't take a continuation as a target. Because of this, only `yield` can be used as the last operation for a utxo in a transaction. -- burn() +##### Burn + +- **burn()** Explicit drop in the utxo's program. This removes the program (and the coroutine state) from the ledger state. It's equivalent to a coroutine return. @@ -194,7 +210,7 @@ state) from the ledger state. It's equivalent to a coroutine return. Relational arguments. The ledger state has to keep relations of inclusion, where tokens can be included in utxos. -### Proving +### Proving the interleaving All the operations that use the ledger state are communication operations. And can be thought of as memory operations. Taking inspiration from offline memory @@ -637,10 +653,16 @@ mod concurrent { with Scheduler { fn suspend() { // reminder, this is a closure that just captures a "pointer" to a - // wasm sandbox (continuation or fiber if you want). + // wasm sandbox (continuation or fiber if you want), because of + // this, it can be implemented as a normal closure, since it + // basically just captures an int. - // and this is just a local closure, it can't be sent to other vm - // (since that requires shared memory). + // this is a local capture, it can't be sent to other vm (since that + // requires shared memory). + // + // in practice we may also not allow returning even in the same + // module (since it shouldn't be resumed without installing the + // handler). // // check the previous section for the low level representation. @@ -736,7 +758,7 @@ utxo Streamable { } if storage.actions.is_empty() { - builtin::burn(); + starstream::burn(); } } @@ -803,12 +825,12 @@ mod streamable { fn aggregate_on(consumer: Consumer) / { Channel, Scheduler } { let chan = do new_chan(); - let consumer_coord = builtins::new_coord(consumer_script, consumer, chan); + let consumer_coord = starstream::new_coord(consumer_script, consumer, chan); do schedule(consumer_coord); // or just take a list as a parameter for utxo in Streamable { - let process_10_coord = builtins::new_coord(process_10, utxo, chan); + let process_10_coord = starstream::new_coord(process_10, utxo, chan); do schedule(process_10_coord); } @@ -841,9 +863,9 @@ script { // } // } // - let aggregation_script = builtin::new_coord(concurrent::aggregate_on, consumer); - let channel_handler = builtin::new_coord(concurrent::with_channels, aggregation_script); - let thread_handler = builtin::new_coord(concurrent::with_threads, channel_handler); + let aggregation_script = starstream::new_coord(streamable::aggregate_on, consumer); + let channel_handler = starstream::new_coord(concurrent::with_channels, aggregation_script); + let thread_handler = starstream::new_coord(concurrent::with_threads, channel_handler); // remember that new_coord doesn't run anything, it just gives an id to a // new instance, and binds (curry) the arguments. @@ -900,7 +922,7 @@ runtime. ```rust fn aggregate_on(consumer: Consumer) / { Channel, Scheduler } { - assert(context.caller == concurrent::module_hash); + assert(context.caller == concurrent::hash); let chan = do new_chan(); From 7932777a3719a7a73f104e118b8013407f91db15 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Fri, 19 Dec 2025 00:57:37 -0300 Subject: [PATCH 028/152] spec: describe interleaving circut semantics and add clarifications on effectful composition Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/README.md | 206 +++++++++++++++---- starstream_ivc_proto/SEMANTICS.md | 319 ++++++++++++++++++++++++++++++ 2 files changed, 486 insertions(+), 39 deletions(-) create mode 100644 starstream_ivc_proto/SEMANTICS.md diff --git a/starstream_ivc_proto/README.md b/starstream_ivc_proto/README.md index ef3571d2..8d78d8b3 100644 --- a/starstream_ivc_proto/README.md +++ b/starstream_ivc_proto/README.md @@ -103,7 +103,11 @@ commitment to all the lookup tables used in the other proofs. the above as a circuit (with PCD for the wasm proofs, probably?), this is the unaggregated scheme. -The basic "ledger" operations that we care about are: +What follows is a high level description of the operations a program can do in a +transaction, that involve interacting with the environment. + +For a more specific breakdown of the semantics there is a description +[here](SEMANTICS.md). ### Shared @@ -153,6 +157,20 @@ has one entry per wasm program in the transaction, and it stores a hash of the wasm module. To verify the transaction this table has to be used as the public instance for the respective wasm proof. +#### Yield + +- **yield() -> (Value, Continuation)** + +Pause execution of the current program and move control flow to the previous +coordination script if any. If not, when called from a utxo, this may create a +new transaction output, with the PC = current pc and the coroutine state with +the current variables. + +The difference with `resume` is that it doesn't take a continuation as a target. + +Because of this, only `yield` can be used as the last operation for a utxo in a +transaction. + #### Coordination script ##### new utxo @@ -182,19 +200,6 @@ same inputs to verify the coordination script wasm proof. #### Utxo -##### Yield - -- **yield() -> (Value, Continuation)** - -Pause execution of the current utxo and move control flow to the previous -coordination script if any. If not, this creates a new utxo entry, with the PC = -current pc and the coroutine state with the current variables. - -The difference with `resume` is that it doesn't take a continuation as a target. - -Because of this, only `yield` can be used as the last operation for a utxo in a -transaction. - ##### Burn - **burn()** @@ -282,7 +287,7 @@ In this case this means that all of these hold: 2. The exchanged values match the ones in the individual original traces. -For this we get a single proof, and two commitments: +For this we get a single proof, and two commitments: - `C_coord_coom'` - `C_utxo_coom'` @@ -311,7 +316,7 @@ fn coord1(input: Data, u1: Utxo1, u2: Utxo2) { let v_04 = coord2(v_03); let v_05 = h(v_04); - + let v_06 = resume u_2 v_05; resume u2 nil; @@ -525,13 +530,44 @@ thing we care about here is about interleaving consistency. The general outline follows. Each effectul function receives a dictionary mapping effects to coroutines. -This can be just encoded through parameter passing. So a function with type: `() --> () / { singleton_effect }` is compiled into a function of (wasm) type `(k: -coroutine_id) -> ()`. This is sometimes called implicit capability passing. +This can be just encoded through parameter passing. So a function with type: +`() -> () / { singleton_effect }` is compiled into a function of (wasm) type +`(k: Continuation) -> ()`. + +This is sometimes called implicit capability passing. + +This is most likely simpler to prove, but harder to do codegen for. The +alternative is to have the the interleaving proof machinery keep track of the +dictionary of installed handlers (and uninstalling them). The tradeoff is +whether we want to spend more time on codegen, or make the interleaving proof +more complex by keeping track of this dictionary. + +For example, in the alternative design a coordination script would do: + +```rust +fn coord(k: Continuation) { + starstream::install_handler(MyInterface::hash); + + starstream::resume(k); + + starstream::uninstall_handler(MyInterface::hash); +} +``` -This is most likely simpler to prove, but the alternative is to have the the -interleaving proof machinery keep track of the dictionary of installed handlers -(and uninstalling them). The trade-off is a slightly more complicated ABI. +```rust +fn utxo() { + let k = starstream::get_handler_for(MyInterface::hash); // fails if not installed + + starstream::resume(k, MyInterface::foo); +} +``` + +>**Thought**: This may also be better for dynamic imports, since it's arguably a +simpler abi. + +I'm going to assume the former design in the rest of the document, but I'm not +closed to this option neither. It just requires figuring out the best way of +encoding this map of stacks in the circuit. Invoking a handler is _resuming_ a specific coroutine (received as an argument). The operation to perform can be passed as an argument encoded as a tagged union. @@ -604,8 +640,13 @@ encoding the control flow and communication rules into the interleaving circuit accept a transaction). That also makes it easier to port Starstream to different ledgers. -An example (may be buggy, treat as pseudocode) of how this would work in our -case: +The only constraint is that effect handlers only give you cooperative +multithreading, since preemption requires actual hardware interrupts. But this +probably doesn't matter for our use-case, since we actually want utxos to run +until their predefined points, instead of arbitrarily getting stuck in +inconvenient states. + +An example (treat as pseudocode) of how this would work in our case: ** DISCLAIMER: ** I'm going to use a mix of low level and high level syntax to try to make things less magic. I'm going to use the high-level syntax for effect @@ -643,8 +684,10 @@ mod concurrent { let conditions = empty_map(); queue.insert(|| f.resume()); + // which lowers to: - // queue.insert(|| starstream::resume(f)); + // let thread_handler = starstream::pid(); + // queue.insert(|| starstream::resume(f, thread_handler)); while let Some(next) = queue.pop() { try { @@ -694,15 +737,28 @@ mod concurrent { } // actual high-level definition - fn with_channels(f: () => () / { Channel }); + // + // read this as: + // + // 1. This function receives a coroutine that requires a channel handler, + // and provides one (since otherwise it would be part of the effects of this + // function). + // + // 2. This function requires the Scheduler capability. + fn with_channels(f: () => () / { Channel }) / { Scheduler }; // low-level representation - fn with_channels(f: Continuation) { + fn with_channels(f: Continuation, threads_handler: Continuation) { let channels: Map> = empty_map(); let channel_id = 0; try { - resume(f, ()); + f.resume(); + + // which compiles to: + + // let channels_handler = starstream::pid(); + // starstream::resume(f, channels_handler); } with Channel { fn new_chan(): ChannelId { @@ -713,7 +769,13 @@ mod concurrent { fn send(channel_id, msg) { channels[channel_id].push(msg); do signal(channel_id); + // low level: + // resume(threads_handler, Scheduler::Signal(channel_id)) + do suspend(); + + // low level: + // resume(threads_handler, Scheduler::Suspend) } fn recv(channel_id): Any { if let Some(msg) = channels[channel_id].pop() { @@ -738,6 +800,19 @@ mod concurrent { ```rust data Action = Add Int | End +// a utxo that can be created by users under some condition (checked at insert), +// and that allows a collector (probably under some other condition) to iterate +// on these actions and fold them into an accumulator. +// +// in this example, actions are just numbers, and the accumulator just adds them +// together +// +// while this models something like a stream, it's implemented on top of less +// restrictive channels instead. +// +// the channel is used as an mpsc, there can be multiple instances of this +// contract writing to the same channel in this transaction, and there is only +// one reader (the accumulator). utxo Streamable { storage { // SIDE NOTE: this doesn't need to be an actual list @@ -850,22 +925,60 @@ script { import concurrent; import streamable; + fn main(consumer: Consumer) { + with_threads { // here the required effect set is empty, so this can be run + with_channels { // with_channel requires the Scheduler capability + aggregate_on(consumer); // aggregate_on requires the Channel and Scheduler capabilities + } + } + } +} +``` + +But what does the above compile to? + +It depends on how do we choose to implement effects. + +In the implicit capability style (which is the harder one from codegen point of +view), the only issue is that we need partial application to be able to compose +things properly. We can simulate that through a shim with suspensions. Also this +may require static linking. + +```rust +script { + import concurrent; + import streamable; + + // ths compiler should generate this shim from the structure above (which may + // be complex, not sure) + fn aggregate_on_shim(consumer: Consumer) { + // suspends and wait for `resume`. + // this effectively simulates currying or partial application. + + // the order here matters + let (scheduler_handler, _) = starstream::yield(); + let (channel_handler, _) = starstream::yield(); + + // remember, we need to pass handlers as implicit capabilities + // but the actual function signature just takes a single argument + streamable::aggregate_on(consumer, channel_handler, scheduler_handler); + } + // or main fn main(consumer: Consumer) { - // disclaimer: low level code, ideally it should be desugared from something - // that makes the wrapping easier to see. + // we partially apply consumer here + let aggregation_script = starstream::new_coord(aggregate_on_shim, consumer); + let channel_handler = starstream::new_coord(concurrent::with_channels, aggregation_script); + let thread_handler = starstream::new_coord(concurrent::with_threads, channel_handler); - // this is equivalent to (in effekt-like syntax): + // with_channels takes a continuation that *only* requires the channel + // capability, so we need to bind this here. // - // with_threads { - // with_channels { - // aggregate_on(consumer); - // } - // } + // this is similar to effekt, although it may be implemented differently // - let aggregation_script = starstream::new_coord(streamable::aggregate_on, consumer); - let channel_handler = starstream::new_coord(concurrent::with_channels, aggregation_script); - let thread_handler = starstream::new_coord(concurrent::with_threads, channel_handler); + // we don't need to pass `channel_handler` because channel_handler does + // that. + aggregation_script.resume(thread_handler); // remember that new_coord doesn't run anything, it just gives an id to a // new instance, and binds (curry) the arguments. @@ -873,12 +986,27 @@ script { // you can also think that every coordination script just has a yield as the // first instruction. resume(thread_handler, ()); + // actual syntax: // thread_handler.resume(()); } } ``` +In the other model where effect handlers just call a registration function it's +simpler to see the transformation (but more complex the proof). + +The shim is not needed because `aggregate_on` will just ask for the installed +handlers by name, so it's just a function with one argument. + +The `with_threads` and `with_channels` handlers would be modified to include the +installation before calling resume, and the main coordination script would be +the same as above, but without the shim and the partial application of the +`thread_handler`. + +The decision here comes more to ABI, codegen complexity, whether we need dynamic +loading of scripts, and how much more complex is the circuit. + ## Attestation Interfaces are generally not enough to ensure safety as long as two or more diff --git a/starstream_ivc_proto/SEMANTICS.md b/starstream_ivc_proto/SEMANTICS.md new file mode 100644 index 00000000..c3e2f356 --- /dev/null +++ b/starstream_ivc_proto/SEMANTICS.md @@ -0,0 +1,319 @@ +This document describes operational semantics for the +interleaving/transaction/communication circuit in a somewhat formal way (but +abstract). The [README](README.md) has a high-level description of the general architecture and how this things are used (and the motivation). + +Each opcode corresponds to an operation that a wasm program can do in a +transaction and involves communication with another program (utxo -> coord, +coord -> utxo, coord -> coord). + +The rules are intented to be fairly low-level, and provide the contract with: + +1. Attestation. Being able to enforce a caller coordination script, which can +also be used to attest the other utxos (the coordination script can also check +if a utxo +is instance of a contract). +2. Control flow. Resuming a process (coroutine) needs to enforce that only that +program can do an operation next. Yield is a resume with an implicit target (the +caller, or previous program). +3. Sent data matches received data. And viceversa. Which is enforced through the +memory argument. Note that for this machine data can be just treated as opaque +blobs (Value). + +# 1. State Configuration + +The global state of the interleaving machine σ is defined as: + + +```text +Configuration (σ) +================= +σ = (id_curr, id_prev, M, process_table, host_calls, counters, safe_to_ledger, is_utxo, initialized) + +Where: + id_curr : ID of the currently executing VM. In the range [0..#coord + #utxo] + id_prev : ID of the VM that called the current one (return address). + M : A map {ProcessID -> Value} + process_table : Read-only map {ID -> ProgramHash} for attestation. + host_calls : A map {ProcessID -> Host-calls lookup table} + counters : A map {ProcessID -> Counter} + safe_to_ledger : A map {ProcessID -> Bool} + is_utxo : Read-only map {ProcessID -> Bool} + initialized : A map {ProcessID -> Bool} +``` + +Note that the maps are used here for convenience of notation. In practice they +are memory arguments enforced through an auxiliary protocol, like Twist And +Shout or Nebula. I'm also going to notate memory reads as preconditions, even if +in practice it's closer to emitting a constraint. But using a memory is easier +to reason about. + +Depending on the memory implementation it may be simpler to just flatten all the +maps into a multi-valued memory, or it may be better to have a flat memory and +use offsets (easy since all are fixed length). + +The rules are expressed in a notation inspired by denotational semantics, but +it's not functional. Only the fields that change are specified in the +post-condition, the rest can be assumed to remain equal. +A tick (') is used to indicate _next state_. + +The notation should be understood as + +```text +requirements (pattern match + conditions) +------------------------------------------ +new_state (assignments) +``` + +--- + +# 2. Shared Operations + +## Resume (Call) + +The primary control flow operation. Transfers control to `target`. It records a +"claim" that this process can only be resumed by passing `ret` as an argument +(since it is what actually happpened). + +Since we are also resuming a currently suspended process, we can only do it if +our value matches its claim. + +```text +Rule: Resume +============ + op = Resume(target, val) -> ret + + 1. id_curr ≠ target + + (No self resume) + + 2. M[target] == val + + (Check val matches target's previous claim) + + 3. let + t = CC[id_curr] in + c = counters[id_curr] in + t[c] == + + (The opcode matches the host call lookup table used in the wasm proof at the current index) + + 4. is_utxo(id_curr) => !is_utxo(target) + + (Utxo's can't call into utxos) + + 5. initialized[target] + + (Can't jump to an unitialized process) +-------------------------------------------------------------------------------------------- + 1. M[id_curr] <- ret (Claim, needs to be checked later by future resumer) + 2. counters[id_curr] += 1 (Keep track of host call index per process) + 3. id_prev' <- id_curr (Save "caller" for yield) + 4. id_curr' <- target (Switch) + 5. safe_to_ledger'[target] <- False (This is not the final yield for this utxo in this transaction) + +``` + +## Yield + +Suspend the current continuation and optionally transfer control to the previous +coordination script (since utxos can't call utxos, that's the only possible +parent). + +This also marks the utxo as **safe** to persist in the ledger. + +If the utxo is not iterated again in the transaction, the return value is null +for this execution (next transaction will have to execute `yield` again, but +with an actual result). In that case, id_prev would be null (or some sentinel). + +```text +Rule: Yield (resumed) +============ + op = Yield(val) -> ret + + 1. M[id_prev] == val + + (Check val matches target's previous claim) + + 2. let + t = CC[id_curr] in + c = counters[id_curr] in + t[c] == + + (The opcode matches the host call lookup table used in the wasm proof at the current index) +-------------------------------------------------------------------------------------------- + + 1. M[id_curr] <- ret (Claim, needs to be checked later by future resumer) + 2. counters[id_curr] += 1 (Keep track of host call index per process) + 3. id_curr' <- id_prev (Switch to parent) + 4. id_prev' <- id_curr (Save "caller") + 5. safe_to_ledger'[id_curr] <- False (This is not the final yield for this utxo in this transaction) +``` + +```text +Rule: Yield (end transaction) +============================= + op = Yield(val) + + 3. let + t = CC[id_curr] in + c = counters[id_curr] in + t[c] == + + (Remember, there is no ret value since that won't be known until the next transaction) + + (The opcode matches the host call lookup table used in the wasm proof at the current index) +-------------------------------------------------------------------------------------------- + 1. counters'[id_curr] += 1 (Keep track of host call index per process) + 2. id_curr' <- id_prev (Switch to parent) + 3. id_prev' <- id_curr (Save "caller") + 4. safe_to_ledger'[id_curr] <- True (This utxo creates a transacition output) +``` + +## Program Hash + +Allows introspection of a Continuation's code identity without changing control flow. + +```text +Rule: Program Hash +================== + (Lookup the static hash of a program ID. State remains unchanged.) + + op = ProgramHash(target_id) + hash = process_table[target_id] +----------------------------------------------------------------------- + σ' = σ (This is just a lookup constraints) +``` + +--- + +# Coordination Script Operations + +## New UTXO + +```text +Rule: New UTXO +============== +Assigns a new (transaction-local) ID for a UTXO program. + + op = NewUtxo(program_hash, val) -> id + + 1. process_table[id] == program_hash + + (The hash matches the one in the process table) + (Remember that this is just verifying, so we already have the full table) + + 2. counters[id] == 0 + + (The trace for this utxo starts fresh) + + 3. is_utxo[id] + + (We check that it is indeed a utxo) + + 4. is_utxo[id_curr] == False + + (A utxo can't crate utxos) + + 5. let + t = CC[id_curr] in + c = counters[id_curr] in + t[c] == + + (Host call lookup condition) + +----------------------------------------------------------------------- + initialized[id] <- True +``` + +## New Coordination Script (Spawn) + +Allocates a new transient VM ID. The start is "Cold" (it does not execute immediately). + +```text +Rule: New coord (Spawn) +======================= +Assigns a new (transaction-local) ID for a coordination script (an effect +handler) instance. + + op = NewCoord(program_hash, val) -> id + + 1. process_table[id] == program_hash + + (The hash matches the one in the process table) + (Remember that this is just verifying, so we already have the full table) + + 2. counters[id] == 0 + + (The trace for this handler starts fresh) + + 3. is_utxo[id] == False + + (We check that it is a coordination script) + + 4. is_utxo[id_curr] == False + + (A utxo can't spawn coordination scripts) + + 5. let + t = CC[id_curr] in + c = counters[id_curr] in + t[c] == + + (Host call lookup condition) + +----------------------------------------------------------------------- + initialized[id] <- True +``` + +--- + +# 4. UTXO Operations + +## Burn + +Terminates the UTXO. No matching output is created in the ledger. + +```text +Rule: Burn +========== +Destroys the UTXO state. + + op = Burn() + + 1. is_utxo[id_curr] + 2. is_initialized[id_curr] + + 3. let + t = CC[id_curr] in + c = counters[id_curr] in + t[c] == + + (Host call lookup condition) +----------------------------------------------------------------------- +is_initialized'[id_curr] <- False +safe_to_ledger'[id_curr] <- True +``` + +# Verification + +To verify the transaction, the following additional conditions need to be met: + +```text +for (process, proof, host_calls) in transaction.proofs: + + // we verified all the host calls for each process + + assert(counters[process] == host_calls[process].length) + + // every object had a constructor of some sort + assert(is_initialized[process]) + + // all the utxos either did `yield` at the end, or called `burn` + if is_utxo[process] { + assert(safe_to_ledger[process]) + } + +assert_not(is_utxo[id_curr]) + +// we finish in a coordination script +``` \ No newline at end of file From b284acfafc1e9d5437622409da1eab02b1d35c70 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Fri, 19 Dec 2025 20:45:11 -0300 Subject: [PATCH 029/152] spec: add scoped effect handlers primitives and update examples accordingly Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/README.md | 168 +++++++++++------- starstream_ivc_proto/SEMANTICS.md | 112 ++++++++++-- ...ffect-handlers-codegen-script-non-tail.png | Bin 57474 -> 61948 bytes .../effect-handlers-codegen-simple.png | Bin 123661 -> 132829 bytes starstream_ivc_proto/graph.png | Bin 315441 -> 119292 bytes 5 files changed, 205 insertions(+), 75 deletions(-) diff --git a/starstream_ivc_proto/README.md b/starstream_ivc_proto/README.md index 8d78d8b3..e90db05c 100644 --- a/starstream_ivc_proto/README.md +++ b/starstream_ivc_proto/README.md @@ -171,6 +171,14 @@ The difference with `resume` is that it doesn't take a continuation as a target. Because of this, only `yield` can be used as the last operation for a utxo in a transaction. +#### Effect handlers + +- **get_handler(interface_id) -> Continuation** + +Gets the last handler installed for a specific interface (effect) in the current "call stack". + +This can be used in combination with `resume` to perform effects. + #### Coordination script ##### new utxo @@ -198,6 +206,16 @@ for this wasm vm, which is used as the continuation id. Then it stores the input in memory. When checking the aggregated proofs, the verifier needs to use the same inputs to verify the coordination script wasm proof. +##### effect handlers + +- **install_handler(interface: InterfaceId)** + +Registers the current coroutine as the handler for a specific interface. `get_handler` then will return the id of the current coroutine. Installing implies pushing to a stack. If another coroutine registers for the same interface, then it takes priority for `get_handler`. + +- **uninstall_handler(interface: InterfaceId)** + +De-register the current coroutine as the handler for a specific interface. + #### Utxo ##### Burn @@ -354,7 +372,7 @@ The flow of execution to proving then looks something like this: Note: WASM is an arbitrary trace of wasm opcodes from the corresponding program. -![img](graph.png) +![img](graph-scaled.png) ## Proving algebraic effects @@ -516,7 +534,7 @@ special effect. It's still undecided whether we want to have this feature (and what would be the semantics -## Proving +### Proving The cases outlined above can be proved with the architecture outlined in the previous section without too many changes. The main constraint that we have @@ -529,20 +547,20 @@ thing we care about here is about interleaving consistency. The general outline follows. -Each effectul function receives a dictionary mapping effects to coroutines. -This can be just encoded through parameter passing. So a function with type: -`() -> () / { singleton_effect }` is compiled into a function of (wasm) type -`(k: Continuation) -> ()`. +To handle effects, we introduce a scoped handler installation mechanism. +A coordination script can install a handler for a specific interface, identified +by its hash (`interface_id`). This installation is scoped to the execution of the +coordination script. -This is sometimes called implicit capability passing. - -This is most likely simpler to prove, but harder to do codegen for. The -alternative is to have the the interleaving proof machinery keep track of the -dictionary of installed handlers (and uninstalling them). The tradeoff is -whether we want to spend more time on codegen, or make the interleaving proof -more complex by keeping track of this dictionary. +The primary operations are: +- `install_handler(interface_id)`: Installs the current program as the handler +for the given interface. This is only callable from a coordination script, since +utxos can't call other utxos, they can't really wrap things. And utxo effects +can only be invoked as named handlers. +- `uninstall_handler(interface_id)`: Uninstalls the handler for the given interface. +- `get_handler_for(interface_id)`: Retrieves the currently installed handler for the given interface. This is a shared operation, since coordination scripts can perform effects. -For example, in the alternative design a coordination script would do: +For example, a coordination script would do: ```rust fn coord(k: Continuation) { @@ -554,6 +572,8 @@ fn coord(k: Continuation) { } ``` +And a UTXO would use it like this: + ```rust fn utxo() { let k = starstream::get_handler_for(MyInterface::hash); // fails if not installed @@ -562,24 +582,17 @@ fn utxo() { } ``` ->**Thought**: This may also be better for dynamic imports, since it's arguably a -simpler abi. - -I'm going to assume the former design in the rest of the document, but I'm not -closed to this option neither. It just requires figuring out the best way of -encoding this map of stacks in the circuit. +This design is arguably simpler for codegen and for dynamic imports, as it +provides a clearer ABI than implicit capability passing. -Invoking a handler is _resuming_ a specific coroutine (received as an argument). +Invoking a handler is _resuming_ a specific coroutine (retrieved via `get_handler_for`). The operation to perform can be passed as an argument encoded as a tagged union. The tag doesn't have to be a small integer like it's usually done with enums, it can be for example a hash that identifies the operation. Installing a handler is conceptually: -1. Passing the current continuation id (wasm vm) as a parameter in the right -position. (Or call an operation to register a handlers for a certain operation, -in the alternative way). - +1. Calling an operation to register a handler for a certain interface (the whole interface). 2. Setup a trampoline-like loop to drive the handlers. Note that if the operation is not supported we can just flag an error here that aborts the transaction. @@ -602,6 +615,21 @@ For example, the script could look like this: ![img](effect-handlers-codegen-script-non-tail.png) +### Alternative Handler Implementation: Implicit Capability Passing + +An alternative design is to use implicit capability passing. In this model, each +effectful function receives a dictionary mapping effects to coroutines. +This can be just encoded through parameter passing. So a function with type: +`() -> () / { singleton_effect }` is compiled into a function of (wasm) type +`(k: Continuation) -> ()`. + +This is most likely simpler to prove, but harder to do codegen for. The tradeoff is +whether we want to spend more time on codegen, or make the interleaving proof +more complex by keeping track of this dictionary. + +The decision here comes more to ABI, codegen complexity, whether we need dynamic +loading of scripts, and how much more complex is the circuit. + ## Concurrency + channels First thing to note here is that effect handlers are well studied for @@ -686,8 +714,7 @@ mod concurrent { queue.insert(|| f.resume()); // which lowers to: - // let thread_handler = starstream::pid(); - // queue.insert(|| starstream::resume(f, thread_handler)); + // queue.insert(|| starstream::resume(f)); while let Some(next) = queue.pop() { try { @@ -757,8 +784,12 @@ mod concurrent { // which compiles to: - // let channels_handler = starstream::pid(); - // starstream::resume(f, channels_handler); + // starstream::install_handler(Scheduler::hash) + // starstream::resume(f) + // ... + // handler code + // ... + // starstream::uninstall_handler(Scheduler::hash) } with Channel { fn new_chan(): ChannelId { @@ -934,15 +965,24 @@ script { } } ``` - But what does the above compile to? -It depends on how do we choose to implement effects. +With builtin scoped handlers, it can be compiled into just -In the implicit capability style (which is the harder one from codegen point of -view), the only issue is that we need partial application to be able to compose -things properly. We can simulate that through a shim with suspensions. Also this -may require static linking. +```rust +let aggregation_script = starstream::new_coord(aggregate_on, consumer); +let channel_handler = starstream::new_coord(concurrent::with_channels, aggregation_script); +let thread_handler = starstream::new_coord(concurrent::with_threads, channel_handler); + +resume(thread_handler, ()); +``` + +Each script will wrap things with a handler before resuming the received +continuation, so by the time an effect is needed then there would be one in +scope. + +In the implicit capability passing style, we would need to instead have a shim +to properly inject the outer handler to the wrapped coroutine: ```rust script { @@ -993,26 +1033,12 @@ script { } ``` -In the other model where effect handlers just call a registration function it's -simpler to see the transformation (but more complex the proof). - -The shim is not needed because `aggregate_on` will just ask for the installed -handlers by name, so it's just a function with one argument. - -The `with_threads` and `with_channels` handlers would be modified to include the -installation before calling resume, and the main coordination script would be -the same as above, but without the shim and the partial application of the -`thread_handler`. - -The decision here comes more to ABI, codegen complexity, whether we need dynamic -loading of scripts, and how much more complex is the circuit. - ## Attestation Interfaces are generally not enough to ensure safety as long as two or more independent processes are involved. Even if the interface is implemented "correctly", there are details that are just not possible to express without -having some way of doing attestation (or maybe contracts?). +having some way of doing attestation (or maybe contracts?). Of course in some case it may be enough to just check a signature, or have an embedded proof of some sort, but if anyone can interact with a contract there needs to be at least some way of asserting that they run the proper protocol. This is not unlike running a distributed system on a distributed scheduler, but trying to ensure some properties about it (like fairness). A checked @@ -1063,21 +1089,9 @@ There is no need for the utxo to examine the call-stack. Of course the issue here is that there may be something else in the middle, but it's unclear whether that's a limitation in practice. -2. The other way is to just check for the handler in every method call. - -Remember that a handler compiles from: - -```rust -fn process(channel_id: ChannelId) / { Channel }; -``` - -To: - -```rust -fn process(channel_id: ChannelId, channel_handler: Continuation); -``` +2. Another way is to just check for the handler in every method call. -Therefore, it's possible to ask for `program_hash(channel_handler) == +It's possible to ask for `program_hash(channel_handler) == concurrent::hash` before invoking a handler. What's the proper syntax for this is uncertain. It could be something like: @@ -1103,4 +1117,28 @@ match { ``` It's not necessarily more expensive since the hash could be cached in the utxo's -memory (to reduce the amount of host calls), but it makes things more complex. \ No newline at end of file +memory (to reduce the amount of host calls), but it makes things more complex. + +3. Another option is to use handshakes. + +This still requires a wrapper script, but allows dynamic loading. + +So we have a wrapper script: + +```rust +script { + fn trusted_script(input: Utxo, known_coords: Utxo, dynamic_script: Coord) { + // this script, which is known and fixed on the utxo + + // without this handshake, the utxo will refuse everything. + input.accept_script(); + + // use indirection to check + // let's say only an admin can modify known_coords + assert(known_coords.contains(dynamic_script.hash())) + assert(known_coords.authenticate()); + + resume(starstream::new_choord(dynamic_script)); + } +} +``` \ No newline at end of file diff --git a/starstream_ivc_proto/SEMANTICS.md b/starstream_ivc_proto/SEMANTICS.md index c3e2f356..054e835e 100644 --- a/starstream_ivc_proto/SEMANTICS.md +++ b/starstream_ivc_proto/SEMANTICS.md @@ -27,7 +27,7 @@ The global state of the interleaving machine σ is defined as: ```text Configuration (σ) ================= -σ = (id_curr, id_prev, M, process_table, host_calls, counters, safe_to_ledger, is_utxo, initialized) +σ = (id_curr, id_prev, M, process_table, host_calls, counters, safe_to_ledger, is_utxo, initialized, handler_stack) Where: id_curr : ID of the currently executing VM. In the range [0..#coord + #utxo] @@ -39,6 +39,7 @@ Where: safe_to_ledger : A map {ProcessID -> Bool} is_utxo : Read-only map {ProcessID -> Bool} initialized : A map {ProcessID -> Bool} + handler_stack : A map {InterfaceID -> Stack} ``` Note that the maps are used here for convenience of notation. In practice they @@ -106,7 +107,7 @@ Rule: Resume (Can't jump to an unitialized process) -------------------------------------------------------------------------------------------- 1. M[id_curr] <- ret (Claim, needs to be checked later by future resumer) - 2. counters[id_curr] += 1 (Keep track of host call index per process) + 2. counters'[id_curr] += 1 (Keep track of host call index per process) 3. id_prev' <- id_curr (Save "caller" for yield) 4. id_curr' <- target (Switch) 5. safe_to_ledger'[target] <- False (This is not the final yield for this utxo in this transaction) @@ -143,7 +144,7 @@ Rule: Yield (resumed) -------------------------------------------------------------------------------------------- 1. M[id_curr] <- ret (Claim, needs to be checked later by future resumer) - 2. counters[id_curr] += 1 (Keep track of host call index per process) + 2. counters'[id_curr] += 1 (Keep track of host call index per process) 3. id_curr' <- id_prev (Switch to parent) 4. id_prev' <- id_curr (Save "caller") 5. safe_to_ledger'[id_curr] <- False (This is not the final yield for this utxo in this transaction) @@ -180,13 +181,21 @@ Rule: Program Hash op = ProgramHash(target_id) hash = process_table[target_id] + + let + t = CC[id_curr] in + c = counters[id_curr] in + t[c] == + + (Host call lookup condition) + ----------------------------------------------------------------------- - σ' = σ (This is just a lookup constraints) + 1. counters'[id_curr] += 1 ``` --- -# Coordination Script Operations +# 3. Coordination Script Operations ## New UTXO @@ -222,7 +231,8 @@ Assigns a new (transaction-local) ID for a UTXO program. (Host call lookup condition) ----------------------------------------------------------------------- - initialized[id] <- True + 1. initialized[id] <- True + 2. counters'[id_curr] += 1 ``` ## New Coordination Script (Spawn) @@ -262,12 +272,92 @@ handler) instance. (Host call lookup condition) ----------------------------------------------------------------------- - initialized[id] <- True + 1. initialized[id] <- True + 2. counters'[id_curr] += 1 +``` + +--- + +# 4. Effect Handler Operations + +## Install Handler + +Pushes the current program ID onto the handler stack for a given interface. This operation is restricted to coordination scripts. + +```text +Rule: Install Handler +===================== + op = InstallHandler(interface_id) + + 1. is_utxo[id_curr] == False + + (Only coordination scripts can install handlers) + + 2. let + t = CC[id_curr] in + c = counters[id_curr] in + t[c] == + + (Host call lookup condition) +----------------------------------------------------------------------- + 1. handler_stack'[interface_id].push(id_curr) + 2. counters'[id_curr] += 1 +``` + +## Uninstall Handler + +Pops a program ID from the handler stack for a given interface. This operation is restricted to coordination scripts. + +```text +Rule: Uninstall Handler +======================= + op = UninstallHandler(interface_id) + + 1. is_utxo[id_curr] == False + + (Only coordination scripts can uninstall handlers) + + 2. handler_stack[interface_id].top() == id_curr + + (Only the installer can uninstall) + + 3. let + t = CC[id_curr] in + c = counters[id_curr] in + t[c] == + + (Host call lookup condition) +----------------------------------------------------------------------- + 1. handler_stack'[interface_id].pop() + 2. counters[id_curr] += 1 +``` + +## Get Handler For + +Retrieves the handler for a given interface without altering the handler stack. + +```text +Rule: Get Handler For +===================== + op = GetHandlerFor(interface_id) -> handler_id + + 1. handler_id == handler_stack[interface_id].top() + + (The returned handler_id must match the one on top of the stack) + + 2. let + t = CC[id_curr] in + c = counters[id_curr] in + t[c] == + + (Host call lookup condition) +----------------------------------------------------------------------- + 1. counters'[id_curr] += 1 ``` --- -# 4. UTXO Operations +# 5. UTXO Operations ## Burn @@ -290,8 +380,10 @@ Destroys the UTXO state. (Host call lookup condition) ----------------------------------------------------------------------- -is_initialized'[id_curr] <- False -safe_to_ledger'[id_curr] <- True + 1. is_initialized'[id_curr] <- False + 2. safe_to_ledger'[id_curr] <- True + 3. counters'[id_curr] += 1 + ``` # Verification diff --git a/starstream_ivc_proto/effect-handlers-codegen-script-non-tail.png b/starstream_ivc_proto/effect-handlers-codegen-script-non-tail.png index 6d7143c450d86b16d5e2e20cc117f587a2c42173..edc35836ddaafdd0482ad96d563b7a4d80c8f71a 100644 GIT binary patch literal 61948 zcmcF~^-~<(^EK{Hg6rZI+}+)6kpy>lw*(FD?iOHi7AGu_EP>$8;t%cwcfNf7gZG#B zPEAc!Pt|nQy?wh+pK~WpOG6PGgA4->4h~ycNlph24uKC24t^UA<=w&uj6#2Z&{!$y zsKdbpGQz=yN5a89zMH}i;NX0?;NXtT;owAa;NXbe3%a$%-d~_tsw&FCz5VYh>8nnE zx1hT#8F|6M;SBxnh97qOVf}7I^;TAwM?J(MB&KIoez2#0|00~SoV1=l?4-~ynBw;X zw7=D_+IFOmJbyh1lae41lO9h=W>b+SLrR9gm;lXuS&D`>ijO7*Pv*QYW<9^Aii``| zw{kSIcKZC9V^=xdX8&AOwRyw2S(t5-X zaC8w{=0^h)5tZPiscUt)#&Tri@P7fn8Wlyc;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5#%9sp*?QU6sS<~0)SU(F48CLOzKZX`-* z5#1I8X#8L?&wnEo3S(GNEH)LW#8moE zA>=LT5$H$M_wKP(B@dyTn{%x~ZK#^<{}{0#jPcVnGHKkn%-k zYv3%9yc63RRYq>y4lBqWOClRGb)RLBE+u$;qR-n7})t6#Z`k&(Eo2g*M!q zO8@uU&p_Mbb7+CL;u6pkASYWGIcit4e;fc@<=b6~IO~6`C;Jr5jrb7$fHD884%oGY zX_UDq*@{jEATEW<3S08?`DN)Zf1j780+sx90CG?1Ov4!1DzcMUEogsF2Dy!R$5j;LPl0X z`j)A*99-@eT<(ULv@~2=`Vs~&_y1(@_H}kgh5hdt-1i}AKnB=E2&AiZ|4xkt HGWP!fc)>pb diff --git a/starstream_ivc_proto/effect-handlers-codegen-simple.png b/starstream_ivc_proto/effect-handlers-codegen-simple.png index 500774593bc1aff5d9202d7e6d53436a2a1f385e..05732298989583878ddce4cacbd64b1e3f30e875 100644 GIT binary patch literal 132829 zcmcG#Wl$Z#7A<^m32wnH9NgXA-Q5Wg+=AP|gS)%CyGxMZ1a}U>-Q6Dd-dFGc_v5Rn zsj2Dd>h9XTXZPyeYlSN-N+BcSBLV;bWEp93RR91=7yy7=gophsaiF^?`+Sg^NvkRV z0A7>;04Nv$c>XK`9RdKZ%mBc#F#y1u1^|3@%<53#|NH=JDkmil`1sG2*IkXd!p#1*N4Kd8 zb3+*=P@Lq&FLs#vJaW=skhG@#p+8kr)QjMQ3qTR?&;e-Voaz~nuA#IYkgSO5P$l(^b@h(Z7BX4-2I z4eV%a*7xkiOgs%3h8PD4LCSe|7X05)Se`MXJaW~k8KDmD=)k2xb&+^9a?$NQd(G21 z3taMn#e{XXvKN+uj)QLk(5T%^2h*3Apl&_*p_0Ea0@$dN``ULgC7AzC(-BYe3ePV= zU3x5{7bIU5-HX8-dV;(AoJniRa@J6j^VH#WP_RNF%>n?nf^8wf>r3Bkce-v?L#Qg9 zW4V{!yT8`(=k)9hd`Ud0Z^zTsOFUqWNx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Rs@BI zGvjE{3I|;nQu5cOcr0X!L|nh$`3Vx5Bj(b)7bCF&P~MS`ZhAhWk?nr<4iPzW(EJog)nZUsY@5yYsc=yK)*sj#j=zBeRgBtRNq>7=n zxjO0tdArq(Ra7w1FO>V(93TQ8XU|}Kc^^U8GfTt8$ws(#$@BP*HH&4*xPdtGAey`e ziacmM>O$!@C>r`;+3$tufFI7K15pj`6%T)+ixc343${N1;%uJbmLPusxC>;yIPx8^i-%*!*nycm{070OoFnPL)MXLg^7ZLAi&aTM*P{XKJl zGA?+XDboJ0Fw;vscgJI~Kj~WRv|l>39UtcwN%<+}nj{}`?dL{MzujXcjBiXZrcC{{HczMe@gpD~E7tjO3E}_SJq4_&{1?67OgrW5f4TQx;XD&?e?uW39G`G|4?Uc>{;96+@&+8 sYIZHO$ysP_T2!e0_FpselJp2)MYFEgQZDKn4)#x8TIF%E)bqgq1NQ~g1^@s6 From 99332fac58a05382395b7d89aa3f96ad935dfd0f Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Tue, 23 Dec 2025 15:57:24 -0300 Subject: [PATCH 030/152] cp: add ledger spec (in new directory in the root, todo migrate the rest) Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- Cargo.toml | 3 +- starstream_ivc_proto/README.md | 24 +- starstream_mock_ledger/Cargo.toml | 8 + .../README.md | 120 +- .../src/interleaving_semantic_verifier.rs | 728 ++++++++++ starstream_mock_ledger/src/lib.rs | 1169 +++++++++++++++++ 6 files changed, 2037 insertions(+), 15 deletions(-) create mode 100644 starstream_mock_ledger/Cargo.toml rename starstream_ivc_proto/SEMANTICS.md => starstream_mock_ledger/README.md (80%) create mode 100644 starstream_mock_ledger/src/interleaving_semantic_verifier.rs create mode 100644 starstream_mock_ledger/src/lib.rs diff --git a/Cargo.toml b/Cargo.toml index 0afc6507..f3ef988b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,8 @@ members = [ "starstream-sandbox-web", "starstream-to-wasm", "starstream-types", - "starstream_ivc_proto" + "starstream_ivc_proto", + "starstream_mock_ledger" ] exclude = ["old"] diff --git a/starstream_ivc_proto/README.md b/starstream_ivc_proto/README.md index e90db05c..6db22fcd 100644 --- a/starstream_ivc_proto/README.md +++ b/starstream_ivc_proto/README.md @@ -227,12 +227,32 @@ state) from the ledger state. It's equivalent to a coroutine return. ##### Tokens -- bind(token: Continuation) -- unbind(token: Continuation) +- **bind(owner: Continuation)** +- **unbind(token: Continuation)** +- **is_owned_by(token: Continuation, utxo: Continuation) -> bool** +- **tokens(utxo: Continuation) -> Stream** Relational arguments. The ledger state has to keep relations of inclusion, where tokens can be included in utxos. +This of these as the ledger having an sql table of utxo relations (pairs). + +**bind** requires the token to be unbound, and in that case, it binds a +continuation to its caller (which has to be a utxo). + +**unbind** this has to be called from the owner's context. The token has to be +owned by this utxo. + +**is_owned_by** lookup check into the ownership table. + +**tokens** the other lookup. + +Note that `Continuation` implies that the tokens are included as inputs to the +transaction. They are not blockchain id's. + +You can think of tokens as being part of the utxo storage, but this simplifies +the management of ids. + ### Proving the interleaving All the operations that use the ledger state are communication operations. And diff --git a/starstream_mock_ledger/Cargo.toml b/starstream_mock_ledger/Cargo.toml new file mode 100644 index 00000000..7234f5f5 --- /dev/null +++ b/starstream_mock_ledger/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "starstream_mock_ledger" +version = "0.1.0" +edition = "2024" + +[dependencies] +hex = "0.4.3" +thiserror = "2.0.17" diff --git a/starstream_ivc_proto/SEMANTICS.md b/starstream_mock_ledger/README.md similarity index 80% rename from starstream_ivc_proto/SEMANTICS.md rename to starstream_mock_ledger/README.md index 054e835e..9a273b56 100644 --- a/starstream_ivc_proto/SEMANTICS.md +++ b/starstream_mock_ledger/README.md @@ -1,6 +1,6 @@ This document describes operational semantics for the interleaving/transaction/communication circuit in a somewhat formal way (but -abstract). The [README](README.md) has a high-level description of the general architecture and how this things are used (and the motivation). +abstract). Each opcode corresponds to an operation that a wasm program can do in a transaction and involves communication with another program (utxo -> coord, @@ -27,12 +27,13 @@ The global state of the interleaving machine σ is defined as: ```text Configuration (σ) ================= -σ = (id_curr, id_prev, M, process_table, host_calls, counters, safe_to_ledger, is_utxo, initialized, handler_stack) +σ = (id_curr, id_prev, M, arg, process_table, host_calls, counters, safe_to_ledger, is_utxo, initialized, handler_stack, ownership, is_burned) Where: id_curr : ID of the currently executing VM. In the range [0..#coord + #utxo] id_prev : ID of the VM that called the current one (return address). M : A map {ProcessID -> Value} + arg : A map {ProcessID -> Option<(Value, ProcessID)>} process_table : Read-only map {ID -> ProgramHash} for attestation. host_calls : A map {ProcessID -> Host-calls lookup table} counters : A map {ProcessID -> Counter} @@ -40,6 +41,8 @@ Where: is_utxo : Read-only map {ProcessID -> Bool} initialized : A map {ProcessID -> Bool} handler_stack : A map {InterfaceID -> Stack} + ownership : A map {ProcessID -> Option} (token -> owner) + is_burned : A map {ProcessID -> Bool} ``` Note that the maps are used here for convenience of notation. In practice they @@ -111,9 +114,25 @@ Rule: Resume 3. id_prev' <- id_curr (Save "caller" for yield) 4. id_curr' <- target (Switch) 5. safe_to_ledger'[target] <- False (This is not the final yield for this utxo in this transaction) - + 6. arg'[target] <- Some(val, id_curr) ``` +## Input + +Rule: Input +=========== + op = Input() -> (val, caller) + + 1. arg[id_curr] == Some(val, caller) + + 2. let t = CC[id_curr] in + let c = counters[id_curr] in + t[c] == + +----------------------------------------------------------------------- + 1. counters'[id_curr] += 1 + + ## Yield Suspend the current continuation and optionally transfer control to the previous @@ -148,6 +167,7 @@ Rule: Yield (resumed) 3. id_curr' <- id_prev (Switch to parent) 4. id_prev' <- id_curr (Save "caller") 5. safe_to_ledger'[id_curr] <- False (This is not the final yield for this utxo in this transaction) + 6. arg'[id_curr] <- None ``` ```text @@ -168,6 +188,7 @@ Rule: Yield (end transaction) 2. id_curr' <- id_prev (Switch to parent) 3. id_prev' <- id_curr (Save "caller") 4. safe_to_ledger'[id_curr] <- True (This utxo creates a transacition output) + 5. arg'[id_curr] <- None ``` ## Program Hash @@ -185,7 +206,7 @@ Rule: Program Hash let t = CC[id_curr] in c = counters[id_curr] in - t[c] == + t[c] == (Host call lookup condition) @@ -232,7 +253,9 @@ Assigns a new (transaction-local) ID for a UTXO program. ----------------------------------------------------------------------- 1. initialized[id] <- True - 2. counters'[id_curr] += 1 + 2. M[id] <- val + 3. arg'[id] <- None + 4. counters'[id_curr] += 1 ``` ## New Coordination Script (Spawn) @@ -273,7 +296,9 @@ handler) instance. ----------------------------------------------------------------------- 1. initialized[id] <- True - 2. counters'[id_curr] += 1 + 2. M[id] <- val + 3. arg'[id] <- None + 4. counters'[id_curr] += 1 ``` --- @@ -368,24 +393,95 @@ Rule: Burn ========== Destroys the UTXO state. - op = Burn() + op = Burn(val) 1. is_utxo[id_curr] 2. is_initialized[id_curr] + 3. is_burned[id_curr] - 3. let + 4. M[id_prev] == val + + (Resume receives val) + + 4. let t = CC[id_curr] in c = counters[id_curr] in t[c] == (Host call lookup condition) ----------------------------------------------------------------------- - 1. is_initialized'[id_curr] <- False - 2. safe_to_ledger'[id_curr] <- True - 3. counters'[id_curr] += 1 + 1. safe_to_ledger'[id_curr] <- True + 2. id_curr' <- id_prev + + (Control flow goes to caller) + 3. initialized'[id_curr] <- False + + (It's not possible to return to this, maybe it should be a different flag though) + + 4. counters'[id_curr] += 1 + + 5. arg'[id_curr] <- None ``` +# 6. Tokens + +## Bind + +```text +Rule: Bind (token calls) +======================== + op = Bind(owner_id) + + token_id = id_curr + + 1. is_utxo[token_id] == True + (Only UTXOs can be tokens) + + 2. is_utxo[owner_id] == True + (Owners are UTXOs) + + 3. initialized[token_id] == True + initialized[owner_id] == True + (Both exist in this transaction's process set) + + 4. ownership[token_id] == ⊥ + (Token must currently be unbound) + + 5. let t = CC[token_id] in + let c = counters[token_id] in + t[c] == + (Host call lookup condition) +----------------------------------------------------------------------- + 1. ownership'[token_id] <- owner_id + 2. counters'[token_id] += 1 +``` + +## Unbind + +Rule: Unbind (owner calls) +========================== + op = Unbind(token_id) + + owner_id = id_curr + + 1. is_utxo[owner_id] == True + + 2. is_utxo[token_id] == True + initialized[token_id] == True + (Token exists in this transaction's process set) + + 3. ownership[token_id] == owner_id + (Authorization: only current owner may unbind) + + 4. let t = CC[owner_id] in + let c = counters[owner_id] in + t[c] == +----------------------------------------------------------------------- + 1. ownership'[token_id] <- ⊥ + 2. counters'[owner_id] += 1 + + # Verification To verify the transaction, the following additional conditions need to be met: @@ -408,4 +504,4 @@ for (process, proof, host_calls) in transaction.proofs: assert_not(is_utxo[id_curr]) // we finish in a coordination script -``` \ No newline at end of file +``` diff --git a/starstream_mock_ledger/src/interleaving_semantic_verifier.rs b/starstream_mock_ledger/src/interleaving_semantic_verifier.rs new file mode 100644 index 00000000..5e18120d --- /dev/null +++ b/starstream_mock_ledger/src/interleaving_semantic_verifier.rs @@ -0,0 +1,728 @@ +//! A *mock* interpreter for the interleaving / transaction semantics. +//! +//! This is meant for tests/examples: you can “mock” traces as Vec per process. +//! +//! It also doesn't use commitments to the tables, it just has access to the +//! actual traces (where actual the circuit would, but as witnesses, it won't +//! happen *in* the ledger). +//! +//! It's mainly a direct translation of the algorithm in the README + +use std::collections::HashMap; +use thiserror; + +use crate::{Hash, InterleavingInstance, Value, WasmModule}; + +// ---------------------------- basic types ---------------------------- + +pub type ProcessId = usize; +pub type InterfaceId = u64; + +/// One entry in the per-process host-call trace. +/// This corresponds to "t[c] == " checks in the semantics. +#[derive(Clone, Debug, PartialEq, Eq)] +pub enum HostCall { + Resume { + target: ProcessId, + val: Value, + ret: Value, + id_prev: Option, + }, + Yield { + val: Value, + ret: Option, + id_prev: Option, + }, + ProgramHash { + target: ProcessId, + program_hash: Hash, + }, + NewUtxo { + program_hash: Hash, + val: Value, + id: ProcessId, + }, + NewCoord { + program_hash: Hash, + val: Value, + id: ProcessId, + }, + InstallHandler { + interface_id: InterfaceId, + }, + UninstallHandler { + interface_id: InterfaceId, + }, + GetHandlerFor { + interface_id: InterfaceId, + handler_id: ProcessId, + }, + + // UTXO-only + Burn { + ret: Value, + }, + + Input { + val: Value, + caller: ProcessId, + }, + + // Tokens + Bind { + owner_id: ProcessId, + }, + Unbind { + token_id: ProcessId, + }, +} + +/// A “proof input” for tests: provide per-process traces directly. +#[derive(Clone, Debug)] +pub struct InterleavingWitness { + /// One trace per process in canonical order: inputs ++ new_outputs ++ coord scripts + pub traces: Vec>, +} + +#[derive(thiserror::Error, Debug)] +pub enum InterleavingError { + #[error("instance shape mismatch: {0}")] + Shape(&'static str), + + #[error("invalid process id {0}")] + BadPid(ProcessId), + + #[error("host call index out of bounds: pid={pid} counter={counter} len={len}")] + HostCallOob { + pid: ProcessId, + counter: usize, + len: usize, + }, + + #[error( + "host call mismatch at pid={pid} counter={counter}: expected {expected:?}, got {got:?}" + )] + HostCallMismatch { + pid: ProcessId, + counter: usize, + expected: HostCall, + got: HostCall, + }, + + #[error("resume self-resume forbidden (pid={0})")] + SelfResume(ProcessId), + + #[error("utxo cannot resume utxo: caller={caller} target={target}")] + UtxoResumesUtxo { + caller: ProcessId, + target: ProcessId, + }, + + #[error("resume target not initialized: target={0}")] + TargetNotInitialized(ProcessId), + + #[error("resume claim mismatch: target={target} expected={expected:?} got={got:?}")] + ResumeClaimMismatch { + target: ProcessId, + expected: Value, + got: Value, + }, + + #[error("yield claim mismatch: id_prev={id_prev:?} expected={expected:?} got={got:?}")] + YieldClaimMismatch { + id_prev: Option, + expected: Value, + got: Value, + }, + + #[error("program hash mismatch: target={target} expected={expected:?} got={got:?}")] + ProgramHashMismatch { + target: ProcessId, + expected: Hash, + got: Hash, + }, + + #[error("coord-only op used by utxo (pid={0})")] + CoordOnly(ProcessId), + + #[error("utxo-only op used by coord (pid={0})")] + UtxoOnly(ProcessId), + + #[error("uninstall handler not top: interface={interface_id} top={top:?} pid={pid}")] + HandlerNotTop { + interface_id: InterfaceId, + top: Option, + pid: ProcessId, + }, + + #[error( + "get_handler_for returned wrong handler: interface={interface_id} expected={expected:?} got={got}" + )] + HandlerGetMismatch { + interface_id: InterfaceId, + expected: Option, + got: ProcessId, + }, + + #[error("bind: token already owned (token={token} owner={owner:?})")] + TokenAlreadyOwned { + token: ProcessId, + owner: Option, + }, + + #[error("bind: owner is not utxo (owner={0})")] + OwnerNotUtxo(ProcessId), + + #[error("unbind: not current owner (token={token} owner={owner:?} caller={caller})")] + UnbindNotOwner { + token: ProcessId, + owner: Option, + caller: ProcessId, + }, + + #[error("verification: counters mismatch for pid={pid}: counter={counter} len={len}")] + CounterLenMismatch { + pid: ProcessId, + counter: usize, + len: usize, + }, + + #[error("verification: utxo not finalized (safe_to_ledger=false) pid={0}")] + UtxoNotFinalized(ProcessId), + + #[error("verification: finished in utxo (id_curr={0})")] + FinishedInUtxo(ProcessId), + + #[error("verification: burned input did not Burn (pid={pid})")] + BurnedInputNoBurn { pid: ProcessId }, + + #[error( + "ownership_out does not match computed end state (pid={pid} expected={expected:?} got={got:?})" + )] + OwnershipOutMismatch { + pid: ProcessId, + expected: Option, + got: Option, + }, + #[error("a process was not initialized {pid}")] + ProcessNotInitialized { pid: usize }, +} + +// ---------------------------- verifier ---------------------------- + +#[derive(Clone, Debug)] +pub struct InterleavingState { + id_curr: ProcessId, + id_prev: Option, + + /// Claims memory: M[pid] = expected argument to next Resume into pid. + expected_input: Vec, + + arg: Vec>, + + process_table: Vec>, + traces: Vec>, + counters: Vec, + safe_to_ledger: Vec, + is_utxo: Vec, + initialized: Vec, + + handler_stack: HashMap>, + + /// token -> owner (both ProcessId). None => unowned. + ownership: Vec>, + + burned: Vec, +} + +pub fn verify_interleaving_semantics( + inst: &InterleavingInstance, + wit: &InterleavingWitness, + input_states: &[crate::CoroutineState], +) -> Result<(), InterleavingError> { + // ---------- shape checks ---------- + // TODO: a few of these may be redundant + // + // the data layout is still a bit weird + let n = inst.process_table.len(); + if inst.is_utxo.len() != n { + return Err(InterleavingError::Shape("is_utxo len != process_table len")); + } + if inst.ownership_in.len() != n || inst.ownership_out.len() != n { + return Err(InterleavingError::Shape( + "ownership_* len != process_table len", + )); + } + if wit.traces.len() != n { + return Err(InterleavingError::Shape( + "witness traces len != process_table len", + )); + } + if inst.entrypoint >= n { + return Err(InterleavingError::BadPid(inst.entrypoint)); + } + + if inst.burned.len() != inst.n_inputs { + return Err(InterleavingError::Shape("burned len != n_inputs")); + } + + // a utxo that did yield at the end of a previous transaction, gets + // initialized with the same data. + let mut claims_memory = vec![Value::nil(); n]; + for i in 0..inst.n_inputs { + claims_memory[i] = input_states[i].last_yield.clone(); + } + + let mut state = InterleavingState { + id_curr: inst.entrypoint, + id_prev: None, + expected_input: claims_memory, + arg: vec![None; n], + process_table: inst.process_table.clone(), + traces: wit.traces.clone(), + counters: vec![0; n], + safe_to_ledger: vec![false; n], + is_utxo: inst.is_utxo.clone(), + initialized: vec![false; n], + handler_stack: HashMap::new(), + ownership: inst.ownership_in.clone(), + burned: inst.burned.clone(), + }; + + // Inputs exist already (on-ledger) so they start initialized. + // The entrypoint coordination script is the currently executing VM, so it + // starts initialized. + // Everything else must be explicitly constructed/spawned via NewUtxo/NewCoord. + for pid in 0..n { + state.initialized[pid] = pid < inst.n_inputs; + } + + state.initialized[inst.entrypoint] = true; + + // ---------- run until current trace ends ---------- + // This is deterministic: at each step, read the next host call of id_curr at counters[id_curr]. + loop { + let pid = state.id_curr; + let c = state.counters[pid]; + + let trace = &state.traces[pid]; + if c >= trace.len() { + break; + } + + let op = trace[c].clone(); + step(&mut state, op)?; + } + + // ---------- final verification conditions ---------- + // 1) counters match per-process host call lengths + // + // (so we didn't just prove a prefix) + for pid in 0..n { + let counter = state.counters[pid]; + let len = state.traces[pid].len(); + if counter != len { + return Err(InterleavingError::CounterLenMismatch { pid, counter, len }); + } + } + + // 2) process called burn but it has a continuation output in the tx + for i in 0..inst.n_inputs { + if state.burned[i] { + let has_burn = state.traces[i] + .iter() + .any(|hc| matches!(hc, HostCall::Burn { ret: _ })); + if !has_burn { + return Err(InterleavingError::BurnedInputNoBurn { pid: i }); + } + } + } + + // 3) all utxos finalize (safe_to_ledger true) + for pid in 0..n { + if state.is_utxo[pid] { + if !state.safe_to_ledger[pid] { + return Err(InterleavingError::UtxoNotFinalized(pid)); + } + } + } + + // 4) finish in a coordination script + if state.is_utxo[state.id_curr] { + return Err(InterleavingError::FinishedInUtxo(state.id_curr)); + } + + // 5) ownership_out matches computed end state + for pid in 0..n { + let expected = inst.ownership_out[pid]; + let got = state.ownership[pid]; + if expected != got { + return Err(InterleavingError::OwnershipOutMismatch { pid, expected, got }); + } + } + + // every object had a constructor called by a coordination script. + for pid in 0..n { + if !state.initialized[pid] && !state.burned[pid] { + return Err(InterleavingError::ProcessNotInitialized { pid }); + } + } + + Ok(()) +} + +pub fn step(state: &mut InterleavingState, op: HostCall) -> Result<(), InterleavingError> { + let id_curr = state.id_curr; + let c = state.counters[id_curr]; + let trace = &state.traces[id_curr]; + + // For every rule, enforce "host call lookup condition" by checking op == + // t[c]. + // + // Here op is always t[c] anyway because there is no commitment, since this + // doesn't do any zk, it's just trace, but in the circuit this would be a + // lookup constraint into the right table. + if c >= trace.len() { + return Err(InterleavingError::HostCallOob { + pid: id_curr, + counter: c, + len: trace.len(), + }); + } + let got = trace[c].clone(); + if got != op { + return Err(InterleavingError::HostCallMismatch { + pid: id_curr, + counter: c, + expected: op, + got, + }); + } + + state.counters[id_curr] += 1; + + match op { + HostCall::Resume { + target, + val, + ret, + id_prev, + } => { + if id_curr == target { + return Err(InterleavingError::SelfResume(id_curr)); + } + + if state.is_utxo[id_curr] && state.is_utxo[target] { + return Err(InterleavingError::UtxoResumesUtxo { + caller: id_curr, + target, + }); + } + + if !state.initialized[target] { + return Err(InterleavingError::TargetNotInitialized(target)); + } + + if state.arg[target].is_some() { + return Err(InterleavingError::Shape( + "target already has arg (re-entrancy)", + )); + } + + state.arg[id_curr] = None; + + let expected = state.expected_input[target].clone(); + if expected != val { + return Err(InterleavingError::ResumeClaimMismatch { + target, + expected, + got: val, + }); + } + + state.arg[target] = Some((val.clone(), id_curr)); + + state.expected_input[id_curr] = ret; + + if id_prev != state.id_prev { + return Err(InterleavingError::HostCallMismatch { + pid: id_curr, + counter: c, + expected: HostCall::Resume { + target, + val: expected, // not perfect, but avoids adding another type + ret: state.expected_input[id_curr].clone(), + id_prev: state.id_prev, + }, + got: HostCall::Resume { + target, + val: state.expected_input[target].clone(), + ret: state.expected_input[id_curr].clone(), + id_prev, + }, + }); + } + + state.id_prev = Some(id_curr); + + state.id_curr = target; + + state.safe_to_ledger[target] = false; + } + + HostCall::Yield { val, ret, id_prev } => { + if id_prev != state.id_prev { + return Err(InterleavingError::HostCallMismatch { + pid: id_curr, + counter: c, + expected: HostCall::Yield { + val: val.clone(), + ret: ret.clone(), + id_prev: state.id_prev, + }, + got: HostCall::Yield { val, ret, id_prev }, + }); + } + + let parent = state + .id_prev + .expect("end-tx yield should have parent or sentinel"); + + match ret { + Some(retv) => { + state.expected_input[id_curr] = retv; + + state.id_prev = Some(id_curr); + + state.safe_to_ledger[id_curr] = false; + + if let Some(prev) = state.id_prev { + let expected = state.expected_input[prev].clone(); + if expected != val { + return Err(InterleavingError::YieldClaimMismatch { + id_prev: state.id_prev, + expected, + got: val, + }); + } + } + } + None => { + state.id_prev = Some(id_curr); + + state.safe_to_ledger[id_curr] = true; + } + } + + state.arg[id_curr] = None; + state.id_curr = parent; + } + + HostCall::ProgramHash { + target, + program_hash, + } => { + // check lookup against process_table + let expected = state.process_table[target].clone(); + if expected != program_hash { + return Err(InterleavingError::ProgramHashMismatch { + target, + expected, + got: program_hash, + }); + } + } + + HostCall::NewUtxo { + program_hash, + val, + id, + } => { + if state.is_utxo[id_curr] { + return Err(InterleavingError::CoordOnly(id_curr)); + } + if !state.is_utxo[id] { + // in your rule NewUtxo requires is_utxo[id] + return Err(InterleavingError::Shape("NewUtxo id must be utxo")); + } + if state.process_table[id] != program_hash { + return Err(InterleavingError::ProgramHashMismatch { + target: id, + expected: state.process_table[id].clone(), + got: program_hash, + }); + } + if state.counters[id] != 0 { + return Err(InterleavingError::Shape("NewUtxo requires counters[id]==0")); + } + if state.initialized[id] { + return Err(InterleavingError::Shape( + "NewUtxo requires initialized[id]==false", + )); + } + state.initialized[id] = true; + state.expected_input[id] = val; + + state.arg[id] = None; + } + + HostCall::NewCoord { + program_hash, + val, + id, + } => { + if state.is_utxo[id_curr] { + return Err(InterleavingError::CoordOnly(id_curr)); + } + if state.is_utxo[id] { + return Err(InterleavingError::Shape("NewCoord id must be coord")); + } + if state.process_table[id] != program_hash { + return Err(InterleavingError::ProgramHashMismatch { + target: id, + expected: state.process_table[id].clone(), + got: program_hash, + }); + } + if state.counters[id] != 0 { + return Err(InterleavingError::Shape( + "NewCoord requires counters[id]==0", + )); + } + if state.initialized[id] { + return Err(InterleavingError::Shape( + "NewCoord requires initialized[id]==false", + )); + } + + state.initialized[id] = true; + state.expected_input[id] = val; + } + + HostCall::InstallHandler { interface_id } => { + if state.is_utxo[id_curr] { + return Err(InterleavingError::CoordOnly(id_curr)); + } + state + .handler_stack + .entry(interface_id) + .or_default() + .push(id_curr); + } + + HostCall::UninstallHandler { interface_id } => { + if state.is_utxo[id_curr] { + return Err(InterleavingError::CoordOnly(id_curr)); + } + let stack = state.handler_stack.entry(interface_id).or_default(); + let top = stack.last().copied(); + if top != Some(id_curr) { + return Err(InterleavingError::HandlerNotTop { + interface_id, + top, + pid: id_curr, + }); + } + stack.pop(); + } + + HostCall::GetHandlerFor { + interface_id, + handler_id, + } => { + let stack = state.handler_stack.entry(interface_id).or_default(); + let expected = stack.last().copied(); + if expected != Some(handler_id) { + return Err(InterleavingError::HandlerGetMismatch { + interface_id, + expected, + got: handler_id, + }); + } + } + + HostCall::Input { val, caller } => { + let curr = state.id_curr; + + let Some((v, c)) = &state.arg[curr] else { + return Err(InterleavingError::Shape("Input called with no arg set")); + }; + + if v != &val || c != &caller { + return Err(InterleavingError::Shape("Input result mismatch")); + } + } + + HostCall::Burn { ret } => { + if !state.is_utxo[id_curr] { + return Err(InterleavingError::UtxoOnly(id_curr)); + } + + let prev = state.id_prev.unwrap(); + let expected = state.expected_input[prev].clone(); + if expected != ret { + // Burn is the final return of the coroutine + return Err(InterleavingError::YieldClaimMismatch { + id_prev: state.id_prev, + expected, + got: ret, + }); + } + + state.arg[id_curr] = None; + state.safe_to_ledger[id_curr] = true; + state.initialized[id_curr] = false; + state.expected_input[id_curr] = ret; + let parent = state.id_prev.unwrap(); + state.id_prev = Some(id_curr); + state.id_curr = parent; + } + + HostCall::Bind { owner_id } => { + let token_id = id_curr; + + if !state.is_utxo[token_id] { + return Err(InterleavingError::Shape("Bind: token_id must be utxo")); + } + if !state.is_utxo[owner_id] { + return Err(InterleavingError::OwnerNotUtxo(owner_id)); + } + if !state.initialized[token_id] || !state.initialized[owner_id] { + return Err(InterleavingError::Shape("Bind: both must be initialized")); + } + if state.ownership[token_id].is_some() { + return Err(InterleavingError::TokenAlreadyOwned { + token: token_id, + owner: state.ownership[token_id], + }); + } + + state.ownership[token_id] = Some(owner_id); + } + + HostCall::Unbind { token_id } => { + let owner_id = id_curr; + + if !state.is_utxo[owner_id] { + return Err(InterleavingError::Shape("Unbind: caller must be utxo")); + } + if !state.is_utxo[token_id] || !state.initialized[token_id] { + return Err(InterleavingError::Shape( + "Unbind: token must exist and be utxo", + )); + } + let cur_owner = state.ownership[token_id]; + if cur_owner != Some(owner_id) { + return Err(InterleavingError::UnbindNotOwner { + token: token_id, + owner: cur_owner, + caller: owner_id, + }); + } + + state.ownership[token_id] = None; + } + } + + Ok(()) +} diff --git a/starstream_mock_ledger/src/lib.rs b/starstream_mock_ledger/src/lib.rs new file mode 100644 index 00000000..8150200b --- /dev/null +++ b/starstream_mock_ledger/src/lib.rs @@ -0,0 +1,1169 @@ +mod interleaving_semantic_verifier; + +use std::{ + collections::{HashMap, HashSet}, + marker::PhantomData, +}; + +use crate::interleaving_semantic_verifier::HostCall; + +#[derive(PartialEq, Eq, Hash, Clone)] +pub struct Hash([u8; 32], PhantomData); + +impl std::fmt::Debug for Hash { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "Hash({})", hex::encode(&self.0)) + } +} + +#[derive(PartialEq, Eq, Hash, Clone, Debug)] +pub struct WasmModule(Vec); + +/// Opaque user data. +#[derive(Clone, PartialEq, Eq, Hash)] +pub struct Value(pub Vec); + +impl std::fmt::Debug for Value { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match std::str::from_utf8(&self.0) { + Ok(s) => write!(f, "Value(\"{}\")", s), + Err(_) => write!(f, "Value({:?})", self.0), + } + } +} + +impl Value { + pub fn nil() -> Self { + Value(vec![]) + } +} + +#[derive(Clone, PartialEq, Eq, Hash)] +pub struct CoroutineState { + // For the purpose of this model, we only care *if* the state changed, + // not what it is. A simple program counter is sufficient to check if a + // coroutine continued execution in the tests. + // + // It's still TBD whether the module would yield its own continuation + // state (making last_yield just the state), and always executed from the + // entry-point, or whether those should actually be different things. + pc: u64, + last_yield: Value, +} + +pub struct ZkTransactionProof {} + +impl ZkTransactionProof { + pub fn verify( + &self, + inst: &InterleavingInstance, + input_states: &[CoroutineState], + ) -> Result<(), VerificationError> { + let traces = inst + .host_calls_roots + .iter() + .map(|lt| lt.trace.clone()) + .collect(); + + let wit = interleaving_semantic_verifier::InterleavingWitness { traces }; + + Ok(interleaving_semantic_verifier::verify_interleaving_semantics( + inst, + &wit, + input_states, + )?) + } +} + +pub struct ZkWasmProof { + pub host_calls_root: LookupTableCommitment, +} + +impl ZkWasmProof { + pub fn public_instance(&self) -> WasmInstance { + WasmInstance { + host_calls_root: self.host_calls_root.clone(), + host_calls_len: self.host_calls_root.trace.len() as u32, + } + } + + pub fn verify( + &self, + _input: Option, + _key: &Hash, + _output: Option, + ) -> Result<(), VerificationError> { + Ok(()) + } +} + +#[derive(Clone, PartialEq, Eq)] +pub struct LookupTableCommitment { + // obviously the actual commitment shouldn't have this + // but this is used for the mocked circuit + trace: Vec, +} + +#[derive(thiserror::Error, Debug)] +pub enum VerificationError { + #[error("Input continuation size mismatch")] + InputContinuationSizeMismatch, + #[error("Ownership size mismatch")] + OwnershipSizeMismatch, + #[error("Owner has no stable identity")] + OwnerHasNoStableIdentity, + #[error("Interleaving proof error: {0}")] + InterleavingProofError(#[from] interleaving_semantic_verifier::InterleavingError), +} + +/// The actual utxo identity. +#[derive(PartialEq, Eq, Hash, Clone)] +pub struct UtxoId { + pub contract_hash: Hash, + /// A Global Sequence Number for this specific contract code. + /// - Assigned by Ledger at creation by keeping track of the utxos with the same wasm. + /// - Utxo's can't know about it, otherwise it would lead to contention. + pub nonce: u64, +} + +/// Uniquely identifies a "process" or "chain" of states. +/// Defined by the transaction that spawned it (Genesis). +/// +/// This is an internal id, transactions don't know/care about this. +/// +/// The ledger uses stable identities internally to keep track of ownership +/// without having to rewrite all the tuples in the relation each time a utxo +/// with tokens gets resumed. +/// +/// When resuming a utxo, the utxo_to_coroutine mapping gets updated. +/// +/// But utxos just refer to each other through relative indexing in the +/// transaction input/outputs. +#[derive(Clone, PartialEq, Eq, Hash)] +pub struct CoroutineId { + pub creation_tx_hash: Hash, + pub creation_output_index: u64, +} + +/// an index into a table with all the coroutines that are iterated in the +/// current transaction +pub type ProcessId = usize; + +#[derive(Clone, PartialEq, Eq, Hash)] +pub struct TransactionBody { + pub inputs: Vec, + + /// Continuation outputs aligned with inputs. + /// + /// Must have length == inputs.len(). + /// - continuations[i] = Some(out): input[i] continues with out.state + /// - continuations[i] = None: input[i] is burned (no continuation) + pub continuations: Vec>, + + /// New spawns created by coordination scripts (no parent input). + /// Basically the condition for this is that a utxo called `new`, this is + /// also then used to verify the interleaving proof. + pub new_outputs: Vec, + + /// Final ownership snapshot for utxos IN THE TRANSACTION. + /// + /// This has len == process_table.len() where process_table is + /// inputs ++ new_outputs ++ coord scripts. + /// + /// ownership_out[p] == Some(q) means process p (token) is owned by process q at the end. + /// None means unowned. + /// + /// (Coord scripts should always be None, and any illegal edges are rejected by the interleaving proof.) + pub ownership_out: Vec>, + + pub coordination_scripts_keys: Vec>, + pub entrypoint: usize, +} + +#[derive(Clone, PartialEq, Eq, Hash)] +pub struct NewOutput { + pub state: CoroutineState, + pub contract_hash: Hash, +} + +/// Public instance extracted from a zkWasm proof (per process). +pub struct WasmInstance { + /// Commitment to the ordered list of host calls performed by this vm. Each + /// entry encodes opcode + args + return. + pub host_calls_root: LookupTableCommitment, + + /// Number of host calls (length of the list committed by host_calls_root). + pub host_calls_len: u32, +} + +/// In practice this is going to be aggregated into a single proof (or maybe +/// two). +pub struct TransactionWitness { + /// ZK Proofs corresponding to inputs (spending). + /// + /// Note that to verify these, the matching output state has to be provided + /// too. + pub spending_proofs: Vec, + + /// ZK Proofs corresponding to new coroutines. + pub new_output_proofs: Vec, + + /// The global transaction proof. + /// + /// This has access to all the operations peformed by each spending_proof + // that require either talking to another coroutine, or making changes/reads + // in the ledger (like token ownership). + // + /// Plus the attestation capability (getting the hash of one of the + /// coroutines). + /// + /// Note that the circuit for this is fixed in the ledger (just like the + /// zkwasm one), so in practice this encodes the transaction rules. + pub interleaving_proof: ZkTransactionProof, + + /// Coordination script proofs. + pub coordination_scripts: Vec, +} + +/// A transaction that can be applied to the ledger +pub struct ProvenTransaction { + pub body: TransactionBody, + pub witness: TransactionWitness, +} + +pub struct Ledger { + pub utxos: HashMap, + + // ContractHash -> NextAvailableNonce + pub contract_counters: HashMap, u64>, + + pub utxo_to_coroutine: HashMap, + + // Ownership registry. + // + // many to one mapping of inclusion: token -> utxo. + pub ownership_registry: HashMap, +} + +#[derive(PartialEq, Eq, Hash, Clone)] +pub struct UtxoEntry { + pub state: CoroutineState, + pub contract_hash: Hash, +} + +impl Ledger { + pub fn apply_transaction(&mut self, tx: &ProvenTransaction) -> Result<(), VerificationError> { + self.verify_witness(&tx.body, &tx.witness)?; + + let tx_hash = tx.body.hash(); + + // Canonical process order used by the interleaving public instance: + // processes = inputs ++ new_outputs ++ coordination_scripts_keys + let n_inputs = tx.body.inputs.len(); + let n_new = tx.body.new_outputs.len(); + let n_coords = tx.body.coordination_scripts_keys.len(); + let n_processes = n_inputs + n_new + n_coords; + + // For translating ProcessId -> stable CoroutineId when applying ownership changes. + // Coord scripts have no stable identity, so we store None for those slots. + // + // reminder: + // + // a ProcessId is the offset of that program in the transaction + // a CoroutineId is the genesis of a chain of utxo states (like a branch name). + // + // Coordination scripts are processes (or threads or fibers) from the + // point of view of the interleaving machine, but don't have an identity + // in the ledger. The proof just cares about the order, and that's used + // for addressing. + // + // CoroutineIds are mostly kept around to keep relations simpler. If a + // utxo gets resumed, all the tokens that point to it (are owned by) are + // technically owned by the new utxo. + // + // But there is no reason to go and change all the links instead of just + // changing a pointer. + let mut process_to_coroutine: Vec> = vec![None; n_processes]; + + // Pre-state stable ids for inputs (aligned with inputs/process ids 0..n_inputs-1). + for (i, utxo_id) in tx.body.inputs.iter().enumerate() { + let cid = self.utxo_to_coroutine[utxo_id].clone(); + process_to_coroutine[i] = Some(cid); + } + + // Track which input indices are *not* removed from the ledger because + // the continuation reuses the same UtxoId. + let mut is_reference_input: HashSet = HashSet::new(); + + // inputs and continuations have to be aligned, so we just zip over them + for (i, cont_opt) in tx.body.continuations.iter().enumerate() { + let Some(cont) = cont_opt else { continue }; + + // parent meaning previous state (each continuation is a chain of + // utxos) + let parent_utxo_id = &tx.body.inputs[i]; + + // A continuation has the same contract hash as the input it resumes + let contract_hash = self.utxos[parent_utxo_id].contract_hash.clone(); + + let parent_state = self.utxos[parent_utxo_id].state.clone(); + + // same state we don't change the nonce + // + // note that this doesn't include the last_yield claim + let utxo_id = if cont.pc == parent_state.pc { + is_reference_input.insert(i); + parent_utxo_id.clone() + } else { + // Allocate new UtxoId for the continued output + let counter = self + .contract_counters + .entry(contract_hash.clone()) + .or_insert(0); + + let utxo_id = UtxoId { + contract_hash: contract_hash.clone(), + nonce: *counter, + }; + *counter += 1; + + utxo_id + }; + + // Same stable CoroutineId as the input + let coroutine_id = process_to_coroutine[i] + .clone() + .expect("input must have coroutine id"); + + // update index + self.utxo_to_coroutine.insert(utxo_id.clone(), coroutine_id); + + // actual utxo entry + self.utxos.insert( + utxo_id, + UtxoEntry { + state: cont.clone(), + contract_hash, + }, + ); + } + + // new utxos that don't resume anything + for (j, out) in tx.body.new_outputs.iter().enumerate() { + // note that the nonce is not 0, this counts instances of the same + // code, not just resumptions of the same coroutine + let counter = self + .contract_counters + .entry(out.contract_hash.clone()) + .or_insert(0); + let utxo_id = UtxoId { + contract_hash: out.contract_hash.clone(), + nonce: *counter, + }; + *counter += 1; + + let coroutine_id = CoroutineId { + creation_tx_hash: tx_hash.clone(), + // creation_output_index is relative to new_outputs (as before) + creation_output_index: j as u64, + }; + + // Fill stable ids for processes in the "new_outputs" segment: + // ProcessId(inputs.len() + j) + process_to_coroutine[n_inputs + j] = Some(coroutine_id.clone()); + + self.utxo_to_coroutine.insert(utxo_id.clone(), coroutine_id); + self.utxos.insert( + utxo_id, + UtxoEntry { + state: out.state.clone(), + contract_hash: out.contract_hash.clone(), + }, + ); + } + + // Apply ownership updates for the processes that exist in this transaction's process set. + // + // NOTE: we don't check things here, that's part of the + // interleaving/transaction proof, which we already verified + // + // We only translate ProcessId -> stable CoroutineId for utxo processes + // (inputs and new_outputs). Coord scripts have None and thus can't appear in + // the on-ledger ownership_registry. + assert_eq!(tx.body.ownership_out.len(), n_processes); + + for (token_pid, owner_pid_opt) in tx.body.ownership_out.iter().enumerate() { + // Ignore coord scripts segment (no stable identity). + let Some(token_cid) = process_to_coroutine[token_pid].clone() else { + continue; + }; + + if let Some(owner_pid) = owner_pid_opt { + let Some(owner_cid) = process_to_coroutine[*owner_pid].clone() else { + // the proof should reject this in theory + return Err(VerificationError::OwnerHasNoStableIdentity); + }; + + self.ownership_registry.insert(token_cid, owner_cid); + } else { + self.ownership_registry.remove(&token_cid); + } + } + + // 4) Remove spent inputs + for (i, input_id) in tx.body.inputs.iter().enumerate() { + if is_reference_input.contains(&i) { + continue; + } + + self.utxos.remove(input_id); + self.utxo_to_coroutine.remove(input_id); + } + + Ok(()) + } + + pub fn verify_witness( + &self, + body: &TransactionBody, + witness: &TransactionWitness, + ) -> Result<(), VerificationError> { + assert_eq!(witness.spending_proofs.len(), body.inputs.len()); + + if body.continuations.len() != body.inputs.len() { + return Err(VerificationError::InputContinuationSizeMismatch); + } + + let n_inputs = body.inputs.len(); + let n_new = body.new_outputs.len(); + let n_coords = body.coordination_scripts_keys.len(); + let n_processes = n_inputs + n_new + n_coords; + + if body.ownership_out.len() != n_processes { + return Err(VerificationError::OwnershipSizeMismatch); + } + + // if a utxo doesn't have a continuation state, we explicitly need to + // check that it has a call to "burn". + let mut burned = Vec::with_capacity(n_inputs); + + // verify continuation wasm proofs + for (i, (utxo_id, proof)) in body.inputs.iter().zip(&witness.spending_proofs).enumerate() { + let cont = &body.continuations[i]; + + burned.push(cont.is_none()); + + let utxo_entry = self.utxos[utxo_id].clone(); + + proof.verify( + Some(utxo_entry.state), + &utxo_entry.contract_hash, + cont.clone(), + )?; + } + + // verify all the coordination script proofs + for (proof, key) in witness + .coordination_scripts + .iter() + .zip(body.coordination_scripts_keys.iter()) + { + proof.verify(None, key, None)?; + } + + for (proof, entry) in witness + .new_output_proofs + .iter() + .zip(body.new_outputs.iter()) + { + proof.verify(None, &entry.contract_hash, Some(entry.state.clone()))?; + } + + // Canonical process kind flags (used by the interleaving public instance). + let is_utxo = (0..n_processes) + .map(|pid| pid < (n_inputs + n_new)) + .collect::>(); + + // 1. for each input, the verification key (wasm module hash) stored in the ledger. + // 2. for each new output, the verification key (wasm module hash) included in it. + // 3. for each coordination script, the verification key (wasm module hash) included in it. + // + // note that the order is bound too + let process_table = body + .inputs + .iter() + .map(|input| self.utxos[input].contract_hash.clone()) + .chain(body.new_outputs.iter().map(|o| o.contract_hash.clone())) + .chain(body.coordination_scripts_keys.iter().cloned()) + .collect::>(); + + // Initial ownership snapshot for utxos IN THE TRANSACTION. + // This has len == process_table.len(). Coord scripts are None. + // + // token -> owner (both stable ids), projected into ProcessId space by matching + // the transaction-local processes that correspond to stable ids. + // + // (The circuit enforces that ownership_out is derived legally from this.) + let mut ownership_in: Vec> = vec![None; n_processes]; + + // Build ProcessId -> stable CoroutineId map for inputs/new_outputs. + // - Inputs: stable ids from ledger + // - New outputs: have no prior stable id, so they start as unowned in ownership_in + // - Coord scripts: None + let mut process_to_coroutine: Vec> = vec![None; n_processes]; + for (i, utxo_id) in body.inputs.iter().enumerate() { + process_to_coroutine[i] = Some(self.utxo_to_coroutine[utxo_id].clone()); + } + // new_outputs and coord scripts remain None here, which encodes "no prior ownership relation" + + // Invert for the subset of stable ids that appear in inputs (so we can express owner as ProcessId). + let mut coroutine_to_process: HashMap = HashMap::new(); + for (pid, cid_opt) in process_to_coroutine.iter().enumerate() { + if let Some(cid) = cid_opt { + coroutine_to_process.insert(cid.clone(), pid); + } + } + + // Fill ownership_in only for tokens that are inputs (the only ones that existed before the tx). + // New outputs are necessarily unowned at start, and coord scripts are None. + for (token_cid, owner_cid) in self.ownership_registry.iter() { + let Some(&token_pid) = coroutine_to_process.get(token_cid) else { + continue; + }; + let Some(&owner_pid) = coroutine_to_process.get(owner_cid) else { + continue; + }; + ownership_in[token_pid] = Some(owner_pid); + } + + // Build wasm instances in the same canonical order as process_table: + // inputs ++ new_outputs ++ coord scripts + let wasm_instances = build_wasm_instances_in_canonical_order( + &witness.spending_proofs, + &witness.new_output_proofs, + &witness.coordination_scripts, + )?; + + verify_interleaving_public( + &process_table, + &is_utxo, + &burned, + &ownership_in, + &body.ownership_out, + &wasm_instances, + &witness.interleaving_proof, + body.inputs.len(), + body.entrypoint, + body, + self, + )?; + + Ok(()) + } +} + +// this mirrors the configuration described in SEMANTICS.md +pub struct InterleavingInstance { + /// Digest of all per-process host call tables the circuit is wired to. + /// One per wasm proof. + pub host_calls_roots: Vec, + #[allow(dead_code)] + pub host_calls_lens: Vec, + + /// Process table in canonical order: inputs, new_outputs, coord scripts. + process_table: Vec>, + is_utxo: Vec, + + /// Burned/continuation mask for inputs (length = #inputs). + burned: Vec, + n_inputs: usize, + + /// Initial ownership snapshot for inputs IN THE TRANSACTION. + /// + /// This has len == process_table + /// + /// process[i] == Some(j) means that utxo i is owned by j at the beginning of + /// the transaction. + /// + /// None means not owned. + ownership_in: Vec>, + + /// Final ownership snapshot for utxos IN THE TRANSACTION. + /// + /// This has len == process_table + /// + /// final state of the ownership graph (new ledger state). + ownership_out: Vec>, + + entrypoint: usize, +} + +pub fn verify_interleaving_public( + process_table: &[Hash], + is_utxo: &[bool], + burned: &[bool], + ownership_in: &[Option], + ownership_out: &[Option], + wasm_instances: &[WasmInstance], + interleaving_proof: &ZkTransactionProof, + n_inputs: usize, + entrypoint: usize, + body: &TransactionBody, + ledger: &Ledger, +) -> Result<(), VerificationError> { + // ---------- derive the public instance that the interleaving proof MUST be verified against ---------- + // We bind the interleaving proof to: + // - the vector of per-process host call commitments and lengths + // - process_table (program hashes), + // - is_utxo + // - burned/present mask and new_outputs_len + // - ownership_in and ownership_changes + let inst = InterleavingInstance { + host_calls_roots: wasm_instances + .iter() + .map(|w| w.host_calls_root.clone()) + .collect(), + host_calls_lens: wasm_instances.iter().map(|w| w.host_calls_len).collect(), + + process_table: process_table.to_vec(), + is_utxo: is_utxo.to_vec(), + + burned: burned.to_vec(), + + ownership_in: ownership_in.to_vec(), + ownership_out: ownership_out.to_vec(), + n_inputs, + entrypoint, + }; + + // Collect input states for the interleaving proof + let input_states: Vec = body + .inputs + .iter() + .map(|utxo_id| ledger.utxos[utxo_id].state.clone()) + .collect(); + + // ---------- verify interleaving proof ---------- + // All semantics (resume/yield matching, ownership authorization, attestation, etc.) + // are enforced inside the interleaving circuit relative to inst + the committed tables. + // + // See the README.md for the high level description. + // + // NOTE: however that this is mocked right now, and it's using a non-zk + // verifier. + // + // but the circuit in theory in theory encode the same machine + interleaving_proof.verify(&inst, &input_states)?; + + Ok(()) +} + +// ---------- helper glue (still pseudocode) ---------- + +pub fn build_wasm_instances_in_canonical_order( + spending: &[ZkWasmProof], + new_outputs: &[ZkWasmProof], + coords: &[ZkWasmProof], +) -> Result, VerificationError> { + let mut out = Vec::with_capacity(spending.len() + new_outputs.len() + coords.len()); + + for p in spending { + out.push(p.public_instance()); // returns WasmInstance { host_calls_root, host_calls_len } + } + for p in new_outputs { + out.push(p.public_instance()); + } + for p in coords { + out.push(p.public_instance()); + } + + Ok(out) +} + +impl TransactionBody { + pub fn hash(&self) -> Hash { + Hash([0u8; 32], PhantomData) + } +} + +#[cfg(test)] +mod tests { + use super::*; + use crate::interleaving_semantic_verifier::{HostCall, InterleavingWitness}; + + pub fn h(n: u8) -> Hash { + // TODO: actual hashing + let mut bytes = [0u8; 32]; + bytes[0] = n; + Hash(bytes, std::marker::PhantomData) + } + + pub fn v(data: &[u8]) -> Value { + Value(data.to_vec()) + } + + fn mock_genesis() -> (Ledger, UtxoId, UtxoId, CoroutineId, CoroutineId) { + let input_hash_1 = h(10); + let input_hash_2 = h(11); + + // Create input UTXO IDs + let input_utxo_1 = UtxoId { + contract_hash: input_hash_1.clone(), + nonce: 0, + }; + let input_utxo_2 = UtxoId { + contract_hash: input_hash_2.clone(), + nonce: 0, + }; + + let mut ledger = Ledger { + utxos: HashMap::new(), + contract_counters: HashMap::new(), + utxo_to_coroutine: HashMap::new(), + ownership_registry: HashMap::new(), + }; + + let input_1_coroutine = CoroutineId { + creation_tx_hash: Hash([1u8; 32], PhantomData), + creation_output_index: 0, + }; + + let input_2_coroutine = CoroutineId { + creation_tx_hash: Hash([1u8; 32], PhantomData), + creation_output_index: 1, + }; + + ledger.utxos.insert( + input_utxo_1.clone(), + UtxoEntry { + state: CoroutineState { + pc: 0, + last_yield: v(b"spend_input_1"), + }, + contract_hash: input_hash_1.clone(), + }, + ); + ledger.utxos.insert( + input_utxo_2.clone(), + UtxoEntry { + state: CoroutineState { + pc: 0, + last_yield: v(b"spend_input_2"), + }, + contract_hash: input_hash_2.clone(), + }, + ); + + ledger + .utxo_to_coroutine + .insert(input_utxo_1.clone(), input_1_coroutine.clone()); + ledger + .utxo_to_coroutine + .insert(input_utxo_2.clone(), input_2_coroutine.clone()); + + // Set up contract counters + ledger.contract_counters.insert(input_hash_1.clone(), 1); + ledger.contract_counters.insert(input_hash_2.clone(), 1); + ledger.contract_counters.insert(h(1), 0); // coord_hash + ledger.contract_counters.insert(h(2), 0); // utxo_hash_a + ledger.contract_counters.insert(h(3), 0); // utxo_hash_b + + ( + ledger, + input_utxo_1, + input_utxo_2, + input_1_coroutine, + input_2_coroutine, + ) + } + + #[test] + fn test_transaction_with_coord_and_utxos() { + // This test simulates a complex transaction involving 2 input UTXOs, 2 new UTXOs, + // and 1 coordination script that orchestrates the control flow. + // The diagram below shows the lifecycle of each process: `(input)` marks a UTXO + // that is consumed by the transaction, and `(output)` marks one that is + // created by the transaction. P1 is burned, so it is an input but not an output. + // + // P4 (Coord) P0 (In 1) P1 (In 2) P2 (New) P3 (New) + // | (input) (input) | | + // (entrypoint) | | | | + // |---NewUtxo---|-----------------|--------------->(created) | + // |---NewUtxo---|-----------------|-----------------|------------->(created) + // | | | | | + // |---Resume--->| (spend) | | | + // |<--Yield-----| (continue) | | | + // | | | | | + // |---Resume-------------------->| (spend) | | + // |<--Burn----------------------| | | + // | | | | | + // |---Resume-------------------------------------->| | + // |<--Yield---------------------------------------| | + // | | | | | + // |---Resume------------------------------------------------------>| + // |<--Yield-------------------------------------------------------| + // | | | | | + // (end) (output) X (burned) (output) (output) + + // Create a transaction with: + // - 2 input UTXOs to spend (processes 0, 1) + // - 2 new UTXOs (processes 2, 3) + // - 1 coordination script (process 4) + + let input_hash_1 = h(10); + let input_hash_2 = h(11); + let coord_hash = h(1); + let utxo_hash_a = h(2); + let utxo_hash_b = h(3); + + // Create input UTXO IDs + let input_utxo_1 = UtxoId { + contract_hash: input_hash_1.clone(), + nonce: 0, + }; + let input_utxo_2 = UtxoId { + contract_hash: input_hash_2.clone(), + nonce: 0, + }; + + // Transaction body + let tx_body = TransactionBody { + inputs: vec![input_utxo_1.clone(), input_utxo_2.clone()], + continuations: vec![ + Some(CoroutineState { + pc: 1, // Modified state for input 1 + last_yield: v(b"continued_1"), + }), + None, // Input 2 is burned + ], + new_outputs: vec![ + NewOutput { + state: CoroutineState { + pc: 0, + last_yield: v(b"utxo_a_state"), + }, + contract_hash: utxo_hash_a.clone(), + }, + NewOutput { + state: CoroutineState { + pc: 0, + last_yield: v(b"utxo_b_state"), + }, + contract_hash: utxo_hash_b.clone(), + }, + ], + ownership_out: vec![ + None, // process 0 (input_1 continuation) - unowned + None, // process 1 (input_2 burned) - N/A + Some(3), // process 2 (utxo_a) owned by utxo 3 (utxo_b) + None, // process 3 (utxo_b) - unowned + None, // process 4 (coord) - no ownership + ], + coordination_scripts_keys: vec![coord_hash.clone()], + entrypoint: 4, // Coordination script is now process 4 + }; + + // Host call traces for each process in canonical order: inputs ++ new_outputs ++ coord_scripts + // Process 0: Input 1, Process 1: Input 2, Process 2: UTXO A (spawn), Process 3: UTXO B (spawn), Process 4: Coordination script + + let input_1_trace = vec![HostCall::Yield { + val: v(b"continued_1"), + ret: None, + id_prev: Some(4), // Coordination script is process 4 + }]; + + let input_2_trace = vec![HostCall::Burn { + ret: v(b"burned_2"), + }]; + + let utxo_a_trace = vec![ + // UTXO A binds itself to UTXO B (making B the owner) + HostCall::Bind { owner_id: 3 }, // UTXO B is now process 3 + // Yield back to coordinator (end-of-transaction) + HostCall::Yield { + val: v(b"done_a"), + ret: None, + id_prev: Some(4), // Coordination script is now process 4 + }, + ]; + + let utxo_b_trace = vec![ + // UTXO B just yields back (end-of-transaction) + HostCall::Yield { + val: v(b"done_b"), + ret: None, + id_prev: Some(4), // Coordination script is now process 4 + }, + ]; + + let coord_trace = vec![ + // Coordination script creates the two UTXOs + HostCall::NewUtxo { + program_hash: h(2), + val: v(b"init_a"), + id: 2, // UTXO A + }, + HostCall::NewUtxo { + program_hash: h(3), + val: v(b"init_b"), + id: 3, // UTXO B + }, + HostCall::Resume { + target: 0, // Input 1 + val: v(b"spend_input_1"), + ret: v(b"continued_1"), + id_prev: None, + }, + HostCall::Resume { + target: 1, // Input 2 + val: v(b"spend_input_2"), + ret: v(b"burned_2"), + id_prev: Some(0), // Input 1 + }, + HostCall::Resume { + target: 2, // UTXO A + val: v(b"init_a"), + ret: v(b"done_a"), + id_prev: Some(1), // Input 2 + }, + HostCall::Resume { + target: 3, // UTXO B + val: v(b"init_b"), + ret: v(b"done_b"), + id_prev: Some(2), // UTXO A + }, + ]; + + let witness = InterleavingWitness { + traces: vec![ + input_1_trace, + input_2_trace, + utxo_a_trace, + utxo_b_trace, + coord_trace, + ], + }; + + let mock_proofs = TransactionWitness { + spending_proofs: vec![ + ZkWasmProof { + host_calls_root: LookupTableCommitment { + trace: witness.traces[0].clone(), // Input 1 trace + }, + }, + ZkWasmProof { + host_calls_root: LookupTableCommitment { + trace: witness.traces[1].clone(), // Input 2 trace + }, + }, + ], + new_output_proofs: vec![ + ZkWasmProof { + host_calls_root: LookupTableCommitment { + trace: witness.traces[2].clone(), // UTXO A trace + }, + }, + ZkWasmProof { + host_calls_root: LookupTableCommitment { + trace: witness.traces[3].clone(), // UTXO B trace + }, + }, + ], + interleaving_proof: ZkTransactionProof {}, + coordination_scripts: vec![ZkWasmProof { + host_calls_root: LookupTableCommitment { + trace: witness.traces[4].clone(), // Coordination script trace + }, + }], + }; + + let proven_tx = ProvenTransaction { + body: tx_body, + witness: mock_proofs, + }; + + let (mut ledger, _input_utxo_1, _input_utxo_2, _input_1_coroutine, _input_2_coroutine) = + mock_genesis(); + + ledger.apply_transaction(&proven_tx).unwrap(); + + // Verify final ledger state + assert_eq!(ledger.utxos.len(), 3); // 1 continuation + 2 new outputs + assert_eq!(ledger.ownership_registry.len(), 1); // UTXO A is owned by UTXO B + } + + #[test] + fn test_effect_handlers() { + // Create a transaction with: + // - 1 coordination script (process 1) that acts as an effect handler + // - 1 new UTXO (process 0) that calls the effect handler + // + // Roughly models this: + // + // interface Interface { + // Effect(int): int + // } + // + // utxo Utxo { + // main { + // raise Interface::Effect(42); + // } + // } + // + // script { + // fn main() { + // let utxo = Utxo::new(); + // + // try { + // utxo.resume(utxo); + // } + // with Interface { + // do Effect(x) = { + // resume(43) + // } + // } + // } + // } + // + // This test simulates a coordination script acting as an algebraic effect handler + // for a UTXO. The UTXO "raises" an effect by calling the handler, and the + // handler resumes the UTXO with the result. + // + // P1 (Coord/Handler) P0 (UTXO) + // | | + // (entrypoint) | + // | | + // InstallHandler (self) | + // | | + // NewUtxo ---------------->(P0 created) + // (val="init_utxo") | + // | | + // Resume ---------------->| + // (val="init_utxo") | + // | Input (val="init_utxo", caller=P1) + // | ProgramHash(P1) -> (attest caller) + // | GetHandlerFor -> P1 + // |<----------------- Resume (Effect call) + // | (val="Interface::Effect(42)") + //(handles effect) | + // | | + // Resume ---------------->| (Resume with result) + //(val="Interface::EffectResponse(43)") + // | | + // |<----------------- Yield + // | (val="utxo_final") + //UninstallHandler (self) | + // | | + // (end) | + + let coord_hash = h(1); + let utxo_hash = h(2); + let interface_id = 42u64; + + // Transaction body + let tx_body = TransactionBody { + inputs: vec![], + continuations: vec![], + new_outputs: vec![NewOutput { + state: CoroutineState { + pc: 0, + last_yield: v(b"utxo_state"), + }, + contract_hash: utxo_hash.clone(), + }], + ownership_out: vec![ + None, // process 0 (utxo) - unowned + None, // process 1 (coord) - no ownership (this can be optimized out) + ], + coordination_scripts_keys: vec![coord_hash.clone()], + entrypoint: 1, + }; + + // Host call traces for each process in canonical order: (no inputs) ++ new_outputs ++ coord_scripts + // Process 0: UTXO, Process 1: Coordination script + + let coord_trace = vec![ + HostCall::InstallHandler { interface_id }, + HostCall::NewUtxo { + program_hash: h(2), + val: v(b"init_utxo"), + id: 0, + }, + HostCall::Resume { + target: 0, + val: v(b"init_utxo"), + ret: v(b"Interface::Effect(42)"), // expected request + id_prev: None, + }, + HostCall::Resume { + target: 0, + val: v(b"Interface::EffectResponse(43)"), // response sent + ret: v(b"utxo_final"), + id_prev: Some(0), + }, + HostCall::UninstallHandler { interface_id }, + ]; + + let utxo_trace = vec![ + HostCall::Input { + val: v(b"init_utxo"), + caller: 1, + }, + HostCall::ProgramHash { + target: 1, + program_hash: coord_hash.clone(), // assert coord_script hash == h(1) + }, + HostCall::GetHandlerFor { + interface_id, + handler_id: 1, + }, + HostCall::Resume { + target: 1, + val: v(b"Interface::Effect(42)"), // request + ret: v(b"Interface::EffectResponse(43)"), // expected response + id_prev: Some(1), + }, + HostCall::Yield { + val: v(b"utxo_final"), + ret: None, + id_prev: Some(1), + }, + ]; + + let witness = InterleavingWitness { + traces: vec![utxo_trace, coord_trace], + }; + + let mock_proofs = TransactionWitness { + spending_proofs: vec![], + new_output_proofs: vec![ZkWasmProof { + host_calls_root: LookupTableCommitment { + trace: witness.traces[0].clone(), + }, + }], + interleaving_proof: ZkTransactionProof {}, + coordination_scripts: vec![ZkWasmProof { + host_calls_root: LookupTableCommitment { + trace: witness.traces[1].clone(), + }, + }], + }; + + let proven_tx = ProvenTransaction { + body: tx_body, + witness: mock_proofs, + }; + + let mut ledger = Ledger { + utxos: HashMap::new(), + contract_counters: HashMap::new(), + utxo_to_coroutine: HashMap::new(), + ownership_registry: HashMap::new(), + }; + + ledger.apply_transaction(&proven_tx).unwrap(); + + assert_eq!(ledger.utxos.len(), 1); // 1 new UTXO + assert_eq!(ledger.ownership_registry.len(), 0); // No ownership relationships + } +} From 7e69d38b7bc1e1887350b4e5647f886c66c3e971 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Fri, 26 Dec 2025 15:29:12 -0300 Subject: [PATCH 031/152] mock_ledger_spec: git add missing files and add more tests/simplifications Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_mock_ledger/Cargo.toml | 1 + starstream_mock_ledger/src/lib.rs | 801 ++++-------------- ...emantic_verifier.rs => mocked_verifier.rs} | 438 +++++----- starstream_mock_ledger/src/tests.rs | 655 ++++++++++++++ .../src/transaction_effects/instance.rs | 77 ++ .../src/transaction_effects/mod.rs | 30 + .../src/transaction_effects/witness.rs | 68 ++ 7 files changed, 1196 insertions(+), 874 deletions(-) rename starstream_mock_ledger/src/{interleaving_semantic_verifier.rs => mocked_verifier.rs} (62%) create mode 100644 starstream_mock_ledger/src/tests.rs create mode 100644 starstream_mock_ledger/src/transaction_effects/instance.rs create mode 100644 starstream_mock_ledger/src/transaction_effects/mod.rs create mode 100644 starstream_mock_ledger/src/transaction_effects/witness.rs diff --git a/starstream_mock_ledger/Cargo.toml b/starstream_mock_ledger/Cargo.toml index 7234f5f5..6504fafb 100644 --- a/starstream_mock_ledger/Cargo.toml +++ b/starstream_mock_ledger/Cargo.toml @@ -5,4 +5,5 @@ edition = "2024" [dependencies] hex = "0.4.3" +imbl = "6.1.0" thiserror = "2.0.17" diff --git a/starstream_mock_ledger/src/lib.rs b/starstream_mock_ledger/src/lib.rs index 8150200b..190569ac 100644 --- a/starstream_mock_ledger/src/lib.rs +++ b/starstream_mock_ledger/src/lib.rs @@ -1,18 +1,24 @@ -mod interleaving_semantic_verifier; +mod mocked_verifier; +mod transaction_effects; -use std::{ - collections::{HashMap, HashSet}, - marker::PhantomData, -}; +#[cfg(test)] +mod tests; -use crate::interleaving_semantic_verifier::HostCall; +use crate::{ + mocked_verifier::MockedLookupTableCommitment, + transaction_effects::{ProcessId, instance::InterleavingInstance}, +}; +use imbl::{HashMap, HashSet}; +use std::{hash::Hasher, marker::PhantomData}; -#[derive(PartialEq, Eq, Hash, Clone)] +#[derive(PartialEq, Eq)] pub struct Hash([u8; 32], PhantomData); -impl std::fmt::Debug for Hash { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "Hash({})", hex::encode(&self.0)) +impl Copy for Hash {} + +impl Clone for Hash { + fn clone(&self) -> Self { + Self(self.0.clone(), self.1.clone()) } } @@ -46,7 +52,9 @@ pub struct CoroutineState { // // It's still TBD whether the module would yield its own continuation // state (making last_yield just the state), and always executed from the - // entry-point, or whether those should actually be different things. + // entry-point, or whether those should actually be different things (in + // which case last_yield could be used to persist the storage, and pc could + // be instead the call stack). pc: u64, last_yield: Value, } @@ -65,9 +73,9 @@ impl ZkTransactionProof { .map(|lt| lt.trace.clone()) .collect(); - let wit = interleaving_semantic_verifier::InterleavingWitness { traces }; + let wit = mocked_verifier::InterleavingWitness { traces }; - Ok(interleaving_semantic_verifier::verify_interleaving_semantics( + Ok(mocked_verifier::verify_interleaving_semantics( inst, &wit, input_states, @@ -76,7 +84,7 @@ impl ZkTransactionProof { } pub struct ZkWasmProof { - pub host_calls_root: LookupTableCommitment, + pub host_calls_root: MockedLookupTableCommitment, } impl ZkWasmProof { @@ -97,13 +105,6 @@ impl ZkWasmProof { } } -#[derive(Clone, PartialEq, Eq)] -pub struct LookupTableCommitment { - // obviously the actual commitment shouldn't have this - // but this is used for the mocked circuit - trace: Vec, -} - #[derive(thiserror::Error, Debug)] pub enum VerificationError { #[error("Input continuation size mismatch")] @@ -113,11 +114,13 @@ pub enum VerificationError { #[error("Owner has no stable identity")] OwnerHasNoStableIdentity, #[error("Interleaving proof error: {0}")] - InterleavingProofError(#[from] interleaving_semantic_verifier::InterleavingError), + InterleavingProofError(#[from] mocked_verifier::InterleavingError), + #[error("Transaction input not found")] + InputNotFound, } /// The actual utxo identity. -#[derive(PartialEq, Eq, Hash, Clone)] +#[derive(PartialEq, Eq, Hash, Clone, Debug)] pub struct UtxoId { pub contract_hash: Hash, /// A Global Sequence Number for this specific contract code. @@ -145,11 +148,7 @@ pub struct CoroutineId { pub creation_output_index: u64, } -/// an index into a table with all the coroutines that are iterated in the -/// current transaction -pub type ProcessId = usize; - -#[derive(Clone, PartialEq, Eq, Hash)] +#[derive(Clone, PartialEq, Eq)] pub struct TransactionBody { pub inputs: Vec, @@ -167,19 +166,21 @@ pub struct TransactionBody { /// Final ownership snapshot for utxos IN THE TRANSACTION. /// - /// This has len == process_table.len() where process_table is - /// inputs ++ new_outputs ++ coord scripts. - /// /// ownership_out[p] == Some(q) means process p (token) is owned by process q at the end. - /// None means unowned. /// - /// (Coord scripts should always be None, and any illegal edges are rejected by the interleaving proof.) - pub ownership_out: Vec>, + /// Note that absence here means the token shouldn't have an owner. + /// + /// So this is a delta, where None means "remove the owner". + pub ownership_out: HashMap, pub coordination_scripts_keys: Vec>, pub entrypoint: usize, } +// and OutputRef is an index into the output segment of the transaction +#[derive(Clone, Copy, PartialEq, Eq, Hash)] +pub struct OutputRef(usize); + #[derive(Clone, PartialEq, Eq, Hash)] pub struct NewOutput { pub state: CoroutineState, @@ -190,7 +191,7 @@ pub struct NewOutput { pub struct WasmInstance { /// Commitment to the ordered list of host calls performed by this vm. Each /// entry encodes opcode + args + return. - pub host_calls_root: LookupTableCommitment, + pub host_calls_root: MockedLookupTableCommitment, /// Number of host calls (length of the list committed by host_calls_root). pub host_calls_len: u32, @@ -231,6 +232,8 @@ pub struct ProvenTransaction { pub witness: TransactionWitness, } +#[derive(Clone)] +#[must_use] pub struct Ledger { pub utxos: HashMap, @@ -252,7 +255,9 @@ pub struct UtxoEntry { } impl Ledger { - pub fn apply_transaction(&mut self, tx: &ProvenTransaction) -> Result<(), VerificationError> { + pub fn apply_transaction(&self, tx: &ProvenTransaction) -> Result { + let mut new_ledger = self.clone(); + self.verify_witness(&tx.body, &tx.witness)?; let tx_hash = tx.body.hash(); @@ -261,8 +266,6 @@ impl Ledger { // processes = inputs ++ new_outputs ++ coordination_scripts_keys let n_inputs = tx.body.inputs.len(); let n_new = tx.body.new_outputs.len(); - let n_coords = tx.body.coordination_scripts_keys.len(); - let n_processes = n_inputs + n_new + n_coords; // For translating ProcessId -> stable CoroutineId when applying ownership changes. // Coord scripts have no stable identity, so we store None for those slots. @@ -283,7 +286,7 @@ impl Ledger { // // But there is no reason to go and change all the links instead of just // changing a pointer. - let mut process_to_coroutine: Vec> = vec![None; n_processes]; + let mut process_to_coroutine: Vec> = vec![None; n_inputs + n_new]; // Pre-state stable ids for inputs (aligned with inputs/process ids 0..n_inputs-1). for (i, utxo_id) in tx.body.inputs.iter().enumerate() { @@ -316,7 +319,7 @@ impl Ledger { parent_utxo_id.clone() } else { // Allocate new UtxoId for the continued output - let counter = self + let counter = new_ledger .contract_counters .entry(contract_hash.clone()) .or_insert(0); @@ -336,10 +339,12 @@ impl Ledger { .expect("input must have coroutine id"); // update index - self.utxo_to_coroutine.insert(utxo_id.clone(), coroutine_id); + new_ledger + .utxo_to_coroutine + .insert(utxo_id.clone(), coroutine_id); // actual utxo entry - self.utxos.insert( + new_ledger.utxos.insert( utxo_id, UtxoEntry { state: cont.clone(), @@ -352,7 +357,7 @@ impl Ledger { for (j, out) in tx.body.new_outputs.iter().enumerate() { // note that the nonce is not 0, this counts instances of the same // code, not just resumptions of the same coroutine - let counter = self + let counter = new_ledger .contract_counters .entry(out.contract_hash.clone()) .or_insert(0); @@ -372,8 +377,10 @@ impl Ledger { // ProcessId(inputs.len() + j) process_to_coroutine[n_inputs + j] = Some(coroutine_id.clone()); - self.utxo_to_coroutine.insert(utxo_id.clone(), coroutine_id); - self.utxos.insert( + new_ledger + .utxo_to_coroutine + .insert(utxo_id.clone(), coroutine_id); + new_ledger.utxos.insert( utxo_id, UtxoEntry { state: out.state.clone(), @@ -390,37 +397,52 @@ impl Ledger { // We only translate ProcessId -> stable CoroutineId for utxo processes // (inputs and new_outputs). Coord scripts have None and thus can't appear in // the on-ledger ownership_registry. - assert_eq!(tx.body.ownership_out.len(), n_processes); + // assert_eq!(tx.body.ownership_out.len(), n_processes); - for (token_pid, owner_pid_opt) in tx.body.ownership_out.iter().enumerate() { - // Ignore coord scripts segment (no stable identity). - let Some(token_cid) = process_to_coroutine[token_pid].clone() else { - continue; - }; + for token_pid in 0..n_inputs + n_new { + let token_cid = process_to_coroutine[token_pid].clone().unwrap(); - if let Some(owner_pid) = owner_pid_opt { - let Some(owner_cid) = process_to_coroutine[*owner_pid].clone() else { - // the proof should reject this in theory - return Err(VerificationError::OwnerHasNoStableIdentity); - }; + if let Some(owner_pid) = tx.body.ownership_out.get(&OutputRef(token_pid)) { + let owner_cid = process_to_coroutine[owner_pid.0].clone().unwrap(); - self.ownership_registry.insert(token_cid, owner_cid); + new_ledger.ownership_registry.insert(token_cid, owner_cid); } else { - self.ownership_registry.remove(&token_cid); + new_ledger.ownership_registry.remove(&token_cid); } } + // for (token_pid, owner_pid_opt) in tx.body.ownership_out.iter().enumerate() { + // let Some(token_cid) = process_to_coroutine[token_pid].clone() else { + // panic!("coordination scripts can't own or be owned") + // }; + + // if let Some(owner_pid) = owner_pid_opt { + // let Some(owner_cid) = process_to_coroutine[owner_pid.0].clone() else { + // // the proof should reject this in theory + // return Err(VerificationError::OwnerHasNoStableIdentity); + // }; + + // self.ownership_registry.insert(token_cid, owner_cid); + // } else { + // } + // } + // 4) Remove spent inputs for (i, input_id) in tx.body.inputs.iter().enumerate() { if is_reference_input.contains(&i) { continue; } - self.utxos.remove(input_id); - self.utxo_to_coroutine.remove(input_id); + dbg!(&input_id); + + if let None = new_ledger.utxos.remove(input_id) { + return Err(VerificationError::InputNotFound); + } + + new_ledger.utxo_to_coroutine.remove(input_id); } - Ok(()) + Ok(new_ledger) } pub fn verify_witness( @@ -439,10 +461,6 @@ impl Ledger { let n_coords = body.coordination_scripts_keys.len(); let n_processes = n_inputs + n_new + n_coords; - if body.ownership_out.len() != n_processes { - return Err(VerificationError::OwnershipSizeMismatch); - } - // if a utxo doesn't have a continuation state, we explicitly need to // check that it has a call to "burn". let mut burned = Vec::with_capacity(n_inputs); @@ -453,15 +471,25 @@ impl Ledger { burned.push(cont.is_none()); - let utxo_entry = self.utxos[utxo_id].clone(); + let Some(utxo_entry) = self.utxos.get(utxo_id) else { + return Err(VerificationError::InputNotFound); + }; proof.verify( - Some(utxo_entry.state), + Some(utxo_entry.state.clone()), &utxo_entry.contract_hash, cont.clone(), )?; } + for (proof, entry) in witness + .new_output_proofs + .iter() + .zip(body.new_outputs.iter()) + { + proof.verify(None, &entry.contract_hash, Some(entry.state.clone()))?; + } + // verify all the coordination script proofs for (proof, key) in witness .coordination_scripts @@ -471,14 +499,6 @@ impl Ledger { proof.verify(None, key, None)?; } - for (proof, entry) in witness - .new_output_proofs - .iter() - .zip(body.new_outputs.iter()) - { - proof.verify(None, &entry.contract_hash, Some(entry.state.clone()))?; - } - // Canonical process kind flags (used by the interleaving public instance). let is_utxo = (0..n_processes) .map(|pid| pid < (n_inputs + n_new)) @@ -504,7 +524,7 @@ impl Ledger { // the transaction-local processes that correspond to stable ids. // // (The circuit enforces that ownership_out is derived legally from this.) - let mut ownership_in: Vec> = vec![None; n_processes]; + let mut ownership_in: Vec> = vec![None; n_inputs + n_new]; // Build ProcessId -> stable CoroutineId map for inputs/new_outputs. // - Inputs: stable ids from ledger @@ -520,7 +540,7 @@ impl Ledger { let mut coroutine_to_process: HashMap = HashMap::new(); for (pid, cid_opt) in process_to_coroutine.iter().enumerate() { if let Some(cid) = cid_opt { - coroutine_to_process.insert(cid.clone(), pid); + coroutine_to_process.insert(cid.clone(), ProcessId(pid)); } } @@ -533,7 +553,7 @@ impl Ledger { let Some(&owner_pid) = coroutine_to_process.get(owner_cid) else { continue; }; - ownership_in[token_pid] = Some(owner_pid); + ownership_in[token_pid.0] = Some(owner_pid); } // Build wasm instances in the same canonical order as process_table: @@ -544,98 +564,60 @@ impl Ledger { &witness.coordination_scripts, )?; - verify_interleaving_public( - &process_table, - &is_utxo, - &burned, - &ownership_in, - &body.ownership_out, - &wasm_instances, - &witness.interleaving_proof, - body.inputs.len(), - body.entrypoint, - body, - self, - )?; + let ownership_out = (0..witness.spending_proofs.len() + witness.new_output_proofs.len()) + .map(|i| { + body.ownership_out + .get(&OutputRef(i)) + .copied() + .map(ProcessId::from) + }) + .collect::>(); - Ok(()) - } -} + let inst = InterleavingInstance { + n_inputs, + n_new, + n_coords, -// this mirrors the configuration described in SEMANTICS.md -pub struct InterleavingInstance { - /// Digest of all per-process host call tables the circuit is wired to. - /// One per wasm proof. - pub host_calls_roots: Vec, - #[allow(dead_code)] - pub host_calls_lens: Vec, + host_calls_roots: wasm_instances + .iter() + .map(|w| w.host_calls_root.clone()) + .collect(), + host_calls_lens: wasm_instances.iter().map(|w| w.host_calls_len).collect(), - /// Process table in canonical order: inputs, new_outputs, coord scripts. - process_table: Vec>, - is_utxo: Vec, + process_table: process_table.to_vec(), + is_utxo: is_utxo.to_vec(), + must_burn: burned.to_vec(), - /// Burned/continuation mask for inputs (length = #inputs). - burned: Vec, - n_inputs: usize, + ownership_in: ownership_in.to_vec(), + ownership_out: ownership_out.to_vec(), - /// Initial ownership snapshot for inputs IN THE TRANSACTION. - /// - /// This has len == process_table - /// - /// process[i] == Some(j) means that utxo i is owned by j at the beginning of - /// the transaction. - /// - /// None means not owned. - ownership_in: Vec>, + entrypoint: ProcessId(body.entrypoint), + }; - /// Final ownership snapshot for utxos IN THE TRANSACTION. - /// - /// This has len == process_table - /// - /// final state of the ownership graph (new ledger state). - ownership_out: Vec>, + let interleaving_proof: &ZkTransactionProof = &witness.interleaving_proof; - entrypoint: usize, + let input_states: Vec = body + .inputs + .iter() + .map(|utxo_id| self.utxos[utxo_id].state.clone()) + .collect(); + + // note however that this is mocked right now, and it's using a non-zk + // verifier. + // + // but the circuit in theory in theory encode the same machine + interleaving_proof.verify(&inst, &input_states)?; + + Ok(()) + } } pub fn verify_interleaving_public( - process_table: &[Hash], - is_utxo: &[bool], - burned: &[bool], - ownership_in: &[Option], - ownership_out: &[Option], - wasm_instances: &[WasmInstance], interleaving_proof: &ZkTransactionProof, - n_inputs: usize, - entrypoint: usize, body: &TransactionBody, ledger: &Ledger, + inst: InterleavingInstance, ) -> Result<(), VerificationError> { - // ---------- derive the public instance that the interleaving proof MUST be verified against ---------- - // We bind the interleaving proof to: - // - the vector of per-process host call commitments and lengths - // - process_table (program hashes), - // - is_utxo - // - burned/present mask and new_outputs_len - // - ownership_in and ownership_changes - let inst = InterleavingInstance { - host_calls_roots: wasm_instances - .iter() - .map(|w| w.host_calls_root.clone()) - .collect(), - host_calls_lens: wasm_instances.iter().map(|w| w.host_calls_len).collect(), - - process_table: process_table.to_vec(), - is_utxo: is_utxo.to_vec(), - - burned: burned.to_vec(), - - ownership_in: ownership_in.to_vec(), - ownership_out: ownership_out.to_vec(), - n_inputs, - entrypoint, - }; - // Collect input states for the interleaving proof let input_states: Vec = body .inputs @@ -658,26 +640,17 @@ pub fn verify_interleaving_public( Ok(()) } -// ---------- helper glue (still pseudocode) ---------- - pub fn build_wasm_instances_in_canonical_order( spending: &[ZkWasmProof], new_outputs: &[ZkWasmProof], coords: &[ZkWasmProof], ) -> Result, VerificationError> { - let mut out = Vec::with_capacity(spending.len() + new_outputs.len() + coords.len()); - - for p in spending { - out.push(p.public_instance()); // returns WasmInstance { host_calls_root, host_calls_len } - } - for p in new_outputs { - out.push(p.public_instance()); - } - for p in coords { - out.push(p.public_instance()); - } - - Ok(out) + Ok(spending + .iter() + .map(|p| p.public_instance()) + .chain(new_outputs.iter().map(|p| p.public_instance())) + .chain(coords.iter().map(|p| p.public_instance())) + .collect()) } impl TransactionBody { @@ -686,484 +659,20 @@ impl TransactionBody { } } -#[cfg(test)] -mod tests { - use super::*; - use crate::interleaving_semantic_verifier::{HostCall, InterleavingWitness}; - - pub fn h(n: u8) -> Hash { - // TODO: actual hashing - let mut bytes = [0u8; 32]; - bytes[0] = n; - Hash(bytes, std::marker::PhantomData) - } - - pub fn v(data: &[u8]) -> Value { - Value(data.to_vec()) +impl From for ProcessId { + fn from(val: OutputRef) -> Self { + ProcessId(val.0) } +} - fn mock_genesis() -> (Ledger, UtxoId, UtxoId, CoroutineId, CoroutineId) { - let input_hash_1 = h(10); - let input_hash_2 = h(11); - - // Create input UTXO IDs - let input_utxo_1 = UtxoId { - contract_hash: input_hash_1.clone(), - nonce: 0, - }; - let input_utxo_2 = UtxoId { - contract_hash: input_hash_2.clone(), - nonce: 0, - }; - - let mut ledger = Ledger { - utxos: HashMap::new(), - contract_counters: HashMap::new(), - utxo_to_coroutine: HashMap::new(), - ownership_registry: HashMap::new(), - }; - - let input_1_coroutine = CoroutineId { - creation_tx_hash: Hash([1u8; 32], PhantomData), - creation_output_index: 0, - }; - - let input_2_coroutine = CoroutineId { - creation_tx_hash: Hash([1u8; 32], PhantomData), - creation_output_index: 1, - }; - - ledger.utxos.insert( - input_utxo_1.clone(), - UtxoEntry { - state: CoroutineState { - pc: 0, - last_yield: v(b"spend_input_1"), - }, - contract_hash: input_hash_1.clone(), - }, - ); - ledger.utxos.insert( - input_utxo_2.clone(), - UtxoEntry { - state: CoroutineState { - pc: 0, - last_yield: v(b"spend_input_2"), - }, - contract_hash: input_hash_2.clone(), - }, - ); - - ledger - .utxo_to_coroutine - .insert(input_utxo_1.clone(), input_1_coroutine.clone()); - ledger - .utxo_to_coroutine - .insert(input_utxo_2.clone(), input_2_coroutine.clone()); - - // Set up contract counters - ledger.contract_counters.insert(input_hash_1.clone(), 1); - ledger.contract_counters.insert(input_hash_2.clone(), 1); - ledger.contract_counters.insert(h(1), 0); // coord_hash - ledger.contract_counters.insert(h(2), 0); // utxo_hash_a - ledger.contract_counters.insert(h(3), 0); // utxo_hash_b - - ( - ledger, - input_utxo_1, - input_utxo_2, - input_1_coroutine, - input_2_coroutine, - ) - } - - #[test] - fn test_transaction_with_coord_and_utxos() { - // This test simulates a complex transaction involving 2 input UTXOs, 2 new UTXOs, - // and 1 coordination script that orchestrates the control flow. - // The diagram below shows the lifecycle of each process: `(input)` marks a UTXO - // that is consumed by the transaction, and `(output)` marks one that is - // created by the transaction. P1 is burned, so it is an input but not an output. - // - // P4 (Coord) P0 (In 1) P1 (In 2) P2 (New) P3 (New) - // | (input) (input) | | - // (entrypoint) | | | | - // |---NewUtxo---|-----------------|--------------->(created) | - // |---NewUtxo---|-----------------|-----------------|------------->(created) - // | | | | | - // |---Resume--->| (spend) | | | - // |<--Yield-----| (continue) | | | - // | | | | | - // |---Resume-------------------->| (spend) | | - // |<--Burn----------------------| | | - // | | | | | - // |---Resume-------------------------------------->| | - // |<--Yield---------------------------------------| | - // | | | | | - // |---Resume------------------------------------------------------>| - // |<--Yield-------------------------------------------------------| - // | | | | | - // (end) (output) X (burned) (output) (output) - - // Create a transaction with: - // - 2 input UTXOs to spend (processes 0, 1) - // - 2 new UTXOs (processes 2, 3) - // - 1 coordination script (process 4) - - let input_hash_1 = h(10); - let input_hash_2 = h(11); - let coord_hash = h(1); - let utxo_hash_a = h(2); - let utxo_hash_b = h(3); - - // Create input UTXO IDs - let input_utxo_1 = UtxoId { - contract_hash: input_hash_1.clone(), - nonce: 0, - }; - let input_utxo_2 = UtxoId { - contract_hash: input_hash_2.clone(), - nonce: 0, - }; - - // Transaction body - let tx_body = TransactionBody { - inputs: vec![input_utxo_1.clone(), input_utxo_2.clone()], - continuations: vec![ - Some(CoroutineState { - pc: 1, // Modified state for input 1 - last_yield: v(b"continued_1"), - }), - None, // Input 2 is burned - ], - new_outputs: vec![ - NewOutput { - state: CoroutineState { - pc: 0, - last_yield: v(b"utxo_a_state"), - }, - contract_hash: utxo_hash_a.clone(), - }, - NewOutput { - state: CoroutineState { - pc: 0, - last_yield: v(b"utxo_b_state"), - }, - contract_hash: utxo_hash_b.clone(), - }, - ], - ownership_out: vec![ - None, // process 0 (input_1 continuation) - unowned - None, // process 1 (input_2 burned) - N/A - Some(3), // process 2 (utxo_a) owned by utxo 3 (utxo_b) - None, // process 3 (utxo_b) - unowned - None, // process 4 (coord) - no ownership - ], - coordination_scripts_keys: vec![coord_hash.clone()], - entrypoint: 4, // Coordination script is now process 4 - }; - - // Host call traces for each process in canonical order: inputs ++ new_outputs ++ coord_scripts - // Process 0: Input 1, Process 1: Input 2, Process 2: UTXO A (spawn), Process 3: UTXO B (spawn), Process 4: Coordination script - - let input_1_trace = vec![HostCall::Yield { - val: v(b"continued_1"), - ret: None, - id_prev: Some(4), // Coordination script is process 4 - }]; - - let input_2_trace = vec![HostCall::Burn { - ret: v(b"burned_2"), - }]; - - let utxo_a_trace = vec![ - // UTXO A binds itself to UTXO B (making B the owner) - HostCall::Bind { owner_id: 3 }, // UTXO B is now process 3 - // Yield back to coordinator (end-of-transaction) - HostCall::Yield { - val: v(b"done_a"), - ret: None, - id_prev: Some(4), // Coordination script is now process 4 - }, - ]; - - let utxo_b_trace = vec![ - // UTXO B just yields back (end-of-transaction) - HostCall::Yield { - val: v(b"done_b"), - ret: None, - id_prev: Some(4), // Coordination script is now process 4 - }, - ]; - - let coord_trace = vec![ - // Coordination script creates the two UTXOs - HostCall::NewUtxo { - program_hash: h(2), - val: v(b"init_a"), - id: 2, // UTXO A - }, - HostCall::NewUtxo { - program_hash: h(3), - val: v(b"init_b"), - id: 3, // UTXO B - }, - HostCall::Resume { - target: 0, // Input 1 - val: v(b"spend_input_1"), - ret: v(b"continued_1"), - id_prev: None, - }, - HostCall::Resume { - target: 1, // Input 2 - val: v(b"spend_input_2"), - ret: v(b"burned_2"), - id_prev: Some(0), // Input 1 - }, - HostCall::Resume { - target: 2, // UTXO A - val: v(b"init_a"), - ret: v(b"done_a"), - id_prev: Some(1), // Input 2 - }, - HostCall::Resume { - target: 3, // UTXO B - val: v(b"init_b"), - ret: v(b"done_b"), - id_prev: Some(2), // UTXO A - }, - ]; - - let witness = InterleavingWitness { - traces: vec![ - input_1_trace, - input_2_trace, - utxo_a_trace, - utxo_b_trace, - coord_trace, - ], - }; - - let mock_proofs = TransactionWitness { - spending_proofs: vec![ - ZkWasmProof { - host_calls_root: LookupTableCommitment { - trace: witness.traces[0].clone(), // Input 1 trace - }, - }, - ZkWasmProof { - host_calls_root: LookupTableCommitment { - trace: witness.traces[1].clone(), // Input 2 trace - }, - }, - ], - new_output_proofs: vec![ - ZkWasmProof { - host_calls_root: LookupTableCommitment { - trace: witness.traces[2].clone(), // UTXO A trace - }, - }, - ZkWasmProof { - host_calls_root: LookupTableCommitment { - trace: witness.traces[3].clone(), // UTXO B trace - }, - }, - ], - interleaving_proof: ZkTransactionProof {}, - coordination_scripts: vec![ZkWasmProof { - host_calls_root: LookupTableCommitment { - trace: witness.traces[4].clone(), // Coordination script trace - }, - }], - }; - - let proven_tx = ProvenTransaction { - body: tx_body, - witness: mock_proofs, - }; - - let (mut ledger, _input_utxo_1, _input_utxo_2, _input_1_coroutine, _input_2_coroutine) = - mock_genesis(); - - ledger.apply_transaction(&proven_tx).unwrap(); - - // Verify final ledger state - assert_eq!(ledger.utxos.len(), 3); // 1 continuation + 2 new outputs - assert_eq!(ledger.ownership_registry.len(), 1); // UTXO A is owned by UTXO B +impl std::hash::Hash for Hash { + fn hash(&self, state: &mut H) { + self.0.hash(state); } +} - #[test] - fn test_effect_handlers() { - // Create a transaction with: - // - 1 coordination script (process 1) that acts as an effect handler - // - 1 new UTXO (process 0) that calls the effect handler - // - // Roughly models this: - // - // interface Interface { - // Effect(int): int - // } - // - // utxo Utxo { - // main { - // raise Interface::Effect(42); - // } - // } - // - // script { - // fn main() { - // let utxo = Utxo::new(); - // - // try { - // utxo.resume(utxo); - // } - // with Interface { - // do Effect(x) = { - // resume(43) - // } - // } - // } - // } - // - // This test simulates a coordination script acting as an algebraic effect handler - // for a UTXO. The UTXO "raises" an effect by calling the handler, and the - // handler resumes the UTXO with the result. - // - // P1 (Coord/Handler) P0 (UTXO) - // | | - // (entrypoint) | - // | | - // InstallHandler (self) | - // | | - // NewUtxo ---------------->(P0 created) - // (val="init_utxo") | - // | | - // Resume ---------------->| - // (val="init_utxo") | - // | Input (val="init_utxo", caller=P1) - // | ProgramHash(P1) -> (attest caller) - // | GetHandlerFor -> P1 - // |<----------------- Resume (Effect call) - // | (val="Interface::Effect(42)") - //(handles effect) | - // | | - // Resume ---------------->| (Resume with result) - //(val="Interface::EffectResponse(43)") - // | | - // |<----------------- Yield - // | (val="utxo_final") - //UninstallHandler (self) | - // | | - // (end) | - - let coord_hash = h(1); - let utxo_hash = h(2); - let interface_id = 42u64; - - // Transaction body - let tx_body = TransactionBody { - inputs: vec![], - continuations: vec![], - new_outputs: vec![NewOutput { - state: CoroutineState { - pc: 0, - last_yield: v(b"utxo_state"), - }, - contract_hash: utxo_hash.clone(), - }], - ownership_out: vec![ - None, // process 0 (utxo) - unowned - None, // process 1 (coord) - no ownership (this can be optimized out) - ], - coordination_scripts_keys: vec![coord_hash.clone()], - entrypoint: 1, - }; - - // Host call traces for each process in canonical order: (no inputs) ++ new_outputs ++ coord_scripts - // Process 0: UTXO, Process 1: Coordination script - - let coord_trace = vec![ - HostCall::InstallHandler { interface_id }, - HostCall::NewUtxo { - program_hash: h(2), - val: v(b"init_utxo"), - id: 0, - }, - HostCall::Resume { - target: 0, - val: v(b"init_utxo"), - ret: v(b"Interface::Effect(42)"), // expected request - id_prev: None, - }, - HostCall::Resume { - target: 0, - val: v(b"Interface::EffectResponse(43)"), // response sent - ret: v(b"utxo_final"), - id_prev: Some(0), - }, - HostCall::UninstallHandler { interface_id }, - ]; - - let utxo_trace = vec![ - HostCall::Input { - val: v(b"init_utxo"), - caller: 1, - }, - HostCall::ProgramHash { - target: 1, - program_hash: coord_hash.clone(), // assert coord_script hash == h(1) - }, - HostCall::GetHandlerFor { - interface_id, - handler_id: 1, - }, - HostCall::Resume { - target: 1, - val: v(b"Interface::Effect(42)"), // request - ret: v(b"Interface::EffectResponse(43)"), // expected response - id_prev: Some(1), - }, - HostCall::Yield { - val: v(b"utxo_final"), - ret: None, - id_prev: Some(1), - }, - ]; - - let witness = InterleavingWitness { - traces: vec![utxo_trace, coord_trace], - }; - - let mock_proofs = TransactionWitness { - spending_proofs: vec![], - new_output_proofs: vec![ZkWasmProof { - host_calls_root: LookupTableCommitment { - trace: witness.traces[0].clone(), - }, - }], - interleaving_proof: ZkTransactionProof {}, - coordination_scripts: vec![ZkWasmProof { - host_calls_root: LookupTableCommitment { - trace: witness.traces[1].clone(), - }, - }], - }; - - let proven_tx = ProvenTransaction { - body: tx_body, - witness: mock_proofs, - }; - - let mut ledger = Ledger { - utxos: HashMap::new(), - contract_counters: HashMap::new(), - utxo_to_coroutine: HashMap::new(), - ownership_registry: HashMap::new(), - }; - - ledger.apply_transaction(&proven_tx).unwrap(); - - assert_eq!(ledger.utxos.len(), 1); // 1 new UTXO - assert_eq!(ledger.ownership_registry.len(), 0); // No ownership relationships +impl std::fmt::Debug for Hash { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "Hash({})", hex::encode(&self.0)) } } diff --git a/starstream_mock_ledger/src/interleaving_semantic_verifier.rs b/starstream_mock_ledger/src/mocked_verifier.rs similarity index 62% rename from starstream_mock_ledger/src/interleaving_semantic_verifier.rs rename to starstream_mock_ledger/src/mocked_verifier.rs index 5e18120d..cb23ba1e 100644 --- a/starstream_mock_ledger/src/interleaving_semantic_verifier.rs +++ b/starstream_mock_ledger/src/mocked_verifier.rs @@ -8,80 +8,25 @@ //! //! It's mainly a direct translation of the algorithm in the README +use crate::{ + Hash, InterleavingInstance, Value, WasmModule, + transaction_effects::{InterfaceId, ProcessId, witness::WitLedgerEffect}, +}; use std::collections::HashMap; use thiserror; -use crate::{Hash, InterleavingInstance, Value, WasmModule}; - -// ---------------------------- basic types ---------------------------- - -pub type ProcessId = usize; -pub type InterfaceId = u64; - -/// One entry in the per-process host-call trace. -/// This corresponds to "t[c] == " checks in the semantics. -#[derive(Clone, Debug, PartialEq, Eq)] -pub enum HostCall { - Resume { - target: ProcessId, - val: Value, - ret: Value, - id_prev: Option, - }, - Yield { - val: Value, - ret: Option, - id_prev: Option, - }, - ProgramHash { - target: ProcessId, - program_hash: Hash, - }, - NewUtxo { - program_hash: Hash, - val: Value, - id: ProcessId, - }, - NewCoord { - program_hash: Hash, - val: Value, - id: ProcessId, - }, - InstallHandler { - interface_id: InterfaceId, - }, - UninstallHandler { - interface_id: InterfaceId, - }, - GetHandlerFor { - interface_id: InterfaceId, - handler_id: ProcessId, - }, - - // UTXO-only - Burn { - ret: Value, - }, - - Input { - val: Value, - caller: ProcessId, - }, - - // Tokens - Bind { - owner_id: ProcessId, - }, - Unbind { - token_id: ProcessId, - }, +#[derive(Clone, PartialEq, Eq)] +pub struct MockedLookupTableCommitment { + // obviously the actual commitment shouldn't have this + // but this is used for the mocked circuit + pub(crate) trace: Vec, } /// A “proof input” for tests: provide per-process traces directly. #[derive(Clone, Debug)] pub struct InterleavingWitness { /// One trace per process in canonical order: inputs ++ new_outputs ++ coord scripts - pub traces: Vec>, + pub traces: Vec>, } #[derive(thiserror::Error, Debug)] @@ -89,11 +34,11 @@ pub enum InterleavingError { #[error("instance shape mismatch: {0}")] Shape(&'static str), - #[error("invalid process id {0}")] + #[error("unknown process id {0}")] BadPid(ProcessId), #[error("host call index out of bounds: pid={pid} counter={counter} len={len}")] - HostCallOob { + CounterOutOfBounds { pid: ProcessId, counter: usize, len: usize, @@ -105,8 +50,8 @@ pub enum InterleavingError { HostCallMismatch { pid: ProcessId, counter: usize, - expected: HostCall, - got: HostCall, + expected: WitLedgerEffect, + got: WitLedgerEffect, }, #[error("resume self-resume forbidden (pid={0})")] @@ -148,15 +93,14 @@ pub enum InterleavingError { #[error("utxo-only op used by coord (pid={0})")] UtxoOnly(ProcessId), - #[error("uninstall handler not top: interface={interface_id} top={top:?} pid={pid}")] - HandlerNotTop { + #[error("uninstall handler not top: interface={interface_id:?} pid={pid}")] + HandlerNotFound { interface_id: InterfaceId, - top: Option, pid: ProcessId, }, #[error( - "get_handler_for returned wrong handler: interface={interface_id} expected={expected:?} got={got}" + "get_handler_for returned wrong handler: interface={interface_id:?} expected={expected:?} got={got}" )] HandlerGetMismatch { interface_id: InterfaceId, @@ -180,6 +124,12 @@ pub enum InterleavingError { caller: ProcessId, }, + #[error("yield called without a parent process (pid={pid})")] + YieldWithNoParent { pid: ProcessId }, + + #[error("burn called without a parent process (pid={pid})")] + BurnWithNoParent { pid: ProcessId }, + #[error("verification: counters mismatch for pid={pid}: counter={counter} len={len}")] CounterLenMismatch { pid: ProcessId, @@ -187,9 +137,15 @@ pub enum InterleavingError { len: usize, }, - #[error("verification: utxo not finalized (safe_to_ledger=false) pid={0}")] + #[error("verification: utxo not finalized (finalized=false) pid={0}")] UtxoNotFinalized(ProcessId), + #[error("verification: utxo does not have a continuation but it did not call Burn pid={0}")] + UtxoShouldBurn(ProcessId), + + #[error("verification: utxo does have a continuation but it did call Burn pid={0}")] + UtxoShouldNotBurn(ProcessId), + #[error("verification: finished in utxo (id_curr={0})")] FinishedInUtxo(ProcessId), @@ -205,11 +161,23 @@ pub enum InterleavingError { got: Option, }, #[error("a process was not initialized {pid}")] - ProcessNotInitialized { pid: usize }, + ProcessNotInitialized { pid: ProcessId }, + + #[error("resume target already has arg (re-entrancy): target={0}")] + ReentrantResume(ProcessId), } // ---------------------------- verifier ---------------------------- +pub struct ROM { + process_table: Vec>, + must_burn: Vec, + is_utxo: Vec, + + // mocked, this should be only a commitment + traces: Vec>, +} + #[derive(Clone, Debug)] pub struct InterleavingState { id_curr: ProcessId, @@ -220,19 +188,21 @@ pub struct InterleavingState { arg: Vec>, - process_table: Vec>, - traces: Vec>, counters: Vec, - safe_to_ledger: Vec, - is_utxo: Vec, - initialized: Vec, - handler_stack: HashMap>, + /// If a new output or coordination script is created, it must be through a + /// spawn from a coordinator script + initialized: Vec, + /// Whether the last instruction in that utxo was Yield or Burn + finalized: Vec, + /// Keep track of whether Burn is called + did_burn: Vec, /// token -> owner (both ProcessId). None => unowned. ownership: Vec>, - burned: Vec, + /// A stack per possible interface + handler_stack: HashMap>, } pub fn verify_interleaving_semantics( @@ -240,53 +210,43 @@ pub fn verify_interleaving_semantics( wit: &InterleavingWitness, input_states: &[crate::CoroutineState], ) -> Result<(), InterleavingError> { - // ---------- shape checks ---------- - // TODO: a few of these may be redundant - // - // the data layout is still a bit weird - let n = inst.process_table.len(); - if inst.is_utxo.len() != n { - return Err(InterleavingError::Shape("is_utxo len != process_table len")); - } - if inst.ownership_in.len() != n || inst.ownership_out.len() != n { - return Err(InterleavingError::Shape( - "ownership_* len != process_table len", - )); - } + inst.check_shape()?; + + let n = inst.n_inputs + inst.n_new + inst.n_coords; + if wit.traces.len() != n { return Err(InterleavingError::Shape( "witness traces len != process_table len", )); } - if inst.entrypoint >= n { - return Err(InterleavingError::BadPid(inst.entrypoint)); - } - - if inst.burned.len() != inst.n_inputs { - return Err(InterleavingError::Shape("burned len != n_inputs")); - } // a utxo that did yield at the end of a previous transaction, gets // initialized with the same data. + // + // TODO: maybe we also need to assert/prove that it starts with a Yield let mut claims_memory = vec![Value::nil(); n]; for i in 0..inst.n_inputs { claims_memory[i] = input_states[i].last_yield.clone(); } + let rom = ROM { + process_table: inst.process_table.clone(), + must_burn: inst.must_burn.clone(), + is_utxo: inst.is_utxo.clone(), + traces: wit.traces.clone(), + }; + let mut state = InterleavingState { - id_curr: inst.entrypoint, + id_curr: ProcessId(inst.entrypoint.into()), id_prev: None, expected_input: claims_memory, arg: vec![None; n], - process_table: inst.process_table.clone(), - traces: wit.traces.clone(), counters: vec![0; n], - safe_to_ledger: vec![false; n], - is_utxo: inst.is_utxo.clone(), - initialized: vec![false; n], handler_stack: HashMap::new(), ownership: inst.ownership_in.clone(), - burned: inst.burned.clone(), + initialized: vec![false; n], + finalized: vec![false; n], + did_burn: vec![false; n], }; // Inputs exist already (on-ledger) so they start initialized. @@ -297,22 +257,24 @@ pub fn verify_interleaving_semantics( state.initialized[pid] = pid < inst.n_inputs; } - state.initialized[inst.entrypoint] = true; + state.initialized[inst.entrypoint.0] = true; // ---------- run until current trace ends ---------- // This is deterministic: at each step, read the next host call of id_curr at counters[id_curr]. + let mut current_state = state; loop { - let pid = state.id_curr; - let c = state.counters[pid]; + let pid = current_state.id_curr; + let c = current_state.counters[pid.0]; - let trace = &state.traces[pid]; + let trace = &rom.traces[pid.0]; if c >= trace.len() { break; } let op = trace[c].clone(); - step(&mut state, op)?; + current_state = state_transition(current_state, &rom, op)?; } + let state = current_state; // ---------- final verification conditions ---------- // 1) counters match per-process host call lengths @@ -320,61 +282,83 @@ pub fn verify_interleaving_semantics( // (so we didn't just prove a prefix) for pid in 0..n { let counter = state.counters[pid]; - let len = state.traces[pid].len(); + let len = rom.traces[pid].len(); if counter != len { - return Err(InterleavingError::CounterLenMismatch { pid, counter, len }); + return Err(InterleavingError::CounterLenMismatch { + pid: ProcessId(pid), + counter, + len, + }); } } // 2) process called burn but it has a continuation output in the tx for i in 0..inst.n_inputs { - if state.burned[i] { - let has_burn = state.traces[i] + if rom.must_burn[i] { + let has_burn = rom.traces[i] .iter() - .any(|hc| matches!(hc, HostCall::Burn { ret: _ })); + .any(|hc| matches!(hc, WitLedgerEffect::Burn { ret: _ })); if !has_burn { - return Err(InterleavingError::BurnedInputNoBurn { pid: i }); + return Err(InterleavingError::BurnedInputNoBurn { pid: ProcessId(i) }); } } } - // 3) all utxos finalize (safe_to_ledger true) - for pid in 0..n { - if state.is_utxo[pid] { - if !state.safe_to_ledger[pid] { - return Err(InterleavingError::UtxoNotFinalized(pid)); - } + // 3) all utxos finalize + for pid in 0..(inst.n_inputs + inst.n_new) { + if !state.finalized[pid] { + return Err(InterleavingError::UtxoNotFinalized(ProcessId(pid))); + } + } + + // 4) all utxos without continuation did call Burn + for pid in 0..inst.n_inputs { + if rom.must_burn[pid] && !state.did_burn[pid] { + return Err(InterleavingError::UtxoShouldBurn(ProcessId(pid))); } } - // 4) finish in a coordination script - if state.is_utxo[state.id_curr] { + // 5) finish in a coordination script + if rom.is_utxo[state.id_curr.0] { return Err(InterleavingError::FinishedInUtxo(state.id_curr)); } - // 5) ownership_out matches computed end state - for pid in 0..n { + // 6) ownership_out matches computed end state + for pid in 0..(inst.n_inputs + inst.n_new) { let expected = inst.ownership_out[pid]; let got = state.ownership[pid]; if expected != got { - return Err(InterleavingError::OwnershipOutMismatch { pid, expected, got }); + return Err(InterleavingError::OwnershipOutMismatch { + pid: ProcessId(pid), + expected, + got, + }); } } // every object had a constructor called by a coordination script. + // + // TODO: this may be redundant, since resume should not work on unitialized + // programs, and without resuming then the trace counter will catch this for pid in 0..n { - if !state.initialized[pid] && !state.burned[pid] { - return Err(InterleavingError::ProcessNotInitialized { pid }); + if !state.initialized[pid] { + return Err(InterleavingError::ProcessNotInitialized { + pid: ProcessId(pid), + }); } } Ok(()) } -pub fn step(state: &mut InterleavingState, op: HostCall) -> Result<(), InterleavingError> { +pub fn state_transition( + mut state: InterleavingState, + rom: &ROM, + op: WitLedgerEffect, +) -> Result { let id_curr = state.id_curr; - let c = state.counters[id_curr]; - let trace = &state.traces[id_curr]; + let c = state.counters[id_curr.0]; + let trace = &rom.traces[id_curr.0]; // For every rule, enforce "host call lookup condition" by checking op == // t[c]. @@ -383,7 +367,7 @@ pub fn step(state: &mut InterleavingState, op: HostCall) -> Result<(), Interleav // doesn't do any zk, it's just trace, but in the circuit this would be a // lookup constraint into the right table. if c >= trace.len() { - return Err(InterleavingError::HostCallOob { + return Err(InterleavingError::CounterOutOfBounds { pid: id_curr, counter: c, len: trace.len(), @@ -399,10 +383,10 @@ pub fn step(state: &mut InterleavingState, op: HostCall) -> Result<(), Interleav }); } - state.counters[id_curr] += 1; + state.counters[id_curr.0] += 1; match op { - HostCall::Resume { + WitLedgerEffect::Resume { target, val, ret, @@ -412,52 +396,49 @@ pub fn step(state: &mut InterleavingState, op: HostCall) -> Result<(), Interleav return Err(InterleavingError::SelfResume(id_curr)); } - if state.is_utxo[id_curr] && state.is_utxo[target] { + if rom.is_utxo[id_curr.0] && rom.is_utxo[target.0] { return Err(InterleavingError::UtxoResumesUtxo { caller: id_curr, target, }); } - if !state.initialized[target] { + if !state.initialized[target.0] { return Err(InterleavingError::TargetNotInitialized(target)); } - if state.arg[target].is_some() { - return Err(InterleavingError::Shape( - "target already has arg (re-entrancy)", - )); + if state.arg[target.0].is_some() { + return Err(InterleavingError::ReentrantResume(target)); } - state.arg[id_curr] = None; + state.arg[id_curr.0] = None; - let expected = state.expected_input[target].clone(); - if expected != val { + if state.expected_input[target.0].clone() != val { return Err(InterleavingError::ResumeClaimMismatch { target, - expected, + expected: state.expected_input[target.0].clone(), got: val, }); } - state.arg[target] = Some((val.clone(), id_curr)); + state.arg[target.0] = Some((val.clone(), id_curr)); - state.expected_input[id_curr] = ret; + state.expected_input[id_curr.0] = ret; if id_prev != state.id_prev { return Err(InterleavingError::HostCallMismatch { pid: id_curr, counter: c, - expected: HostCall::Resume { + expected: WitLedgerEffect::Resume { target, - val: expected, // not perfect, but avoids adding another type - ret: state.expected_input[id_curr].clone(), + val: state.expected_input[target.0].clone(), + ret: state.expected_input[id_curr.0].clone(), id_prev: state.id_prev, }, - got: HostCall::Resume { + got: WitLedgerEffect::Resume { target, - val: state.expected_input[target].clone(), - ret: state.expected_input[id_curr].clone(), + val: state.expected_input[target.0].clone(), + ret: state.expected_input[id_curr.0].clone(), id_prev, }, }); @@ -467,37 +448,37 @@ pub fn step(state: &mut InterleavingState, op: HostCall) -> Result<(), Interleav state.id_curr = target; - state.safe_to_ledger[target] = false; + state.finalized[target.0] = false; } - HostCall::Yield { val, ret, id_prev } => { + WitLedgerEffect::Yield { val, ret, id_prev } => { if id_prev != state.id_prev { return Err(InterleavingError::HostCallMismatch { pid: id_curr, counter: c, - expected: HostCall::Yield { + expected: WitLedgerEffect::Yield { val: val.clone(), ret: ret.clone(), id_prev: state.id_prev, }, - got: HostCall::Yield { val, ret, id_prev }, + got: WitLedgerEffect::Yield { val, ret, id_prev }, }); } let parent = state .id_prev - .expect("end-tx yield should have parent or sentinel"); + .ok_or(InterleavingError::YieldWithNoParent { pid: id_curr })?; match ret { Some(retv) => { - state.expected_input[id_curr] = retv; + state.expected_input[id_curr.0] = retv; state.id_prev = Some(id_curr); - state.safe_to_ledger[id_curr] = false; + state.finalized[id_curr.0] = false; if let Some(prev) = state.id_prev { - let expected = state.expected_input[prev].clone(); + let expected = state.expected_input[prev.0].clone(); if expected != val { return Err(InterleavingError::YieldClaimMismatch { id_prev: state.id_prev, @@ -510,20 +491,20 @@ pub fn step(state: &mut InterleavingState, op: HostCall) -> Result<(), Interleav None => { state.id_prev = Some(id_curr); - state.safe_to_ledger[id_curr] = true; + state.finalized[id_curr.0] = true; } } - state.arg[id_curr] = None; + state.arg[id_curr.0] = None; state.id_curr = parent; } - HostCall::ProgramHash { + WitLedgerEffect::ProgramHash { target, program_hash, } => { // check lookup against process_table - let expected = state.process_table[target].clone(); + let expected = rom.process_table[target.0].clone(); if expected != program_hash { return Err(InterleavingError::ProgramHashMismatch { target, @@ -533,74 +514,73 @@ pub fn step(state: &mut InterleavingState, op: HostCall) -> Result<(), Interleav } } - HostCall::NewUtxo { + WitLedgerEffect::NewUtxo { program_hash, val, id, } => { - if state.is_utxo[id_curr] { + if rom.is_utxo[id_curr.0] { return Err(InterleavingError::CoordOnly(id_curr)); } - if !state.is_utxo[id] { - // in your rule NewUtxo requires is_utxo[id] + if !rom.is_utxo[id.0] { return Err(InterleavingError::Shape("NewUtxo id must be utxo")); } - if state.process_table[id] != program_hash { + if rom.process_table[id.0] != program_hash { return Err(InterleavingError::ProgramHashMismatch { target: id, - expected: state.process_table[id].clone(), + expected: rom.process_table[id.0].clone(), got: program_hash, }); } - if state.counters[id] != 0 { + if state.counters[id.0] != 0 { return Err(InterleavingError::Shape("NewUtxo requires counters[id]==0")); } - if state.initialized[id] { + if state.initialized[id.0] { return Err(InterleavingError::Shape( "NewUtxo requires initialized[id]==false", )); } - state.initialized[id] = true; - state.expected_input[id] = val; + state.initialized[id.0] = true; + state.expected_input[id.0] = val; - state.arg[id] = None; + state.arg[id.0] = None; } - HostCall::NewCoord { + WitLedgerEffect::NewCoord { program_hash, val, id, } => { - if state.is_utxo[id_curr] { + if rom.is_utxo[id_curr.0] { return Err(InterleavingError::CoordOnly(id_curr)); } - if state.is_utxo[id] { + if rom.is_utxo[id.0] { return Err(InterleavingError::Shape("NewCoord id must be coord")); } - if state.process_table[id] != program_hash { + if rom.process_table[id.0] != program_hash { return Err(InterleavingError::ProgramHashMismatch { target: id, - expected: state.process_table[id].clone(), + expected: rom.process_table[id.0].clone(), got: program_hash, }); } - if state.counters[id] != 0 { + if state.counters[id.0] != 0 { return Err(InterleavingError::Shape( "NewCoord requires counters[id]==0", )); } - if state.initialized[id] { + if state.initialized[id.0] { return Err(InterleavingError::Shape( "NewCoord requires initialized[id]==false", )); } - state.initialized[id] = true; - state.expected_input[id] = val; + state.initialized[id.0] = true; + state.expected_input[id.0] = val; } - HostCall::InstallHandler { interface_id } => { - if state.is_utxo[id_curr] { + WitLedgerEffect::InstallHandler { interface_id } => { + if rom.is_utxo[id_curr.0] { return Err(InterleavingError::CoordOnly(id_curr)); } state @@ -610,27 +590,24 @@ pub fn step(state: &mut InterleavingState, op: HostCall) -> Result<(), Interleav .push(id_curr); } - HostCall::UninstallHandler { interface_id } => { - if state.is_utxo[id_curr] { + WitLedgerEffect::UninstallHandler { interface_id } => { + if rom.is_utxo[id_curr.0] { return Err(InterleavingError::CoordOnly(id_curr)); } - let stack = state.handler_stack.entry(interface_id).or_default(); - let top = stack.last().copied(); - if top != Some(id_curr) { - return Err(InterleavingError::HandlerNotTop { + let stack = state.handler_stack.entry(interface_id.clone()).or_default(); + let Some(_) = stack.pop() else { + return Err(InterleavingError::HandlerNotFound { interface_id, - top, pid: id_curr, }); - } - stack.pop(); + }; } - HostCall::GetHandlerFor { + WitLedgerEffect::GetHandlerFor { interface_id, handler_id, } => { - let stack = state.handler_stack.entry(interface_id).or_default(); + let stack = state.handler_stack.entry(interface_id.clone()).or_default(); let expected = stack.last().copied(); if expected != Some(handler_id) { return Err(InterleavingError::HandlerGetMismatch { @@ -641,10 +618,10 @@ pub fn step(state: &mut InterleavingState, op: HostCall) -> Result<(), Interleav } } - HostCall::Input { val, caller } => { + WitLedgerEffect::Input { val, caller } => { let curr = state.id_curr; - let Some((v, c)) = &state.arg[curr] else { + let Some((v, c)) = &state.arg[curr.0] else { return Err(InterleavingError::Shape("Input called with no arg set")); }; @@ -653,65 +630,70 @@ pub fn step(state: &mut InterleavingState, op: HostCall) -> Result<(), Interleav } } - HostCall::Burn { ret } => { - if !state.is_utxo[id_curr] { + WitLedgerEffect::Burn { ret } => { + if !rom.is_utxo[id_curr.0] { return Err(InterleavingError::UtxoOnly(id_curr)); } - let prev = state.id_prev.unwrap(); - let expected = state.expected_input[prev].clone(); - if expected != ret { + if !rom.must_burn[id_curr.0] { + return Err(InterleavingError::UtxoShouldNotBurn(id_curr)); + } + + let parent = state + .id_prev + .ok_or(InterleavingError::BurnWithNoParent { pid: id_curr })?; + + if state.expected_input[parent.0].clone() != ret { // Burn is the final return of the coroutine return Err(InterleavingError::YieldClaimMismatch { id_prev: state.id_prev, - expected, + expected: state.expected_input[parent.0].clone(), got: ret, }); } - state.arg[id_curr] = None; - state.safe_to_ledger[id_curr] = true; - state.initialized[id_curr] = false; - state.expected_input[id_curr] = ret; - let parent = state.id_prev.unwrap(); + state.arg[id_curr.0] = None; + state.finalized[id_curr.0] = true; + state.did_burn[id_curr.0] = true; + state.expected_input[id_curr.0] = ret; state.id_prev = Some(id_curr); state.id_curr = parent; } - HostCall::Bind { owner_id } => { + WitLedgerEffect::Bind { owner_id } => { let token_id = id_curr; - if !state.is_utxo[token_id] { + if !rom.is_utxo[token_id.0] { return Err(InterleavingError::Shape("Bind: token_id must be utxo")); } - if !state.is_utxo[owner_id] { + if !rom.is_utxo[owner_id.0] { return Err(InterleavingError::OwnerNotUtxo(owner_id)); } - if !state.initialized[token_id] || !state.initialized[owner_id] { + if !state.initialized[token_id.0] || !state.initialized[owner_id.0] { return Err(InterleavingError::Shape("Bind: both must be initialized")); } - if state.ownership[token_id].is_some() { + if state.ownership[token_id.0].is_some() { return Err(InterleavingError::TokenAlreadyOwned { token: token_id, - owner: state.ownership[token_id], + owner: state.ownership[token_id.0], }); } - state.ownership[token_id] = Some(owner_id); + state.ownership[token_id.0] = Some(owner_id); } - HostCall::Unbind { token_id } => { + WitLedgerEffect::Unbind { token_id } => { let owner_id = id_curr; - if !state.is_utxo[owner_id] { + if !rom.is_utxo[owner_id.0] { return Err(InterleavingError::Shape("Unbind: caller must be utxo")); } - if !state.is_utxo[token_id] || !state.initialized[token_id] { + if !rom.is_utxo[token_id.0] || !state.initialized[token_id.0] { return Err(InterleavingError::Shape( "Unbind: token must exist and be utxo", )); } - let cur_owner = state.ownership[token_id]; + let cur_owner = state.ownership[token_id.0]; if cur_owner != Some(owner_id) { return Err(InterleavingError::UnbindNotOwner { token: token_id, @@ -720,9 +702,9 @@ pub fn step(state: &mut InterleavingState, op: HostCall) -> Result<(), Interleav }); } - state.ownership[token_id] = None; + state.ownership[token_id.0] = None; } } - Ok(()) + Ok(state) } diff --git a/starstream_mock_ledger/src/tests.rs b/starstream_mock_ledger/src/tests.rs new file mode 100644 index 00000000..d444f224 --- /dev/null +++ b/starstream_mock_ledger/src/tests.rs @@ -0,0 +1,655 @@ +use super::*; +use crate::{mocked_verifier::InterleavingError, transaction_effects::witness::WitLedgerEffect}; + +pub fn h(n: u8) -> Hash { + // TODO: actual hashing + let mut bytes = [0u8; 32]; + bytes[0] = n; + Hash(bytes, std::marker::PhantomData) +} + +pub fn v(data: &[u8]) -> Value { + Value(data.to_vec()) +} + +fn mock_genesis() -> (Ledger, UtxoId, UtxoId, CoroutineId, CoroutineId) { + let input_hash_1 = h(10); + let input_hash_2 = h(11); + + // Create input UTXO IDs + let input_utxo_1 = UtxoId { + contract_hash: input_hash_1.clone(), + nonce: 0, + }; + let input_utxo_2 = UtxoId { + contract_hash: input_hash_2.clone(), + nonce: 0, + }; + + let mut ledger = Ledger { + utxos: HashMap::new(), + contract_counters: HashMap::new(), + utxo_to_coroutine: HashMap::new(), + ownership_registry: HashMap::new(), + }; + + let input_1_coroutine = CoroutineId { + creation_tx_hash: Hash([1u8; 32], PhantomData), + creation_output_index: 0, + }; + + let input_2_coroutine = CoroutineId { + creation_tx_hash: Hash([1u8; 32], PhantomData), + creation_output_index: 1, + }; + + ledger.utxos.insert( + input_utxo_1.clone(), + UtxoEntry { + state: CoroutineState { + pc: 0, + last_yield: v(b"spend_input_1"), + }, + contract_hash: input_hash_1.clone(), + }, + ); + ledger.utxos.insert( + input_utxo_2.clone(), + UtxoEntry { + state: CoroutineState { + pc: 0, + last_yield: v(b"spend_input_2"), + }, + contract_hash: input_hash_2.clone(), + }, + ); + + ledger + .utxo_to_coroutine + .insert(input_utxo_1.clone(), input_1_coroutine.clone()); + ledger + .utxo_to_coroutine + .insert(input_utxo_2.clone(), input_2_coroutine.clone()); + + // Set up contract counters + ledger.contract_counters.insert(input_hash_1.clone(), 1); + ledger.contract_counters.insert(input_hash_2.clone(), 1); + ledger.contract_counters.insert(h(1), 0); // coord_hash + ledger.contract_counters.insert(h(2), 0); // utxo_hash_a + ledger.contract_counters.insert(h(3), 0); // utxo_hash_b + + ( + ledger, + input_utxo_1, + input_utxo_2, + input_1_coroutine, + input_2_coroutine, + ) +} + +struct TransactionBuilder { + body: TransactionBody, + spending_proofs: Vec, + new_output_proofs: Vec, + coordination_scripts: Vec, +} + +impl TransactionBuilder { + fn new() -> Self { + Self { + body: TransactionBody { + inputs: vec![], + continuations: vec![], + new_outputs: vec![], + ownership_out: HashMap::new(), + coordination_scripts_keys: vec![], + entrypoint: 0, + }, + spending_proofs: vec![], + new_output_proofs: vec![], + coordination_scripts: vec![], + } + } + + fn with_input( + mut self, + utxo: UtxoId, + continuation: Option, + trace: Vec, + ) -> Self { + self.body.inputs.push(utxo); + self.body.continuations.push(continuation); + self.spending_proofs.push(ZkWasmProof { + host_calls_root: MockedLookupTableCommitment { trace }, + }); + self + } + + fn with_fresh_output(mut self, output: NewOutput, trace: Vec) -> Self { + self.body.new_outputs.push(output); + self.new_output_proofs.push(ZkWasmProof { + host_calls_root: MockedLookupTableCommitment { trace }, + }); + self + } + + fn with_coord_script(mut self, key: Hash, trace: Vec) -> Self { + self.body.coordination_scripts_keys.push(key); + self.coordination_scripts.push(ZkWasmProof { + host_calls_root: MockedLookupTableCommitment { trace }, + }); + self + } + + fn with_ownership(mut self, token: OutputRef, owner: OutputRef) -> Self { + self.body.ownership_out.insert(token, owner); + self + } + + fn with_entrypoint(mut self, entrypoint: usize) -> Self { + self.body.entrypoint = entrypoint; + self + } + + fn build(self) -> ProvenTransaction { + let witness = TransactionWitness { + spending_proofs: self.spending_proofs, + new_output_proofs: self.new_output_proofs, + interleaving_proof: ZkTransactionProof {}, + coordination_scripts: self.coordination_scripts, + }; + + ProvenTransaction { + body: self.body, + witness, + } + } +} + +fn mock_genesis_and_apply_tx(proven_tx: ProvenTransaction) -> Result { + let (ledger, _, _, _, _) = mock_genesis(); + ledger.apply_transaction(&proven_tx) +} + +#[test] +fn test_transaction_with_coord_and_utxos() { + // This test simulates a complex transaction involving 2 input UTXOs, 2 new UTXOs, + // and 1 coordination script that orchestrates the control flow. + // The diagram below shows the lifecycle of each process: `(input)` marks a UTXO + // that is consumed by the transaction, and `(output)` marks one that is + // created by the transaction. P1 is burned, so it is an input but not an output. + // + // P4 (Coord) P0 (In 1) P1 (In 2) P2 (New) P3 (New) + // | (input) (input) | | + // (entrypoint) | | | | + // |---NewUtxo---|-----------------|----------------->(created) | + // |---NewUtxo---|-----------------|-----------------|-------------->|(created) + // | | | | | + // |---Resume--->| (spend) | | | + // |<--Yield-----| (continue) | | | + // | | | | | + // |---Resume--------------------->| (spend) | | + // |<--Burn------------------------| | | + // | | | | | + // |---Resume--------------------------------------->| | + // |<--Yield-----------------------------------------| | + // | | | | | + // |---Resume------------------------------------------------------->| + // |<--Yield---------------------------------------------------------| + // | | | | | + // (end) (output) X (burned) (output) (output) + + let (ledger, input_utxo_1, input_utxo_2, _, _) = mock_genesis(); + + let coord_hash = h(1); + let utxo_hash_a = h(2); + let utxo_hash_b = h(3); + + // Host call traces for each process in canonical order: inputs ++ new_outputs ++ coord_scripts + // Process 0: Input 1, Process 1: Input 2, Process 2: UTXO A (spawn), Process 3: UTXO B (spawn), Process 4: Coordination script + let input_1_trace = vec![WitLedgerEffect::Yield { + val: v(b"continued_1"), + ret: None, + id_prev: Some(ProcessId(4)), + }]; + + let input_2_trace = vec![WitLedgerEffect::Burn { + ret: v(b"burned_2"), + }]; + + let utxo_a_trace = vec![ + WitLedgerEffect::Bind { + owner_id: ProcessId(3), + }, + WitLedgerEffect::Yield { + val: v(b"done_a"), + ret: None, + id_prev: Some(ProcessId(4)), + }, + ]; + + let utxo_b_trace = vec![WitLedgerEffect::Yield { + val: v(b"done_b"), + ret: None, + id_prev: Some(ProcessId(4)), + }]; + + let coord_trace = vec![ + WitLedgerEffect::NewUtxo { + program_hash: utxo_hash_a.clone(), + val: v(b"init_a"), + id: ProcessId(2), + }, + WitLedgerEffect::NewUtxo { + program_hash: utxo_hash_b.clone(), + val: v(b"init_b"), + id: ProcessId(3), + }, + WitLedgerEffect::Resume { + target: ProcessId(0), + val: v(b"spend_input_1"), + ret: v(b"continued_1"), + id_prev: None, + }, + WitLedgerEffect::Resume { + target: ProcessId(1), + val: v(b"spend_input_2"), + ret: v(b"burned_2"), + id_prev: Some(ProcessId(0)), + }, + WitLedgerEffect::Resume { + target: ProcessId(2), + val: v(b"init_a"), + ret: v(b"done_a"), + id_prev: Some(ProcessId(1)), + }, + WitLedgerEffect::Resume { + target: ProcessId(3), + val: v(b"init_b"), + ret: v(b"done_b"), + id_prev: Some(ProcessId(2)), + }, + ]; + + let proven_tx = TransactionBuilder::new() + .with_input( + input_utxo_1, + Some(CoroutineState { + pc: 1, + last_yield: v(b"continued_1"), + }), + input_1_trace, + ) + .with_input(input_utxo_2, None, input_2_trace) + .with_fresh_output( + NewOutput { + state: CoroutineState { + pc: 0, + last_yield: v(b"utxo_a_state"), + }, + contract_hash: utxo_hash_a.clone(), + }, + utxo_a_trace, + ) + .with_fresh_output( + NewOutput { + state: CoroutineState { + pc: 0, + last_yield: v(b"utxo_b_state"), + }, + contract_hash: utxo_hash_b.clone(), + }, + utxo_b_trace, + ) + .with_coord_script(coord_hash, coord_trace) + .with_ownership(OutputRef(2), OutputRef(3)) // utxo_a owned by utxo_b + .with_entrypoint(4) + .build(); + + let ledger = ledger.apply_transaction(&proven_tx).unwrap(); + + // Verify final ledger state + assert_eq!(ledger.utxos.len(), 3); // 1 continuation + 2 new outputs + assert_eq!(ledger.ownership_registry.len(), 1); // UTXO A is owned by UTXO B +} + +#[test] +fn test_effect_handlers() { + // Create a transaction with: + // - 1 coordination script (process 1) that acts as an effect handler + // - 1 new UTXO (process 0) that calls the effect handler + // + // Roughly models this: + // + // interface Interface { + // Effect(int): int + // } + // + // utxo Utxo { + // main { + // raise Interface::Effect(42); + // } + // } + // + // script { + // fn main() { + // let utxo = Utxo::new(); + // + // try { + // utxo.resume(utxo); + // } + // with Interface { + // do Effect(x) = { + // resume(43) + // } + // } + // } + // } + // + // This test simulates a coordination script acting as an algebraic effect handler + // for a UTXO. The UTXO "raises" an effect by calling the handler, and the + // handler resumes the UTXO with the result. + // + // P1 (Coord/Handler) P0 (UTXO) + // | | + // (entrypoint) | + // | | + // InstallHandler (self) | + // | | + // NewUtxo ---------------->(P0 created) + // (val="init_utxo") | + // | | + // Resume ----------------->| + // (val="init_utxo") | + // | Input (val="init_utxo", caller=P1) + // | ProgramHash(P1) -> (attest caller) + // | GetHandlerFor -> P1 + // |<----------------- Resume (Effect call) + // | (val="Interface::Effect(42)") + //(handles effect) | + // | | + // Resume ----------------->| (Resume with result) + //(val="Interface::EffectResponse(43)") + // | | + // |<----------------- Yield + // | (val="utxo_final") + //UninstallHandler (self) | + // | | + // (end) | + + let coord_hash = h(1); + let utxo_hash = h(2); + let interface_id = h(42); + + // Host call traces for each process in canonical order: (no inputs) ++ new_outputs ++ coord_scripts + // Process 0: UTXO, Process 1: Coordination script + let utxo_trace = vec![ + WitLedgerEffect::Input { + val: v(b"init_utxo"), + caller: ProcessId(1), + }, + WitLedgerEffect::ProgramHash { + target: ProcessId(1), + program_hash: coord_hash.clone(), // assert coord_script hash == h(1) + }, + WitLedgerEffect::GetHandlerFor { + interface_id: interface_id.clone(), + handler_id: ProcessId(1), + }, + WitLedgerEffect::Resume { + target: ProcessId(1), + val: v(b"Interface::Effect(42)"), // request + ret: v(b"Interface::EffectResponse(43)"), // expected response + id_prev: Some(ProcessId(1)), + }, + WitLedgerEffect::Yield { + val: v(b"utxo_final"), + ret: None, + id_prev: Some(ProcessId(1)), + }, + ]; + + let coord_trace = vec![ + WitLedgerEffect::InstallHandler { + interface_id: interface_id.clone(), + }, + WitLedgerEffect::NewUtxo { + program_hash: h(2), + val: v(b"init_utxo"), + id: ProcessId(0), + }, + WitLedgerEffect::Resume { + target: ProcessId(0), + val: v(b"init_utxo"), + ret: v(b"Interface::Effect(42)"), // expected request + id_prev: None, + }, + WitLedgerEffect::Resume { + target: ProcessId(0), + val: v(b"Interface::EffectResponse(43)"), // response sent + ret: v(b"utxo_final"), + id_prev: Some(ProcessId(0)), + }, + WitLedgerEffect::UninstallHandler { interface_id }, + ]; + + let proven_tx = TransactionBuilder::new() + .with_fresh_output( + NewOutput { + state: CoroutineState { + pc: 0, + last_yield: v(b"utxo_state"), + }, + contract_hash: utxo_hash.clone(), + }, + utxo_trace, + ) + .with_coord_script(coord_hash, coord_trace) + .with_entrypoint(1) + .build(); + + let ledger = Ledger { + utxos: HashMap::new(), + contract_counters: HashMap::new(), + utxo_to_coroutine: HashMap::new(), + ownership_registry: HashMap::new(), + }; + + let ledger = ledger.apply_transaction(&proven_tx).unwrap(); + + assert_eq!(ledger.utxos.len(), 1); // 1 new UTXO + assert_eq!(ledger.ownership_registry.len(), 0); // No ownership relationships +} + +#[test] +fn test_burn_with_continuation_fails() { + let (_, input_utxo_1, _, _, _) = mock_genesis(); + let tx = TransactionBuilder::new() + .with_input( + input_utxo_1, + Some(CoroutineState { + pc: 1, + last_yield: v(b"continued"), + }), + vec![WitLedgerEffect::Burn { ret: v(b"burned") }], + ) + .with_entrypoint(0) + .build(); + let result = mock_genesis_and_apply_tx(tx); + assert!(matches!( + result, + Err(VerificationError::InterleavingProofError( + InterleavingError::UtxoShouldNotBurn(_) + )) + )); +} + +#[test] +fn test_utxo_resumes_utxo_fails() { + let (_, input_utxo_1, input_utxo_2, _, _) = mock_genesis(); + let tx = TransactionBuilder::new() + .with_input( + input_utxo_1, + None, + vec![WitLedgerEffect::Resume { + target: ProcessId(1), + val: v(b""), + ret: v(b""), + id_prev: None, + }], + ) + .with_input(input_utxo_2, None, vec![]) + .with_entrypoint(0) + .build(); + let result = mock_genesis_and_apply_tx(tx); + assert!(matches!( + result, + Err(VerificationError::InterleavingProofError( + InterleavingError::UtxoResumesUtxo { .. } + )) + )); +} + +#[test] +fn test_continuation_without_yield_fails() { + let (_, input_utxo_1, _, _, _) = mock_genesis(); + let tx = TransactionBuilder::new() + .with_input( + input_utxo_1, + Some(CoroutineState { + pc: 1, + last_yield: v(b"continued"), + }), + vec![], + ) + .with_entrypoint(0) + .build(); + let result = mock_genesis_and_apply_tx(tx); + assert!(matches!( + result, + Err(VerificationError::InterleavingProofError( + InterleavingError::UtxoNotFinalized(_) + )) + )); +} + +#[test] +fn test_unbind_not_owner_fails() { + let (_, input_utxo_1, input_utxo_2, _, _) = mock_genesis(); + let tx = TransactionBuilder::new() + .with_input(input_utxo_1, None, vec![]) + .with_input( + input_utxo_2, + None, + vec![WitLedgerEffect::Unbind { + token_id: ProcessId(0), + }], + ) + .with_entrypoint(1) + .build(); + let result = mock_genesis_and_apply_tx(tx); + assert!(matches!( + result, + Err(VerificationError::InterleavingProofError( + InterleavingError::UnbindNotOwner { .. } + )) + )); +} + +#[test] +fn test_duplicate_input_utxo_fails() { + let input_id = UtxoId { + contract_hash: h(1), + nonce: 0, + }; + + let mut utxos = HashMap::new(); + + utxos.insert( + input_id.clone(), + UtxoEntry { + state: CoroutineState { + pc: 0, + last_yield: Value::nil(), + }, + contract_hash: h(1), + }, + ); + + let mut contract_counters = HashMap::new(); + + contract_counters.insert(h(1), 0); + + let mut utxo_to_coroutine = HashMap::new(); + + utxo_to_coroutine.insert( + input_id.clone(), + CoroutineId { + creation_tx_hash: Hash([1u8; 32], PhantomData), + creation_output_index: 0, + }, + ); + + let ledger = Ledger { + utxos, + contract_counters, + utxo_to_coroutine, + ownership_registry: HashMap::new(), + }; + + let coord_hash = h(42); + let tx = TransactionBuilder::new() + .with_input( + input_id.clone(), + None, + vec![WitLedgerEffect::Burn { ret: Value::nil() }], + ) + .with_input( + input_id.clone(), + None, + vec![WitLedgerEffect::Burn { ret: Value::nil() }], + ) + .with_coord_script( + coord_hash, + vec![ + WitLedgerEffect::Resume { + target: 0.into(), + val: Value::nil(), + ret: Value::nil(), + id_prev: None, + }, + WitLedgerEffect::Resume { + target: 1.into(), + val: Value::nil(), + ret: Value::nil(), + id_prev: Some(0.into()), + }, + ], + ) + .with_entrypoint(2) + .build(); + + let result = ledger.apply_transaction(&tx); + + assert!(matches!(result, Err(VerificationError::InputNotFound))); + + let tx = TransactionBuilder::new() + .with_input( + input_id.clone(), + None, + vec![WitLedgerEffect::Burn { ret: Value::nil() }], + ) + .with_coord_script( + coord_hash, + vec![WitLedgerEffect::Resume { + target: 0.into(), + val: Value::nil(), + ret: Value::nil(), + id_prev: None, + }], + ) + .with_entrypoint(1) + .build(); + + let _ledger = ledger.apply_transaction(&tx).unwrap(); +} diff --git a/starstream_mock_ledger/src/transaction_effects/instance.rs b/starstream_mock_ledger/src/transaction_effects/instance.rs new file mode 100644 index 00000000..246906e7 --- /dev/null +++ b/starstream_mock_ledger/src/transaction_effects/instance.rs @@ -0,0 +1,77 @@ +use crate::{ + Hash, MockedLookupTableCommitment, WasmModule, mocked_verifier::InterleavingError, + transaction_effects::ProcessId, +}; + +// this mirrors the configuration described in SEMANTICS.md +pub struct InterleavingInstance { + /// Digest of all per-process host call tables the circuit is wired to. + /// One per wasm proof. + pub host_calls_roots: Vec, + #[allow(dead_code)] + pub host_calls_lens: Vec, + + /// Process table in canonical order: inputs, new_outputs, coord scripts. + pub process_table: Vec>, + pub is_utxo: Vec, + + /// Burned/continuation mask for inputs (length = #inputs). + pub must_burn: Vec, + + /// Offsets into the process table + pub n_inputs: usize, + pub n_new: usize, + pub n_coords: usize, + + /// Initial ownership snapshot for inputs IN THE TRANSACTION. + /// + /// This has len == process_table + /// + /// process[i] == Some(j) means that utxo i is owned by j at the beginning of + /// the transaction. + /// + /// None means not owned. + pub ownership_in: Vec>, + + /// Final ownership snapshot for utxos IN THE TRANSACTION. + /// + /// This has len == process_table + /// + /// final state of the ownership graph (new ledger state). + pub ownership_out: Vec>, + + /// First coordination script + pub entrypoint: ProcessId, +} + +impl InterleavingInstance { + pub fn check_shape(&self) -> Result<(), InterleavingError> { + // ---------- shape checks ---------- + // TODO: a few of these may be redundant + // + // the data layout is still a bit weird + let n = self.process_table.len(); + + if self.is_utxo.len() != n { + return Err(InterleavingError::Shape("is_utxo len != process_table len")); + } + + if self.ownership_in.len() != (self.n_inputs + self.n_new) + || self.ownership_out.len() != (self.n_inputs + self.n_new) + { + return Err(InterleavingError::Shape( + "ownership_* len != process_table len", + )); + } + + if self.entrypoint.0 >= n { + return Err(InterleavingError::BadPid(self.entrypoint)); + } + + if self.must_burn.len() != self.n_inputs { + return Err(InterleavingError::Shape("burned len != n_inputs")); + } + + Ok(()) + } +} diff --git a/starstream_mock_ledger/src/transaction_effects/mod.rs b/starstream_mock_ledger/src/transaction_effects/mod.rs new file mode 100644 index 00000000..155be711 --- /dev/null +++ b/starstream_mock_ledger/src/transaction_effects/mod.rs @@ -0,0 +1,30 @@ +use crate::Hash; + +pub mod instance; +pub mod witness; + +#[derive(PartialEq, Eq, Hash, Clone, Debug)] +pub struct Blob(Vec); + +pub type InterfaceId = Hash; + +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] +pub struct ProcessId(pub usize); + +impl std::fmt::Display for ProcessId { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "{}", self.0) + } +} + +impl From for ProcessId { + fn from(value: usize) -> Self { + ProcessId(value) + } +} + +impl From for usize { + fn from(value: ProcessId) -> Self { + value.0 + } +} diff --git a/starstream_mock_ledger/src/transaction_effects/witness.rs b/starstream_mock_ledger/src/transaction_effects/witness.rs new file mode 100644 index 00000000..b5d26746 --- /dev/null +++ b/starstream_mock_ledger/src/transaction_effects/witness.rs @@ -0,0 +1,68 @@ +use crate::{ + Hash, Value, WasmModule, + transaction_effects::{InterfaceId, ProcessId}, +}; + +/// One entry in the per-process trace. +// +// Note that since these are witnesses, they include the inputs and the outputs +// for each operation. +#[derive(Clone, Debug, PartialEq, Eq)] +pub enum WitLedgerEffect { + Resume { + target: ProcessId, + val: Value, + ret: Value, + id_prev: Option, + }, + Yield { + val: Value, + ret: Option, + id_prev: Option, + }, + ProgramHash { + target: ProcessId, + program_hash: Hash, + }, + NewUtxo { + program_hash: Hash, + val: Value, + id: ProcessId, + }, + NewCoord { + program_hash: Hash, + val: Value, + id: ProcessId, + }, + // Scoped handlers for custom effects + // + // coord only (mainly because utxos can't resume utxos anyway) + InstallHandler { + interface_id: InterfaceId, + }, + UninstallHandler { + interface_id: InterfaceId, + }, + GetHandlerFor { + interface_id: InterfaceId, + handler_id: ProcessId, + }, + + // UTXO-only + Burn { + ret: Value, + }, + + Input { + val: Value, + caller: ProcessId, + }, + + // Tokens + Bind { + owner_id: ProcessId, + }, + Unbind { + token_id: ProcessId, + }, +} From 25d75b01e67bb3ffc5dfa15fb4e8448f60fe8888 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Mon, 29 Dec 2025 14:11:50 -0300 Subject: [PATCH 032/152] circuit: circuit and memory api refactors Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/Cargo.toml | 11 +- starstream_ivc_proto/src/circuit.rs | 18 +- starstream_ivc_proto/src/lib.rs | 45 +++- starstream_ivc_proto/src/memory/dummy.rs | 15 +- starstream_ivc_proto/src/memory/mod.rs | 39 ++- .../src/memory/nebula/gadget.rs | 233 ++++++++++++------ starstream_ivc_proto/src/memory/nebula/ic.rs | 116 +++++---- starstream_ivc_proto/src/memory/nebula/mod.rs | 84 ++++--- .../src/memory/nebula/tracer.rs | 55 +++-- starstream_ivc_proto/src/neo.rs | 14 +- 10 files changed, 412 insertions(+), 218 deletions(-) diff --git a/starstream_ivc_proto/Cargo.toml b/starstream_ivc_proto/Cargo.toml index 2f63c312..83288d6a 100644 --- a/starstream_ivc_proto/Cargo.toml +++ b/starstream_ivc_proto/Cargo.toml @@ -13,11 +13,12 @@ ark-poly-commit = "0.5.0" tracing = { version = "0.1", default-features = false, features = [ "attributes" ] } tracing-subscriber = { version = "0.3", features = ["env-filter"] } -neo-fold = { git = "https://github.com/nicarq/Nightstream.git", rev = "5af5fce2058917ac9f3518e1c689ae1d81656790", features = ["fs-guard", "debug-logs"] } -neo-math = { git = "https://github.com/nicarq/Nightstream.git", rev = "5af5fce2058917ac9f3518e1c689ae1d81656790" } -neo-ccs = { git = "https://github.com/nicarq/Nightstream.git", rev = "5af5fce2058917ac9f3518e1c689ae1d81656790" } -neo-ajtai = { git = "https://github.com/nicarq/Nightstream.git", rev = "5af5fce2058917ac9f3518e1c689ae1d81656790" } -neo-params = { git = "https://github.com/nicarq/Nightstream.git", rev = "5af5fce2058917ac9f3518e1c689ae1d81656790" } +neo-fold = { git = "https://github.com/nicarq/Nightstream.git", rev = "99c2cdbe2cd8e91396edd128bfe202590aac6d3e", features = ["fs-guard"] } +neo-math = { git = "https://github.com/nicarq/Nightstream.git", rev = "99c2cdbe2cd8e91396edd128bfe202590aac6d3e" } +neo-ccs = { git = "https://github.com/nicarq/Nightstream.git", rev = "99c2cdbe2cd8e91396edd128bfe202590aac6d3e" } +neo-ajtai = { git = "https://github.com/nicarq/Nightstream.git", rev = "99c2cdbe2cd8e91396edd128bfe202590aac6d3e" } +neo-params = { git = "https://github.com/nicarq/Nightstream.git", rev = "99c2cdbe2cd8e91396edd128bfe202590aac6d3e" } + p3-goldilocks = { version = "0.3.0", default-features = false } p3-field = "0.3.0" diff --git a/starstream_ivc_proto/src/circuit.rs b/starstream_ivc_proto/src/circuit.rs index 7ae87c36..f789d83d 100644 --- a/starstream_ivc_proto/src/circuit.rs +++ b/starstream_ivc_proto/src/circuit.rs @@ -16,14 +16,14 @@ use std::marker::PhantomData; use tracing::debug_span; /// The RAM part is an array of ProgramState -pub const RAM_SEGMENT: u64 = 9u64; +pub const RAM_SEGMENT: u64 = 1u64; /// Utxos don't have contiguous ids, so we use these to map ids to contiguous /// addresses. -pub const UTXO_INDEX_MAPPING_SEGMENT: u64 = 10u64; +pub const UTXO_INDEX_MAPPING_SEGMENT: u64 = 2u64; /// The expected output for each utxo. /// This is public, so the verifier can just set the ROM to the values it /// expects. -pub const OUTPUT_CHECK_SEGMENT: u64 = 11u64; +pub const OUTPUT_CHECK_SEGMENT: u64 = 3u64; pub const PROGRAM_STATE_SIZE: u64 = 4u64 // state @@ -288,7 +288,7 @@ impl Wires { &(yield_resume_switch | utxo_yield_switch), &Address { addr: coord_address.clone(), - tag: RAM_SEGMENT, + tag: FpVar::new_constant(cs.clone(), F::from(RAM_SEGMENT))?, }, )?; @@ -298,7 +298,7 @@ impl Wires { check_utxo_output_switch, &Address { addr: utxo_address.clone(), - tag: RAM_SEGMENT, + tag: FpVar::new_constant(cs.clone(), F::from(RAM_SEGMENT))?, }, )?; @@ -315,7 +315,7 @@ impl Wires { coord_conditional_write_switch, &Address { addr: coord_address.clone(), - tag: RAM_SEGMENT, + tag: FpVar::new_constant(cs.clone(), F::from(RAM_SEGMENT))?, }, &coord_write_wires.to_var_vec(), )?; @@ -327,7 +327,7 @@ impl Wires { &utxo_conditional_write_switch, &Address { addr: utxo_address.clone(), - tag: RAM_SEGMENT, + tag: FpVar::new_constant(cs.clone(), F::from(RAM_SEGMENT))?, }, &utxo_write_wires.to_var_vec(), )?; @@ -344,7 +344,7 @@ impl Wires { &!nop_switch, &Address { addr: (&utxo_address + &utxos_len), - tag: UTXO_INDEX_MAPPING_SEGMENT, + tag: FpVar::new_constant(cs.clone(), F::from(UTXO_INDEX_MAPPING_SEGMENT))?, }, )?; @@ -356,7 +356,7 @@ impl Wires { check_utxo_output_switch, &Address { addr: utxo_output_address, - tag: OUTPUT_CHECK_SEGMENT, + tag: FpVar::new_constant(cs.clone(), F::from(OUTPUT_CHECK_SEGMENT))?, }, )?; diff --git a/starstream_ivc_proto/src/lib.rs b/starstream_ivc_proto/src/lib.rs index 17a53d29..60e5f34f 100644 --- a/starstream_ivc_proto/src/lib.rs +++ b/starstream_ivc_proto/src/lib.rs @@ -17,6 +17,7 @@ use neo_params::NeoParams; use crate::circuit::InterRoundWires; use crate::memory::IVCMemory; +use crate::nebula::tracer::{NebulaMemory, NebulaMemoryParams}; use crate::neo::arkworks_to_neo_ccs; use crate::{memory::DummyMemory, neo::StepCircuitNeo}; use ark_relations::gr1cs::{ConstraintSystem, SynthesisError}; @@ -132,9 +133,9 @@ impl Transaction>> { } pub fn prove(&self) -> Result, SynthesisError> { - let shape_ccs = ccs_step_shape()?; + let shape_ccs = ccs_step_shape(self.utxo_deltas.clone())?; - let tx = StepCircuitBuilder::>::new( + let tx = StepCircuitBuilder::>::new( self.utxo_deltas.clone(), self.proof_like.clone(), ); @@ -143,23 +144,32 @@ impl Transaction>> { let n = shape_ccs.n.max(shape_ccs.m); - let mut f_circuit = StepCircuitNeo::new(tx, shape_ccs.clone()); + let mut f_circuit = StepCircuitNeo::new( + tx, + shape_ccs.clone(), + NebulaMemoryParams { + // the proof system is still too slow to run the poseidon commitments, especially when iterating. + unsound_disable_poseidon_commitment: true, + }, + ); // since we are using square matrices, n = m neo::setup_ajtai_for_dims(n); let l = AjtaiSModule::from_global_for_dims(neo_math::D, n).expect("AjtaiSModule init"); - let params = NeoParams::goldilocks_auto_r1cs_ccs(n) + let mut params = NeoParams::goldilocks_auto_r1cs_ccs(n) .expect("goldilocks_auto_r1cs_ccs should find valid params"); - let mut session = FoldingSession::new(FoldingMode::PaperExact, params, l.clone()); + params.b = 3; + + let mut session = FoldingSession::new(FoldingMode::Optimized, params, l.clone()); for _i in 0..num_iters { - session.prove_step(&mut f_circuit, &()).unwrap(); + session.add_step(&mut f_circuit, &()).unwrap(); } - let run = session.finalize(&shape_ccs).unwrap(); + let run = session.fold_and_prove(&shape_ccs).unwrap(); let mcss_public = session.mcss_public(); let ok = session @@ -174,7 +184,9 @@ impl Transaction>> { } } -fn ccs_step_shape() -> Result, SynthesisError> { +fn ccs_step_shape( + utxo_deltas: BTreeMap, +) -> Result, SynthesisError> { let _span = tracing::debug_span!("dummy circuit").entered(); tracing::debug!("constructing nop circuit to get initial (stable) ccs shape"); @@ -182,12 +194,19 @@ fn ccs_step_shape() -> Result, SynthesisError> { let cs = ConstraintSystem::new_ref(); cs.set_optimization_goal(ark_relations::gr1cs::OptimizationGoal::Constraints); - let mut dummy_tx = StepCircuitBuilder::>::new( - Default::default(), - vec![LedgerOperation::Nop {}], - ); + // let mut dummy_tx = StepCircuitBuilder::>::new( + // Default::default(), + // vec![LedgerOperation::Nop {}], + // ); + // + let mut dummy_tx = + StepCircuitBuilder::>::new(utxo_deltas, vec![LedgerOperation::Nop {}]); + + // let mb = dummy_tx.trace_memory_ops(()); + let mb = dummy_tx.trace_memory_ops(NebulaMemoryParams { + unsound_disable_poseidon_commitment: true, + }); - let mb = dummy_tx.trace_memory_ops(()); let irw = InterRoundWires::new(dummy_tx.rom_offset()); dummy_tx.make_step_circuit(0, &mut mb.constraints(), cs.clone(), irw)?; diff --git a/starstream_ivc_proto/src/memory/dummy.rs b/starstream_ivc_proto/src/memory/dummy.rs index 8d674a8b..95a05335 100644 --- a/starstream_ivc_proto/src/memory/dummy.rs +++ b/starstream_ivc_proto/src/memory/dummy.rs @@ -1,6 +1,7 @@ use super::Address; use super::IVCMemory; use super::IVCMemoryAllocated; +use crate::memory::AllocatedAddress; use ark_ff::PrimeField; use ark_r1cs_std::GR1CSVar as _; use ark_r1cs_std::alloc::AllocVar as _; @@ -112,16 +113,16 @@ impl IVCMemoryAllocated for DummyMemoryConstraints { fn conditional_read( &mut self, cond: &Boolean, - address: &Address>, + address: &AllocatedAddress, ) -> Result>, SynthesisError> { let _guard = tracing::debug_span!("conditional_read").entered(); - let mem = self.mems.get(&address.tag).copied().unwrap(); + let mem = self.mems.get(&address.tag_value()).copied().unwrap(); if cond.value().unwrap() { let address = Address { - addr: address.addr.value().unwrap().into_bigint().as_ref()[0], - tag: address.tag, + addr: address.address_value(), + tag: address.tag_value(), }; let vals = self.reads.get_mut(&address).unwrap(); @@ -156,15 +157,15 @@ impl IVCMemoryAllocated for DummyMemoryConstraints { fn conditional_write( &mut self, cond: &Boolean, - address: &Address>, + address: &AllocatedAddress, vals: &[FpVar], ) -> Result<(), SynthesisError> { let _guard = tracing::debug_span!("conditional_write").entered(); if cond.value().unwrap() { let address = Address { - addr: address.addr.value().unwrap().into_bigint().as_ref()[0], - tag: address.tag, + addr: address.address_value(), + tag: address.tag_value(), }; let writes = self.writes.get_mut(&address).unwrap(); diff --git a/starstream_ivc_proto/src/memory/mod.rs b/starstream_ivc_proto/src/memory/mod.rs index 351f0f65..24fb6af2 100644 --- a/starstream_ivc_proto/src/memory/mod.rs +++ b/starstream_ivc_proto/src/memory/mod.rs @@ -1,6 +1,6 @@ use crate::F; use ark_ff::PrimeField; -use ark_r1cs_std::{alloc::AllocVar, fields::fp::FpVar, prelude::Boolean}; +use ark_r1cs_std::{GR1CSVar as _, alloc::AllocVar, fields::fp::FpVar, prelude::Boolean}; use ark_relations::gr1cs::{ConstraintSystemRef, SynthesisError}; pub use dummy::DummyMemory; @@ -8,23 +8,42 @@ mod dummy; pub mod nebula; #[derive(PartialOrd, Ord, PartialEq, Eq, Debug, Clone)] -pub struct Address { - pub addr: F, - pub tag: u64, +pub struct Address { + pub tag: T, + pub addr: A, } -impl Address { +pub type AllocatedAddress = Address, FpVar>; + +impl Address { pub(crate) fn allocate( &self, cs: ConstraintSystemRef, - ) -> Result>, SynthesisError> { + ) -> Result { Ok(Address { - addr: FpVar::new_witness(cs, || Ok(F::from(self.addr)))?, - tag: self.tag, + addr: FpVar::new_witness(cs.clone(), || Ok(F::from(self.addr)))?, + tag: FpVar::new_witness(cs, || Ok(F::from(self.tag)))?, }) } } +impl AllocatedAddress { + pub fn address_value(&self) -> u64 { + self.addr.value().unwrap().into_bigint().as_ref()[0] + } + + pub fn tag_value(&self) -> u64 { + self.tag.value().unwrap().into_bigint().as_ref()[0] + } + + pub fn values(&self) -> Address { + Address { + tag: self.tag_value(), + addr: self.address_value(), + } + } +} + pub trait IVCMemory { type Allocator: IVCMemoryAllocated; type Params; @@ -49,13 +68,13 @@ pub trait IVCMemoryAllocated { fn conditional_read( &mut self, cond: &Boolean, - address: &Address>, + address: &AllocatedAddress, ) -> Result>, SynthesisError>; fn conditional_write( &mut self, cond: &Boolean, - address: &Address>, + address: &AllocatedAddress, vals: &[FpVar], ) -> Result<(), SynthesisError>; } diff --git a/starstream_ivc_proto/src/memory/nebula/gadget.rs b/starstream_ivc_proto/src/memory/nebula/gadget.rs index 9a87faf7..134bd7c3 100644 --- a/starstream_ivc_proto/src/memory/nebula/gadget.rs +++ b/starstream_ivc_proto/src/memory/nebula/gadget.rs @@ -1,19 +1,22 @@ use super::Address; -use super::MemOp; use super::ic::{IC, ICPlain}; +use super::{MemOp, MemOpAllocated}; use crate::F; -use crate::memory::IVCMemoryAllocated; +use crate::goldilocks::FpGoldilocks; use crate::memory::nebula::tracer::NebulaMemoryParams; +use crate::memory::{AllocatedAddress, IVCMemoryAllocated}; use ark_ff::Field; use ark_ff::PrimeField; use ark_r1cs_std::GR1CSVar as _; use ark_r1cs_std::alloc::AllocVar as _; +use ark_r1cs_std::eq::EqGadget; use ark_r1cs_std::fields::fp::FpVar; use ark_r1cs_std::prelude::Boolean; use ark_relations::gr1cs::ConstraintSystemRef; use ark_relations::gr1cs::SynthesisError; use std::collections::BTreeMap; use std::collections::VecDeque; +use std::iter::repeat_with; pub struct NebulaMemoryConstraints { pub(crate) cs: Option>, @@ -39,15 +42,20 @@ pub struct NebulaMemoryConstraints { pub(crate) current_step: usize, pub(crate) params: NebulaMemoryParams, + pub(crate) scan_batch_size: usize, pub(crate) c0: F, pub(crate) c0_wire: Option>, pub(crate) c1: F, pub(crate) c1_wire: Option>, + pub(crate) c1_powers_cache: Option>>, pub(crate) multiset_fingerprints: FingerPrintPreWires, pub(crate) fingerprint_wires: Option, + pub(crate) scan_monotonic_last_addr: Option>, + pub(crate) scan_monotonic_last_addr_wires: Option, + pub(crate) debug_sets: Multisets, } @@ -152,6 +160,24 @@ impl IVCMemoryAllocated for NebulaMemoryConstraints { self.c1_wire .replace(FpVar::new_witness(cs.clone(), || Ok(self.c1))?); + // Precompute and cache c1 powers + let max_segment_size = self.max_segment_size() as usize; + let c1_wire = self.c1_wire.as_ref().unwrap(); + let mut c1_powers = Vec::with_capacity(max_segment_size); + let mut c1_p = c1_wire.clone(); + for _ in 0..max_segment_size { + c1_p = c1_p * c1_wire; + c1_powers.push(c1_p.clone()); + } + self.c1_powers_cache = Some(c1_powers); + + self.scan_monotonic_last_addr_wires.replace( + self.scan_monotonic_last_addr + .clone() + .unwrap_or(Address { addr: 0, tag: 0 }) + .allocate(cs.clone())?, + ); + self.scan(cs)?; Ok(()) @@ -159,6 +185,7 @@ impl IVCMemoryAllocated for NebulaMemoryConstraints { fn finish_step(&mut self, is_last_step: bool) -> Result<(), SynthesisError> { self.cs = None; + self.c1_powers_cache = None; self.current_step += 1; @@ -167,6 +194,9 @@ impl IVCMemoryAllocated for NebulaMemoryConstraints { self.multiset_fingerprints = self.fingerprint_wires.take().unwrap().values()?; + self.scan_monotonic_last_addr + .replace(self.scan_monotonic_last_addr_wires.take().unwrap().values()); + if is_last_step { assert!( self.ic_rs_ws @@ -209,7 +239,7 @@ impl IVCMemoryAllocated for NebulaMemoryConstraints { fn conditional_read( &mut self, cond: &Boolean, - address: &Address>, + address: &AllocatedAddress, ) -> Result>, SynthesisError> { let _guard = tracing::debug_span!("nebula_conditional_read").entered(); @@ -240,7 +270,7 @@ impl IVCMemoryAllocated for NebulaMemoryConstraints { fn conditional_write( &mut self, cond: &Boolean, - address: &Address>, + address: &AllocatedAddress, vals: &[FpVar], ) -> Result<(), SynthesisError> { let _guard = tracing::debug_span!("nebula_conditional_write").entered(); @@ -263,8 +293,12 @@ impl IVCMemoryAllocated for NebulaMemoryConstraints { self.update_ic_with_ops(cond, address, &rv, &wv)?; - for ((_, val), expected) in vals.iter().enumerate().zip(wv.values.iter()) { - assert_eq!(val.value().unwrap(), expected.value().unwrap()); + for ((index, val), expected) in vals.iter().enumerate().zip(wv.values.iter()) { + assert_eq!( + val.value().unwrap(), + expected.value().unwrap(), + "write doesn't match expectation at index {index}." + ); } tracing::debug!( @@ -288,15 +322,15 @@ impl NebulaMemoryConstraints { Ok(()) } - fn get_address_val(&self, address: &Address>) -> Address { + fn get_address_val(&self, address: &AllocatedAddress) -> Address { Address { - addr: address.addr.value().unwrap().into_bigint().as_ref()[0], - tag: address.tag, + addr: address.address_value(), + tag: address.tag_value(), } } - fn get_mem_info(&self, address: &Address>) -> (u64, &'static str) { - self.mems.get(&address.tag).copied().unwrap() + fn get_mem_info(&self, address: &AllocatedAddress) -> (u64, &'static str) { + self.mems.get(&address.tag_value()).copied().unwrap() } fn get_read_op( @@ -304,7 +338,7 @@ impl NebulaMemoryConstraints { cond: &Boolean, address_val: &Address, mem_size: u64, - ) -> Result>, SynthesisError> { + ) -> Result, SynthesisError> { let cs = self.get_cs(); if cond.value()? { @@ -312,9 +346,9 @@ impl NebulaMemoryConstraints { a_reads .pop_front() .expect("no entry in read set") - .allocate(cs) + .allocate(cs, mem_size as usize) } else { - MemOp::padding(mem_size).allocate(cs) + MemOp::padding().allocate(cs, mem_size as usize) } } @@ -323,7 +357,7 @@ impl NebulaMemoryConstraints { cond: &Boolean, address_val: &Address, mem_size: u64, - ) -> Result>, SynthesisError> { + ) -> Result, SynthesisError> { let cs = self.get_cs(); if cond.value()? { @@ -331,87 +365,110 @@ impl NebulaMemoryConstraints { a_writes .pop_front() .expect("no entry in write set") - .allocate(cs) + .allocate(cs, mem_size as usize) } else { - MemOp::padding(mem_size).allocate(cs) + MemOp::padding().allocate(cs, mem_size as usize) } } fn update_ic_with_ops( &mut self, cond: &Boolean, - address: &Address>, - rv: &MemOp>, - wv: &MemOp>, + address: &AllocatedAddress, + rv: &MemOpAllocated, + wv: &MemOpAllocated, ) -> Result<(), SynthesisError> { - let cs = self.get_cs(); - Self::hash_avt( cond, &mut self.fingerprint_wires.as_mut().unwrap().rs, self.c0_wire.as_ref().unwrap(), - self.c1_wire.as_ref().unwrap(), - &cs, + self.c1_powers_cache.as_ref().unwrap(), &address, rv, &mut self.debug_sets.rs, )?; - self.step_ic_rs_ws - .as_mut() - .unwrap() - .increment(address, rv)?; + self.step_ic_rs_ws.as_mut().unwrap().increment( + address, + &rv, + self.params.unsound_disable_poseidon_commitment, + )?; Self::hash_avt( cond, &mut self.fingerprint_wires.as_mut().unwrap().ws, self.c0_wire.as_ref().unwrap(), - self.c1_wire.as_ref().unwrap(), - &cs, + self.c1_powers_cache.as_ref().unwrap(), &address, wv, &mut self.debug_sets.ws, )?; - self.step_ic_rs_ws - .as_mut() - .unwrap() - .increment(address, wv)?; + self.step_ic_rs_ws.as_mut().unwrap().increment( + address, + &wv, + self.params.unsound_disable_poseidon_commitment, + )?; Ok(()) } + fn max_segment_size(&mut self) -> u64 { + let max_segment_size = self.mems.values().map(|(sz, _)| sz).max().unwrap(); + *max_segment_size + } + fn scan(&mut self, cs: ConstraintSystemRef) -> Result<(), SynthesisError> { + let address_padding = Address { addr: 0, tag: 0 }; + let mem_padding = MemOp::padding(); + let max_segment_size = self.max_segment_size() as usize; + Ok( for (addr, is_v) in self .is .iter() - .skip(self.params.scan_batch_size * self.current_step) - .take(self.params.scan_batch_size) + .skip(self.scan_batch_size * self.current_step) + .chain(std::iter::repeat((&address_padding, &mem_padding))) + // TODO: padding + .take(self.scan_batch_size) { - let fs_v = self.fs.get(addr).unwrap(); + let fs_v = self.fs.get(addr).unwrap_or(&mem_padding); let address = addr.allocate(cs.clone())?; - let is_entry = is_v.allocate(cs.clone())?; - self.step_ic_is_fs - .as_mut() - .unwrap() - .increment(&address, &is_entry)?; + // ensure commitment is monotonic + // so that it's not possible to insert an address twice + // + // we get disjoint ranges anyway because of the segments so we + // can have different memories with different sizes, but each + // segment is contiguous + let last_addr = self.scan_monotonic_last_addr_wires.as_mut().unwrap(); + + enforce_monotonic_commitment(&cs, &address, last_addr)?; + + *last_addr = address.clone(); + + let is_entry = is_v.allocate(cs.clone(), max_segment_size)?; - let fs_entry = fs_v.allocate(cs.clone())?; + self.step_ic_is_fs.as_mut().unwrap().increment( + &address, + &is_entry, + self.params.unsound_disable_poseidon_commitment, + )?; - self.step_ic_is_fs - .as_mut() - .unwrap() - .increment(&address, &fs_entry)?; + let fs_entry = fs_v.allocate(cs.clone(), max_segment_size)?; + + self.step_ic_is_fs.as_mut().unwrap().increment( + &address, + &fs_entry, + self.params.unsound_disable_poseidon_commitment, + )?; Self::hash_avt( &Boolean::constant(true), &mut self.fingerprint_wires.as_mut().unwrap().is, self.c0_wire.as_ref().unwrap(), - self.c1_wire.as_ref().unwrap(), - &cs, + self.c1_powers_cache.as_ref().unwrap(), &address, &is_entry, &mut self.debug_sets.is, @@ -421,8 +478,7 @@ impl NebulaMemoryConstraints { &Boolean::constant(true), &mut self.fingerprint_wires.as_mut().unwrap().fs, self.c0_wire.as_ref().unwrap(), - self.c1_wire.as_ref().unwrap(), - &cs, + self.c1_powers_cache.as_ref().unwrap(), &address, &fs_entry, &mut self.debug_sets.fs, @@ -435,25 +491,28 @@ impl NebulaMemoryConstraints { cond: &Boolean, wire: &mut FpVar, c0: &FpVar, - c1: &FpVar, - cs: &ConstraintSystemRef, - address: &Address>, - vt: &MemOp>, - debug_set: &mut BTreeMap, MemOp>, + c1_powers: &[FpVar], + address: &AllocatedAddress, + vt: &MemOpAllocated, + debug_set: &mut BTreeMap, MemOp>, ) -> Result<(), SynthesisError> { - // TODO: I think this is incorrect, why isn't this allocated before? - let ts = FpVar::new_witness(cs.clone(), || Ok(F::from(vt.timestamp))).unwrap(); - let fingerprint = fingerprint(c0, c1, &ts, &address.addr, vt.values.as_ref())?; + let fingerprint = fingerprint_with_cached_powers( + c0, + c1_powers, + &vt.timestamp, + &address.addr, + vt.values.as_ref(), + )?; if cond.value()? { debug_set.insert( Address { addr: address.addr.value()?, - tag: address.tag, + tag: address.tag_value(), }, MemOp { values: vt.debug_values(), - timestamp: vt.timestamp, + timestamp: vt.timestamp.value()?.into_bigint().as_ref()[0], }, ); } @@ -464,21 +523,53 @@ impl NebulaMemoryConstraints { } } -fn fingerprint( +fn enforce_monotonic_commitment( + cs: &ConstraintSystemRef, + address: &Address, FpVar>, + last_addr: &mut Address, FpVar>, +) -> Result<(), SynthesisError> { + let same_segment = &address.tag.is_eq(&last_addr.tag)?; + + let next_segment = address + .tag + .is_eq(&(&last_addr.tag + FpVar::new_constant(cs.clone(), F::from(1))?))?; + + let is_padding = address + .tag + .is_eq(&FpVar::new_constant(cs.clone(), F::from(0))?)?; + + let segment_monotonic_constraint = same_segment | &next_segment | &is_padding; + + address.addr.conditional_enforce_equal( + &(&last_addr.addr + FpVar::new_constant(cs.clone(), F::from(1))?), + &(same_segment & !is_padding), + )?; + + segment_monotonic_constraint.enforce_equal(&Boolean::TRUE)?; + + Ok(()) +} + +fn fingerprint_with_cached_powers( c0: &FpVar, - c1: &FpVar, + c1_powers: &[FpVar], timestamp: &FpVar, addr: &FpVar, values: &[FpVar], ) -> Result, SynthesisError> { - let mut x = timestamp + c1 * addr; - - let mut c1_p = c1.clone(); - - for v in values { - c1_p = c1_p * c1; - - x += v * &c1_p; + let cs = c0.cs(); + + let mut x = timestamp + &c1_powers[0] * addr; + + for (v, c1_p) in values + .iter() + .cloned() + .chain(repeat_with(|| { + FpVar::new_witness(cs.clone(), || Ok(F::from(0))).unwrap() + })) + .zip(c1_powers.iter()) + { + x += v * c1_p; } Ok(c0 - x) diff --git a/starstream_ivc_proto/src/memory/nebula/ic.rs b/starstream_ivc_proto/src/memory/nebula/ic.rs index 713f3b58..de37862b 100644 --- a/starstream_ivc_proto/src/memory/nebula/ic.rs +++ b/starstream_ivc_proto/src/memory/nebula/ic.rs @@ -1,6 +1,8 @@ use super::Address; use super::MemOp; use crate::F; +use crate::memory::AllocatedAddress; +use crate::nebula::MemOpAllocated; use crate::poseidon2::compress; use ark_ff::AdditiveGroup as _; use ark_r1cs_std::GR1CSVar as _; @@ -19,30 +21,37 @@ impl ICPlain { Self { comm: [F::ZERO; 4] } } - pub fn increment(&mut self, a: &Address, vt: &MemOp) -> Result<(), SynthesisError> { - let hash_input = array::from_fn(|i| { - if i == 0 { - F::from(a.addr) - } else if i == 1 { - F::from(a.tag) - } else if i == 2 { - F::from(vt.timestamp) - } else { - vt.values.get(i - 3).copied().unwrap_or(F::ZERO) - } - }); - - let hash_to_field = crate::poseidon2::compress_trace(&hash_input)?; - - let concat = array::from_fn(|i| { - if i < 4 { - hash_to_field[i] - } else { - self.comm[i - 4] - } - }); - - self.comm = crate::poseidon2::compress_trace(&concat)?; + pub fn increment( + &mut self, + a: &Address, + vt: &MemOp, + unsound_make_nop: bool, + ) -> Result<(), SynthesisError> { + if !unsound_make_nop { + let hash_input = array::from_fn(|i| { + if i == 0 { + F::from(a.addr) + } else if i == 1 { + F::from(a.tag) + } else if i == 2 { + F::from(vt.timestamp) + } else { + vt.values.get(i - 3).copied().unwrap_or(F::ZERO) + } + }); + + let hash_to_field = crate::poseidon2::compress_trace(&hash_input)?; + + let concat = array::from_fn(|i| { + if i < 4 { + hash_to_field[i] + } else { + self.comm[i - 4] + } + }); + + self.comm = crate::poseidon2::compress_trace(&concat)?; + } Ok(()) } @@ -77,35 +86,38 @@ impl IC { pub fn increment( &mut self, - a: &Address>, - vt: &MemOp>, + a: &AllocatedAddress, + vt: &MemOpAllocated, + unsound_make_nop: bool, ) -> Result<(), SynthesisError> { - let cs = self.comm.cs(); - - let hash_to_field = compress(&array::from_fn(|i| { - if i == 0 { - a.addr.clone() - } else if i == 1 { - FpVar::new_witness(cs.clone(), || Ok(F::from(a.tag))).unwrap() - } else if i == 2 { - FpVar::new_witness(cs.clone(), || Ok(F::from(vt.timestamp))).unwrap() - } else { - vt.values - .get(i - 3) - .cloned() - .unwrap_or_else(|| FpVar::new_witness(cs.clone(), || Ok(F::ZERO)).unwrap()) - } - }))?; - - let concat = array::from_fn(|i| { - if i < 4 { - hash_to_field[i].clone() - } else { - self.comm[i - 4].clone() - } - }); - - self.comm = compress(&concat)?; + if !unsound_make_nop { + let cs = self.comm.cs(); + + let hash_to_field = compress(&array::from_fn(|i| { + if i == 0 { + a.addr.clone() + } else if i == 1 { + a.tag.clone() + } else if i == 2 { + vt.timestamp.clone() + } else { + vt.values + .get(i - 3) + .cloned() + .unwrap_or_else(|| FpVar::new_witness(cs.clone(), || Ok(F::ZERO)).unwrap()) + } + }))?; + + let concat = array::from_fn(|i| { + if i < 4 { + hash_to_field[i].clone() + } else { + self.comm[i - 4].clone() + } + }); + + self.comm = compress(&concat)?; + } Ok(()) } diff --git a/starstream_ivc_proto/src/memory/nebula/mod.rs b/starstream_ivc_proto/src/memory/nebula/mod.rs index adf51394..edc1440d 100644 --- a/starstream_ivc_proto/src/memory/nebula/mod.rs +++ b/starstream_ivc_proto/src/memory/nebula/mod.rs @@ -4,12 +4,13 @@ pub mod tracer; use super::Address; use crate::F; -use ark_ff::{AdditiveGroup as _, PrimeField}; +use ark_ff::PrimeField; use ark_r1cs_std::GR1CSVar as _; use ark_r1cs_std::alloc::AllocVar; use ark_r1cs_std::fields::fp::FpVar; use ark_relations::gr1cs::{ConstraintSystemRef, SynthesisError}; pub use gadget::NebulaMemoryConstraints; +use std::iter::repeat; #[derive(Debug, Clone, PartialEq, Eq)] pub struct MemOp { @@ -17,34 +18,56 @@ pub struct MemOp { pub timestamp: u64, } +pub struct MemOpAllocated { + pub values: Vec>, + pub timestamp: FpVar, +} + impl MemOp { - pub fn allocate(&self, cs: ConstraintSystemRef) -> Result>, SynthesisError> + pub fn padding() -> MemOp { + MemOp { + values: vec![], + timestamp: 0, + } + } + + pub fn allocate( + &self, + cs: ConstraintSystemRef, + pad_to: usize, + ) -> Result, SynthesisError> where F: PrimeField, { - Ok(MemOp { + let fp = F::from(0); + Ok(MemOpAllocated { values: self .values .iter() + .chain(repeat(&fp)) + .take(pad_to) .map(|v| FpVar::new_witness(cs.clone(), || Ok(*v))) .collect::, _>>()?, - timestamp: self.timestamp, + timestamp: FpVar::new_witness(cs.clone(), || Ok(F::from(self.timestamp)))?, }) } } -impl MemOp> +impl MemOpAllocated where F: PrimeField, { - pub fn padding(segment_size: u64) -> MemOp { - MemOp { - values: std::iter::repeat_with(|| F::ZERO) - .take(segment_size as usize) - .collect::>(), - timestamp: 0, - } - } + // pub fn padding( + // cs: ConstraintSystemRef, + // segment_size: u64, + // ) -> Result, SynthesisError> { + // Ok(MemOpAllocated { + // values: std::iter::repeat_with(|| FpVar::new_witness(cs.clone(), || Ok(F::ZERO))) + // .take(segment_size as usize) + // .collect::, _>>()?, + // timestamp: FpVar::new_witness(cs, || Ok(F::from(0)))?, + // }) + // } pub fn debug_values(&self) -> Vec { self.values.iter().map(|v| v.value().unwrap()).collect() @@ -68,7 +91,9 @@ mod tests { fn test_nebula_memory_constraints_satisfiability() { init_test_logging(); - let mut memory = NebulaMemory::new(NebulaMemoryParams { scan_batch_size: 1 }); + let mut memory = NebulaMemory::<1>::new(NebulaMemoryParams { + unsound_disable_poseidon_commitment: false, + }); memory.register_mem(1, 2, "test_segment"); @@ -96,11 +121,7 @@ mod tests { constraints.start_step(cs.clone()).unwrap(); - let addr_var = FpVar::new_witness(cs.clone(), || Ok(F::from(10))).unwrap(); - let address_var = Address { - addr: addr_var, - tag: 1, - }; + let address_var = Address { addr: 10, tag: 1 }.allocate(cs.clone()).unwrap(); let true_cond = Boolean::new_witness(cs.clone(), || Ok(true)).unwrap(); let false_cond = Boolean::new_witness(cs.clone(), || Ok(false)).unwrap(); @@ -152,7 +173,9 @@ mod tests { read_cond: bool, write_cond: bool, ) -> ark_relations::gr1cs::ConstraintSystemRef { - let mut memory = NebulaMemory::new(NebulaMemoryParams { scan_batch_size: 1 }); + let mut memory = NebulaMemory::<1>::new(NebulaMemoryParams { + unsound_disable_poseidon_commitment: false, + }); memory.register_mem(1, 2, "test_segment"); let address = Address { addr: 10, tag: 1 }; @@ -171,11 +194,7 @@ mod tests { constraints.start_step(cs.clone()).unwrap(); - let addr_var = FpVar::new_witness(cs.clone(), || Ok(F::from(10))).unwrap(); - let address_var = Address { - addr: addr_var, - tag: 1, - }; + let address_var = Address { addr: 10, tag: 1 }.allocate(cs.clone()).unwrap(); let cond_read = Boolean::new_witness(cs.clone(), || Ok(read_cond)).unwrap(); let cond_write = Boolean::new_witness(cs.clone(), || Ok(write_cond)).unwrap(); @@ -260,11 +279,11 @@ mod tests { fn test_scan_batch_size_multi_step() { init_test_logging(); - let scan_batch_size = 2; + const SCAN_BATCH_SIZE: usize = 2; let num_steps = 3; - let total_addresses = scan_batch_size * num_steps; // 6 addresses + let total_addresses = SCAN_BATCH_SIZE * num_steps; // 6 addresses - let mut memory = NebulaMemory::new(NebulaMemoryParams { scan_batch_size }); + let mut memory = NebulaMemory::::new(NebulaMemoryParams::default()); memory.register_mem(1, 2, "test_segment"); let addresses: Vec> = (0..total_addresses) @@ -296,11 +315,12 @@ mod tests { let cs = ConstraintSystem::::new_ref(); constraints.start_step(cs.clone()).unwrap(); - let addr_var = FpVar::new_witness(cs.clone(), || Ok(F::from(step as u64))).unwrap(); let address_var = Address { - addr: addr_var, + addr: step as u64, tag: 1, - }; + } + .allocate(cs.clone()) + .unwrap(); let true_cond = Boolean::new_witness(cs.clone(), || Ok(true)).unwrap(); @@ -329,7 +349,7 @@ mod tests { println!( "Multi-step scan batch test completed: {} addresses, {} steps, batch size {}", - total_addresses, num_steps, scan_batch_size + total_addresses, num_steps, SCAN_BATCH_SIZE ); } } diff --git a/starstream_ivc_proto/src/memory/nebula/tracer.rs b/starstream_ivc_proto/src/memory/nebula/tracer.rs index 3214cc22..b8920f2f 100644 --- a/starstream_ivc_proto/src/memory/nebula/tracer.rs +++ b/starstream_ivc_proto/src/memory/nebula/tracer.rs @@ -11,7 +11,7 @@ use crate::memory::nebula::gadget::FingerPrintPreWires; use std::collections::BTreeMap; use std::collections::VecDeque; -pub struct NebulaMemory { +pub struct NebulaMemory { pub(crate) rs: BTreeMap, VecDeque>>, pub(crate) ws: BTreeMap, VecDeque>>, pub(crate) is: BTreeMap, MemOp>, @@ -25,7 +25,7 @@ pub struct NebulaMemory { params: NebulaMemoryParams, } -impl NebulaMemory { +impl NebulaMemory { fn perform_memory_operation( &mut self, cond: bool, @@ -36,15 +36,13 @@ impl NebulaMemory { self.ts += 1; } - let segment_size = self.mems.get(&address.tag).unwrap().0; - let rv = if cond { self.ws .get(address) .and_then(|writes| writes.back().cloned()) .unwrap_or_else(|| self.is.get(address).unwrap().clone()) } else { - MemOp::padding(segment_size) + MemOp::padding() }; assert!(!cond || rv.timestamp < self.ts); @@ -55,15 +53,27 @@ impl NebulaMemory { timestamp: self.ts, } } else { - MemOp::padding(segment_size) + MemOp::padding() }; // println!( // "Tracing: incrementing ic_rs_ws with rv: {:?}, wv: {:?}", // rv, wv // ); - self.ic_rs_ws.increment(address, &rv).unwrap(); - self.ic_rs_ws.increment(address, &wv).unwrap(); + self.ic_rs_ws + .increment( + address, + &rv, + self.params.unsound_disable_poseidon_commitment, + ) + .unwrap(); + self.ic_rs_ws + .increment( + address, + &wv, + self.params.unsound_disable_poseidon_commitment, + ) + .unwrap(); // println!( // "Tracing: ic_rs_ws after increment: {:?}", // self.ic_rs_ws.comm @@ -91,10 +101,18 @@ impl NebulaMemory { } pub struct NebulaMemoryParams { - pub scan_batch_size: usize, + pub unsound_disable_poseidon_commitment: bool, +} + +impl Default for NebulaMemoryParams { + fn default() -> Self { + Self { + unsound_disable_poseidon_commitment: false, + } + } } -impl IVCMemory for NebulaMemory { +impl IVCMemory for NebulaMemory { type Allocator = NebulaMemoryConstraints; type Params = NebulaMemoryParams; @@ -162,11 +180,16 @@ impl IVCMemory for NebulaMemory { for (addr, is_v) in self.is.iter() { let fs_v = fs.get(addr).unwrap_or(is_v); - ic_is_fs.increment(addr, is_v).unwrap(); - ic_is_fs.increment(addr, fs_v).unwrap(); + ic_is_fs + .increment(addr, is_v, self.params.unsound_disable_poseidon_commitment) + .unwrap(); + ic_is_fs + .increment(addr, fs_v, self.params.unsound_disable_poseidon_commitment) + .unwrap(); } - assert_eq!(self.is.len() % self.params.scan_batch_size, 0); + assert_eq!(self.is.len() % SCAN_BATCH_SIZE, 0); + NebulaMemoryConstraints { cs: None, reads: self.rs, @@ -182,9 +205,10 @@ impl IVCMemory for NebulaMemory { is: self.is, current_step: 0, params: self.params, + scan_batch_size: SCAN_BATCH_SIZE, step_ic_rs_ws: None, step_ic_is_fs: None, - // TODO: + // TODO: fiat-shamir, these are derived by hashing the multisets c0: F::from(1), c1: F::from(2), c0_wire: None, @@ -198,6 +222,9 @@ impl IVCMemory for NebulaMemory { fingerprint_wires: None, debug_sets: Default::default(), + c1_powers_cache: None, + scan_monotonic_last_addr: None, + scan_monotonic_last_addr_wires: None, } } } diff --git a/starstream_ivc_proto/src/neo.rs b/starstream_ivc_proto/src/neo.rs index 00e6c599..35949b39 100644 --- a/starstream_ivc_proto/src/neo.rs +++ b/starstream_ivc_proto/src/neo.rs @@ -23,15 +23,16 @@ where impl StepCircuitNeo where - M: IVCMemory, + M: IVCMemory, { pub fn new( mut circuit_builder: StepCircuitBuilder, shape_ccs: CcsStructure, + params: M::Params, ) -> Self { let irw = InterRoundWires::new(circuit_builder.rom_offset()); - let mb = circuit_builder.trace_memory_ops(()); + let mb = circuit_builder.trace_memory_ops(params); Self { shape_ccs, @@ -173,11 +174,14 @@ fn ark_matrix_to_neo( pub fn ark_field_to_p3_goldilocks(col_v: &FpGoldilocks) -> p3_goldilocks::Goldilocks { let original_u64 = col_v.into_bigint().0[0]; let result = neo_math::F::from_u64(original_u64); - + // Assert that we can convert back and get the same element let converted_back = FpGoldilocks::from(original_u64); - assert_eq!(*col_v, converted_back, "Field element conversion is not reversible"); - + assert_eq!( + *col_v, converted_back, + "Field element conversion is not reversible" + ); + result } From 9fa4aa6fd1b1be67d90f063bd9286546ec7e8a68 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Mon, 29 Dec 2025 14:20:48 -0300 Subject: [PATCH 033/152] chore: cleanup clippy warnings Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/src/e2e.rs | 1 + starstream_ivc_proto/src/lib.rs | 2 +- starstream_ivc_proto/src/memory/dummy.rs | 2 + starstream_ivc_proto/src/memory/mod.rs | 3 +- .../src/memory/nebula/gadget.rs | 133 +++++++++--------- .../src/memory/nebula/tracer.rs | 12 +- 6 files changed, 75 insertions(+), 78 deletions(-) diff --git a/starstream_ivc_proto/src/e2e.rs b/starstream_ivc_proto/src/e2e.rs index 0219e75b..d5e576af 100644 --- a/starstream_ivc_proto/src/e2e.rs +++ b/starstream_ivc_proto/src/e2e.rs @@ -259,6 +259,7 @@ impl MockedProgram { #[derive(Clone, Debug)] pub struct UtxoState { output: crate::F, + #[allow(dead_code)] memory: crate::F, } diff --git a/starstream_ivc_proto/src/lib.rs b/starstream_ivc_proto/src/lib.rs index 60e5f34f..2c1e131e 100644 --- a/starstream_ivc_proto/src/lib.rs +++ b/starstream_ivc_proto/src/lib.rs @@ -19,7 +19,7 @@ use crate::circuit::InterRoundWires; use crate::memory::IVCMemory; use crate::nebula::tracer::{NebulaMemory, NebulaMemoryParams}; use crate::neo::arkworks_to_neo_ccs; -use crate::{memory::DummyMemory, neo::StepCircuitNeo}; +use crate::neo::StepCircuitNeo; use ark_relations::gr1cs::{ConstraintSystem, SynthesisError}; use circuit::StepCircuitBuilder; use goldilocks::FpGoldilocks; diff --git a/starstream_ivc_proto/src/memory/dummy.rs b/starstream_ivc_proto/src/memory/dummy.rs index 95a05335..a9b09949 100644 --- a/starstream_ivc_proto/src/memory/dummy.rs +++ b/starstream_ivc_proto/src/memory/dummy.rs @@ -13,6 +13,7 @@ use std::collections::BTreeMap; use std::collections::VecDeque; use std::marker::PhantomData; +#[allow(dead_code)] pub struct DummyMemory { pub(crate) phantom: PhantomData, pub(crate) reads: BTreeMap, VecDeque>>, @@ -86,6 +87,7 @@ impl IVCMemory for DummyMemory { } } +#[allow(dead_code)] pub struct DummyMemoryConstraints { pub(crate) cs: Option>, pub(crate) reads: BTreeMap, VecDeque>>, diff --git a/starstream_ivc_proto/src/memory/mod.rs b/starstream_ivc_proto/src/memory/mod.rs index 24fb6af2..753110be 100644 --- a/starstream_ivc_proto/src/memory/mod.rs +++ b/starstream_ivc_proto/src/memory/mod.rs @@ -2,9 +2,8 @@ use crate::F; use ark_ff::PrimeField; use ark_r1cs_std::{GR1CSVar as _, alloc::AllocVar, fields::fp::FpVar, prelude::Boolean}; use ark_relations::gr1cs::{ConstraintSystemRef, SynthesisError}; -pub use dummy::DummyMemory; -mod dummy; +pub mod dummy; pub mod nebula; #[derive(PartialOrd, Ord, PartialEq, Eq, Debug, Clone)] diff --git a/starstream_ivc_proto/src/memory/nebula/gadget.rs b/starstream_ivc_proto/src/memory/nebula/gadget.rs index 134bd7c3..df92ac87 100644 --- a/starstream_ivc_proto/src/memory/nebula/gadget.rs +++ b/starstream_ivc_proto/src/memory/nebula/gadget.rs @@ -166,7 +166,7 @@ impl IVCMemoryAllocated for NebulaMemoryConstraints { let mut c1_powers = Vec::with_capacity(max_segment_size); let mut c1_p = c1_wire.clone(); for _ in 0..max_segment_size { - c1_p = c1_p * c1_wire; + c1_p *= c1_wire; c1_powers.push(c1_p.clone()); } self.c1_powers_cache = Some(c1_powers); @@ -252,7 +252,7 @@ impl IVCMemoryAllocated for NebulaMemoryConstraints { let rv = self.get_read_op(cond, &address_val, mem.0)?; let wv = self.get_write_op(cond, &address_val, mem.0)?; - self.update_ic_with_ops(&cond, address, &rv, &wv)?; + self.update_ic_with_ops(cond, address, &rv, &wv)?; tracing::debug!( "nebula read {:?} at address {} in segment {}", @@ -383,14 +383,14 @@ impl NebulaMemoryConstraints { &mut self.fingerprint_wires.as_mut().unwrap().rs, self.c0_wire.as_ref().unwrap(), self.c1_powers_cache.as_ref().unwrap(), - &address, + address, rv, &mut self.debug_sets.rs, )?; self.step_ic_rs_ws.as_mut().unwrap().increment( address, - &rv, + rv, self.params.unsound_disable_poseidon_commitment, )?; @@ -399,14 +399,14 @@ impl NebulaMemoryConstraints { &mut self.fingerprint_wires.as_mut().unwrap().ws, self.c0_wire.as_ref().unwrap(), self.c1_powers_cache.as_ref().unwrap(), - &address, + address, wv, &mut self.debug_sets.ws, )?; self.step_ic_rs_ws.as_mut().unwrap().increment( address, - &wv, + wv, self.params.unsound_disable_poseidon_commitment, )?; @@ -423,67 +423,68 @@ impl NebulaMemoryConstraints { let mem_padding = MemOp::padding(); let max_segment_size = self.max_segment_size() as usize; + let _: () = for (addr, is_v) in self + .is + .iter() + .skip(self.scan_batch_size * self.current_step) + .chain(std::iter::repeat((&address_padding, &mem_padding))) + // TODO: padding + .take(self.scan_batch_size) + { + let fs_v = self.fs.get(addr).unwrap_or(&mem_padding); + + let address = addr.allocate(cs.clone())?; + + // ensure commitment is monotonic + // so that it's not possible to insert an address twice + // + // we get disjoint ranges anyway because of the segments so we + // can have different memories with different sizes, but each + // segment is contiguous + let last_addr = self.scan_monotonic_last_addr_wires.as_mut().unwrap(); + + enforce_monotonic_commitment(&cs, &address, last_addr)?; + + *last_addr = address.clone(); + + let is_entry = is_v.allocate(cs.clone(), max_segment_size)?; + + self.step_ic_is_fs.as_mut().unwrap().increment( + &address, + &is_entry, + self.params.unsound_disable_poseidon_commitment, + )?; + + let fs_entry = fs_v.allocate(cs.clone(), max_segment_size)?; + + self.step_ic_is_fs.as_mut().unwrap().increment( + &address, + &fs_entry, + self.params.unsound_disable_poseidon_commitment, + )?; + + Self::hash_avt( + &Boolean::constant(true), + &mut self.fingerprint_wires.as_mut().unwrap().is, + self.c0_wire.as_ref().unwrap(), + self.c1_powers_cache.as_ref().unwrap(), + &address, + &is_entry, + &mut self.debug_sets.is, + )?; + + Self::hash_avt( + &Boolean::constant(true), + &mut self.fingerprint_wires.as_mut().unwrap().fs, + self.c0_wire.as_ref().unwrap(), + self.c1_powers_cache.as_ref().unwrap(), + &address, + &fs_entry, + &mut self.debug_sets.fs, + )?; + }; Ok( - for (addr, is_v) in self - .is - .iter() - .skip(self.scan_batch_size * self.current_step) - .chain(std::iter::repeat((&address_padding, &mem_padding))) - // TODO: padding - .take(self.scan_batch_size) - { - let fs_v = self.fs.get(addr).unwrap_or(&mem_padding); - - let address = addr.allocate(cs.clone())?; - - // ensure commitment is monotonic - // so that it's not possible to insert an address twice - // - // we get disjoint ranges anyway because of the segments so we - // can have different memories with different sizes, but each - // segment is contiguous - let last_addr = self.scan_monotonic_last_addr_wires.as_mut().unwrap(); - - enforce_monotonic_commitment(&cs, &address, last_addr)?; - - *last_addr = address.clone(); - - let is_entry = is_v.allocate(cs.clone(), max_segment_size)?; - - self.step_ic_is_fs.as_mut().unwrap().increment( - &address, - &is_entry, - self.params.unsound_disable_poseidon_commitment, - )?; - - let fs_entry = fs_v.allocate(cs.clone(), max_segment_size)?; - - self.step_ic_is_fs.as_mut().unwrap().increment( - &address, - &fs_entry, - self.params.unsound_disable_poseidon_commitment, - )?; - - Self::hash_avt( - &Boolean::constant(true), - &mut self.fingerprint_wires.as_mut().unwrap().is, - self.c0_wire.as_ref().unwrap(), - self.c1_powers_cache.as_ref().unwrap(), - &address, - &is_entry, - &mut self.debug_sets.is, - )?; - - Self::hash_avt( - &Boolean::constant(true), - &mut self.fingerprint_wires.as_mut().unwrap().fs, - self.c0_wire.as_ref().unwrap(), - self.c1_powers_cache.as_ref().unwrap(), - &address, - &fs_entry, - &mut self.debug_sets.fs, - )?; - }, + (), ) } diff --git a/starstream_ivc_proto/src/memory/nebula/tracer.rs b/starstream_ivc_proto/src/memory/nebula/tracer.rs index b8920f2f..8a6566d9 100644 --- a/starstream_ivc_proto/src/memory/nebula/tracer.rs +++ b/starstream_ivc_proto/src/memory/nebula/tracer.rs @@ -100,17 +100,11 @@ impl NebulaMemory { } } +#[derive(Default)] pub struct NebulaMemoryParams { pub unsound_disable_poseidon_commitment: bool, } -impl Default for NebulaMemoryParams { - fn default() -> Self { - Self { - unsound_disable_poseidon_commitment: false, - } - } -} impl IVCMemory for NebulaMemory { type Allocator = NebulaMemoryConstraints; @@ -172,7 +166,7 @@ impl IVCMemory for NebulaMemory IVCMemory for NebulaMemory Date: Thu, 19 Feb 2026 09:50:45 -0300 Subject: [PATCH 034/152] fix Cargo.lock after rebase origin/main Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- Cargo.lock | 1309 ++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 1259 insertions(+), 50 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 7eb0cf8e..d5de57b5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -17,6 +17,18 @@ version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" +[[package]] +name = "ahash" +version = "0.8.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75" +dependencies = [ + "cfg-if", + "once_cell", + "version_check", + "zerocopy", +] + [[package]] name = "aho-corasick" version = "1.1.3" @@ -32,6 +44,15 @@ version = "0.2.21" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923" +[[package]] +name = "android_system_properties" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" +dependencies = [ + "libc", +] + [[package]] name = "anstream" version = "0.6.21" @@ -94,12 +115,258 @@ version = "1.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c3d036a3c4ab069c7b410a2ce876bd74808d2d0888a82667669f8e783a898bf1" +[[package]] +name = "archery" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70e0a5f99dfebb87bb342d0f53bb92c81842e100bbb915223e38349580e5441d" + +[[package]] +name = "ark-bn254" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d69eab57e8d2663efa5c63135b2af4f396d66424f88954c21104125ab6b3e6bc" +dependencies = [ + "ark-ec", + "ark-ff", + "ark-std", +] + +[[package]] +name = "ark-crypto-primitives" +version = "0.5.0" +source = "git+https://github.com/arkworks-rs/crypto-primitives#39fb17bd6f46366913526c262454b9fce82a4cd7" +dependencies = [ + "ahash", + "ark-crypto-primitives-macros", + "ark-ec", + "ark-ff", + "ark-r1cs-std", + "ark-relations", + "ark-serialize", + "ark-snark", + "ark-std", + "blake2", + "derivative", + "digest", + "fnv", + "hashbrown 0.15.5", + "merlin", + "num-bigint", + "sha2", +] + +[[package]] +name = "ark-crypto-primitives-macros" +version = "0.5.0" +source = "git+https://github.com/arkworks-rs/crypto-primitives#39fb17bd6f46366913526c262454b9fce82a4cd7" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.106", +] + +[[package]] +name = "ark-ec" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43d68f2d516162846c1238e755a7c4d131b892b70cc70c471a8e3ca3ed818fce" +dependencies = [ + "ahash", + "ark-ff", + "ark-poly", + "ark-serialize", + "ark-std", + "educe", + "fnv", + "hashbrown 0.15.5", + "itertools 0.13.0", + "num-bigint", + "num-integer", + "num-traits", + "rayon", + "zeroize", +] + +[[package]] +name = "ark-ff" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a177aba0ed1e0fbb62aa9f6d0502e9b46dad8c2eab04c14258a1212d2557ea70" +dependencies = [ + "ark-ff-asm", + "ark-ff-macros", + "ark-serialize", + "ark-std", + "arrayvec 0.7.6", + "digest", + "educe", + "itertools 0.13.0", + "num-bigint", + "num-traits", + "paste", + "rayon", + "zeroize", +] + +[[package]] +name = "ark-ff-asm" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62945a2f7e6de02a31fe400aa489f0e0f5b2502e69f95f853adb82a96c7a6b60" +dependencies = [ + "quote", + "syn 2.0.106", +] + +[[package]] +name = "ark-ff-macros" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09be120733ee33f7693ceaa202ca41accd5653b779563608f1234f78ae07c4b3" +dependencies = [ + "num-bigint", + "num-traits", + "proc-macro2", + "quote", + "syn 2.0.106", +] + +[[package]] +name = "ark-poly" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "579305839da207f02b89cd1679e50e67b4331e2f9294a57693e5051b7703fe27" +dependencies = [ + "ahash", + "ark-ff", + "ark-serialize", + "ark-std", + "educe", + "fnv", + "hashbrown 0.15.5", + "rayon", +] + +[[package]] +name = "ark-poly-commit" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d68a105d915bcde6c0687363591c97e72d2d3758f3532d48fd0bf21a3261ce7" +dependencies = [ + "ahash", + "ark-crypto-primitives", + "ark-ec", + "ark-ff", + "ark-poly", + "ark-relations", + "ark-serialize", + "ark-std", + "blake2", + "derivative", + "digest", + "fnv", + "merlin", + "num-traits", + "rand 0.8.5", + "rayon", +] + +[[package]] +name = "ark-r1cs-std" +version = "0.5.0" +source = "git+https://github.com/arkworks-rs/r1cs-std#3b12258dcb485f15bc7ad1312db0e64063bef9cc" +dependencies = [ + "ark-ec", + "ark-ff", + "ark-relations", + "ark-std", + "educe", + "itertools 0.14.0", + "num-bigint", + "num-integer", + "num-traits", + "tracing", +] + +[[package]] +name = "ark-relations" +version = "0.5.1" +source = "git+https://github.com/arkworks-rs/snark/#845ce9d50bbe535792f04b44db78b009ee402ed7" +dependencies = [ + "ark-ff", + "ark-poly", + "ark-serialize", + "ark-std", + "foldhash", + "indexmap 2.11.4", + "tracing", + "tracing-subscriber", +] + +[[package]] +name = "ark-serialize" +version = "0.5.0" +source = "git+https://github.com/arkworks-rs/algebra#598a5fbabc1903c7bab6668ef8812bfdf2158723" +dependencies = [ + "ark-serialize-derive", + "ark-std", + "digest", + "num-bigint", + "rayon", + "serde_with", +] + +[[package]] +name = "ark-serialize-derive" +version = "0.5.0" +source = "git+https://github.com/arkworks-rs/algebra#598a5fbabc1903c7bab6668ef8812bfdf2158723" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.106", +] + +[[package]] +name = "ark-snark" +version = "0.5.1" +source = "git+https://github.com/arkworks-rs/snark/#845ce9d50bbe535792f04b44db78b009ee402ed7" +dependencies = [ + "ark-ff", + "ark-relations", + "ark-serialize", + "ark-std", +] + +[[package]] +name = "ark-std" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "246a225cc6131e9ee4f24619af0f19d67761fff15d7ccc22e42b80846e69449a" +dependencies = [ + "num-traits", + "rand 0.8.5", + "rayon", +] + +[[package]] +name = "arrayref" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76a2e8124351fda1ef8aaaa3bbd7ebbcb486bbcd4225aca0aa0d84bb2db8fecb" + [[package]] name = "arrayvec" version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "23b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068b" +[[package]] +name = "arrayvec" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" + [[package]] name = "async-channel" version = "1.9.0" @@ -237,7 +504,7 @@ checksum = "9035ad2d096bed7955a320ee7e2230574d28fd3c3a0f186cbea1ff3c7eed5dbb" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.106", ] [[package]] @@ -282,6 +549,15 @@ version = "0.22.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" +[[package]] +name = "bincode" +version = "1.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad" +dependencies = [ + "serde", +] + [[package]] name = "bitflags" version = "1.3.2" @@ -303,6 +579,35 @@ dependencies = [ "typenum", ] +[[package]] +name = "bitmaps" +version = "3.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1d084b0137aaa901caf9f1e8b21daa6aa24d41cd806e111335541eff9683bd6" + +[[package]] +name = "blake2" +version = "0.10.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "46502ad458c9a52b69d4d4d32775c788b7a1b85e8bc9d482d92250fc0e3f8efe" +dependencies = [ + "digest", +] + +[[package]] +name = "blake3" +version = "1.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2468ef7d57b3fb7e16b576e8377cdbde2320c60e1491e961d11da40fc4f02a2d" +dependencies = [ + "arrayref", + "arrayvec 0.7.6", + "cc", + "cfg-if", + "constant_time_eq", + "cpufeatures", +] + [[package]] name = "block-buffer" version = "0.10.4" @@ -344,6 +649,12 @@ dependencies = [ "allocator-api2", ] +[[package]] +name = "byteorder" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" + [[package]] name = "bytes" version = "1.10.1" @@ -368,6 +679,18 @@ version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" +[[package]] +name = "chrono" +version = "0.4.43" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fac4744fb15ae8337dc853fee7fb3f4e48c0fbaa23d0afe49c447b4fab126118" +dependencies = [ + "iana-time-zone", + "num-traits", + "serde", + "windows-link", +] + [[package]] name = "chumsky" version = "0.11.1" @@ -413,7 +736,7 @@ dependencies = [ "heck 0.5.0", "proc-macro2", "quote", - "syn", + "syn 2.0.106", ] [[package]] @@ -471,6 +794,18 @@ dependencies = [ "windows-sys 0.61.2", ] +[[package]] +name = "constant_time_eq" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d52eff69cd5e647efe296129160853a42795992097e8af39800e1060caeea9b" + +[[package]] +name = "core-foundation-sys" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" + [[package]] name = "cpp_demangle" version = "0.4.5" @@ -694,6 +1029,27 @@ dependencies = [ "uuid", ] +[[package]] +name = "deranged" +version = "0.5.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc3dc5ad92c2e2d1c193bbbbdf2ea477cb81331de4f3103f267ca18368b988c4" +dependencies = [ + "powerfmt", + "serde_core", +] + +[[package]] +name = "derivative" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fcc3dd5e9e9c0b295d6e1e4d811fb6f157d5ffd784b8d202fc62eac8035a770b" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + [[package]] name = "digest" version = "0.10.7" @@ -702,6 +1058,7 @@ checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" dependencies = [ "block-buffer", "crypto-common", + "subtle", ] [[package]] @@ -725,6 +1082,24 @@ dependencies = [ "winapi", ] +[[package]] +name = "dyn-clone" +version = "1.0.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555" + +[[package]] +name = "educe" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d7bc049e1bd8cdeb31b68bbd586a9464ecf9f3944af3958a7a9d0f8b9799417" +dependencies = [ + "enum-ordinalize", + "proc-macro2", + "quote", + "syn 2.0.106", +] + [[package]] name = "either" version = "1.15.0" @@ -758,6 +1133,26 @@ dependencies = [ "cfg-if", ] +[[package]] +name = "enum-ordinalize" +version = "4.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a1091a7bb1f8f2c4b28f1fe2cef4980ca2d410a3d727d67ecc3178c9b0800f0" +dependencies = [ + "enum-ordinalize-derive", +] + +[[package]] +name = "enum-ordinalize-derive" +version = "4.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ca9601fb2d62598ee17836250842873a413586e5d7ed88b356e38ddbb0ec631" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.106", +] + [[package]] name = "equivalent" version = "1.0.2" @@ -834,6 +1229,12 @@ dependencies = [ "bitflags 1.3.2", ] +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + [[package]] name = "foldhash" version = "0.1.5" @@ -897,7 +1298,7 @@ checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.106", ] [[package]] @@ -984,7 +1385,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e629b9b98ef3dd8afe6ca2bd0f89306cec16d43d907889945bc5d6687f2f13c7" dependencies = [ "fallible-iterator", - "indexmap", + "indexmap 2.11.4", "stable_deref_trait", ] @@ -1019,6 +1420,12 @@ version = "1.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1b43ede17f21864e81be2fa654110bf1e793774238d86ef8555c37e6519c0403" +[[package]] +name = "hashbrown" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" + [[package]] name = "hashbrown" version = "0.14.5" @@ -1061,12 +1468,42 @@ version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fc0fef456e4baa96da950455cd02c081ca953b141298e41db3fc7e36b1da849c" +[[package]] +name = "hex" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" + [[package]] name = "httparse" version = "1.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" +[[package]] +name = "iana-time-zone" +version = "0.1.65" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470" +dependencies = [ + "android_system_properties", + "core-foundation-sys", + "iana-time-zone-haiku", + "js-sys", + "log", + "wasm-bindgen", + "windows-core", +] + +[[package]] +name = "iana-time-zone-haiku" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" +dependencies = [ + "cc", +] + [[package]] name = "id-arena" version = "2.2.1" @@ -1095,14 +1532,48 @@ version = "15.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "af1955a75fa080c677d3972822ec4bad316169ab1cfc6c257a942c2265dbe5fe" dependencies = [ - "bitmaps", - "rand_core", - "rand_xoshiro", + "bitmaps 2.1.0", + "rand_core 0.6.4", + "rand_xoshiro 0.6.0", "sized-chunks", "typenum", "version_check", ] +[[package]] +name = "imbl" +version = "6.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fade8ae6828627ad1fa094a891eccfb25150b383047190a3648d66d06186501" +dependencies = [ + "archery", + "bitmaps 3.2.1", + "imbl-sized-chunks", + "rand_core 0.9.5", + "rand_xoshiro 0.7.0", + "version_check", +] + +[[package]] +name = "imbl-sized-chunks" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f4241005618a62f8d57b2febd02510fb96e0137304728543dfc5fd6f052c22d" +dependencies = [ + "bitmaps 3.2.1", +] + +[[package]] +name = "indexmap" +version = "1.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" +dependencies = [ + "autocfg", + "hashbrown 0.12.3", + "serde", +] + [[package]] name = "indexmap" version = "2.11.4" @@ -1146,6 +1617,15 @@ version = "1.70.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf" +[[package]] +name = "itertools" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186" +dependencies = [ + "either", +] + [[package]] name = "itertools" version = "0.14.0" @@ -1201,6 +1681,15 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "keccak" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb26cec98cce3a3d96cbb7bced3c4b16e3d13f27ec56dbd62cbc8f39cfb9d653" +dependencies = [ + "cpufeatures", +] + [[package]] name = "kv-log-macro" version = "1.0.7" @@ -1210,6 +1699,12 @@ dependencies = [ "log", ] +[[package]] +name = "lazy_static" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" + [[package]] name = "leb128fmt" version = "0.1.0" @@ -1284,6 +1779,15 @@ dependencies = [ "libc", ] +[[package]] +name = "matchers" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1525a2a28c7f4fa0fc98bb91ae755d1e2d1505079e05539e35bc876b5d65ae9" +dependencies = [ + "regex-automata 0.4.13", +] + [[package]] name = "memchr" version = "2.7.6" @@ -1299,6 +1803,18 @@ dependencies = [ "rustix", ] +[[package]] +name = "merlin" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "58c38e2799fc0978b65dfff8023ec7843e2330bb462f19198840b34b6582397d" +dependencies = [ + "byteorder", + "keccak", + "rand_core 0.6.4", + "zeroize", +] + [[package]] name = "miette" version = "7.6.0" @@ -1326,7 +1842,7 @@ checksum = "db5b29714e950dbb20d5e6f74f9dcec4edbcc1067bb7f8ed198c097b8c1a818b" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.106", ] [[package]] @@ -1350,34 +1866,337 @@ dependencies = [ ] [[package]] -name = "object" -version = "0.37.3" +name = "neo-ajtai" +version = "0.1.0" +source = "git+https://github.com/nicarq/Nightstream.git?rev=99c2cdbe2cd8e91396edd128bfe202590aac6d3e#99c2cdbe2cd8e91396edd128bfe202590aac6d3e" +dependencies = [ + "neo-ccs", + "neo-math", + "neo-params", + "p3-field", + "p3-goldilocks", + "p3-matrix", + "rand 0.9.2", + "rand_chacha 0.9.0", + "rayon", + "serde", + "subtle", + "thiserror 2.0.17", + "tracing", +] + +[[package]] +name = "neo-ccs" +version = "0.1.0" +source = "git+https://github.com/nicarq/Nightstream.git?rev=99c2cdbe2cd8e91396edd128bfe202590aac6d3e#99c2cdbe2cd8e91396edd128bfe202590aac6d3e" +dependencies = [ + "neo-math", + "neo-params", + "once_cell", + "p3-field", + "p3-goldilocks", + "p3-matrix", + "p3-poseidon2", + "p3-symmetric", + "rand 0.9.2", + "rand_chacha 0.9.0", + "rayon", + "serde", + "thiserror 2.0.17", + "tracing", +] + +[[package]] +name = "neo-fold" +version = "0.1.0" +source = "git+https://github.com/nicarq/Nightstream.git?rev=99c2cdbe2cd8e91396edd128bfe202590aac6d3e#99c2cdbe2cd8e91396edd128bfe202590aac6d3e" +dependencies = [ + "bincode", + "blake3", + "neo-ajtai", + "neo-ccs", + "neo-math", + "neo-params", + "neo-reductions", + "neo-transcript", + "p3-challenger", + "p3-field", + "p3-goldilocks", + "p3-matrix", + "p3-poseidon2", + "p3-symmetric", + "rand 0.9.2", + "rand_chacha 0.9.0", + "rayon", + "thiserror 2.0.17", +] + +[[package]] +name = "neo-math" +version = "0.1.0" +source = "git+https://github.com/nicarq/Nightstream.git?rev=99c2cdbe2cd8e91396edd128bfe202590aac6d3e#99c2cdbe2cd8e91396edd128bfe202590aac6d3e" +dependencies = [ + "p3-field", + "p3-goldilocks", + "p3-matrix", + "rand 0.9.2", + "rand_chacha 0.9.0", + "rayon", + "subtle", + "thiserror 2.0.17", +] + +[[package]] +name = "neo-params" +version = "0.1.0" +source = "git+https://github.com/nicarq/Nightstream.git?rev=99c2cdbe2cd8e91396edd128bfe202590aac6d3e#99c2cdbe2cd8e91396edd128bfe202590aac6d3e" +dependencies = [ + "serde", + "thiserror 2.0.17", +] + +[[package]] +name = "neo-reductions" +version = "0.1.0" +source = "git+https://github.com/nicarq/Nightstream.git?rev=99c2cdbe2cd8e91396edd128bfe202590aac6d3e#99c2cdbe2cd8e91396edd128bfe202590aac6d3e" +dependencies = [ + "bincode", + "blake3", + "neo-ajtai", + "neo-ccs", + "neo-math", + "neo-params", + "neo-transcript", + "p3-challenger", + "p3-field", + "p3-goldilocks", + "p3-matrix", + "p3-poseidon2", + "p3-symmetric", + "rand 0.9.2", + "rand_chacha 0.9.0", + "rayon", + "thiserror 2.0.17", +] + +[[package]] +name = "neo-transcript" +version = "0.1.0" +source = "git+https://github.com/nicarq/Nightstream.git?rev=99c2cdbe2cd8e91396edd128bfe202590aac6d3e#99c2cdbe2cd8e91396edd128bfe202590aac6d3e" +dependencies = [ + "neo-ccs", + "neo-math", + "once_cell", + "p3-field", + "p3-goldilocks", + "p3-symmetric", + "rand 0.9.2", + "rand_chacha 0.9.0", + "subtle", +] + +[[package]] +name = "nu-ansi-term" +version = "0.50.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "num-bigint" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a5e44f723f1133c9deac646763579fdb3ac745e418f2a7af9cd0c431da1f20b9" +dependencies = [ + "num-integer", + "num-traits", +] + +[[package]] +name = "num-conv" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf97ec579c3c42f953ef76dbf8d55ac91fb219dde70e49aa4a6b7d74e9919050" + +[[package]] +name = "num-integer" +version = "0.1.46" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f" +dependencies = [ + "num-traits", +] + +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", + "libm", +] + +[[package]] +name = "object" +version = "0.37.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff76201f031d8863c38aa7f905eca4f53abbfa15f609db4277d44cd8938f33fe" +dependencies = [ + "crc32fast", + "hashbrown 0.15.5", + "indexmap 2.11.4", + "memchr", +] + +[[package]] +name = "once_cell" +version = "1.21.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d" + +[[package]] +name = "once_cell_polyfill" +version = "1.70.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4895175b425cb1f87721b59f0f286c2092bd4af812243672510e1ac53e2e0ad" + +[[package]] +name = "owo-colors" +version = "4.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c6901729fa79e91a0913333229e9ca5dc725089d1c363b2f4b4760709dc4a52" + +[[package]] +name = "p3-challenger" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "998a0de338749383ef23dae0f0b4ce9374f89ef0ac55ef1829e31e950555ccd9" +dependencies = [ + "p3-field", + "p3-maybe-rayon", + "p3-symmetric", + "p3-util", + "tracing", +] + +[[package]] +name = "p3-dft" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3b2764a3982d22d62aa933c8de6f9d71d8a474c9110b69e675dea1887bdeffc" +dependencies = [ + "itertools 0.14.0", + "p3-field", + "p3-matrix", + "p3-maybe-rayon", + "p3-util", + "tracing", +] + +[[package]] +name = "p3-field" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc13a73509fe09c67b339951ca8d4cc6e61c9bf08c130dbc90dda52452918cc2" +dependencies = [ + "itertools 0.14.0", + "num-bigint", + "p3-maybe-rayon", + "p3-util", + "paste", + "rand 0.9.2", + "serde", + "tracing", +] + +[[package]] +name = "p3-goldilocks" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "552849f6309ffde34af0d31aa9a2d0a549cb0ec138d9792bfbf4a17800742362" +dependencies = [ + "num-bigint", + "p3-dft", + "p3-field", + "p3-mds", + "p3-poseidon2", + "p3-symmetric", + "p3-util", + "paste", + "rand 0.9.2", + "serde", +] + +[[package]] +name = "p3-matrix" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8e1e9f69c2fe15768b3ceb2915edb88c47398aa22c485d8163deab2a47fe194" +dependencies = [ + "itertools 0.14.0", + "p3-field", + "p3-maybe-rayon", + "p3-util", + "rand 0.9.2", + "serde", + "tracing", + "transpose", +] + +[[package]] +name = "p3-maybe-rayon" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33f765046b763d046728b3246b690f81dfa7ccd7523b7a1582c74f616fbce6a0" + +[[package]] +name = "p3-mds" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff76201f031d8863c38aa7f905eca4f53abbfa15f609db4277d44cd8938f33fe" +checksum = "6c90541c6056712daf2ee69ec328db8b5605ae8dbafe60226c8eb75eaac0e1f9" dependencies = [ - "crc32fast", - "hashbrown 0.15.5", - "indexmap", - "memchr", + "p3-dft", + "p3-field", + "p3-symmetric", + "p3-util", + "rand 0.9.2", ] [[package]] -name = "once_cell" -version = "1.21.3" +name = "p3-poseidon2" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d" +checksum = "88e9f053f120a78ad27e9c1991a0ea547777328ca24025c42364d6ee2667d59a" +dependencies = [ + "p3-field", + "p3-mds", + "p3-symmetric", + "p3-util", + "rand 0.9.2", +] [[package]] -name = "once_cell_polyfill" -version = "1.70.1" +name = "p3-symmetric" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4895175b425cb1f87721b59f0f286c2092bd4af812243672510e1ac53e2e0ad" +checksum = "72d5db8f05a26d706dfd8aaf7aa4272ca4f3e7a075db897ec7108f24fad78759" +dependencies = [ + "itertools 0.14.0", + "p3-field", + "serde", +] [[package]] -name = "owo-colors" -version = "4.2.3" +name = "p3-util" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c6901729fa79e91a0913333229e9ca5dc725089d1c363b2f4b4760709dc4a52" +checksum = "6dfee67245d9ce78a15176728da2280032f0a84b5819a39a953e7ec03cfd9bd7" +dependencies = [ + "serde", +] [[package]] name = "parking" @@ -1408,6 +2227,12 @@ dependencies = [ "windows-link", ] +[[package]] +name = "paste" +version = "1.0.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" + [[package]] name = "percent-encoding" version = "2.3.2" @@ -1421,7 +2246,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b4c5cc86750666a3ed20bdaf5ca2a0344f9c67674cae0515bec2da16fbaa47db" dependencies = [ "fixedbitset", - "indexmap", + "indexmap 2.11.4", ] [[package]] @@ -1479,13 +2304,28 @@ dependencies = [ "serde", ] +[[package]] +name = "powerfmt" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" + +[[package]] +name = "ppv-lite86" +version = "0.2.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9" +dependencies = [ + "zerocopy", +] + [[package]] name = "pretty" version = "0.12.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0d22152487193190344590e4f30e219cf3fe140d9e7a3fdb683d82aa2c5f4156" dependencies = [ - "arrayvec", + "arrayvec 0.5.2", "typed-arena", "unicode-width 0.2.2", ] @@ -1528,7 +2368,7 @@ checksum = "752233a382efa1026438aa8409c72489ebaa7ed94148bfabdf5282dc864276ef" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.106", ] [[package]] @@ -1546,11 +2386,64 @@ version = "5.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" +[[package]] +name = "rand" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" +dependencies = [ + "libc", + "rand_chacha 0.3.1", + "rand_core 0.6.4", +] + +[[package]] +name = "rand" +version = "0.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6db2770f06117d490610c7488547d543617b21bfa07796d7a12f6f1bd53850d1" +dependencies = [ + "rand_chacha 0.9.0", + "rand_core 0.9.5", +] + +[[package]] +name = "rand_chacha" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" +dependencies = [ + "ppv-lite86", + "rand_core 0.6.4", +] + +[[package]] +name = "rand_chacha" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" +dependencies = [ + "ppv-lite86", + "rand_core 0.9.5", +] + [[package]] name = "rand_core" version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +dependencies = [ + "getrandom 0.2.17", +] + +[[package]] +name = "rand_core" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c" +dependencies = [ + "getrandom 0.3.4", +] [[package]] name = "rand_xoshiro" @@ -1558,7 +2451,16 @@ version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6f97cdb2a36ed4183de61b2f824cc45c9f1037f28afe0a322e9fff4c108b5aaa" dependencies = [ - "rand_core", + "rand_core 0.6.4", +] + +[[package]] +name = "rand_xoshiro" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f703f4665700daf5512dcca5f43afa6af89f09db47fb56be587f80636bda2d41" +dependencies = [ + "rand_core 0.9.5", ] [[package]] @@ -1601,6 +2503,26 @@ dependencies = [ "thiserror 1.0.69", ] +[[package]] +name = "ref-cast" +version = "1.0.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f354300ae66f76f1c85c5f84693f0ce81d747e2c3f21a45fef496d89c960bf7d" +dependencies = [ + "ref-cast-impl", +] + +[[package]] +name = "ref-cast-impl" +version = "1.0.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7186006dcb21920990093f30e3dea63b7d6e977bf1256be20c3563a5db070da" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.106", +] + [[package]] name = "regalloc2" version = "0.13.5" @@ -1705,6 +2627,30 @@ dependencies = [ "winapi-util", ] +[[package]] +name = "schemars" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cd191f9397d57d581cddd31014772520aa448f65ef991055d7f61582c65165f" +dependencies = [ + "dyn-clone", + "ref-cast", + "serde", + "serde_json", +] + +[[package]] +name = "schemars" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2b42f36aa1cd011945615b92222f6bf73c599a102a300334cd7f8dbeec726cc" +dependencies = [ + "dyn-clone", + "ref-cast", + "serde", + "serde_json", +] + [[package]] name = "scopeguard" version = "1.2.0" @@ -1769,7 +2715,7 @@ checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.106", ] [[package]] @@ -1793,7 +2739,7 @@ checksum = "175ee3e80ae9982737ca543e96133087cbd9a485eecc3bc4de9c1a37b47ea59c" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.106", ] [[package]] @@ -1805,13 +2751,31 @@ dependencies = [ "serde_core", ] +[[package]] +name = "serde_with" +version = "3.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fa237f2807440d238e0364a218270b98f767a00d3dada77b1c53ae88940e2e7" +dependencies = [ + "base64", + "chrono", + "hex", + "indexmap 1.9.3", + "indexmap 2.11.4", + "schemars 0.9.0", + "schemars 1.2.1", + "serde_core", + "serde_json", + "time", +] + [[package]] name = "serde_yaml" version = "0.9.34+deprecated" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6a8b1a1a2ebf674015cc02edccce75287f1a0130d394307b36743c2f5d504b47" dependencies = [ - "indexmap", + "indexmap 2.11.4", "itoa", "ryu", "serde", @@ -1829,6 +2793,15 @@ dependencies = [ "digest", ] +[[package]] +name = "sharded-slab" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6" +dependencies = [ + "lazy_static", +] + [[package]] name = "shlex" version = "1.3.0" @@ -1856,7 +2829,7 @@ version = "0.6.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "16d69225bde7a69b235da73377861095455d298f2b970996eec25ddbb42b3d1e" dependencies = [ - "bitmaps", + "bitmaps 2.1.0", "typenum", ] @@ -2014,18 +2987,64 @@ dependencies = [ "thiserror 2.0.17", ] +[[package]] +name = "starstream_ivc_proto" +version = "0.1.0" +dependencies = [ + "ark-bn254", + "ark-ff", + "ark-poly", + "ark-poly-commit", + "ark-r1cs-std", + "ark-relations", + "neo-ajtai", + "neo-ccs", + "neo-fold", + "neo-math", + "neo-params", + "p3-field", + "p3-goldilocks", + "p3-poseidon2", + "p3-symmetric", + "rand 0.9.2", + "rand_chacha 0.9.0", + "tracing", + "tracing-subscriber", +] + +[[package]] +name = "starstream_mock_ledger" +version = "0.1.0" +dependencies = [ + "hex", + "imbl", + "thiserror 2.0.17", +] + [[package]] name = "str_indices" version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d08889ec5408683408db66ad89e0e1f93dff55c73a4ccc71c427d5b277ee47e6" +[[package]] +name = "strength_reduce" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe895eb47f22e2ddd4dabc02bce419d2e643c8e3b585c78158b349195bc24d82" + [[package]] name = "strsim" version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" +[[package]] +name = "subtle" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" + [[package]] name = "supports-color" version = "3.0.2" @@ -2047,6 +3066,17 @@ version = "3.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b7401a30af6cb5818bb64852270bb722533397edcfc7344954a38f420819ece2" +[[package]] +name = "syn" +version = "1.0.109" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + [[package]] name = "syn" version = "2.0.106" @@ -2138,7 +3168,7 @@ checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.106", ] [[package]] @@ -2149,7 +3179,47 @@ checksum = "3ff15c8ecd7de3849db632e14d18d2571fa09dfc5ed93479bc4485c7a517c913" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.106", +] + +[[package]] +name = "thread_local" +version = "1.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f60246a4944f24f6e018aa17cdeffb7818b76356965d03b07d6a9886e8962185" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "time" +version = "0.3.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "743bd48c283afc0388f9b8827b976905fb217ad9e647fae3a379a9283c4def2c" +dependencies = [ + "deranged", + "itoa", + "num-conv", + "powerfmt", + "serde_core", + "time-core", + "time-macros", +] + +[[package]] +name = "time-core" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7694e1cfe791f8d31026952abf09c69ca6f6fa4e1a1229e18988f06a04a12dca" + +[[package]] +name = "time-macros" +version = "0.2.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e70e4c5a0e0a8a4823ad65dfe1a6930e4f4d756dcd9dd7939022b5e8c501215" +dependencies = [ + "num-conv", + "time-core", ] [[package]] @@ -2177,7 +3247,7 @@ checksum = "af407857209536a95c8e56f8231ef2c2e2aff839b22e07a1ffcbc617e9db9fa5" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.106", ] [[package]] @@ -2186,7 +3256,7 @@ version = "0.9.11+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f3afc9a848309fe1aaffaed6e1546a7a14de1f935dc9d89d32afd9a44bab7c46" dependencies = [ - "indexmap", + "indexmap 2.11.4", "serde_core", "serde_spanned", "toml_datetime", @@ -2284,7 +3354,7 @@ checksum = "81383ab64e72a7a8b8e13130c49e3dab29def6d0c7d76a03087b3cf71c5c6903" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.106", ] [[package]] @@ -2294,6 +3364,46 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b9d12581f227e93f094d3af2ae690a574abb8a2b9b7a96e7cfe9647b2b617678" dependencies = [ "once_cell", + "valuable", +] + +[[package]] +name = "tracing-log" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3" +dependencies = [ + "log", + "once_cell", + "tracing-core", +] + +[[package]] +name = "tracing-subscriber" +version = "0.3.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2054a14f5307d601f88daf0553e1cbf472acc4f2c51afab632431cdcd72124d5" +dependencies = [ + "matchers", + "nu-ansi-term", + "once_cell", + "regex-automata 0.4.13", + "sharded-slab", + "smallvec", + "thread_local", + "tracing", + "tracing-core", + "tracing-log", +] + +[[package]] +name = "transpose" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ad61aed86bc3faea4300c7aee358b4c6d0c8d6ccc36524c96e4c92ccf26e77e" +dependencies = [ + "num-integer", + "strength_reduce", ] [[package]] @@ -2366,6 +3476,12 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "valuable" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65" + [[package]] name = "value-bag" version = "1.11.1" @@ -2448,7 +3564,7 @@ dependencies = [ "bumpalo", "proc-macro2", "quote", - "syn", + "syn 2.0.106", "wasm-bindgen-shared", ] @@ -2470,7 +3586,7 @@ dependencies = [ "anyhow", "heck 0.4.1", "im-rc", - "indexmap", + "indexmap 2.11.4", "log", "petgraph", "serde", @@ -2509,7 +3625,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ee093e1e1ccffa005b9b778f7a10ccfd58e25a20eccad294a1a93168d076befb" dependencies = [ "anyhow", - "indexmap", + "indexmap 2.11.4", "wasm-encoder 0.240.0", "wasmparser 0.240.0", ] @@ -2522,7 +3638,7 @@ checksum = "b722dcf61e0ea47440b53ff83ccb5df8efec57a69d150e4f24882e4eba7e24a4" dependencies = [ "bitflags 2.9.4", "hashbrown 0.15.5", - "indexmap", + "indexmap 2.11.4", "semver", "serde", ] @@ -2534,7 +3650,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "47b807c72e1bac69382b3a6fb3dbe8ea4c0ed87ff5629b8685ae6b9a611028fe" dependencies = [ "bitflags 2.9.4", - "indexmap", + "indexmap 2.11.4", "semver", ] @@ -2567,7 +3683,7 @@ dependencies = [ "fxprof-processed-profile", "gimli", "hashbrown 0.15.5", - "indexmap", + "indexmap 2.11.4", "ittapi", "libc", "log", @@ -2617,7 +3733,7 @@ dependencies = [ "cranelift-bitset", "cranelift-entity", "gimli", - "indexmap", + "indexmap 2.11.4", "log", "object", "postcard", @@ -2662,7 +3778,7 @@ dependencies = [ "anyhow", "proc-macro2", "quote", - "syn", + "syn 2.0.106", "wasmtime-internal-component-util", "wasmtime-internal-wit-bindgen", "wit-parser", @@ -2688,7 +3804,7 @@ dependencies = [ "cranelift-frontend", "cranelift-native", "gimli", - "itertools", + "itertools 0.14.0", "log", "object", "pulley-interpreter", @@ -2777,7 +3893,7 @@ checksum = "47f6bf5957ba823cb170996073edf4596b26d5f44c53f9e96b586c64fa04f7e9" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.106", ] [[package]] @@ -2807,7 +3923,7 @@ dependencies = [ "anyhow", "bitflags 2.9.4", "heck 0.5.0", - "indexmap", + "indexmap 2.11.4", "wit-parser", ] @@ -2894,12 +4010,65 @@ dependencies = [ "wasmtime-internal-math", ] +[[package]] +name = "windows-core" +version = "0.62.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" +dependencies = [ + "windows-implement", + "windows-interface", + "windows-link", + "windows-result", + "windows-strings", +] + +[[package]] +name = "windows-implement" +version = "0.60.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.106", +] + +[[package]] +name = "windows-interface" +version = "0.59.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.106", +] + [[package]] name = "windows-link" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" +[[package]] +name = "windows-result" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-strings" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" +dependencies = [ + "windows-link", +] + [[package]] name = "windows-sys" version = "0.59.0" @@ -3076,7 +4245,7 @@ checksum = "7dc5474b078addc5fe8a72736de8da3acfb3ff324c2491133f8b59594afa1a20" dependencies = [ "anyhow", "bitflags 2.9.4", - "indexmap", + "indexmap 2.11.4", "log", "serde", "serde_derive", @@ -3095,7 +4264,7 @@ checksum = "9875ea3fa272f57cc1fc50f225a7b94021a7878c484b33792bccad0d93223439" dependencies = [ "anyhow", "id-arena", - "indexmap", + "indexmap 2.11.4", "log", "semver", "serde", @@ -3105,6 +4274,46 @@ dependencies = [ "wasmparser 0.240.0", ] +[[package]] +name = "zerocopy" +version = "0.8.39" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db6d35d663eadb6c932438e763b262fe1a70987f9ae936e60158176d710cae4a" +dependencies = [ + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.8.39" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4122cd3169e94605190e77839c9a40d40ed048d305bfdc146e7df40ab0f3e517" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.106", +] + +[[package]] +name = "zeroize" +version = "1.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b97154e67e32c85465826e8bcc1c59429aaaf107c1e4a9e53c8d8ccd5eff88d0" +dependencies = [ + "zeroize_derive", +] + +[[package]] +name = "zeroize_derive" +version = "1.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85a5b4158499876c763cb03bc4e49185d3cccbabb15b33c627f7884f43db852e" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.106", +] + [[package]] name = "zstd" version = "0.13.3" From c027756459cd81237f178e509c1662a5a00bbd5e Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Mon, 29 Dec 2025 20:58:40 -0300 Subject: [PATCH 035/152] wip make circuit match spec Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- Cargo.lock | 1 + starstream_ivc_proto/Cargo.toml | 3 +- starstream_ivc_proto/src/circuit.rs | 2013 ++++++++++------- starstream_ivc_proto/src/circuit_test.rs | 85 + starstream_ivc_proto/src/lib.rs | 707 +++--- .../src/memory/nebula/tracer.rs | 10 +- starstream_ivc_proto/src/neo.rs | 3 +- starstream_ivc_proto/src/test_utils.rs | 24 +- starstream_mock_ledger/src/lib.rs | 75 +- starstream_mock_ledger/src/mocked_verifier.rs | 5 +- .../src/transaction_effects/instance.rs | 7 +- 11 files changed, 1761 insertions(+), 1172 deletions(-) create mode 100644 starstream_ivc_proto/src/circuit_test.rs diff --git a/Cargo.lock b/Cargo.lock index d5de57b5..554d6496 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3008,6 +3008,7 @@ dependencies = [ "p3-symmetric", "rand 0.9.2", "rand_chacha 0.9.0", + "starstream_mock_ledger", "tracing", "tracing-subscriber", ] diff --git a/starstream_ivc_proto/Cargo.toml b/starstream_ivc_proto/Cargo.toml index 83288d6a..93f51fe2 100644 --- a/starstream_ivc_proto/Cargo.toml +++ b/starstream_ivc_proto/Cargo.toml @@ -5,7 +5,7 @@ edition = "2024" [dependencies] ark-ff = { version = "0.5.0", default-features = false } -ark-relations = { version = "0.5.0", default-features = false } +ark-relations = { version = "0.5.0", features = ["std"] } ark-r1cs-std = { version = "0.5.0", default-features = false } ark-bn254 = { version = "0.5.0", features = ["scalar_field"] } ark-poly = "0.5.0" @@ -19,6 +19,7 @@ neo-ccs = { git = "https://github.com/nicarq/Nightstream.git", rev = "99c2cdbe2c neo-ajtai = { git = "https://github.com/nicarq/Nightstream.git", rev = "99c2cdbe2cd8e91396edd128bfe202590aac6d3e" } neo-params = { git = "https://github.com/nicarq/Nightstream.git", rev = "99c2cdbe2cd8e91396edd128bfe202590aac6d3e" } +starstream_mock_ledger = { path = "../starstream_mock_ledger" } p3-goldilocks = { version = "0.3.0", default-features = false } p3-field = "0.3.0" diff --git a/starstream_ivc_proto/src/circuit.rs b/starstream_ivc_proto/src/circuit.rs index f789d83d..140c9e5b 100644 --- a/starstream_ivc_proto/src/circuit.rs +++ b/starstream_ivc_proto/src/circuit.rs @@ -1,43 +1,193 @@ use crate::memory::{self, Address, IVCMemory}; -use crate::poseidon2::{compress, compress_trace}; -use crate::{F, LedgerOperation, ProgramId, UtxoChange, memory::IVCMemoryAllocated}; -use ark_ff::AdditiveGroup as _; +use crate::value_to_field; +use crate::{F, LedgerOperation, memory::IVCMemoryAllocated}; +use ark_ff::{AdditiveGroup, Field as _, PrimeField}; use ark_r1cs_std::alloc::AllocationMode; +use ark_r1cs_std::fields::FieldVar; use ark_r1cs_std::{ GR1CSVar as _, alloc::AllocVar as _, eq::EqGadget, fields::fp::FpVar, prelude::Boolean, }; +use ark_relations::gr1cs; use ark_relations::{ gr1cs::{ConstraintSystemRef, LinearCombination, SynthesisError, Variable}, ns, }; -use std::array; -use std::collections::{BTreeMap, HashMap, HashSet}; +use starstream_mock_ledger::InterleavingInstance; use std::marker::PhantomData; use tracing::debug_span; -/// The RAM part is an array of ProgramState -pub const RAM_SEGMENT: u64 = 1u64; -/// Utxos don't have contiguous ids, so we use these to map ids to contiguous -/// addresses. -pub const UTXO_INDEX_MAPPING_SEGMENT: u64 = 2u64; -/// The expected output for each utxo. -/// This is public, so the verifier can just set the ROM to the values it -/// expects. -pub const OUTPUT_CHECK_SEGMENT: u64 = 3u64; +#[derive(Clone, Debug, Default)] +pub struct RomSwitchboard { + pub read_is_utxo_curr: bool, + pub read_is_utxo_target: bool, + pub read_must_burn_curr: bool, + pub read_program_hash_target: bool, +} + +#[derive(Clone)] +pub struct RomSwitchboardWires { + pub read_is_utxo_curr: Boolean, + pub read_is_utxo_target: Boolean, + pub read_must_burn_curr: Boolean, + pub read_program_hash_target: Boolean, +} + +impl RomSwitchboardWires { + pub fn allocate( + cs: ConstraintSystemRef, + switches: &RomSwitchboard, + ) -> Result { + Ok(Self { + read_is_utxo_curr: Boolean::new_witness(cs.clone(), || Ok(switches.read_is_utxo_curr))?, + read_is_utxo_target: Boolean::new_witness(cs.clone(), || { + Ok(switches.read_is_utxo_target) + })?, + read_must_burn_curr: Boolean::new_witness(cs.clone(), || { + Ok(switches.read_must_burn_curr) + })?, + read_program_hash_target: Boolean::new_witness(cs.clone(), || { + Ok(switches.read_program_hash_target) + })?, + }) + } +} -pub const PROGRAM_STATE_SIZE: u64 = - 4u64 // state - + 4u64 // commitment -; +#[derive(Clone, Debug, Default)] +pub struct MemSwitchboard { + pub expected_input: bool, + pub arg: bool, + pub counters: bool, + pub initialized: bool, + pub finalized: bool, + pub did_burn: bool, + pub ownership: bool, +} + +#[derive(Clone)] +pub struct MemSwitchboardWires { + pub expected_input: Boolean, + pub arg: Boolean, + pub counters: Boolean, + pub initialized: Boolean, + pub finalized: Boolean, + pub did_burn: Boolean, + pub ownership: Boolean, +} + +impl MemSwitchboardWires { + pub fn allocate( + cs: ConstraintSystemRef, + switches: &MemSwitchboard, + ) -> Result { + Ok(Self { + expected_input: Boolean::new_witness(cs.clone(), || Ok(switches.expected_input))?, + arg: Boolean::new_witness(cs.clone(), || Ok(switches.arg))?, + counters: Boolean::new_witness(cs.clone(), || Ok(switches.counters))?, + initialized: Boolean::new_witness(cs.clone(), || Ok(switches.initialized))?, + finalized: Boolean::new_witness(cs.clone(), || Ok(switches.finalized))?, + did_burn: Boolean::new_witness(cs.clone(), || Ok(switches.did_burn))?, + ownership: Boolean::new_witness(cs.clone(), || Ok(switches.ownership))?, + }) + } +} -pub const UTXO_INDEX_MAPPING_SIZE: u64 = 1u64; -pub const OUTPUT_CHECK_SIZE: u64 = 2u64; +pub const ROM_PROCESS_TABLE: u64 = 1u64; +pub const ROM_MUST_BURN: u64 = 2u64; +pub const ROM_IS_UTXO: u64 = 3u64; + +pub const RAM_EXPECTED_INPUT: u64 = 4u64; +pub const RAM_ARG: u64 = 5u64; +pub const RAM_COUNTERS: u64 = 6u64; +pub const RAM_INITIALIZED: u64 = 7u64; +pub const RAM_FINALIZED: u64 = 8u64; +pub const RAM_DID_BURN: u64 = 9u64; +pub const RAM_OWNERSHIP: u64 = 10u64; + +// TODO: this is not implemented yet, since it's the only one with a dynamic +// memory size, I'll implement this at last +pub const RAM_HANDLER_STACK: u64 = 11u64; + +impl MemSwitchboard { + pub fn any(&self) -> bool { + self.expected_input + || self.arg + || self.counters + || self.initialized + || self.finalized + || self.did_burn + || self.ownership + } +} + +pub fn opcode_to_mem_switches(instr: &LedgerOperation) -> (MemSwitchboard, MemSwitchboard) { + let mut curr_s = MemSwitchboard::default(); + let mut target_s = MemSwitchboard::default(); + + // All ops increment counter of the current process, except Nop + curr_s.counters = !matches!(instr, LedgerOperation::Nop {}); + + match instr { + LedgerOperation::Resume { .. } => { + curr_s.arg = true; + curr_s.expected_input = true; + + target_s.arg = true; + target_s.finalized = true; + } + LedgerOperation::Yield { ret, .. } => { + curr_s.arg = true; + if ret.is_some() { + curr_s.expected_input = true; + } + curr_s.finalized = true; + } + LedgerOperation::Burn { .. } => { + curr_s.arg = true; + curr_s.finalized = true; + curr_s.did_burn = true; + curr_s.expected_input = true; + } + LedgerOperation::NewUtxo { .. } | LedgerOperation::NewCoord { .. } => { + // New* ops initialize the target process + target_s.initialized = true; + target_s.expected_input = true; + target_s.counters = true; // sets counter to 0 + } + _ => { + // Other ops like ProgramHash or Input are read-only or have no side-effects tracked here. + } + } + (curr_s, target_s) +} + +pub fn opcode_to_rom_switches(instr: &LedgerOperation) -> RomSwitchboard { + let mut rom_s = RomSwitchboard::default(); + match instr { + LedgerOperation::Resume { .. } => { + rom_s.read_is_utxo_curr = true; + rom_s.read_is_utxo_target = true; + } + LedgerOperation::Burn { .. } => { + rom_s.read_is_utxo_curr = true; + rom_s.read_must_burn_curr = true; + } + LedgerOperation::NewUtxo { .. } | LedgerOperation::NewCoord { .. } => { + rom_s.read_is_utxo_curr = true; + rom_s.read_is_utxo_target = true; + rom_s.read_program_hash_target = true; + } + _ => {} + } + rom_s +} pub struct StepCircuitBuilder { - pub utxos: BTreeMap, + pub instance: InterleavingInstance, + pub last_yield: Vec, pub ops: Vec>, write_ops: Vec<(ProgramState, ProgramState)>, - utxo_order_mapping: HashMap, + mem_switches: Vec<(MemSwitchboard, MemSwitchboard)>, + rom_switches: Vec, mem: PhantomData, } @@ -46,36 +196,45 @@ pub struct StepCircuitBuilder { #[derive(Clone)] pub struct Wires { // irw - current_program: FpVar, + id_curr: FpVar, + id_prev: FpVar, + utxos_len: FpVar, - n_finalized: FpVar, // switches - utxo_yield_switch: Boolean, - yield_resume_switch: Boolean, resume_switch: Boolean, + yield_switch: Boolean, + program_hash_switch: Boolean, + new_utxo_switch: Boolean, + new_coord_switch: Boolean, + burn_switch: Boolean, + input_switch: Boolean, + check_utxo_output_switch: Boolean, - drop_utxo_switch: Boolean, - utxo_id: FpVar, - input: FpVar, - output: FpVar, + target: FpVar, + val: FpVar, + ret: FpVar, + program_hash: FpVar, + caller: FpVar, - utxo_read_wires: ProgramStateWires, - coord_read_wires: ProgramStateWires, + curr_read_wires: ProgramStateWires, + curr_write_wires: ProgramStateWires, - utxo_write_wires: ProgramStateWires, + target_read_wires: ProgramStateWires, + target_write_wires: ProgramStateWires, - // TODO: for now there can only be a single coordination script, with the - // address 1. - // - // this can be lifted, but it requires a bit of logic. - coordination_script: FpVar, + curr_mem_switches: MemSwitchboardWires, + target_mem_switches: MemSwitchboardWires, + + // ROM lookup results + is_utxo_curr: FpVar, + is_utxo_target: FpVar, + must_burn_curr: FpVar, + rom_program_hash: FpVar, - // variables in the ROM part that has the expected 'output' or final state - // for a utxo - utxo_final_output: FpVar, - utxo_final_consumed: FpVar, + // ROM read switches + rom_switches: RomSwitchboardWires, constant_false: Boolean, constant_true: Boolean, @@ -85,41 +244,54 @@ pub struct Wires { /// these are the mcc witnesses #[derive(Clone)] pub struct ProgramStateWires { - consumed: FpVar, - finalized: FpVar, - input: FpVar, - output: FpVar, - commitment: [FpVar; 4], + expected_input: FpVar, + arg: FpVar, + counters: FpVar, + initialized: Boolean, + finalized: Boolean, + did_burn: Boolean, + owned_by: FpVar, // an index into the process table } // helper so that we always allocate witnesses in the same order pub struct PreWires { - utxo_address: F, + target: F, + val: F, + ret: F, + id_prev: F, - coord_address: F, + program_hash: F, - utxo_id: F, - input: F, - output: F, + new_process_id: F, + caller: F, // switches - yield_start_switch: bool, - yield_end_switch: bool, + yield_switch: bool, resume_switch: bool, check_utxo_output_switch: bool, nop_switch: bool, - drop_utxo_switch: bool, + burn_switch: bool, + program_hash_switch: bool, + new_utxo_switch: bool, + new_coord_switch: bool, + input_switch: bool, + + curr_mem_switches: MemSwitchboard, + target_mem_switches: MemSwitchboard, + rom_switches: RomSwitchboard, irw: InterRoundWires, } -#[derive(Clone)] +#[derive(Clone, Debug)] pub struct ProgramState { - consumed: bool, + expected_input: F, + arg: F, + counters: F, + initialized: bool, finalized: bool, - input: F, - output: F, - commitment: [F; 4], + did_burn: bool, + owned_by: F, // an index into the process table } /// IVC wires (state between steps) @@ -127,94 +299,26 @@ pub struct ProgramState { /// these get input and output variables #[derive(Clone)] pub struct InterRoundWires { - current_program: F, - utxos_len: F, + id_curr: F, + id_prev: F, + + p_len: F, n_finalized: F, } impl ProgramStateWires { - const CONSUMED: &str = "consumed"; - const FINALIZED: &str = "finalized"; - const INPUT: &str = "input"; - const OUTPUT: &str = "output"; - - fn to_var_vec(&self) -> Vec> { - [ - vec![ - self.consumed.clone(), - self.finalized.clone(), - self.input.clone(), - self.output.clone(), - ], - self.commitment.to_vec(), - ] - .concat() - } - - fn conditionally_enforce_equal( - &self, - other: &Self, - should_enforce: &Boolean, - except: HashSet<&'static str>, - ) -> Result<(), SynthesisError> { - if !except.contains(Self::CONSUMED) { - // dbg!(&self.consumed.value().unwrap()); - // dbg!(&other.consumed.value().unwrap()); - self.consumed - .conditional_enforce_equal(&other.consumed, should_enforce)?; - } - if !except.contains(Self::FINALIZED) { - // dbg!(&self.finalized.value().unwrap()); - // dbg!(&other.finalized.value().unwrap()); - self.finalized - .conditional_enforce_equal(&other.finalized, should_enforce)?; - } - if !except.contains(Self::INPUT) { - // dbg!(&self.input.value().unwrap()); - // dbg!(&other.input.value().unwrap()); - self.input - .conditional_enforce_equal(&other.input, should_enforce)?; - } - if !except.contains(Self::OUTPUT) { - // dbg!(&self.output.value().unwrap()); - // dbg!(&other.output.value().unwrap()); - - self.output - .conditional_enforce_equal(&other.output, should_enforce)?; - } - Ok(()) - } - - fn from_vec(utxo_read_wires: Vec>) -> ProgramStateWires { - ProgramStateWires { - consumed: utxo_read_wires[0].clone(), - finalized: utxo_read_wires[1].clone(), - input: utxo_read_wires[2].clone(), - output: utxo_read_wires[3].clone(), - commitment: array::from_fn(|i| utxo_read_wires[i + 4].clone()), - } - } - fn from_write_values( cs: ConstraintSystemRef, - utxo_write_values: &ProgramState, + write_values: &ProgramState, ) -> Result { - let commitment = utxo_write_values - .commitment - .iter() - .map(|comm_limb| FpVar::new_witness(cs.clone(), || Ok(comm_limb))) - .collect::, _>>()?; - Ok(ProgramStateWires { - consumed: FpVar::from(Boolean::new_witness(cs.clone(), || { - Ok(utxo_write_values.consumed) - })?), - finalized: FpVar::from(Boolean::new_witness(cs.clone(), || { - Ok(utxo_write_values.finalized) - })?), - input: FpVar::new_witness(cs.clone(), || Ok(utxo_write_values.input))?, - output: FpVar::new_witness(cs.clone(), || Ok(utxo_write_values.output))?, - commitment: commitment.try_into().unwrap(), + expected_input: FpVar::new_witness(cs.clone(), || Ok(write_values.expected_input))?, + arg: FpVar::new_witness(cs.clone(), || Ok(write_values.arg))?, + counters: FpVar::new_witness(cs.clone(), || Ok(write_values.counters))?, + initialized: Boolean::new_witness(cs.clone(), || Ok(write_values.initialized))?, + finalized: Boolean::new_witness(cs.clone(), || Ok(write_values.finalized))?, + did_burn: Boolean::new_witness(cs.clone(), || Ok(write_values.did_burn))?, + owned_by: FpVar::new_witness(cs.clone(), || Ok(write_values.owned_by))?, }) } } @@ -223,26 +327,28 @@ impl Wires { pub fn from_irw>( vals: &PreWires, rm: &mut M, - utxo_write_values: &ProgramState, - coord_write_values: &ProgramState, + current_write_values: &ProgramState, + target_write_values: &ProgramState, ) -> Result { vals.debug_print(); let cs = rm.get_cs(); // io vars - let current_program = FpVar::::new_witness(cs.clone(), || Ok(vals.irw.current_program))?; - let utxos_len = FpVar::::new_witness(cs.clone(), || Ok(vals.irw.utxos_len))?; - let n_finalized = FpVar::::new_witness(cs.clone(), || Ok(vals.irw.n_finalized))?; + let id_curr = FpVar::::new_witness(cs.clone(), || Ok(vals.irw.id_curr))?; + let utxos_len = FpVar::::new_witness(cs.clone(), || Ok(vals.irw.p_len))?; // switches let switches = [ vals.resume_switch, - vals.yield_end_switch, - vals.yield_start_switch, + vals.yield_switch, vals.check_utxo_output_switch, vals.nop_switch, - vals.drop_utxo_switch, + vals.burn_switch, + vals.program_hash_switch, + vals.new_utxo_switch, + vals.new_coord_switch, + vals.input_switch, ]; let allocated_switches: Vec<_> = switches @@ -252,11 +358,14 @@ impl Wires { let [ resume_switch, - yield_resume_switch, - utxo_yield_switch, + yield_switch, check_utxo_output_switch, nop_switch, - drop_utxo_switch, + burn_switch, + program_hash_switch, + new_utxo_switch, + new_coord_switch, + input_switch, ] = allocated_switches.as_slice() else { unreachable!() @@ -276,149 +385,424 @@ impl Wires { ) .unwrap(); - let utxo_id = FpVar::::new_witness(ns!(cs.clone(), "utxo_id"), || Ok(vals.utxo_id))?; + let target = FpVar::::new_witness(ns!(cs.clone(), "target"), || Ok(vals.target))?; - let input = FpVar::::new_witness(ns!(cs.clone(), "input"), || Ok(vals.input))?; - let output = FpVar::::new_witness(ns!(cs.clone(), "output"), || Ok(vals.output))?; + let val = FpVar::::new_witness(ns!(cs.clone(), "val"), || Ok(vals.val))?; + let ret = FpVar::::new_witness(ns!(cs.clone(), "ret"), || Ok(vals.ret))?; - let utxo_address = FpVar::::new_witness(cs.clone(), || Ok(vals.utxo_address))?; - let coord_address = FpVar::::new_witness(cs.clone(), || Ok(vals.coord_address))?; + let id_prev = FpVar::::new_witness(cs.clone(), || Ok(vals.id_prev))?; + let program_hash = FpVar::::new_witness(cs.clone(), || Ok(vals.program_hash))?; - let coord_read_wires = rm.conditional_read( - &(yield_resume_switch | utxo_yield_switch), - &Address { - addr: coord_address.clone(), - tag: FpVar::new_constant(cs.clone(), F::from(RAM_SEGMENT))?, - }, - )?; - - let coord_read_wires = ProgramStateWires::from_vec(coord_read_wires); + let new_process_id = FpVar::::new_witness(cs.clone(), || Ok(vals.new_process_id))?; + let caller = FpVar::::new_witness(cs.clone(), || Ok(vals.caller))?; - let utxo_read_wires = rm.conditional_read( - check_utxo_output_switch, - &Address { - addr: utxo_address.clone(), - tag: FpVar::new_constant(cs.clone(), F::from(RAM_SEGMENT))?, - }, - )?; + let curr_mem_switches = MemSwitchboardWires::allocate(cs.clone(), &vals.curr_mem_switches)?; + let target_mem_switches = + MemSwitchboardWires::allocate(cs.clone(), &vals.target_mem_switches)?; - let utxo_read_wires = ProgramStateWires::from_vec(utxo_read_wires); + let curr_address = FpVar::::new_witness(cs.clone(), || Ok(vals.irw.id_curr))?; + let curr_read_wires = + program_state_read_wires(rm, &cs, curr_address.clone(), &curr_mem_switches)?; - let utxo_write_wires = ProgramStateWires::from_write_values(cs.clone(), utxo_write_values)?; + // TODO: make conditional for opcodes without target + let target_address = FpVar::::new_witness(cs.clone(), || Ok(vals.target))?; + let target_read_wires = + program_state_read_wires(rm, &cs, target_address.clone(), &target_mem_switches)?; - let coord_write_wires = - ProgramStateWires::from_write_values(cs.clone(), coord_write_values)?; + let curr_write_wires = + ProgramStateWires::from_write_values(cs.clone(), current_write_values)?; - let coord_conditional_write_switch = &resume_switch; + let target_write_wires = + ProgramStateWires::from_write_values(cs.clone(), target_write_values)?; - rm.conditional_write( - coord_conditional_write_switch, - &Address { - addr: coord_address.clone(), - tag: FpVar::new_constant(cs.clone(), F::from(RAM_SEGMENT))?, - }, - &coord_write_wires.to_var_vec(), + program_state_write_wires( + rm, + &cs, + curr_address.clone(), + curr_write_wires.clone(), + &curr_mem_switches, + )?; + program_state_write_wires( + rm, + &cs, + target_address.clone(), + target_write_wires.clone(), + &target_mem_switches, )?; - let utxo_conditional_write_switch = - utxo_yield_switch | resume_switch | yield_resume_switch | check_utxo_output_switch; + let rom_switches = RomSwitchboardWires::allocate(cs.clone(), &vals.rom_switches)?; - rm.conditional_write( - &utxo_conditional_write_switch, + let is_utxo_curr = rm.conditional_read( + &rom_switches.read_is_utxo_curr, &Address { - addr: utxo_address.clone(), - tag: FpVar::new_constant(cs.clone(), F::from(RAM_SEGMENT))?, + addr: id_curr.clone(), + tag: FpVar::new_constant(cs.clone(), F::from(ROM_IS_UTXO))?, }, - &utxo_write_wires.to_var_vec(), - )?; - - constraint_incremental_commitment( - &utxo_read_wires, - &utxo_write_wires, - &(utxo_conditional_write_switch & !check_utxo_output_switch), - )?; - - let coordination_script = FpVar::::new_constant(cs.clone(), F::from(1))?; + )?[0] + .clone(); - let rom_read_wires = rm.conditional_read( - &!nop_switch, + let is_utxo_target = rm.conditional_read( + &rom_switches.read_is_utxo_target, &Address { - addr: (&utxo_address + &utxos_len), - tag: FpVar::new_constant(cs.clone(), F::from(UTXO_INDEX_MAPPING_SEGMENT))?, + addr: target_address.clone(), + tag: FpVar::new_constant(cs.clone(), F::from(ROM_IS_UTXO))?, }, - )?; - - rom_read_wires[0].enforce_equal(&utxo_id)?; + )?[0] + .clone(); - let utxo_output_address = &utxo_address + &utxos_len + &utxos_len; + let must_burn_curr = rm.conditional_read( + &rom_switches.read_must_burn_curr, + &Address { + addr: id_curr.clone(), + tag: FpVar::new_constant(cs.clone(), F::from(ROM_MUST_BURN))?, + }, + )?[0] + .clone(); - let utxo_rom_output_read = rm.conditional_read( - check_utxo_output_switch, + let rom_program_hash = rm.conditional_read( + &rom_switches.read_program_hash_target, &Address { - addr: utxo_output_address, - tag: FpVar::new_constant(cs.clone(), F::from(OUTPUT_CHECK_SEGMENT))?, + addr: target_address.clone(), + tag: FpVar::new_constant(cs.clone(), F::from(ROM_PROCESS_TABLE))?, }, - )?; + )?[0] + .clone(); Ok(Wires { - current_program, + id_curr, + id_prev, + utxos_len, - n_finalized, - utxo_yield_switch: utxo_yield_switch.clone(), - yield_resume_switch: yield_resume_switch.clone(), + yield_switch: yield_switch.clone(), resume_switch: resume_switch.clone(), check_utxo_output_switch: check_utxo_output_switch.clone(), - drop_utxo_switch: drop_utxo_switch.clone(), - - utxo_id, - input, - output, - utxo_read_wires, - coord_read_wires, - coordination_script, - - utxo_write_wires, - - utxo_final_output: utxo_rom_output_read[0].clone(), - utxo_final_consumed: utxo_rom_output_read[1].clone(), + burn_switch: burn_switch.clone(), + program_hash_switch: program_hash_switch.clone(), + new_utxo_switch: new_utxo_switch.clone(), + new_coord_switch: new_coord_switch.clone(), + input_switch: input_switch.clone(), constant_false: Boolean::new_constant(cs.clone(), false)?, constant_true: Boolean::new_constant(cs.clone(), true)?, constant_one: FpVar::new_constant(cs.clone(), F::from(1))?, + + // wit_wires + target, + val, + ret, + program_hash, + caller, + + curr_read_wires, + curr_write_wires, + + target_read_wires, + target_write_wires, + + curr_mem_switches, + target_mem_switches, + rom_switches, + + is_utxo_curr, + is_utxo_target, + must_burn_curr, + rom_program_hash, }) } } -fn constraint_incremental_commitment( - utxo_read_wires: &ProgramStateWires, - utxo_write_wires: &ProgramStateWires, - cond: &Boolean, -) -> Result<(), SynthesisError> { - let result = compress(&array::from_fn(|i| { - if i == 0 { - utxo_write_wires.input.clone() - } else if i == 1 { - utxo_write_wires.output.clone() - } else if i >= 4 { - (utxo_read_wires.commitment[i - 4]).clone() - } else { - FpVar::Constant(F::from(0)) - } - }))?; +fn program_state_read_wires>( + rm: &mut M, + cs: &ConstraintSystemRef, + address: FpVar, + switches: &MemSwitchboardWires, +) -> Result { + Ok(ProgramStateWires { + expected_input: rm + .conditional_read( + &switches.expected_input, + &Address { + addr: address.clone(), + tag: FpVar::new_constant(cs.clone(), F::from(RAM_EXPECTED_INPUT))?, + }, + )? + .into_iter() + .next() + .unwrap(), + arg: rm + .conditional_read( + &switches.arg, + &Address { + addr: address.clone(), + tag: FpVar::new_constant(cs.clone(), F::from(RAM_ARG))?, + }, + )? + .into_iter() + .next() + .unwrap(), + counters: rm + .conditional_read( + &switches.counters, + &Address { + addr: address.clone(), + tag: FpVar::new_constant(cs.clone(), F::from(RAM_COUNTERS))?, + }, + )? + .into_iter() + .next() + .unwrap(), + initialized: rm + .conditional_read( + &switches.initialized, + &Address { + addr: address.clone(), + tag: FpVar::new_constant(cs.clone(), F::from(RAM_INITIALIZED))?, + }, + )? + .into_iter() + .next() + .unwrap() + .is_one()?, + finalized: rm + .conditional_read( + &switches.finalized, + &Address { + addr: address.clone(), + tag: FpVar::new_constant(cs.clone(), F::from(RAM_FINALIZED))?, + }, + )? + .into_iter() + .next() + .unwrap() + .is_one()?, + + did_burn: rm + .conditional_read( + &switches.did_burn, + &Address { + addr: address.clone(), + tag: FpVar::new_constant(cs.clone(), F::from(RAM_DID_BURN))?, + }, + )? + .into_iter() + .next() + .unwrap() + .is_one()?, + owned_by: rm + .conditional_read( + &switches.ownership, + &Address { + addr: address.clone(), + tag: FpVar::new_constant(cs.clone(), F::from(RAM_OWNERSHIP))?, + }, + )? + .into_iter() + .next() + .unwrap(), + }) +} - utxo_write_wires - .commitment - .conditional_enforce_equal(&result, cond)?; +// this is out-of-circuit logic (witness generation) +fn trace_program_state_reads>( + mem: &mut M, + pid: u64, + switches: &MemSwitchboard, +) -> ProgramState { + ProgramState { + expected_input: mem.conditional_read( + switches.expected_input, + Address { + addr: pid, + tag: RAM_EXPECTED_INPUT, + }, + )[0], + arg: mem.conditional_read( + switches.arg, + Address { + addr: pid, + tag: RAM_ARG, + }, + )[0], + counters: mem.conditional_read( + switches.counters, + Address { + addr: pid, + tag: RAM_COUNTERS, + }, + )[0], + initialized: mem.conditional_read( + switches.initialized, + Address { + addr: pid, + tag: RAM_INITIALIZED, + }, + )[0] == F::ONE, + finalized: mem.conditional_read( + switches.finalized, + Address { + addr: pid, + tag: RAM_FINALIZED, + }, + )[0] == F::ONE, + did_burn: mem.conditional_read( + switches.did_burn, + Address { + addr: pid, + tag: RAM_DID_BURN, + }, + )[0] == F::ONE, + owned_by: mem.conditional_read( + switches.ownership, + Address { + addr: pid, + tag: RAM_OWNERSHIP, + }, + )[0], + } +} + +// this is out-of-circuit logic (witness generation) +fn trace_program_state_writes>( + mem: &mut M, + pid: u64, + state: &ProgramState, + switches: &MemSwitchboard, +) { + mem.conditional_write( + switches.expected_input, + Address { + addr: pid, + tag: RAM_EXPECTED_INPUT, + }, + [state.expected_input].to_vec(), + ); + mem.conditional_write( + switches.arg, + Address { + addr: pid, + tag: RAM_ARG, + }, + [state.arg].to_vec(), + ); + mem.conditional_write( + switches.counters, + Address { + addr: pid, + tag: RAM_COUNTERS, + }, + [state.counters].to_vec(), + ); + mem.conditional_write( + switches.initialized, + Address { + addr: pid, + tag: RAM_INITIALIZED, + }, + [F::from(state.initialized)].to_vec(), + ); + mem.conditional_write( + switches.finalized, + Address { + addr: pid, + tag: RAM_FINALIZED, + }, + [F::from(state.finalized)].to_vec(), + ); + mem.conditional_write( + switches.did_burn, + Address { + addr: pid, + tag: RAM_DID_BURN, + }, + [F::from(state.did_burn)].to_vec(), + ); + mem.conditional_write( + switches.ownership, + Address { + addr: pid, + tag: RAM_OWNERSHIP, + }, + [state.owned_by].to_vec(), + ); +} + +fn program_state_write_wires>( + rm: &mut M, + cs: &ConstraintSystemRef, + address: FpVar, + state: ProgramStateWires, + switches: &MemSwitchboardWires, +) -> Result<(), SynthesisError> { + rm.conditional_write( + &switches.expected_input, + &Address { + addr: address.clone(), + tag: FpVar::new_constant(cs.clone(), F::from(RAM_EXPECTED_INPUT))?, + }, + &[state.expected_input.clone()], + )?; + + rm.conditional_write( + &switches.arg, + &Address { + addr: address.clone(), + tag: FpVar::new_constant(cs.clone(), F::from(RAM_ARG))?, + }, + &[state.arg.clone()], + )?; + rm.conditional_write( + &switches.counters, + &Address { + addr: address.clone(), + tag: FpVar::new_constant(cs.clone(), F::from(RAM_COUNTERS))?, + }, + &[state.counters.clone()], + )?; + rm.conditional_write( + &switches.initialized, + &Address { + addr: address.clone(), + tag: FpVar::new_constant(cs.clone(), F::from(RAM_INITIALIZED))?, + }, + &[state.initialized.clone().into()], + )?; + rm.conditional_write( + &switches.finalized, + &Address { + addr: address.clone(), + tag: FpVar::new_constant(cs.clone(), F::from(RAM_FINALIZED))?, + }, + &[state.finalized.clone().into()], + )?; + + rm.conditional_write( + &switches.did_burn, + &Address { + addr: address.clone(), + tag: FpVar::new_constant(cs.clone(), F::from(RAM_DID_BURN))?, + }, + &[state.did_burn.clone().into()], + )?; + + rm.conditional_write( + &switches.ownership, + &Address { + addr: address.clone(), + tag: FpVar::new_constant(cs.clone(), F::from(RAM_OWNERSHIP))?, + }, + &[state.owned_by.clone()], + )?; Ok(()) } impl InterRoundWires { - pub fn new(rom_offset: F) -> Self { + pub fn new(p_len: F) -> Self { InterRoundWires { - current_program: F::from(1), - utxos_len: rom_offset, + id_curr: F::from(1), + id_prev: F::from(0), // None + p_len, n_finalized: F::from(0), } } @@ -428,166 +812,122 @@ impl InterRoundWires { tracing::debug!( "current_program from {} to {}", - self.current_program, - res.current_program.value().unwrap() + self.id_curr, + res.id_curr.value().unwrap() ); - self.current_program = res.current_program.value().unwrap(); + self.id_curr = res.id_curr.value().unwrap(); tracing::debug!( - "utxos_len from {} to {}", - self.utxos_len, - res.utxos_len.value().unwrap() + "prev_program from {} to {}", + self.id_prev, + res.id_prev.value().unwrap() ); - self.utxos_len = res.utxos_len.value().unwrap(); + self.id_curr = res.id_curr.value().unwrap(); tracing::debug!( - "n_finalized from {} to {}", - self.n_finalized, - res.n_finalized.value().unwrap() + "utxos_len from {} to {}", + self.p_len, + res.utxos_len.value().unwrap() ); - self.n_finalized = res.n_finalized.value().unwrap(); + self.p_len = res.utxos_len.value().unwrap(); } } impl LedgerOperation { - pub fn write_values( + // state transitions for current and target (next) programs + // in general, we only change the state of a most two processes in a single + // step. + // + // this takes the current state for both of those processes, and returns the + // new state for each one too. + pub fn program_state_transitions( &self, - coord_read: Vec, - utxo_read: Vec, + curr_read: ProgramState, + target_read: ProgramState, ) -> (ProgramState, ProgramState) { - match &self { - LedgerOperation::Nop {} => (ProgramState::dummy(), ProgramState::dummy()), - LedgerOperation::Resume { - utxo_id: _, - input, - output, - } => { - let coord = ProgramState { - consumed: coord_read[0] == F::from(1), - finalized: coord_read[1] == F::from(1), - input: *input, - output: *output, - commitment: compress_trace(&array::from_fn(|i| { - if i == 0 { - *input - } else if i == 1 { - *output - } else if i >= 4 { - coord_read[i] - } else { - F::from(0) - } - })) - .unwrap(), - }; + let mut curr_write = curr_read.clone(); + let mut target_write = target_read.clone(); - let utxo = ProgramState { - consumed: true, - finalized: utxo_read[1] == F::from(1), - input: utxo_read[2], - output: utxo_read[3], - commitment: compress_trace(&array::from_fn(|i| { - if i == 0 { - utxo_read[2] - } else if i == 1 { - utxo_read[3] - } else if i >= 4 { - utxo_read[i] - } else { - F::from(0) - } - })) - .unwrap(), - }; + // All operations increment the counter of the current process + curr_write.counters += F::ONE; - (coord, utxo) + match self { + LedgerOperation::Nop {} => { + // Nop does nothing to the state + curr_write.counters -= F::ONE; // revert counter increment + } + LedgerOperation::Resume { val, ret, .. } => { + // Current process gives control to target. + // It's `arg` is cleared, and its `expected_input` is set to the return value `ret`. + curr_write.arg = F::ZERO; // Represents None + curr_write.expected_input = *ret; + + // Target process receives control. + // Its `arg` is set to `val`, and it is no longer in a `finalized` state. + target_write.arg = *val; + target_write.finalized = false; } - LedgerOperation::YieldResume { - utxo_id: _, - output: _, + LedgerOperation::Yield { + // The yielded value `val` is checked against the parent's `expected_input`, + // but this doesn't change the parent's state itself. + val: _, + ret, + .. } => { - let coord = ProgramState::dummy(); - - let utxo = ProgramState { - consumed: utxo_read[0] == F::from(1), - finalized: utxo_read[1] == F::from(1), - input: utxo_read[2], - output: utxo_read[3], - commitment: compress_trace(&array::from_fn(|i| { - if i == 0 { - utxo_read[2] - } else if i == 1 { - utxo_read[3] - } else if i >= 4 { - utxo_read[i] - } else { - F::from(0) - } - })) - .unwrap(), - }; - - (coord, utxo) + // Current process yields control back to its parent (the target of this operation). + // Its `arg` is cleared. + curr_write.arg = F::ZERO; // Represents None + if let Some(r) = ret { + // If Yield returns a value, it expects a new input `r` for the next resume. + curr_write.expected_input = *r; + curr_write.finalized = false; + } else { + // If Yield does not return a value, it's a final yield for this UTXO. + curr_write.finalized = true; + } } - LedgerOperation::Yield { utxo_id: _, input } => { - let coord = ProgramState::dummy(); - - let utxo = ProgramState { - consumed: false, - finalized: utxo_read[1] == F::from(1), - input: F::from(0), - output: *input, - commitment: compress_trace(&array::from_fn(|i| { - if i == 0 { - F::from(0) - } else if i == 1 { - *input - } else if i >= 4 { - utxo_read[i] - } else { - F::from(0) - } - })) - .unwrap(), - }; - - (coord, utxo) + LedgerOperation::Burn { ret } => { + // The current UTXO is burned. + curr_write.arg = F::ZERO; // Represents None + curr_write.finalized = true; + curr_write.did_burn = true; + curr_write.expected_input = *ret; // Sets its final return value. } - LedgerOperation::CheckUtxoOutput { utxo_id: _ } => { - let coord = ProgramState::dummy(); - - let utxo = ProgramState { - consumed: utxo_read[0] == F::from(1), - finalized: true, - input: utxo_read[2], - output: utxo_read[3], - commitment: array::from_fn(|i| utxo_read[i]), - }; - - (coord, utxo) + LedgerOperation::NewUtxo { val, target: _, .. } + | LedgerOperation::NewCoord { val, target: _, .. } => { + // The current process is a coordinator creating a new process. + // The new process (target) is initialized. + target_write.initialized = true; + target_write.expected_input = *val; + target_write.counters = F::ZERO; } - LedgerOperation::DropUtxo { utxo_id: _ } => { - let coord = ProgramState::dummy(); - let utxo = ProgramState::dummy(); - - (coord, utxo) + _ => { + // For other opcodes, we just increment the counter. } } + (curr_write, target_write) } } impl> StepCircuitBuilder { - pub fn new(utxos: BTreeMap, ops: Vec>) -> Self { + pub fn new(instance: InterleavingInstance, ops: Vec>) -> Self { + let last_yield = instance + .input_states + .iter() + .map(|v| value_to_field(v.last_yield.clone())) + .collect(); + Self { - utxos, ops, write_ops: vec![], - utxo_order_mapping: Default::default(), - + mem_switches: vec![], + rom_switches: vec![], mem: PhantomData, + instance, + last_yield, } } @@ -617,11 +957,11 @@ impl> StepCircuitBuilder { let next_wires = wires_in.clone(); // per opcode constraints - let next_wires = self.visit_utxo_yield(next_wires)?; - let next_wires = self.visit_utxo_yield_resume(next_wires)?; - let next_wires = self.visit_utxo_resume(next_wires)?; - let next_wires = self.visit_utxo_output_check(next_wires)?; - let next_wires = self.visit_utxo_drop(next_wires)?; + let next_wires = self.visit_yield(next_wires)?; + let next_wires = self.visit_resume(next_wires)?; + let next_wires = self.visit_burn(next_wires)?; + let next_wires = self.visit_new_process(next_wires)?; + let next_wires = self.visit_input(next_wires)?; rm.finish_step(i == self.ops.len() - 1)?; @@ -636,175 +976,224 @@ impl> StepCircuitBuilder { } pub fn trace_memory_ops(&mut self, params: >::Params) -> M { - let utxos_len = self.utxos.len() as u64; - let (mut mb, utxo_order_mapping) = { + // initialize all the maps + let mut mb = { let mut mb = M::new(params); - mb.register_mem(RAM_SEGMENT, PROGRAM_STATE_SIZE, "RAM"); - mb.register_mem( - UTXO_INDEX_MAPPING_SEGMENT, - UTXO_INDEX_MAPPING_SIZE, - "UTXO_INDEX_MAPPING", - ); - mb.register_mem(OUTPUT_CHECK_SEGMENT, OUTPUT_CHECK_SIZE, "EXPECTED_OUTPUTS"); + mb.register_mem(ROM_PROCESS_TABLE, 1, "ROM_PROCESS_TABLE"); + mb.register_mem(ROM_MUST_BURN, 1, "ROM_MUST_BURN"); + mb.register_mem(ROM_IS_UTXO, 1, "ROM_IS_UTXO"); + mb.register_mem(RAM_EXPECTED_INPUT, 1, "RAM_EXPECTED_INPUT"); + mb.register_mem(RAM_ARG, 1, "RAM_ARG"); + mb.register_mem(RAM_COUNTERS, 1, "RAM_COUNTERS"); + mb.register_mem(RAM_INITIALIZED, 1, "RAM_INITIALIZED"); + mb.register_mem(RAM_FINALIZED, 1, "RAM_FINALIZED"); + mb.register_mem(RAM_DID_BURN, 1, "RAM_DID_BURN"); + mb.register_mem(RAM_OWNERSHIP, 1, "RAM_OWNERSHIP"); + + for (pid, mod_hash) in self.instance.process_table.iter().enumerate() { + mb.init( + Address { + addr: pid as u64, + tag: ROM_PROCESS_TABLE, + }, + // TODO: use a proper conversion from hash to val, this is just a placeholder + vec![F::from(mod_hash.0[0] as u64)], + ); - let mut utxo_order_mapping: HashMap = Default::default(); + mb.init( + Address { + addr: pid as u64, + tag: RAM_INITIALIZED, + }, + vec![F::from( + if pid < self.instance.n_inputs || pid == self.instance.entrypoint.0 { + 1 + } else { + 0 + }, + )], + ); - mb.init( - Address { - addr: 1, - tag: RAM_SEGMENT, - }, - ProgramState::dummy().to_field_vec(), - ); + mb.init( + Address { + addr: pid as u64, + tag: RAM_COUNTERS, + }, + vec![F::from(0u64)], + ); + + mb.init( + Address { + addr: pid as u64, + tag: RAM_FINALIZED, + }, + vec![F::from(0u64)], // false + ); + + mb.init( + Address { + addr: pid as u64, + tag: RAM_DID_BURN, + }, + vec![F::from(0u64)], // false + ); - for ( - index, - ( - utxo_id, - UtxoChange { - output_before, - output_after, - consumed, + mb.init( + Address { + addr: pid as u64, + tag: RAM_EXPECTED_INPUT, + }, + vec![if pid >= self.instance.n_inputs { + F::from(0u64) + } else { + self.last_yield[pid] + }], + ); + + mb.init( + Address { + addr: pid as u64, + tag: RAM_ARG, }, - ), - ) in self.utxos.iter().enumerate() - { + vec![F::from(0u64)], // None + ); + } + + for (pid, must_burn) in self.instance.must_burn.iter().enumerate() { mb.init( - // 0 is not a valid address - // 1 is the coordination script - // utxos start at 2 Address { - addr: index as u64 + 2, - tag: RAM_SEGMENT, + addr: pid as u64, + tag: ROM_MUST_BURN, }, - ProgramState { - consumed: false, - finalized: false, - input: F::from(0), - output: *output_before, - commitment: array::from_fn(|_i| F::from(0)), - } - .to_field_vec(), + vec![F::from(if *must_burn { 1u64 } else { 0 })], ); + } + for (pid, is_utxo) in self.instance.is_utxo.iter().enumerate() { mb.init( Address { - addr: index as u64 + 2 + utxos_len, - tag: UTXO_INDEX_MAPPING_SEGMENT, + addr: pid as u64, + tag: ROM_IS_UTXO, }, - vec![*utxo_id], + vec![F::from(if *is_utxo { 1u64 } else { 0 })], ); + } - utxo_order_mapping.insert(*utxo_id, index + 2); + // TODO: initialize ownership too + for (pid, owner) in self.instance.ownership_in.iter().enumerate() { mb.init( Address { - addr: index as u64 + 2 + utxos_len * 2, - tag: OUTPUT_CHECK_SEGMENT, + addr: pid as u64, + tag: ROM_IS_UTXO, }, - vec![*output_after, F::from(if *consumed { 1 } else { 0 })], + vec![F::from( + owner + .map(|p| p.0) + // probably using 0 for null is better but it would + // mean checking that pids are always greater than + // 0, so review later + .unwrap_or(self.instance.process_table.len()) + as u64, + )], ); } - (mb, utxo_order_mapping) + mb }; - let utxos_len = self.utxos.len() as u64; - - self.utxo_order_mapping = utxo_order_mapping; + let mut curr_pid = self.instance.entrypoint.0 as u64; + let mut prev_pid: Option = None; // out of circuit memory operations. // this is needed to commit to the memory operations before-hand. + // + // and here we compute the actual write values (for memory operations) + // + // note however that we don't enforce/check anything, that's done in the + // circuit constraints for instr in &self.ops { - // per step we conditionally: - // - // 1. read the coordination script state - // 2. read a single utxo state - // 3. write the new coordination script state - // 4. write the new utxo state (for the same utxo) - // - // Aditionally we read from the ROM - // - // 5. The expected utxo final state (if the check utxo switch is on). - // 6. The utxo id mapping. - // - // All instructions need to the same number of reads and writes, - // since these have to allocate witnesses. - // - // The witnesses are allocated in Wires::from_irw. - // - // Each read or write here needs a corresponding witness in that - // function, with the same switchboard condition, and the same - // address. - let (utxo_id, coord_read_cond, utxo_read_cond, coord_write_cond, utxo_write_cond) = - match instr { - LedgerOperation::Resume { utxo_id, .. } => (*utxo_id, false, false, true, true), - LedgerOperation::YieldResume { utxo_id, .. } - | LedgerOperation::Yield { utxo_id, .. } => { - (*utxo_id, true, false, false, true) - } - LedgerOperation::CheckUtxoOutput { utxo_id } => { - (*utxo_id, false, true, false, true) - } - LedgerOperation::Nop {} => (F::from(0), false, false, false, false), - LedgerOperation::DropUtxo { utxo_id } => (*utxo_id, false, false, false, false), - }; - - let utxo_addr = *self.utxo_order_mapping.get(&utxo_id).unwrap_or(&2); - - let coord_read = mb.conditional_read( - coord_read_cond, - Address { - addr: 1, - tag: RAM_SEGMENT, - }, - ); - let utxo_read = mb.conditional_read( - utxo_read_cond, + let (curr_switches, target_switches) = opcode_to_mem_switches(instr); + self.mem_switches + .push((curr_switches.clone(), target_switches.clone())); + + let rom_switches = opcode_to_rom_switches(instr); + self.rom_switches.push(rom_switches.clone()); + + let target_addr = match instr { + LedgerOperation::Resume { target, .. } => Some(*target), + LedgerOperation::Yield { .. } => prev_pid.map(F::from), + LedgerOperation::Burn { .. } => prev_pid.map(F::from), + LedgerOperation::NewUtxo { target: id, .. } => Some(*id), + LedgerOperation::NewCoord { target: id, .. } => Some(*id), + LedgerOperation::ProgramHash { target, .. } => Some(*target), + _ => None, + }; + + let curr_read = trace_program_state_reads(&mut mb, curr_pid, &curr_switches); + + let target_pid = target_addr.map(|t| t.into_bigint().0[0]); + let target_read = + trace_program_state_reads(&mut mb, target_pid.unwrap_or(0), &target_switches); + + // Trace ROM reads + mb.conditional_read( + rom_switches.read_is_utxo_curr, Address { - addr: utxo_addr as u64, - tag: RAM_SEGMENT, + addr: curr_pid, + tag: ROM_IS_UTXO, }, ); - - let (coord_write, utxo_write) = instr.write_values(coord_read, utxo_read); - - self.write_ops - .push((coord_write.clone(), utxo_write.clone())); - - mb.conditional_write( - coord_write_cond, + mb.conditional_read( + rom_switches.read_is_utxo_target, Address { - addr: 1, - tag: RAM_SEGMENT, + addr: target_pid.unwrap_or(0), + tag: ROM_IS_UTXO, }, - coord_write.to_field_vec(), ); - mb.conditional_write( - utxo_write_cond, + mb.conditional_read( + rom_switches.read_must_burn_curr, Address { - addr: utxo_addr as u64, - tag: RAM_SEGMENT, + addr: curr_pid, + tag: ROM_MUST_BURN, }, - utxo_write.to_field_vec(), ); - mb.conditional_read( - !matches!(instr, LedgerOperation::Nop {}), + rom_switches.read_program_hash_target, Address { - addr: utxo_addr as u64 + utxos_len, - tag: UTXO_INDEX_MAPPING_SEGMENT, + addr: target_pid.unwrap_or(0), + tag: ROM_PROCESS_TABLE, }, ); - mb.conditional_read( - matches!(instr, LedgerOperation::CheckUtxoOutput { .. }), - Address { - addr: utxo_addr as u64 + utxos_len * 2, - tag: OUTPUT_CHECK_SEGMENT, - }, + let (curr_write, target_write) = + instr.program_state_transitions(curr_read, target_read); + + self.write_ops + .push((curr_write.clone(), target_write.clone())); + + trace_program_state_writes(&mut mb, curr_pid, &curr_write, &curr_switches); + trace_program_state_writes( + &mut mb, + target_pid.unwrap_or(0), + &target_write, + &target_switches, ); + + // update pids for next iteration + match instr { + LedgerOperation::Resume { target, .. } => { + prev_pid = Some(curr_pid); + curr_pid = target.into_bigint().0[0]; + } + LedgerOperation::Yield { .. } | LedgerOperation::Burn { .. } => { + let parent = prev_pid.expect("yield/burn must have parent"); + prev_pid = Some(curr_pid); + curr_pid = parent; + } + _ => {} + } } mb @@ -817,7 +1206,9 @@ impl> StepCircuitBuilder { irw: &InterRoundWires, ) -> Result { let instruction = &self.ops[i]; - let (coord_write, utxo_write) = &self.write_ops[i]; + let (curr_write, target_write) = &self.write_ops[i]; + let (curr_mem_switches, target_mem_switches) = &self.mem_switches[i]; + let rom_switches = &self.rom_switches[i]; match instruction { LedgerOperation::Nop {} => { @@ -825,255 +1216,368 @@ impl> StepCircuitBuilder { nop_switch: true, irw: irw.clone(), - // the first utxo has address 2 - // - // this doesn't matter since the read is unconditionally - // false, it's just for padding purposes - utxo_address: F::from(2_u64), - - ..PreWires::new(irw.clone()) + ..PreWires::new( + irw.clone(), + curr_mem_switches.clone(), + target_mem_switches.clone(), + rom_switches.clone(), + ) }; - Wires::from_irw(&irw, rm, utxo_write, coord_write) + Wires::from_irw(&irw, rm, curr_write, target_write) } LedgerOperation::Resume { - utxo_id, - input, - output, + target, + val, + ret, + id_prev, } => { - let utxo_addr = *self.utxo_order_mapping.get(utxo_id).unwrap(); - let irw = PreWires { resume_switch: true, - - utxo_id: *utxo_id, - input: *input, - output: *output, - - utxo_address: F::from(utxo_addr as u64), + target: *target, + val: val.clone(), + ret: ret.clone(), + id_prev: id_prev.clone().unwrap_or(F::ZERO), irw: irw.clone(), - ..PreWires::new(irw.clone()) + ..PreWires::new( + irw.clone(), + curr_mem_switches.clone(), + target_mem_switches.clone(), + rom_switches.clone(), + ) }; - Wires::from_irw(&irw, rm, utxo_write, coord_write) + Wires::from_irw(&irw, rm, curr_write, target_write) } - LedgerOperation::YieldResume { utxo_id, output } => { - let utxo_addr = *self.utxo_order_mapping.get(utxo_id).unwrap(); - + LedgerOperation::Yield { val, ret, id_prev } => { let irw = PreWires { - yield_end_switch: true, - - utxo_id: *utxo_id, - output: *output, - - utxo_address: F::from(utxo_addr as u64), + yield_switch: true, + target: irw.id_prev, + val: val.clone(), + ret: ret.clone().unwrap_or(F::ZERO), + id_prev: id_prev.clone().unwrap_or(F::ZERO), irw: irw.clone(), - ..PreWires::new(irw.clone()) + ..PreWires::new( + irw.clone(), + curr_mem_switches.clone(), + target_mem_switches.clone(), + rom_switches.clone(), + ) }; - Wires::from_irw(&irw, rm, utxo_write, coord_write) + Wires::from_irw(&irw, rm, curr_write, target_write) } - LedgerOperation::Yield { utxo_id, input } => { - let utxo_addr = *self.utxo_order_mapping.get(utxo_id).unwrap(); - + LedgerOperation::Burn { ret } => { let irw = PreWires { - yield_start_switch: true, - utxo_id: *utxo_id, - input: *input, - utxo_address: F::from(utxo_addr as u64), + burn_switch: true, + target: irw.id_prev, + ret: ret.clone(), irw: irw.clone(), - - ..PreWires::new(irw.clone()) + ..PreWires::new( + irw.clone(), + curr_mem_switches.clone(), + target_mem_switches.clone(), + rom_switches.clone(), + ) }; - Wires::from_irw(&irw, rm, utxo_write, coord_write) + Wires::from_irw(&irw, rm, curr_write, target_write) } - LedgerOperation::CheckUtxoOutput { utxo_id } => { - let utxo_addr = *self.utxo_order_mapping.get(utxo_id).unwrap(); - + LedgerOperation::ProgramHash { + target, + program_hash, + } => { let irw = PreWires { - check_utxo_output_switch: true, - utxo_id: *utxo_id, - utxo_address: F::from(utxo_addr as u64), + program_hash_switch: true, + target: *target, + program_hash: *program_hash, irw: irw.clone(), - ..PreWires::new(irw.clone()) + ..PreWires::new( + irw.clone(), + curr_mem_switches.clone(), + target_mem_switches.clone(), + rom_switches.clone(), + ) }; - - Wires::from_irw(&irw, rm, utxo_write, coord_write) + Wires::from_irw(&irw, rm, curr_write, target_write) } - LedgerOperation::DropUtxo { utxo_id } => { - let utxo_addr = *self.utxo_order_mapping.get(utxo_id).unwrap(); - + LedgerOperation::NewUtxo { + program_hash, + val, + target, + } => { let irw = PreWires { - drop_utxo_switch: true, - utxo_id: *utxo_id, - utxo_address: F::from(utxo_addr as u64), + new_utxo_switch: true, + target: *target, + val: *val, + program_hash: *program_hash, irw: irw.clone(), - ..PreWires::new(irw.clone()) + ..PreWires::new( + irw.clone(), + curr_mem_switches.clone(), + target_mem_switches.clone(), + rom_switches.clone(), + ) }; - - Wires::from_irw(&irw, rm, utxo_write, coord_write) + Wires::from_irw(&irw, rm, curr_write, target_write) + } + LedgerOperation::NewCoord { + program_hash, + val, + target, + } => { + let irw = PreWires { + new_coord_switch: true, + target: *target, + val: *val, + program_hash: *program_hash, + irw: irw.clone(), + ..PreWires::new( + irw.clone(), + curr_mem_switches.clone(), + target_mem_switches.clone(), + rom_switches.clone(), + ) + }; + Wires::from_irw(&irw, rm, curr_write, target_write) + } + LedgerOperation::Input { val, caller } => { + let irw = PreWires { + input_switch: true, + val: *val, + caller: *caller, + irw: irw.clone(), + ..PreWires::new( + irw.clone(), + curr_mem_switches.clone(), + target_mem_switches.clone(), + rom_switches.clone(), + ) + }; + Wires::from_irw(&irw, rm, curr_write, target_write) } } } #[tracing::instrument(target = "gr1cs", skip(self, wires))] - fn visit_utxo_resume(&self, mut wires: Wires) -> Result { + fn visit_resume(&self, mut wires: Wires) -> Result { let switch = &wires.resume_switch; - wires.utxo_read_wires.conditionally_enforce_equal( - &wires.utxo_write_wires, - switch, - [ProgramStateWires::CONSUMED].into_iter().collect(), - )?; + // --- + // Ckecks from the mocked verifier + // --- + // 1. self-resume check + wires + .id_curr + .conditional_enforce_not_equal(&wires.target, switch)?; + + // 2. UTXO cannot resume UTXO. + let is_utxo_curr = wires.is_utxo_curr.is_one()?; + let is_utxo_target = wires.is_utxo_target.is_one()?; + let both_are_utxos = is_utxo_curr & is_utxo_target; + both_are_utxos.conditional_enforce_equal(&Boolean::FALSE, switch)?; + // 3. Target must be initialized wires - .current_program - .conditional_enforce_equal(&wires.coordination_script, switch)?; + .target_read_wires + .initialized + .conditional_enforce_equal(&wires.constant_true.clone().into(), switch)?; + // 4. Re-entrancy check (target's arg must be None/0) wires - .utxo_write_wires - .consumed - .conditional_enforce_equal(&FpVar::from(wires.constant_true.clone()), switch)?; + .target_read_wires + .arg + .conditional_enforce_equal(&FpVar::zero(), switch)?; - wires.current_program = switch.select(&wires.utxo_id, &wires.current_program)?; + // 5. Claim check: val passed in must match target's expected_input. + wires + .target_read_wires + .expected_input + .conditional_enforce_equal(&wires.val, switch)?; + + // --- + // State update enforcement is implicitly handled by the MemSwitchboard. + // We trust that `write_values` computed the correct new state, and the switchboard + // correctly determines which fields are written. The circuit only needs to + // enforce the checks above and the IVC updates below. + // --- + + // --- + // IVC state updates + // --- + // On resume, current program becomes the target, and the old current program + // becomes the new previous program. + let next_id_curr = switch.select(&wires.target, &wires.id_curr)?; + let next_id_prev = switch.select(&wires.id_curr, &wires.id_prev)?; + wires.id_curr = next_id_curr; + wires.id_prev = next_id_prev; Ok(wires) } #[tracing::instrument(target = "gr1cs", skip(self, wires))] - fn visit_utxo_drop(&self, mut wires: Wires) -> Result { - let switch = &wires.drop_utxo_switch; + fn visit_burn(&self, mut wires: Wires) -> Result { + let switch = &wires.burn_switch; - wires.utxo_read_wires.conditionally_enforce_equal( - &wires.utxo_write_wires, - switch, - [].into_iter().collect(), - )?; + // --- + // Ckecks from the mocked verifier + // --- + // 1. Current process must be a UTXO. wires - .current_program - .conditional_enforce_equal(&wires.utxo_id, switch)?; - - wires.current_program = - switch.select(&wires.coordination_script, &wires.current_program)?; - - Ok(wires) - } - - #[tracing::instrument(target = "gr1cs", skip(self, wires))] - fn visit_utxo_yield_resume(&self, wires: Wires) -> Result { - let switch = &wires.yield_resume_switch; - - wires.utxo_read_wires.conditionally_enforce_equal( - &wires.utxo_write_wires, - switch, - [].into_iter().collect(), - )?; + .is_utxo_curr + .is_one()? + .conditional_enforce_equal(&Boolean::TRUE, switch)?; + // 2. This UTXO must be marked for burning. wires - .coord_read_wires - .input - .conditional_enforce_equal(&wires.output, switch)?; + .must_burn_curr + .is_one()? + .conditional_enforce_equal(&Boolean::TRUE, switch)?; + + // 3. Parent must exist. + let parent_is_some = !wires.id_prev.is_zero()?; + parent_is_some.conditional_enforce_equal(&Boolean::TRUE, switch)?; + // 2. Claim check: burned value `ret` must match parent's `expected_input`. + // Parent's state is in `target_read_wires`. wires - .current_program - .conditional_enforce_equal(&wires.utxo_id, switch)?; + .target_read_wires + .expected_input + .conditional_enforce_equal(&wires.ret, switch)?; + + // --- + // IVC state updates + // --- + // Like yield, current program becomes the parent, and new prev is the one that burned. + let next_id_curr = switch.select(&wires.id_prev, &wires.id_curr)?; + let next_id_prev = switch.select(&wires.id_curr, &wires.id_prev)?; + wires.id_curr = next_id_curr; + wires.id_prev = next_id_prev; Ok(wires) } #[tracing::instrument(target = "gr1cs", skip(self, wires))] - fn visit_utxo_yield(&self, mut wires: Wires) -> Result { - let switch = &wires.utxo_yield_switch; - - wires.utxo_read_wires.conditionally_enforce_equal( - &wires.utxo_write_wires, - switch, - [ - ProgramStateWires::CONSUMED, - ProgramStateWires::OUTPUT, - ProgramStateWires::INPUT, - ] - .into_iter() - .collect(), - )?; + fn visit_yield(&self, mut wires: Wires) -> Result { + let switch = &wires.yield_switch; - wires - .utxo_write_wires - .consumed - .conditional_enforce_equal(&FpVar::from(wires.constant_false.clone()), switch)?; + // --- + // Ckecks from the mocked verifier + // --- - wires - .coord_read_wires - .output - .conditional_enforce_equal(&wires.input, switch)?; + // 1. Must have a parent. id_prev must not be 0. + let parent_is_some = !wires.id_prev.is_zero()?; + parent_is_some.conditional_enforce_equal(&Boolean::TRUE, switch)?; + // 2. Claim check: yielded value `val` must match parent's `expected_input`. + // The parent's state is in `target_read_wires` because we set `target = irw.id_prev`. wires - .current_program - .conditional_enforce_equal(&wires.utxo_id, switch)?; - - wires.current_program = - switch.select(&wires.coordination_script, &wires.current_program)?; + .target_read_wires + .expected_input + .conditional_enforce_equal(&wires.val, switch)?; + + // --- + // State update enforcement + // --- + // The mock verifier shows that the parent's (target's) state is not modified by a Yield. + // Let's enforce that all write switches for the target are false. + wires + .target_mem_switches + .expected_input + .conditional_enforce_equal(&Boolean::FALSE, switch)?; + wires + .target_mem_switches + .arg + .conditional_enforce_equal(&Boolean::FALSE, switch)?; + // ... etc. for all fields of target_mem_switches + + // The state of the current process is updated by `write_values`, and the + // `curr_mem_switches` will ensure the correct fields are written. We don't + // need to re-enforce those updates here, just the checks. + + // --- + // IVC state updates + // --- + // On yield, the current program becomes the parent (old id_prev), + // and the new prev program is the one that just yielded. + let next_id_curr = switch.select(&wires.id_prev, &wires.id_curr)?; + let next_id_prev = switch.select(&wires.id_curr, &wires.id_prev)?; + wires.id_curr = next_id_curr; + wires.id_prev = next_id_prev; Ok(wires) } #[tracing::instrument(target = "gr1cs", skip(self, wires))] - fn visit_utxo_output_check(&self, mut wires: Wires) -> Result { - let switch = &wires.check_utxo_output_switch; + fn visit_new_process(&self, wires: Wires) -> Result { + let switch = &wires.new_utxo_switch | &wires.new_coord_switch; - wires.utxo_read_wires.conditionally_enforce_equal( - &wires.utxo_write_wires, - switch, - [ProgramStateWires::FINALIZED].into_iter().collect(), - )?; + // The target is the new process being created. + // The current process is the coordination script doing the creation. + // + // 1. Coordinator check: current process must NOT be a UTXO. wires - .current_program - .conditional_enforce_equal(&wires.coordination_script, switch)?; + .is_utxo_curr + .is_one()? + .conditional_enforce_equal(&Boolean::FALSE, &switch)?; + + // 2. Target type check + // TODO: this is wrong, there is no target in NewUtxo + let target_is_utxo = wires.is_utxo_target.is_one()?; + dbg!(wires.is_utxo_target.value().unwrap()); + dbg!(wires.new_utxo_switch.value().unwrap()); + // if new_utxo_switch is true, target_is_utxo must be true. + // if new_utxo_switch is false (i.e. new_coord_switch is true), target_is_utxo must be false. + target_is_utxo.conditional_enforce_equal(&wires.new_utxo_switch, &switch)?; + + // 3. Program hash check + // wires + // .rom_program_hash + // .conditional_enforce_equal(&wires.program_hash, &switch)?; + + // 4. Target counter must be 0. + // wires + // .target_read_wires + // .counters + // .conditional_enforce_equal(&FpVar::zero(), &switch)?; + + // 5. Target must not be initialized. + // wires + // .target_read_wires + // .initialized + // .conditional_enforce_equal(&wires.constant_false.clone().into(), &switch)?; - // utxo.output = expected.output - wires - .utxo_read_wires - .output - .conditional_enforce_equal(&wires.utxo_final_output, switch)?; + Ok(wires) + } - // utxo.consumed = expected.consumed - wires - .utxo_read_wires - .consumed - .conditional_enforce_equal(&wires.utxo_final_consumed, switch)?; + fn visit_input(&self, wires: Wires) -> Result { + let switch = &wires.input_switch; - // utxo.finalized = true; + // When a process calls `input`, it's reading the argument that was + // passed to it when it was resumed. + + // 1. Check that the value from the opcode matches the value in the `arg` register. wires - .utxo_write_wires - .finalized - .enforce_equal(&FpVar::from(switch.clone()))?; + .curr_read_wires + .arg + .conditional_enforce_equal(&wires.val, switch)?; - // Check that we don't have duplicated entries. Otherwise the - // finalization counter (n_finalized) will have the right value at the - // end, but not all the utxo states will be verified. + // 2. Check that the caller from the opcode matches the `id_prev` IVC variable. wires - .utxo_read_wires - .finalized - .conditional_enforce_equal(&FpVar::from(wires.constant_false.clone()), switch)?; - - // n_finalized += 1; - wires.n_finalized = switch.select( - &(&wires.n_finalized + &wires.constant_one), - &wires.n_finalized, - )?; + .id_prev + .conditional_enforce_equal(&wires.caller, switch)?; Ok(wires) } - pub(crate) fn rom_offset(&self) -> F { - F::from(self.utxos.len() as u64) + pub(crate) fn p_len(&self) -> usize { + self.instance.process_table.len() } } @@ -1082,127 +1586,100 @@ fn ivcify_wires( wires_in: &Wires, wires_out: &Wires, ) -> Result<(), SynthesisError> { - let (current_program_in, current_program_out) = { - let f_in = || wires_in.current_program.value(); - let f_out = || wires_out.current_program.value(); - let alloc_in = FpVar::new_variable(cs.clone(), f_in, AllocationMode::Input)?; - let alloc_out = FpVar::new_variable(cs.clone(), f_out, AllocationMode::Input)?; - - Ok((alloc_in, alloc_out)) - }?; - - wires_in - .current_program - .enforce_equal(¤t_program_in)?; - wires_out - .current_program - .enforce_equal(¤t_program_out)?; - - let (current_rom_offset_in, current_rom_offset_out) = { - let f_in = || wires_in.utxos_len.value(); - let f_out = || wires_out.utxos_len.value(); - let alloc_in = FpVar::new_variable(cs.clone(), f_in, AllocationMode::Input)?; - let alloc_out = FpVar::new_variable(cs.clone(), f_out, AllocationMode::Input)?; - - Ok((alloc_in, alloc_out)) - }?; - - wires_in.utxos_len.enforce_equal(¤t_rom_offset_in)?; - wires_out.utxos_len.enforce_equal(¤t_rom_offset_out)?; - - current_rom_offset_in.enforce_equal(¤t_rom_offset_out)?; - - let (current_n_finalized_in, current_n_finalized_out) = { - let cs = cs.clone(); - let f_in = || wires_in.n_finalized.value(); - let f_out = || wires_out.n_finalized.value(); - let alloc_in = FpVar::new_variable(cs.clone(), f_in, AllocationMode::Input)?; - let alloc_out = FpVar::new_variable(cs.clone(), f_out, AllocationMode::Input)?; - - Ok((alloc_in, alloc_out)) - }?; - - wires_in - .n_finalized - .enforce_equal(¤t_n_finalized_in)?; - wires_out - .n_finalized - .enforce_equal(¤t_n_finalized_out)?; + // let (current_program_in, current_program_out) = { + // let f_in = || wires_in.id_curr.value(); + // let f_out = || wires_out.id_curr.value(); + // let alloc_in = FpVar::new_variable(cs.clone(), f_in, AllocationMode::Input)?; + // let alloc_out = FpVar::new_variable(cs.clone(), f_out, AllocationMode::Input)?; + + // Ok((alloc_in, alloc_out)) + // }?; + + // wires_in.id_curr.enforce_equal(¤t_program_in)?; + // wires_out.id_curr.enforce_equal(¤t_program_out)?; + + // let (utxos_len_in, utxos_len_out) = { + // let f_in = || wires_in.utxos_len.value(); + // let f_out = || wires_out.utxos_len.value(); + // let alloc_in = FpVar::new_variable(cs.clone(), f_in, AllocationMode::Input)?; + // let alloc_out = FpVar::new_variable(cs.clone(), f_out, AllocationMode::Input)?; + + // Ok((alloc_in, alloc_out)) + // }?; + + // wires_in.utxos_len.enforce_equal(&utxos_len_in)?; + // wires_out.utxos_len.enforce_equal(&utxos_len_out)?; + + // utxos_len_in.enforce_equal(&utxos_len_out)?; Ok(()) } impl PreWires { - pub fn new(irw: InterRoundWires) -> Self { + pub fn new( + irw: InterRoundWires, + curr_mem_switches: MemSwitchboard, + target_mem_switches: MemSwitchboard, + rom_switches: RomSwitchboard, + ) -> Self { Self { - utxo_address: F::ZERO, - - coord_address: F::from(1), - - // transcript vars - utxo_id: F::ZERO, - input: F::ZERO, - output: F::ZERO, - // switches - yield_start_switch: false, - yield_end_switch: false, + yield_switch: false, resume_switch: false, check_utxo_output_switch: false, nop_switch: false, - drop_utxo_switch: false, + burn_switch: false, + input_switch: false, // io vars irw, + + program_hash_switch: false, + new_utxo_switch: false, + new_coord_switch: false, + + target: F::ZERO, + val: F::ZERO, + ret: F::ZERO, + id_prev: F::ZERO, + program_hash: F::ZERO, + new_process_id: F::ZERO, + caller: F::ZERO, + + curr_mem_switches, + target_mem_switches, + rom_switches, } } - pub fn debug_print(&self) { let _guard = debug_span!("witness assignments").entered(); - tracing::debug!("utxo_id={}", self.utxo_id); - tracing::debug!("utxo_address={}", self.utxo_address); - tracing::debug!("coord_address={}", self.coord_address); + tracing::debug!("target={}", self.target); + tracing::debug!("val={}", self.val); + tracing::debug!("ret={}", self.ret); + tracing::debug!("id_prev={}", self.id_prev); } } impl ProgramState { pub fn dummy() -> Self { Self { - consumed: false, finalized: false, - input: F::ZERO, - output: F::ZERO, - commitment: array::from_fn(|_i| F::from(0)), + expected_input: F::ZERO, + arg: F::ZERO, + counters: F::ZERO, + initialized: false, + did_burn: false, + owned_by: F::ZERO, } } - fn to_field_vec(&self) -> Vec { - [ - vec![ - if self.consumed { - F::from(1) - } else { - F::from(0) - }, - if self.finalized { - F::from(1) - } else { - F::from(0) - }, - self.input, - self.output, - ], - self.commitment.to_vec(), - ] - .concat() - } - pub fn debug_print(&self) { - tracing::debug!("consumed={}", self.consumed); + tracing::debug!("expected_input={}", self.expected_input); + tracing::debug!("arg={}", self.arg); + tracing::debug!("counters={}", self.counters); tracing::debug!("finalized={}", self.finalized); - tracing::debug!("input={}", self.input); - tracing::debug!("output={}", self.output); - tracing::debug!("commitment={:?}", self.commitment); + tracing::debug!("did_burn={}", self.did_burn); + tracing::debug!("owned_by={}", self.owned_by); } } diff --git a/starstream_ivc_proto/src/circuit_test.rs b/starstream_ivc_proto/src/circuit_test.rs new file mode 100644 index 00000000..f14cc736 --- /dev/null +++ b/starstream_ivc_proto/src/circuit_test.rs @@ -0,0 +1,85 @@ +use crate::{prove, test_utils::init_test_logging}; +use starstream_mock_ledger::{ + CoroutineState, Hash, InterleavingInstance, MockedLookupTableCommitment, ProcessId, Value, + WitLedgerEffect, +}; + +pub fn h(n: u8) -> Hash { + // TODO: actual hashing + let mut bytes = [0u8; 32]; + bytes[0] = n; + Hash(bytes, std::marker::PhantomData) +} + +pub fn v(data: &[u8]) -> Value { + Value(data.to_vec()) +} + +#[test] +fn test_circuit_simple_resume() { + init_test_logging(); + + let utxo_id = 0; + let coord_id = 1; + + let p0 = ProcessId(utxo_id); + let p1 = ProcessId(coord_id); + + let val_42 = v(b"v42"); + let val_0 = v(b"v0"); + + let coord_trace = MockedLookupTableCommitment { + trace: vec![ + WitLedgerEffect::NewUtxo { + program_hash: h(0), + val: val_0.clone(), + id: p1, + }, + WitLedgerEffect::Resume { + target: p0, + val: val_42.clone(), + ret: val_0.clone(), + id_prev: None, + }, + ], + }; + + let utxo_trace = MockedLookupTableCommitment { + trace: vec![ + WitLedgerEffect::Input { + val: val_42.clone(), + caller: p0, + }, + // WitLedgerEffect::Yield { + // val: val_0.clone(), // Yielding nothing + // ret: None, // Not expecting to be resumed again + // id_prev: Some(p0), + // }, + ], + }; + + let traces = vec![utxo_trace, coord_trace]; + + let trace_lens = traces + .iter() + .map(|t| t.trace.len() as u32) + .collect::>(); + + let instance = InterleavingInstance { + n_inputs: 0, + n_new: 1, + n_coords: 1, + entrypoint: p1, + process_table: vec![h(0), h(1)], + is_utxo: vec![true, false], + must_burn: vec![false, false], + ownership_in: vec![None, None], + ownership_out: vec![None, None], + host_calls_roots: traces, + host_calls_lens: trace_lens, + input_states: vec![], + }; + + let result = prove(instance); + assert!(result.is_ok()); +} diff --git a/starstream_ivc_proto/src/lib.rs b/starstream_ivc_proto/src/lib.rs index 2c1e131e..02409346 100644 --- a/starstream_ivc_proto/src/lib.rs +++ b/starstream_ivc_proto/src/lib.rs @@ -1,6 +1,8 @@ mod circuit; #[cfg(test)] -mod e2e; +mod circuit_test; +// #[cfg(test)] +// mod e2e; mod goldilocks; mod memory; mod neo; @@ -8,108 +10,77 @@ mod poseidon2; #[cfg(test)] mod test_utils; -pub use memory::nebula; -use neo_ajtai::AjtaiSModule; -use neo_ccs::CcsStructure; -use neo_fold::pi_ccs::FoldingMode; -use neo_fold::session::FoldingSession; -use neo_params::NeoParams; +use std::collections::HashMap; use crate::circuit::InterRoundWires; use crate::memory::IVCMemory; use crate::nebula::tracer::{NebulaMemory, NebulaMemoryParams}; -use crate::neo::arkworks_to_neo_ccs; use crate::neo::StepCircuitNeo; +use crate::neo::arkworks_to_neo_ccs; use ark_relations::gr1cs::{ConstraintSystem, SynthesisError}; use circuit::StepCircuitBuilder; use goldilocks::FpGoldilocks; -use std::collections::BTreeMap; +pub use memory::nebula; +use neo_ajtai::AjtaiSModule; +use neo_ccs::CcsStructure; +use neo_fold::pi_ccs::FoldingMode; +use neo_fold::session::FoldingSession; +use neo_params::NeoParams; +use starstream_mock_ledger::InterleavingInstance; type F = FpGoldilocks; -#[derive(Debug)] -pub struct Transaction

{ - pub utxo_deltas: BTreeMap, - /// An unproven transaction would have here a vector of utxo 'opcodes', - /// which are encoded in the `Instruction` enum. - /// - /// That gets used to generate a proof that validates the list of utxo deltas. - proof_like: P, - // TODO: we also need here an incremental commitment per wasm program, so - // that the trace can be bound to the zkvm proof. Ideally this has to be - // done in a way that's native to the proof system, so it's not computed - // yet. - // - // Then at the end of the interleaving proof, we have 1 opening per program - // (coordination script | utxo). -} - pub type ProgramId = F; -#[derive(Debug, Clone)] -pub struct UtxoChange { - // we don't need the input - // - // we could add the input and output frames here, but the proof for that is external. - // - /// the value (a commitment to) of the last yield (in a previous tx). - pub output_before: F, - /// the value (a commitment to) of the last yield for this utxo (in this tx). - pub output_after: F, - - /// whether the utxo dies at the end of the transaction. - /// if this is true, then there as to be a DropUtxo instruction in the - /// transcript somewhere. - pub consumed: bool, -} - -// NOTE: see https://github.com/PaimaStudios/Starstream/issues/49#issuecomment-3294246321 #[derive(Debug, Clone)] pub enum LedgerOperation { - /// A call to starstream_resume from a coordination script. + /// A call to starstream_resume. /// /// This stores the input and outputs in memory, and sets the /// current_program for the next iteration to `utxo_id`. /// /// Then, when evaluating Yield and YieldResume, we match the input/output /// with the corresponding value. - Resume { utxo_id: F, input: F, output: F }, + Resume { + target: F, + val: F, + ret: F, + id_prev: Option, + }, /// Called by utxo to yield. /// - /// There is no output, since that's expected to be in YieldResume. - /// - /// This operation has to follow a `Resume` with the same value for - /// `utxo_id`, and it needs to hold that `yield.input == resume.output`. - Yield { utxo_id: F, input: F }, - /// Called by a utxo to get the coordination script input after a yield. - /// - /// The reason for the split is mostly so that all host calls can be atomic - /// per transaction. - YieldResume { utxo_id: F, output: F }, - /// Explicit drop. - /// - /// This should be called by a utxo that doesn't yield, and ends its - /// lifetime. - /// - /// This moves control back to the coordination script. - DropUtxo { utxo_id: F }, + Yield { + val: F, + ret: Option, + id_prev: Option, + }, + ProgramHash { + target: F, + program_hash: F, + }, + NewUtxo { + program_hash: F, + val: F, + target: F, + }, + NewCoord { + program_hash: F, + val: F, + target: F, + }, + Burn { + ret: F, + }, + Input { + val: F, + caller: F, + }, /// Auxiliary instructions. /// /// Nop is used as a dummy instruction to build the circuit layout on the /// verifier side. Nop {}, - - /// Checks that the current output of the utxo matches the expected value in - /// the public ROM. - /// - /// It also increases a counter. - /// - /// The verifier then checks that all the utxos were verified, so that they - /// match the values in the ROM. - /// - // NOTE: There are other ways of doing this check. - CheckUtxoOutput { utxo_id: F }, } pub struct ProverOutput { @@ -117,76 +88,170 @@ pub struct ProverOutput { pub proof: (), } -impl Transaction>> { - pub fn new_unproven( - changes: BTreeMap, - mut ops: Vec>, - ) -> Self { - for utxo_id in changes.keys() { - ops.push(LedgerOperation::CheckUtxoOutput { utxo_id: *utxo_id }); - } +const SCAN_BATCH_SIZE: usize = 9; - Self { - utxo_deltas: changes, - proof_like: ops, - } - } +pub fn prove(inst: InterleavingInstance) -> Result { + let shape_ccs = ccs_step_shape(inst.clone())?; - pub fn prove(&self) -> Result, SynthesisError> { - let shape_ccs = ccs_step_shape(self.utxo_deltas.clone())?; + // map all the disjoints vectors of traces (one per process) into a single + // list, which is simpler to think about for ivc. + let ops = make_interleaved_trace(&inst); - let tx = StepCircuitBuilder::>::new( - self.utxo_deltas.clone(), - self.proof_like.clone(), - ); + println!("making proof, steps {}", ops.len()); - let num_iters = tx.ops.len(); + let circuit_builder = StepCircuitBuilder::>::new(inst, ops); - let n = shape_ccs.n.max(shape_ccs.m); + let num_iters = circuit_builder.ops.len(); - let mut f_circuit = StepCircuitNeo::new( - tx, - shape_ccs.clone(), - NebulaMemoryParams { - // the proof system is still too slow to run the poseidon commitments, especially when iterating. - unsound_disable_poseidon_commitment: true, - }, - ); + let n = shape_ccs.n.max(shape_ccs.m); - // since we are using square matrices, n = m - neo::setup_ajtai_for_dims(n); + let mut f_circuit = StepCircuitNeo::new( + circuit_builder, + shape_ccs.clone(), + NebulaMemoryParams { + // the proof system is still too slow to run the poseidon commitments, especially when iterating. + unsound_disable_poseidon_commitment: true, + }, + ); - let l = AjtaiSModule::from_global_for_dims(neo_math::D, n).expect("AjtaiSModule init"); + // since we are using square matrices, n = m + neo::setup_ajtai_for_dims(n); - let mut params = NeoParams::goldilocks_auto_r1cs_ccs(n) - .expect("goldilocks_auto_r1cs_ccs should find valid params"); + let l = AjtaiSModule::from_global_for_dims(neo_math::D, n).expect("AjtaiSModule init"); + + let mut params = NeoParams::goldilocks_auto_r1cs_ccs(n) + .expect("goldilocks_auto_r1cs_ccs should find valid params"); + + params.b = 3; + + let mut session = FoldingSession::new(FoldingMode::Optimized, params, l.clone()); + + for _i in 0..num_iters { + session.add_step(&mut f_circuit, &()).unwrap(); + } - params.b = 3; + let run = session.fold_and_prove(&shape_ccs).unwrap(); - let mut session = FoldingSession::new(FoldingMode::Optimized, params, l.clone()); + let mcss_public = session.mcss_public(); + let ok = session + .verify(&shape_ccs, &mcss_public, &run) + .expect("verify should run"); + assert!(ok, "optimized verification should pass"); - for _i in 0..num_iters { - session.add_step(&mut f_circuit, &()).unwrap(); + // TODO: extract the actual proof + Ok(ProverOutput { proof: () }) +} + +fn make_interleaved_trace(inst: &InterleavingInstance) -> Vec> { + let mut ops = vec![]; + let mut id_curr = inst.entrypoint.0; + let mut id_prev: Option = None; + let mut counters: HashMap = HashMap::new(); + + loop { + let c = counters.entry(id_curr).or_insert(0); + + let Some(trace) = inst.host_calls_roots.get(id_curr) else { + // No trace for this process, this indicates the end of the transaction + // as the entrypoint script has finished and not jumped to another process. + break; + }; + + if *c >= trace.trace.len() { + // We've reached the end of the current trace. This is the end. + break; } - let run = session.fold_and_prove(&shape_ccs).unwrap(); + let instr = trace.trace[*c].clone(); + *c += 1; - let mcss_public = session.mcss_public(); - let ok = session - .verify(&shape_ccs, &mcss_public, &run) - .expect("verify should run"); - assert!(ok, "optimized verification should pass"); + let op = match dbg!(instr) { + starstream_mock_ledger::WitLedgerEffect::Resume { + target, + val, + ret, + id_prev: op_id_prev, + } => { + id_prev = Some(id_curr); + id_curr = target.0; - Ok(Transaction { - utxo_deltas: self.utxo_deltas.clone(), - proof_like: ProverOutput { proof: () }, - }) + LedgerOperation::Resume { + target: (target.0 as u64).into(), + // TODO: figure out how to manage these + // maybe for now just assume that these are short/fixed size + val: value_to_field(val), + ret: value_to_field(ret), + id_prev: op_id_prev.map(|p| (p.0 as u64).into()), + } + } + starstream_mock_ledger::WitLedgerEffect::Yield { + val, + ret, + id_prev: op_id_prev, + } => { + let parent = id_prev.expect("Yield called without a parent process"); + let old_id_curr = id_curr; + id_curr = parent; + id_prev = Some(old_id_curr); + + LedgerOperation::Yield { + val: value_to_field(val), + ret: ret.map(value_to_field), + id_prev: op_id_prev.map(|p| (p.0 as u64).into()), + } + } + starstream_mock_ledger::WitLedgerEffect::Burn { ret } => { + let parent = id_prev.expect("Burn called without a parent process"); + let old_id_curr = id_curr; + id_curr = parent; + id_prev = Some(old_id_curr); + + LedgerOperation::Burn { + ret: value_to_field(ret), + } + } + starstream_mock_ledger::WitLedgerEffect::NewUtxo { + program_hash, + val, + id, + } => LedgerOperation::NewUtxo { + program_hash: F::from(program_hash.0[0] as u64), + val: value_to_field(val), + target: (id.0 as u64).into(), + }, + starstream_mock_ledger::WitLedgerEffect::NewCoord { + program_hash, + val, + id, + } => LedgerOperation::NewCoord { + program_hash: F::from(program_hash.0[0] as u64), + val: value_to_field(val), + target: (id.0 as u64).into(), + }, + starstream_mock_ledger::WitLedgerEffect::Input { val, caller } => { + LedgerOperation::Input { + val: value_to_field(val), + caller: (caller.0 as u64).into(), + } + } + // For opcodes not yet handled by the circuit, we just skip them + // and they won't be included in the final `ops` list. + _ => continue, + }; + + ops.push(op); } + + ops +} + +fn value_to_field( + val: starstream_mock_ledger::Value, +) -> ark_ff::Fp, 1> { + F::from(val.0[0]) } -fn ccs_step_shape( - utxo_deltas: BTreeMap, -) -> Result, SynthesisError> { +fn ccs_step_shape(inst: InterleavingInstance) -> Result, SynthesisError> { let _span = tracing::debug_span!("dummy circuit").entered(); tracing::debug!("constructing nop circuit to get initial (stable) ccs shape"); @@ -199,15 +264,17 @@ fn ccs_step_shape( // vec![LedgerOperation::Nop {}], // ); // - let mut dummy_tx = - StepCircuitBuilder::>::new(utxo_deltas, vec![LedgerOperation::Nop {}]); + let mut dummy_tx = StepCircuitBuilder::>::new( + inst, + vec![LedgerOperation::Nop {}], + ); // let mb = dummy_tx.trace_memory_ops(()); let mb = dummy_tx.trace_memory_ops(NebulaMemoryParams { unsound_disable_poseidon_commitment: true, }); - let irw = InterRoundWires::new(dummy_tx.rom_offset()); + let irw = InterRoundWires::new(F::from(dummy_tx.p_len() as u64)); dummy_tx.make_step_circuit(0, &mut mb.constraints(), cs.clone(), irw)?; cs.finalize(); @@ -215,208 +282,188 @@ fn ccs_step_shape( Ok(arkworks_to_neo_ccs(&cs)) } -impl Transaction { - pub fn verify(&self, _changes: BTreeMap) { - // TODO: fill - // - } -} - #[cfg(test)] mod tests { - use crate::{ - F, LedgerOperation, ProgramId, Transaction, UtxoChange, test_utils::init_test_logging, - }; - use std::collections::BTreeMap; - - #[test] - fn test_nop() { - init_test_logging(); - - let changes = vec![].into_iter().collect::>(); - let tx = Transaction::new_unproven(changes.clone(), vec![LedgerOperation::Nop {}]); - let proof = tx.prove().unwrap(); - - proof.verify(changes); - } - - #[test] - fn test_starstream_tx_success() { - init_test_logging(); - - let utxo_id1: ProgramId = ProgramId::from(110); - let utxo_id2: ProgramId = ProgramId::from(300); - let utxo_id3: ProgramId = ProgramId::from(400); - - let changes = vec![ - ( - utxo_id1, - UtxoChange { - output_before: F::from(5), - output_after: F::from(5), - consumed: false, - }, - ), - ( - utxo_id2, - UtxoChange { - output_before: F::from(4), - output_after: F::from(0), - consumed: true, - }, - ), - ( - utxo_id3, - UtxoChange { - output_before: F::from(5), - output_after: F::from(43), - consumed: false, - }, - ), - ] - .into_iter() - .collect::>(); - - let tx = Transaction::new_unproven( - changes.clone(), - vec![ - LedgerOperation::Nop {}, - LedgerOperation::Resume { - utxo_id: utxo_id2, - input: F::from(0), - output: F::from(0), - }, - LedgerOperation::DropUtxo { utxo_id: utxo_id2 }, - LedgerOperation::Resume { - utxo_id: utxo_id3, - input: F::from(42), - output: F::from(43), - }, - LedgerOperation::YieldResume { - utxo_id: utxo_id3, - output: F::from(42), - }, - LedgerOperation::Yield { - utxo_id: utxo_id3, - input: F::from(43), - }, - ], - ); - - let proof = tx.prove().unwrap(); - - proof.verify(changes); - } - - #[test] - #[should_panic] - fn test_fail_starstream_tx_resume_mismatch() { - let utxo_id1: ProgramId = ProgramId::from(110); - - let changes = vec![( - utxo_id1, - UtxoChange { - output_before: F::from(0), - output_after: F::from(43), - consumed: false, - }, - )] - .into_iter() - .collect::>(); - - let tx = Transaction::new_unproven( - changes.clone(), - vec![ - LedgerOperation::Nop {}, - LedgerOperation::Resume { - utxo_id: utxo_id1, - input: F::from(42), - output: F::from(43), - }, - LedgerOperation::YieldResume { - utxo_id: utxo_id1, - output: F::from(42000), - }, - LedgerOperation::Yield { - utxo_id: utxo_id1, - input: F::from(43), - }, - ], - ); - - let proof = tx.prove().unwrap(); - - proof.verify(changes); - } - - #[test] - #[should_panic] - fn test_starstream_tx_invalid_witness() { - init_test_logging(); - - let utxo_id1: ProgramId = ProgramId::from(110); - let utxo_id2: ProgramId = ProgramId::from(300); - let utxo_id3: ProgramId = ProgramId::from(400); - - let changes = vec![ - ( - utxo_id1, - UtxoChange { - output_before: F::from(5), - output_after: F::from(5), - consumed: false, - }, - ), - ( - utxo_id2, - UtxoChange { - output_before: F::from(4), - output_after: F::from(0), - consumed: true, - }, - ), - ( - utxo_id3, - UtxoChange { - output_before: F::from(5), - output_after: F::from(43), - consumed: false, - }, - ), - ] - .into_iter() - .collect::>(); - - let tx = Transaction::new_unproven( - changes.clone(), - vec![ - LedgerOperation::Nop {}, - LedgerOperation::Resume { - utxo_id: utxo_id2, - input: F::from(0), - output: F::from(0), - }, - LedgerOperation::DropUtxo { utxo_id: utxo_id2 }, - LedgerOperation::Resume { - utxo_id: utxo_id3, - input: F::from(42), - // Invalid: output should be F::from(43) to match output_after, - // but we're providing a mismatched value - output: F::from(999), - }, - LedgerOperation::YieldResume { - utxo_id: utxo_id3, - output: F::from(42), - }, - LedgerOperation::Yield { - utxo_id: utxo_id3, - // Invalid: input should match Resume output but doesn't - input: F::from(999), - }, - ], - ); - - // This should fail during proving because the witness is invalid - tx.prove().unwrap(); - } + // use crate::{F, LedgerOperation, ProgramId, test_utils::init_test_logging}; + // use std::collections::BTreeMap; + + // #[test] + // fn test_starstream_tx_success() { + // init_test_logging(); + + // let utxo_id1: ProgramId = ProgramId::from(110); + // let utxo_id2: ProgramId = ProgramId::from(300); + // let utxo_id3: ProgramId = ProgramId::from(400); + + // let changes = vec![ + // ( + // utxo_id1, + // UtxoChange { + // output_before: F::from(5), + // output_after: F::from(5), + // consumed: false, + // }, + // ), + // ( + // utxo_id2, + // UtxoChange { + // output_before: F::from(4), + // output_after: F::from(0), + // consumed: true, + // }, + // ), + // ( + // utxo_id3, + // UtxoChange { + // output_before: F::from(5), + // output_after: F::from(43), + // consumed: false, + // }, + // ), + // ] + // .into_iter() + // .collect::>(); + + // let tx = Transaction::new_unproven( + // changes.clone(), + // vec![ + // LedgerOperation::Nop {}, + // LedgerOperation::Resume { + // target: utxo_id2, + // val: F::from(0), + // ret: F::from(0), + // }, + // LedgerOperation::DropUtxo { utxo_id: utxo_id2 }, + // LedgerOperation::Resume { + // target: utxo_id3, + // val: F::from(42), + // ret: F::from(43), + // }, + // LedgerOperation::YieldResume { + // utxo_id: utxo_id3, + // output: F::from(42), + // }, + // LedgerOperation::Yield { + // utxo_id: utxo_id3, + // input: F::from(43), + // }, + // ], + // ); + + // let proof = tx.prove().unwrap(); + + // proof.verify(changes); + // } + + // #[test] + // #[should_panic] + // fn test_fail_starstream_tx_resume_mismatch() { + // let utxo_id1: ProgramId = ProgramId::from(110); + + // let changes = vec![( + // utxo_id1, + // UtxoChange { + // output_before: F::from(0), + // output_after: F::from(43), + // consumed: false, + // }, + // )] + // .into_iter() + // .collect::>(); + + // let tx = Transaction::new_unproven( + // changes.clone(), + // vec![ + // LedgerOperation::Nop {}, + // LedgerOperation::Resume { + // target: utxo_id1, + // val: F::from(42), + // ret: F::from(43), + // }, + // LedgerOperation::YieldResume { + // utxo_id: utxo_id1, + // output: F::from(42000), + // }, + // LedgerOperation::Yield { + // utxo_id: utxo_id1, + // input: F::from(43), + // }, + // ], + // ); + + // let proof = tx.prove().unwrap(); + + // proof.verify(changes); + // } + + // #[test] + // #[should_panic] + // fn test_starstream_tx_invalid_witness() { + // init_test_logging(); + + // let utxo_id1: ProgramId = ProgramId::from(110); + // let utxo_id2: ProgramId = ProgramId::from(300); + // let utxo_id3: ProgramId = ProgramId::from(400); + + // let changes = vec![ + // ( + // utxo_id1, + // UtxoChange { + // output_before: F::from(5), + // output_after: F::from(5), + // consumed: false, + // }, + // ), + // ( + // utxo_id2, + // UtxoChange { + // output_before: F::from(4), + // output_after: F::from(0), + // consumed: true, + // }, + // ), + // ( + // utxo_id3, + // UtxoChange { + // output_before: F::from(5), + // output_after: F::from(43), + // consumed: false, + // }, + // ), + // ] + // .into_iter() + // .collect::>(); + + // let tx = Transaction::new_unproven( + // changes.clone(), + // vec![ + // LedgerOperation::Nop {}, + // LedgerOperation::Resume { + // target: utxo_id2, + // val: F::from(0), + // ret: F::from(0), + // }, + // LedgerOperation::DropUtxo { utxo_id: utxo_id2 }, + // LedgerOperation::Resume { + // target: utxo_id3, + // val: F::from(42), + // // Invalid: output should be F::from(43) to match output_after, + // // but we're providing a mismatched value + // ret: F::from(999), + // }, + // LedgerOperation::YieldResume { + // utxo_id: utxo_id3, + // output: F::from(42), + // }, + // LedgerOperation::Yield { + // utxo_id: utxo_id3, + // // Invalid: input should match Resume output but doesn't + // input: F::from(999), + // }, + // ], + // ); + + // // This should fail during proving because the witness is invalid + // tx.prove().unwrap(); + // } } diff --git a/starstream_ivc_proto/src/memory/nebula/tracer.rs b/starstream_ivc_proto/src/memory/nebula/tracer.rs index 8a6566d9..1af58dd0 100644 --- a/starstream_ivc_proto/src/memory/nebula/tracer.rs +++ b/starstream_ivc_proto/src/memory/nebula/tracer.rs @@ -40,7 +40,12 @@ impl NebulaMemory { self.ws .get(address) .and_then(|writes| writes.back().cloned()) - .unwrap_or_else(|| self.is.get(address).unwrap().clone()) + .unwrap_or_else(|| { + self.is + .get(address) + .expect("read uninitialized address") + .clone() + }) } else { MemOp::padding() }; @@ -105,7 +110,6 @@ pub struct NebulaMemoryParams { pub unsound_disable_poseidon_commitment: bool, } - impl IVCMemory for NebulaMemory { type Allocator = NebulaMemoryConstraints; @@ -182,6 +186,8 @@ impl IVCMemory for NebulaMemory, params: M::Params, ) -> Self { - let irw = InterRoundWires::new(circuit_builder.rom_offset()); + let irw = InterRoundWires::new(crate::F::from(circuit_builder.p_len() as u64)); let mb = circuit_builder.trace_memory_ops(params); @@ -81,6 +81,7 @@ where let mut step = arkworks_to_neo(cs.clone()); + dbg!(cs.which_is_unsatisfied().unwrap()); assert!(cs.is_satisfied().unwrap()); let padded_witness_len = step.ccs.n.max(step.ccs.m); diff --git a/starstream_ivc_proto/src/test_utils.rs b/starstream_ivc_proto/src/test_utils.rs index 80855189..e18b6f67 100644 --- a/starstream_ivc_proto/src/test_utils.rs +++ b/starstream_ivc_proto/src/test_utils.rs @@ -1,16 +1,22 @@ -use tracing_subscriber::{EnvFilter, fmt}; +use ark_relations::gr1cs::{ConstraintLayer, TracingMode}; +use tracing_subscriber::{EnvFilter, Registry, fmt, layer::SubscriberExt as _}; pub(crate) fn init_test_logging() { static INIT: std::sync::Once = std::sync::Once::new(); INIT.call_once(|| { - fmt() - .with_env_filter( - EnvFilter::from_default_env() - .add_directive("starstream_ivc_proto=debug".parse().unwrap()) - .add_directive("warn".parse().unwrap()) // Default to warn for everything else - ) - .with_test_writer() - .init(); + let constraint_layer = ConstraintLayer::new(TracingMode::All); + + let subscriber = Registry::default() + .with(fmt::layer().with_test_writer()) + // .with( + // EnvFilter::from_default_env() + // .add_directive("starstream_ivc_proto=debug".parse().unwrap()) + // .add_directive("warn".parse().unwrap()), // Default to warn for everything else + // ) + .with(constraint_layer); + + tracing::subscriber::set_global_default(subscriber) + .expect("Failed to set global default subscriber"); }); } diff --git a/starstream_mock_ledger/src/lib.rs b/starstream_mock_ledger/src/lib.rs index 190569ac..30b9c2f9 100644 --- a/starstream_mock_ledger/src/lib.rs +++ b/starstream_mock_ledger/src/lib.rs @@ -4,15 +4,13 @@ mod transaction_effects; #[cfg(test)] mod tests; -use crate::{ - mocked_verifier::MockedLookupTableCommitment, - transaction_effects::{ProcessId, instance::InterleavingInstance}, -}; +pub use crate::{mocked_verifier::MockedLookupTableCommitment, transaction_effects::ProcessId}; use imbl::{HashMap, HashSet}; use std::{hash::Hasher, marker::PhantomData}; +pub use transaction_effects::{instance::InterleavingInstance, witness::WitLedgerEffect}; #[derive(PartialEq, Eq)] -pub struct Hash([u8; 32], PhantomData); +pub struct Hash(pub [u8; 32], pub PhantomData); impl Copy for Hash {} @@ -56,17 +54,13 @@ pub struct CoroutineState { // which case last_yield could be used to persist the storage, and pc could // be instead the call stack). pc: u64, - last_yield: Value, + pub last_yield: Value, } pub struct ZkTransactionProof {} impl ZkTransactionProof { - pub fn verify( - &self, - inst: &InterleavingInstance, - input_states: &[CoroutineState], - ) -> Result<(), VerificationError> { + pub fn verify(&self, inst: &InterleavingInstance) -> Result<(), VerificationError> { let traces = inst .host_calls_roots .iter() @@ -75,11 +69,7 @@ impl ZkTransactionProof { let wit = mocked_verifier::InterleavingWitness { traces }; - Ok(mocked_verifier::verify_interleaving_semantics( - inst, - &wit, - input_states, - )?) + Ok(mocked_verifier::verify_interleaving_semantics(inst, &wit)?) } } @@ -573,73 +563,46 @@ impl Ledger { }) .collect::>(); - let inst = InterleavingInstance { - n_inputs, - n_new, - n_coords, + let input_states: Vec = body + .inputs + .iter() + .map(|utxo_id| self.utxos[utxo_id].state.clone()) + .collect(); + let inst = InterleavingInstance { host_calls_roots: wasm_instances .iter() .map(|w| w.host_calls_root.clone()) .collect(), host_calls_lens: wasm_instances.iter().map(|w| w.host_calls_len).collect(), - process_table: process_table.to_vec(), + is_utxo: is_utxo.to_vec(), must_burn: burned.to_vec(), + n_inputs, + n_new, + n_coords, + ownership_in: ownership_in.to_vec(), ownership_out: ownership_out.to_vec(), entrypoint: ProcessId(body.entrypoint), + input_states, }; let interleaving_proof: &ZkTransactionProof = &witness.interleaving_proof; - let input_states: Vec = body - .inputs - .iter() - .map(|utxo_id| self.utxos[utxo_id].state.clone()) - .collect(); - // note however that this is mocked right now, and it's using a non-zk // verifier. // // but the circuit in theory in theory encode the same machine - interleaving_proof.verify(&inst, &input_states)?; + interleaving_proof.verify(&inst)?; Ok(()) } } -pub fn verify_interleaving_public( - interleaving_proof: &ZkTransactionProof, - body: &TransactionBody, - ledger: &Ledger, - inst: InterleavingInstance, -) -> Result<(), VerificationError> { - // Collect input states for the interleaving proof - let input_states: Vec = body - .inputs - .iter() - .map(|utxo_id| ledger.utxos[utxo_id].state.clone()) - .collect(); - - // ---------- verify interleaving proof ---------- - // All semantics (resume/yield matching, ownership authorization, attestation, etc.) - // are enforced inside the interleaving circuit relative to inst + the committed tables. - // - // See the README.md for the high level description. - // - // NOTE: however that this is mocked right now, and it's using a non-zk - // verifier. - // - // but the circuit in theory in theory encode the same machine - interleaving_proof.verify(&inst, &input_states)?; - - Ok(()) -} - pub fn build_wasm_instances_in_canonical_order( spending: &[ZkWasmProof], new_outputs: &[ZkWasmProof], diff --git a/starstream_mock_ledger/src/mocked_verifier.rs b/starstream_mock_ledger/src/mocked_verifier.rs index cb23ba1e..3e9c2ecb 100644 --- a/starstream_mock_ledger/src/mocked_verifier.rs +++ b/starstream_mock_ledger/src/mocked_verifier.rs @@ -19,7 +19,7 @@ use thiserror; pub struct MockedLookupTableCommitment { // obviously the actual commitment shouldn't have this // but this is used for the mocked circuit - pub(crate) trace: Vec, + pub trace: Vec, } /// A “proof input” for tests: provide per-process traces directly. @@ -208,7 +208,6 @@ pub struct InterleavingState { pub fn verify_interleaving_semantics( inst: &InterleavingInstance, wit: &InterleavingWitness, - input_states: &[crate::CoroutineState], ) -> Result<(), InterleavingError> { inst.check_shape()?; @@ -226,7 +225,7 @@ pub fn verify_interleaving_semantics( // TODO: maybe we also need to assert/prove that it starts with a Yield let mut claims_memory = vec![Value::nil(); n]; for i in 0..inst.n_inputs { - claims_memory[i] = input_states[i].last_yield.clone(); + claims_memory[i] = inst.input_states[i].last_yield.clone(); } let rom = ROM { diff --git a/starstream_mock_ledger/src/transaction_effects/instance.rs b/starstream_mock_ledger/src/transaction_effects/instance.rs index 246906e7..e8f8238d 100644 --- a/starstream_mock_ledger/src/transaction_effects/instance.rs +++ b/starstream_mock_ledger/src/transaction_effects/instance.rs @@ -1,9 +1,10 @@ use crate::{ - Hash, MockedLookupTableCommitment, WasmModule, mocked_verifier::InterleavingError, - transaction_effects::ProcessId, + CoroutineState, Hash, MockedLookupTableCommitment, WasmModule, + mocked_verifier::InterleavingError, transaction_effects::ProcessId, }; // this mirrors the configuration described in SEMANTICS.md +#[derive(Clone)] pub struct InterleavingInstance { /// Digest of all per-process host call tables the circuit is wired to. /// One per wasm proof. @@ -42,6 +43,8 @@ pub struct InterleavingInstance { /// First coordination script pub entrypoint: ProcessId, + + pub input_states: Vec, } impl InterleavingInstance { From 2ac389f678cbdff3daa709fe9b9c5aef2067965c Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Wed, 31 Dec 2025 00:28:41 -0300 Subject: [PATCH 036/152] checkpoint: visit_new_process seems to work Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/src/circuit.rs | 27 +++++++++++------------- starstream_ivc_proto/src/circuit_test.rs | 2 +- starstream_ivc_proto/src/lib.rs | 2 +- 3 files changed, 14 insertions(+), 17 deletions(-) diff --git a/starstream_ivc_proto/src/circuit.rs b/starstream_ivc_proto/src/circuit.rs index 140c9e5b..d05b705b 100644 --- a/starstream_ivc_proto/src/circuit.rs +++ b/starstream_ivc_proto/src/circuit.rs @@ -1086,7 +1086,7 @@ impl> StepCircuitBuilder { mb.init( Address { addr: pid as u64, - tag: ROM_IS_UTXO, + tag: RAM_OWNERSHIP, }, vec![F::from( owner @@ -1528,30 +1528,27 @@ impl> StepCircuitBuilder { .conditional_enforce_equal(&Boolean::FALSE, &switch)?; // 2. Target type check - // TODO: this is wrong, there is no target in NewUtxo let target_is_utxo = wires.is_utxo_target.is_one()?; - dbg!(wires.is_utxo_target.value().unwrap()); - dbg!(wires.new_utxo_switch.value().unwrap()); // if new_utxo_switch is true, target_is_utxo must be true. // if new_utxo_switch is false (i.e. new_coord_switch is true), target_is_utxo must be false. target_is_utxo.conditional_enforce_equal(&wires.new_utxo_switch, &switch)?; // 3. Program hash check - // wires - // .rom_program_hash - // .conditional_enforce_equal(&wires.program_hash, &switch)?; + wires + .rom_program_hash + .conditional_enforce_equal(&wires.program_hash, &switch)?; // 4. Target counter must be 0. - // wires - // .target_read_wires - // .counters - // .conditional_enforce_equal(&FpVar::zero(), &switch)?; + wires + .target_read_wires + .counters + .conditional_enforce_equal(&FpVar::zero(), &switch)?; // 5. Target must not be initialized. - // wires - // .target_read_wires - // .initialized - // .conditional_enforce_equal(&wires.constant_false.clone().into(), &switch)?; + wires + .target_read_wires + .initialized + .conditional_enforce_equal(&wires.constant_false.clone().into(), &switch)?; Ok(wires) } diff --git a/starstream_ivc_proto/src/circuit_test.rs b/starstream_ivc_proto/src/circuit_test.rs index f14cc736..d66c30d2 100644 --- a/starstream_ivc_proto/src/circuit_test.rs +++ b/starstream_ivc_proto/src/circuit_test.rs @@ -33,7 +33,7 @@ fn test_circuit_simple_resume() { WitLedgerEffect::NewUtxo { program_hash: h(0), val: val_0.clone(), - id: p1, + id: p0, }, WitLedgerEffect::Resume { target: p0, diff --git a/starstream_ivc_proto/src/lib.rs b/starstream_ivc_proto/src/lib.rs index 02409346..9fda97a4 100644 --- a/starstream_ivc_proto/src/lib.rs +++ b/starstream_ivc_proto/src/lib.rs @@ -88,7 +88,7 @@ pub struct ProverOutput { pub proof: (), } -const SCAN_BATCH_SIZE: usize = 9; +const SCAN_BATCH_SIZE: usize = 20; pub fn prove(inst: InterleavingInstance) -> Result { let shape_ccs = ccs_step_shape(inst.clone())?; From 091fce6bfdeec7395a31b23e2344483e91f3ed35 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Wed, 31 Dec 2025 01:57:04 -0300 Subject: [PATCH 037/152] fixed resume Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/src/circuit.rs | 14 +++++++++----- starstream_ivc_proto/src/memory/nebula/gadget.rs | 12 +++++++----- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/starstream_ivc_proto/src/circuit.rs b/starstream_ivc_proto/src/circuit.rs index d05b705b..07bf6fb3 100644 --- a/starstream_ivc_proto/src/circuit.rs +++ b/starstream_ivc_proto/src/circuit.rs @@ -132,7 +132,9 @@ pub fn opcode_to_mem_switches(instr: &LedgerOperation) -> (MemSwitchboard, Me curr_s.expected_input = true; target_s.arg = true; + target_s.expected_input = true; target_s.finalized = true; + target_s.initialized = true; } LedgerOperation::Yield { ret, .. } => { curr_s.arg = true; @@ -1367,10 +1369,6 @@ impl> StepCircuitBuilder { fn visit_resume(&self, mut wires: Wires) -> Result { let switch = &wires.resume_switch; - // --- - // Ckecks from the mocked verifier - // --- - // 1. self-resume check wires .id_curr @@ -1413,6 +1411,7 @@ impl> StepCircuitBuilder { // becomes the new previous program. let next_id_curr = switch.select(&wires.target, &wires.id_curr)?; let next_id_prev = switch.select(&wires.id_curr, &wires.id_prev)?; + wires.id_curr = next_id_curr; wires.id_prev = next_id_prev; @@ -1514,7 +1513,7 @@ impl> StepCircuitBuilder { } #[tracing::instrument(target = "gr1cs", skip(self, wires))] - fn visit_new_process(&self, wires: Wires) -> Result { + fn visit_new_process(&self, mut wires: Wires) -> Result { let switch = &wires.new_utxo_switch | &wires.new_coord_switch; // The target is the new process being created. @@ -1550,6 +1549,10 @@ impl> StepCircuitBuilder { .initialized .conditional_enforce_equal(&wires.constant_false.clone().into(), &switch)?; + // Mark new process as initialized + wires.target_write_wires.initialized = + switch.select(&wires.constant_true, &wires.target_read_wires.initialized)?; + Ok(wires) } @@ -1578,6 +1581,7 @@ impl> StepCircuitBuilder { } } +#[tracing::instrument(target = "gr1cs", skip(cs, wires_in, wires_out))] fn ivcify_wires( cs: &ConstraintSystemRef, wires_in: &Wires, diff --git a/starstream_ivc_proto/src/memory/nebula/gadget.rs b/starstream_ivc_proto/src/memory/nebula/gadget.rs index df92ac87..efd869fe 100644 --- a/starstream_ivc_proto/src/memory/nebula/gadget.rs +++ b/starstream_ivc_proto/src/memory/nebula/gadget.rs @@ -139,6 +139,7 @@ impl FingerPrintWires { } impl IVCMemoryAllocated for NebulaMemoryConstraints { + #[tracing::instrument(target = "gr1cs", skip(self, cs))] fn start_step(&mut self, cs: ConstraintSystemRef) -> Result<(), SynthesisError> { self.cs.replace(cs.clone()); @@ -183,6 +184,7 @@ impl IVCMemoryAllocated for NebulaMemoryConstraints { Ok(()) } + #[tracing::instrument(target = "gr1cs", skip(self))] fn finish_step(&mut self, is_last_step: bool) -> Result<(), SynthesisError> { self.cs = None; self.c1_powers_cache = None; @@ -255,7 +257,8 @@ impl IVCMemoryAllocated for NebulaMemoryConstraints { self.update_ic_with_ops(cond, address, &rv, &wv)?; tracing::debug!( - "nebula read {:?} at address {} in segment {}", + "nebula {} read {:?} at address {} in segment {}", + cond.value()?, rv.values .iter() .map(|v| v.value().unwrap().into_bigint()) @@ -302,7 +305,8 @@ impl IVCMemoryAllocated for NebulaMemoryConstraints { } tracing::debug!( - "nebula write values {:?} at address {} in segment {}", + "nebula ({}) write values {:?} at address {} in segment {}", + cond.value()?, vals.iter() .map(|v| v.value().unwrap().into_bigint()) .collect::>(), @@ -483,9 +487,7 @@ impl NebulaMemoryConstraints { &mut self.debug_sets.fs, )?; }; - Ok( - (), - ) + Ok(()) } fn hash_avt( From 2bc2ffefe14041fb4ab62233ed6def9fbee45c7b Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Wed, 31 Dec 2025 02:04:11 -0300 Subject: [PATCH 038/152] fix Input opcode Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/src/circuit.rs | 7 +++++-- starstream_ivc_proto/src/memory/nebula/gadget.rs | 3 +++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/starstream_ivc_proto/src/circuit.rs b/starstream_ivc_proto/src/circuit.rs index 07bf6fb3..082be08f 100644 --- a/starstream_ivc_proto/src/circuit.rs +++ b/starstream_ivc_proto/src/circuit.rs @@ -155,9 +155,10 @@ pub fn opcode_to_mem_switches(instr: &LedgerOperation) -> (MemSwitchboard, Me target_s.expected_input = true; target_s.counters = true; // sets counter to 0 } - _ => { - // Other ops like ProgramHash or Input are read-only or have no side-effects tracked here. + LedgerOperation::Input { .. } => { + curr_s.arg = true; } + _ => {} } (curr_s, target_s) } @@ -1201,6 +1202,7 @@ impl> StepCircuitBuilder { mb } + #[tracing::instrument(target = "gr1cs", skip_all)] fn allocate_vars( &self, i: usize, @@ -1556,6 +1558,7 @@ impl> StepCircuitBuilder { Ok(wires) } + #[tracing::instrument(target = "gr1cs", skip_all)] fn visit_input(&self, wires: Wires) -> Result { let switch = &wires.input_switch; diff --git a/starstream_ivc_proto/src/memory/nebula/gadget.rs b/starstream_ivc_proto/src/memory/nebula/gadget.rs index efd869fe..ae5e247f 100644 --- a/starstream_ivc_proto/src/memory/nebula/gadget.rs +++ b/starstream_ivc_proto/src/memory/nebula/gadget.rs @@ -238,6 +238,7 @@ impl IVCMemoryAllocated for NebulaMemoryConstraints { self.cs.as_ref().unwrap().clone() } + #[tracing::instrument(target = "gr1cs", skip(self, cond, address))] fn conditional_read( &mut self, cond: &Boolean, @@ -270,6 +271,7 @@ impl IVCMemoryAllocated for NebulaMemoryConstraints { Ok(rv.values) } + #[tracing::instrument(target = "gr1cs", skip(self, cond, address, vals))] fn conditional_write( &mut self, cond: &Boolean, @@ -375,6 +377,7 @@ impl NebulaMemoryConstraints { } } + #[tracing::instrument(target = "gr1cs", skip_all)] fn update_ic_with_ops( &mut self, cond: &Boolean, From ec7731ae8dac8fb586914061ff8dbdd61244fb23 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Wed, 31 Dec 2025 11:19:20 -0300 Subject: [PATCH 039/152] checkpoint Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/src/circuit.rs | 155 ++++++++++++----------- starstream_ivc_proto/src/circuit_test.rs | 17 ++- 2 files changed, 93 insertions(+), 79 deletions(-) diff --git a/starstream_ivc_proto/src/circuit.rs b/starstream_ivc_proto/src/circuit.rs index 082be08f..bf33fb0a 100644 --- a/starstream_ivc_proto/src/circuit.rs +++ b/starstream_ivc_proto/src/circuit.rs @@ -14,6 +14,7 @@ use ark_relations::{ }; use starstream_mock_ledger::InterleavingInstance; use std::marker::PhantomData; +use std::ops::{Mul, Not}; use tracing::debug_span; #[derive(Clone, Debug, Default)] @@ -107,19 +108,11 @@ pub const RAM_OWNERSHIP: u64 = 10u64; // memory size, I'll implement this at last pub const RAM_HANDLER_STACK: u64 = 11u64; -impl MemSwitchboard { - pub fn any(&self) -> bool { - self.expected_input - || self.arg - || self.counters - || self.initialized - || self.finalized - || self.did_burn - || self.ownership - } -} - pub fn opcode_to_mem_switches(instr: &LedgerOperation) -> (MemSwitchboard, MemSwitchboard) { + // TODO: we could actually have more granularity with 4 of theses, for reads + // and writes + // + // it may actually better for correctnes? let mut curr_s = MemSwitchboard::default(); let mut target_s = MemSwitchboard::default(); @@ -200,7 +193,8 @@ pub struct StepCircuitBuilder { pub struct Wires { // irw id_curr: FpVar, - id_prev: FpVar, + id_prev_is_some: Boolean, + id_prev_value: FpVar, utxos_len: FpVar, @@ -219,7 +213,9 @@ pub struct Wires { val: FpVar, ret: FpVar, program_hash: FpVar, + new_process_id: FpVar, caller: FpVar, + ret_is_some: Boolean, curr_read_wires: ProgramStateWires, curr_write_wires: ProgramStateWires, @@ -261,7 +257,6 @@ pub struct PreWires { target: F, val: F, ret: F, - id_prev: F, program_hash: F, @@ -284,6 +279,10 @@ pub struct PreWires { rom_switches: RomSwitchboard, irw: InterRoundWires, + + id_prev_is_some: bool, + id_prev_value: F, + ret_is_some: bool, } #[derive(Clone, Debug)] @@ -303,7 +302,8 @@ pub struct ProgramState { #[derive(Clone)] pub struct InterRoundWires { id_curr: F, - id_prev: F, + id_prev_is_some: bool, + id_prev_value: F, p_len: F, n_finalized: F, @@ -340,6 +340,8 @@ impl Wires { // io vars let id_curr = FpVar::::new_witness(cs.clone(), || Ok(vals.irw.id_curr))?; let utxos_len = FpVar::::new_witness(cs.clone(), || Ok(vals.irw.p_len))?; + let id_prev_is_some = Boolean::new_witness(cs.clone(), || Ok(vals.irw.id_prev_is_some))?; + let id_prev_value = FpVar::new_witness(cs.clone(), || Ok(vals.irw.id_prev_value))?; // switches let switches = [ @@ -393,7 +395,7 @@ impl Wires { let val = FpVar::::new_witness(ns!(cs.clone(), "val"), || Ok(vals.val))?; let ret = FpVar::::new_witness(ns!(cs.clone(), "ret"), || Ok(vals.ret))?; - let id_prev = FpVar::::new_witness(cs.clone(), || Ok(vals.id_prev))?; + let ret_is_some = Boolean::new_witness(cs.clone(), || Ok(vals.ret_is_some))?; let program_hash = FpVar::::new_witness(cs.clone(), || Ok(vals.program_hash))?; let new_process_id = FpVar::::new_witness(cs.clone(), || Ok(vals.new_process_id))?; @@ -473,7 +475,8 @@ impl Wires { Ok(Wires { id_curr, - id_prev, + id_prev_is_some, + id_prev_value, utxos_len, @@ -495,7 +498,9 @@ impl Wires { val, ret, program_hash, + new_process_id, caller, + ret_is_some, curr_read_wires, curr_write_wires, @@ -804,7 +809,8 @@ impl InterRoundWires { pub fn new(p_len: F) -> Self { InterRoundWires { id_curr: F::from(1), - id_prev: F::from(0), // None + id_prev_is_some: false, + id_prev_value: F::ZERO, p_len, n_finalized: F::from(0), } @@ -822,12 +828,15 @@ impl InterRoundWires { self.id_curr = res.id_curr.value().unwrap(); tracing::debug!( - "prev_program from {} to {}", - self.id_prev, - res.id_prev.value().unwrap() + "prev_program from ({}, {}) to ({}, {})", + self.id_prev_is_some, + self.id_prev_value, + res.id_prev_is_some.value().unwrap(), + res.id_prev_value.value().unwrap(), ); - self.id_curr = res.id_curr.value().unwrap(); + self.id_prev_is_some = res.id_prev_is_some.value().unwrap(); + self.id_prev_value = res.id_prev_value.value().unwrap(); tracing::debug!( "utxos_len from {} to {}", @@ -1241,8 +1250,8 @@ impl> StepCircuitBuilder { target: *target, val: val.clone(), ret: ret.clone(), - id_prev: id_prev.clone().unwrap_or(F::ZERO), - + id_prev_is_some: id_prev.is_some(), + id_prev_value: id_prev.unwrap_or_default(), irw: irw.clone(), ..PreWires::new( @@ -1258,13 +1267,13 @@ impl> StepCircuitBuilder { LedgerOperation::Yield { val, ret, id_prev } => { let irw = PreWires { yield_switch: true, - target: irw.id_prev, + target: irw.id_prev_value, val: val.clone(), - ret: ret.clone().unwrap_or(F::ZERO), - id_prev: id_prev.clone().unwrap_or(F::ZERO), - + ret: ret.unwrap_or_default(), + ret_is_some: ret.is_some(), + id_prev_is_some: id_prev.is_some(), + id_prev_value: id_prev.unwrap_or_default(), irw: irw.clone(), - ..PreWires::new( irw.clone(), curr_mem_switches.clone(), @@ -1278,8 +1287,10 @@ impl> StepCircuitBuilder { LedgerOperation::Burn { ret } => { let irw = PreWires { burn_switch: true, - target: irw.id_prev, + target: irw.id_prev_value, ret: ret.clone(), + id_prev_is_some: irw.id_prev_is_some, + id_prev_value: irw.id_prev_value, irw: irw.clone(), ..PreWires::new( irw.clone(), @@ -1366,7 +1377,6 @@ impl> StepCircuitBuilder { } } } - #[tracing::instrument(target = "gr1cs", skip(self, wires))] fn visit_resume(&self, mut wires: Wires) -> Result { let switch = &wires.resume_switch; @@ -1399,23 +1409,18 @@ impl> StepCircuitBuilder { .expected_input .conditional_enforce_equal(&wires.val, switch)?; - // --- - // State update enforcement is implicitly handled by the MemSwitchboard. - // We trust that `write_values` computed the correct new state, and the switchboard - // correctly determines which fields are written. The circuit only needs to - // enforce the checks above and the IVC updates below. - // --- - // --- // IVC state updates // --- // On resume, current program becomes the target, and the old current program // becomes the new previous program. let next_id_curr = switch.select(&wires.target, &wires.id_curr)?; - let next_id_prev = switch.select(&wires.id_curr, &wires.id_prev)?; + let next_id_prev_is_some = switch.select(&Boolean::TRUE, &wires.id_prev_is_some)?; + let next_id_prev_value = switch.select(&wires.id_curr, &wires.id_prev_value)?; wires.id_curr = next_id_curr; - wires.id_prev = next_id_prev; + wires.id_prev_is_some = next_id_prev_is_some; + wires.id_prev_value = next_id_prev_value; Ok(wires) } @@ -1441,8 +1446,9 @@ impl> StepCircuitBuilder { .conditional_enforce_equal(&Boolean::TRUE, switch)?; // 3. Parent must exist. - let parent_is_some = !wires.id_prev.is_zero()?; - parent_is_some.conditional_enforce_equal(&Boolean::TRUE, switch)?; + wires + .id_prev_is_some + .conditional_enforce_equal(&Boolean::TRUE, switch)?; // 2. Claim check: burned value `ret` must match parent's `expected_input`. // Parent's state is in `target_read_wires`. @@ -1455,10 +1461,12 @@ impl> StepCircuitBuilder { // IVC state updates // --- // Like yield, current program becomes the parent, and new prev is the one that burned. - let next_id_curr = switch.select(&wires.id_prev, &wires.id_curr)?; - let next_id_prev = switch.select(&wires.id_curr, &wires.id_prev)?; + let next_id_curr = switch.select(&wires.id_prev_value, &wires.id_curr)?; + let next_id_prev_is_some = switch.select(&Boolean::TRUE, &wires.id_prev_is_some)?; + let next_id_prev_value = switch.select(&wires.id_curr, &wires.id_prev_value)?; wires.id_curr = next_id_curr; - wires.id_prev = next_id_prev; + wires.id_prev_is_some = next_id_prev_is_some; + wires.id_prev_value = next_id_prev_value; Ok(wires) } @@ -1467,49 +1475,47 @@ impl> StepCircuitBuilder { fn visit_yield(&self, mut wires: Wires) -> Result { let switch = &wires.yield_switch; - // --- - // Ckecks from the mocked verifier - // --- - - // 1. Must have a parent. id_prev must not be 0. - let parent_is_some = !wires.id_prev.is_zero()?; - parent_is_some.conditional_enforce_equal(&Boolean::TRUE, switch)?; + // 1. Must have a parent. + wires + .id_prev_is_some + .conditional_enforce_equal(&Boolean::TRUE, switch)?; // 2. Claim check: yielded value `val` must match parent's `expected_input`. - // The parent's state is in `target_read_wires` because we set `target = irw.id_prev`. + // The parent's state is in `target_read_wires` because we set `target = irw.id_prev_value`. wires .target_read_wires .expected_input - .conditional_enforce_equal(&wires.val, switch)?; + .conditional_enforce_equal(&wires.val, &(switch & (&wires.ret_is_some)))?; // --- // State update enforcement // --- - // The mock verifier shows that the parent's (target's) state is not modified by a Yield. - // Let's enforce that all write switches for the target are false. - wires - .target_mem_switches - .expected_input - .conditional_enforce_equal(&Boolean::FALSE, switch)?; + // The state of the current process is updated by `write_values`. + // The `finalized` state depends on whether this is the last yield. + // `finalized` is true IFF `ret` is None. wires - .target_mem_switches - .arg - .conditional_enforce_equal(&Boolean::FALSE, switch)?; - // ... etc. for all fields of target_mem_switches + .curr_write_wires + .finalized + .conditional_enforce_equal(&wires.ret_is_some.clone().not(), switch)?; - // The state of the current process is updated by `write_values`, and the - // `curr_mem_switches` will ensure the correct fields are written. We don't - // need to re-enforce those updates here, just the checks. + // The next `expected_input` should be `ret_value` if `ret` is Some, and 0 otherwise. + let new_expected_input = wires.ret_is_some.select(&wires.ret, &FpVar::zero())?; + wires + .curr_write_wires + .expected_input + .conditional_enforce_equal(&new_expected_input, switch)?; // --- // IVC state updates // --- // On yield, the current program becomes the parent (old id_prev), // and the new prev program is the one that just yielded. - let next_id_curr = switch.select(&wires.id_prev, &wires.id_curr)?; - let next_id_prev = switch.select(&wires.id_curr, &wires.id_prev)?; + let next_id_curr = switch.select(&wires.id_prev_value, &wires.id_curr)?; + let next_id_prev_is_some = switch.select(&Boolean::TRUE, &wires.id_prev_is_some)?; + let next_id_prev_value = switch.select(&wires.id_curr, &wires.id_prev_value)?; wires.id_curr = next_id_curr; - wires.id_prev = next_id_prev; + wires.id_prev_is_some = next_id_prev_is_some; + wires.id_prev_value = next_id_prev_value; Ok(wires) } @@ -1573,7 +1579,7 @@ impl> StepCircuitBuilder { // 2. Check that the caller from the opcode matches the `id_prev` IVC variable. wires - .id_prev + .id_prev_value .conditional_enforce_equal(&wires.caller, switch)?; Ok(wires) @@ -1645,10 +1651,13 @@ impl PreWires { target: F::ZERO, val: F::ZERO, ret: F::ZERO, - id_prev: F::ZERO, program_hash: F::ZERO, new_process_id: F::ZERO, caller: F::ZERO, + ret_is_some: false, + + id_prev_is_some: false, + id_prev_value: F::ZERO, curr_mem_switches, target_mem_switches, @@ -1661,7 +1670,7 @@ impl PreWires { tracing::debug!("target={}", self.target); tracing::debug!("val={}", self.val); tracing::debug!("ret={}", self.ret); - tracing::debug!("id_prev={}", self.id_prev); + tracing::debug!("id_prev=({}, {})", self.id_prev_is_some, self.id_prev_value); } } diff --git a/starstream_ivc_proto/src/circuit_test.rs b/starstream_ivc_proto/src/circuit_test.rs index d66c30d2..6dabbfae 100644 --- a/starstream_ivc_proto/src/circuit_test.rs +++ b/starstream_ivc_proto/src/circuit_test.rs @@ -48,13 +48,18 @@ fn test_circuit_simple_resume() { trace: vec![ WitLedgerEffect::Input { val: val_42.clone(), - caller: p0, + // maybe rename this to id_prev + // TODO: but actually, do I need this? I think probably not + // + // it's part of the host call constraint, but I could just get + // it from the id_prev wire for the lookup + caller: p1, + }, + WitLedgerEffect::Yield { + val: val_0.clone(), // Yielding nothing + ret: None, // Not expecting to be resumed again + id_prev: Some(p1), }, - // WitLedgerEffect::Yield { - // val: val_0.clone(), // Yielding nothing - // ret: None, // Not expecting to be resumed again - // id_prev: Some(p0), - // }, ], }; From 16aba12f40ece256cdfb02dd9f7cbeb25723a53a Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Wed, 31 Dec 2025 21:02:25 -0300 Subject: [PATCH 040/152] bind and unbind Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/src/circuit.rs | 130 ++++++++++++++++-- starstream_ivc_proto/src/circuit_test.rs | 88 +++++++----- starstream_ivc_proto/src/lib.rs | 21 ++- .../src/memory/nebula/gadget.rs | 16 +-- .../src/memory/nebula/tracer.rs | 2 +- starstream_ivc_proto/src/neo.rs | 5 +- 6 files changed, 204 insertions(+), 58 deletions(-) diff --git a/starstream_ivc_proto/src/circuit.rs b/starstream_ivc_proto/src/circuit.rs index bf33fb0a..e081de79 100644 --- a/starstream_ivc_proto/src/circuit.rs +++ b/starstream_ivc_proto/src/circuit.rs @@ -151,6 +151,13 @@ pub fn opcode_to_mem_switches(instr: &LedgerOperation) -> (MemSwitchboard, Me LedgerOperation::Input { .. } => { curr_s.arg = true; } + LedgerOperation::Bind { .. } => { + target_s.initialized = true; + curr_s.ownership = true; + } + LedgerOperation::Unbind { .. } => { + target_s.ownership = true; + } _ => {} } (curr_s, target_s) @@ -172,6 +179,10 @@ pub fn opcode_to_rom_switches(instr: &LedgerOperation) -> RomSwitchboard { rom_s.read_is_utxo_target = true; rom_s.read_program_hash_target = true; } + LedgerOperation::Bind { .. } => { + rom_s.read_is_utxo_curr = true; + rom_s.read_is_utxo_target = true; + } _ => {} } rom_s @@ -196,7 +207,7 @@ pub struct Wires { id_prev_is_some: Boolean, id_prev_value: FpVar, - utxos_len: FpVar, + p_len: FpVar, // switches resume_switch: Boolean, @@ -206,6 +217,8 @@ pub struct Wires { new_coord_switch: Boolean, burn_switch: Boolean, input_switch: Boolean, + bind_switch: Boolean, + unbind_switch: Boolean, check_utxo_output_switch: Boolean, @@ -273,6 +286,8 @@ pub struct PreWires { new_utxo_switch: bool, new_coord_switch: bool, input_switch: bool, + bind_switch: bool, + unbind_switch: bool, curr_mem_switches: MemSwitchboard, target_mem_switches: MemSwitchboard, @@ -339,7 +354,7 @@ impl Wires { // io vars let id_curr = FpVar::::new_witness(cs.clone(), || Ok(vals.irw.id_curr))?; - let utxos_len = FpVar::::new_witness(cs.clone(), || Ok(vals.irw.p_len))?; + let p_len = FpVar::::new_witness(cs.clone(), || Ok(vals.irw.p_len))?; let id_prev_is_some = Boolean::new_witness(cs.clone(), || Ok(vals.irw.id_prev_is_some))?; let id_prev_value = FpVar::new_witness(cs.clone(), || Ok(vals.irw.id_prev_value))?; @@ -354,6 +369,8 @@ impl Wires { vals.new_utxo_switch, vals.new_coord_switch, vals.input_switch, + vals.bind_switch, + vals.unbind_switch, ]; let allocated_switches: Vec<_> = switches @@ -371,6 +388,8 @@ impl Wires { new_utxo_switch, new_coord_switch, input_switch, + bind_switch, + unbind_switch, ] = allocated_switches.as_slice() else { unreachable!() @@ -420,6 +439,7 @@ impl Wires { let target_write_wires = ProgramStateWires::from_write_values(cs.clone(), target_write_values)?; + dbg!(curr_address.value().unwrap()); program_state_write_wires( rm, &cs, @@ -427,6 +447,7 @@ impl Wires { curr_write_wires.clone(), &curr_mem_switches, )?; + dbg!(target_address.value().unwrap()); program_state_write_wires( rm, &cs, @@ -478,7 +499,7 @@ impl Wires { id_prev_is_some, id_prev_value, - utxos_len, + p_len, yield_switch: yield_switch.clone(), resume_switch: resume_switch.clone(), @@ -488,6 +509,8 @@ impl Wires { new_utxo_switch: new_utxo_switch.clone(), new_coord_switch: new_coord_switch.clone(), input_switch: input_switch.clone(), + bind_switch: bind_switch.clone(), + unbind_switch: unbind_switch.clone(), constant_false: Boolean::new_constant(cs.clone(), false)?, constant_true: Boolean::new_constant(cs.clone(), true)?, @@ -699,7 +722,7 @@ fn trace_program_state_writes>( addr: pid, tag: RAM_COUNTERS, }, - [state.counters].to_vec(), + [dbg!(state.counters)].to_vec(), ); mem.conditional_write( switches.initialized, @@ -806,9 +829,9 @@ fn program_state_write_wires>( } impl InterRoundWires { - pub fn new(p_len: F) -> Self { + pub fn new(p_len: F, entrypoint: u64) -> Self { InterRoundWires { - id_curr: F::from(1), + id_curr: F::from(entrypoint), id_prev_is_some: false, id_prev_value: F::ZERO, p_len, @@ -841,10 +864,10 @@ impl InterRoundWires { tracing::debug!( "utxos_len from {} to {}", self.p_len, - res.utxos_len.value().unwrap() + res.p_len.value().unwrap() ); - self.p_len = res.utxos_len.value().unwrap(); + self.p_len = res.p_len.value().unwrap(); } } @@ -866,7 +889,7 @@ impl LedgerOperation { // All operations increment the counter of the current process curr_write.counters += F::ONE; - match self { + match dbg!(self) { LedgerOperation::Nop {} => { // Nop does nothing to the state curr_write.counters -= F::ONE; // revert counter increment @@ -974,6 +997,8 @@ impl> StepCircuitBuilder { let next_wires = self.visit_burn(next_wires)?; let next_wires = self.visit_new_process(next_wires)?; let next_wires = self.visit_input(next_wires)?; + let next_wires = self.visit_bind(next_wires)?; + let next_wires = self.visit_unbind(next_wires)?; rm.finish_step(i == self.ops.len() - 1)?; @@ -1092,8 +1117,6 @@ impl> StepCircuitBuilder { ); } - // TODO: initialize ownership too - for (pid, owner) in self.instance.ownership_in.iter().enumerate() { mb.init( Address { @@ -1185,10 +1208,10 @@ impl> StepCircuitBuilder { self.write_ops .push((curr_write.clone(), target_write.clone())); - trace_program_state_writes(&mut mb, curr_pid, &curr_write, &curr_switches); + trace_program_state_writes(&mut mb, dbg!(curr_pid), &curr_write, &curr_switches); trace_program_state_writes( &mut mb, - target_pid.unwrap_or(0), + dbg!(target_pid.unwrap_or(0)), &target_write, &target_switches, ); @@ -1375,6 +1398,36 @@ impl> StepCircuitBuilder { }; Wires::from_irw(&irw, rm, curr_write, target_write) } + LedgerOperation::Bind { owner_id } => { + let irw = PreWires { + bind_switch: true, + target: *owner_id, + irw: irw.clone(), + // TODO: it feels like this can be refactored out, since it + // seems to be the same on all branches + ..PreWires::new( + irw.clone(), + curr_mem_switches.clone(), + target_mem_switches.clone(), + rom_switches.clone(), + ) + }; + Wires::from_irw(&irw, rm, curr_write, target_write) + } + LedgerOperation::Unbind { token_id } => { + let irw = PreWires { + unbind_switch: true, + target: *token_id, + irw: irw.clone(), + ..PreWires::new( + irw.clone(), + curr_mem_switches.clone(), + target_mem_switches.clone(), + rom_switches.clone(), + ) + }; + Wires::from_irw(&irw, rm, curr_write, target_write) + } } } #[tracing::instrument(target = "gr1cs", skip(self, wires))] @@ -1528,7 +1581,6 @@ impl> StepCircuitBuilder { // The current process is the coordination script doing the creation. // // 1. Coordinator check: current process must NOT be a UTXO. - wires .is_utxo_curr .is_one()? @@ -1585,6 +1637,54 @@ impl> StepCircuitBuilder { Ok(wires) } + #[tracing::instrument(target = "gr1cs", skip_all)] + fn visit_bind(&self, mut wires: Wires) -> Result { + let switch = &wires.bind_switch; + + // curr is the token (or the utxo bound to the target) + let is_utxo_curr = wires.is_utxo_curr.is_one()?; + let is_utxo_target = wires.is_utxo_target.is_one()?; + + // we don't need to check if the token is initialized because + // we can't resume an unitialized token anyway + let is_initialized_target = &wires.target_read_wires.initialized; + + (is_utxo_curr & is_utxo_target & is_initialized_target) + .conditional_enforce_equal(&wires.constant_true, switch)?; + + wires + .curr_read_wires + .owned_by + .conditional_enforce_equal(&wires.p_len, switch)?; + + wires.curr_write_wires.owned_by = + switch.select(&wires.target, &wires.curr_read_wires.owned_by)?; + + Ok(wires) + } + + #[tracing::instrument(target = "gr1cs", skip_all)] + fn visit_unbind(&self, mut wires: Wires) -> Result { + let switch = &wires.unbind_switch; + + let is_utxo_curr = wires.is_utxo_curr.is_one()?; + let is_utxo_target = wires.is_utxo_target.is_one()?; + + (is_utxo_curr & is_utxo_target).conditional_enforce_equal(&wires.constant_true, switch)?; + + // only the owner can unbind + wires + .target_read_wires + .owned_by + .conditional_enforce_equal(&wires.id_curr, switch)?; + + // p_len is a sentinel for None + wires.target_write_wires.owned_by = + switch.select(&wires.p_len, &wires.curr_read_wires.owned_by)?; + + Ok(wires) + } + pub(crate) fn p_len(&self) -> usize { self.instance.process_table.len() } @@ -1640,6 +1740,8 @@ impl PreWires { nop_switch: false, burn_switch: false, input_switch: false, + bind_switch: false, + unbind_switch: false, // io vars irw, diff --git a/starstream_ivc_proto/src/circuit_test.rs b/starstream_ivc_proto/src/circuit_test.rs index 6dabbfae..a9c1a5f8 100644 --- a/starstream_ivc_proto/src/circuit_test.rs +++ b/starstream_ivc_proto/src/circuit_test.rs @@ -20,50 +20,74 @@ fn test_circuit_simple_resume() { init_test_logging(); let utxo_id = 0; - let coord_id = 1; + let token_id = 1; + let coord_id = 2; let p0 = ProcessId(utxo_id); - let p1 = ProcessId(coord_id); + let p1 = ProcessId(token_id); + let p2 = ProcessId(coord_id); - let val_42 = v(b"v42"); - let val_0 = v(b"v0"); - - let coord_trace = MockedLookupTableCommitment { - trace: vec![ - WitLedgerEffect::NewUtxo { - program_hash: h(0), - val: val_0.clone(), - id: p0, - }, - WitLedgerEffect::Resume { - target: p0, - val: val_42.clone(), - ret: val_0.clone(), - id_prev: None, - }, - ], - }; + let val_4 = v(&[4]); + let val_1 = v(&[1]); let utxo_trace = MockedLookupTableCommitment { trace: vec![ WitLedgerEffect::Input { - val: val_42.clone(), + val: val_4.clone(), // maybe rename this to id_prev // TODO: but actually, do I need this? I think probably not // // it's part of the host call constraint, but I could just get // it from the id_prev wire for the lookup - caller: p1, + caller: p2, }, WitLedgerEffect::Yield { - val: val_0.clone(), // Yielding nothing + val: val_1.clone(), // Yielding nothing + ret: None, // Not expecting to be resumed again + id_prev: Some(p2), + }, + ], + }; + + let token_trace = MockedLookupTableCommitment { + trace: vec![ + WitLedgerEffect::Bind { owner_id: p0 }, + WitLedgerEffect::Yield { + val: val_1.clone(), // Yielding nothing ret: None, // Not expecting to be resumed again - id_prev: Some(p1), + id_prev: Some(p2), + }, + ], + }; + + let coord_trace = MockedLookupTableCommitment { + trace: vec![ + WitLedgerEffect::NewUtxo { + program_hash: h(0), + val: val_4.clone(), + id: p0, + }, + WitLedgerEffect::NewUtxo { + program_hash: h(1), + val: val_1.clone(), + id: p1, + }, + WitLedgerEffect::Resume { + target: p1, + val: val_1.clone(), + ret: val_1.clone(), + id_prev: None, + }, + WitLedgerEffect::Resume { + target: p0, + val: val_4.clone(), + ret: val_1.clone(), + id_prev: None, }, ], }; - let traces = vec![utxo_trace, coord_trace]; + let traces = vec![utxo_trace, token_trace, coord_trace]; let trace_lens = traces .iter() @@ -72,14 +96,14 @@ fn test_circuit_simple_resume() { let instance = InterleavingInstance { n_inputs: 0, - n_new: 1, + n_new: 2, n_coords: 1, - entrypoint: p1, - process_table: vec![h(0), h(1)], - is_utxo: vec![true, false], - must_burn: vec![false, false], - ownership_in: vec![None, None], - ownership_out: vec![None, None], + entrypoint: p2, + process_table: vec![h(0), h(1), h(2)], + is_utxo: vec![true, true, false], + must_burn: vec![false, false, false], + ownership_in: vec![None, None, None], + ownership_out: vec![None, Some(ProcessId(0)), None], host_calls_roots: traces, host_calls_lens: trace_lens, input_states: vec![], diff --git a/starstream_ivc_proto/src/lib.rs b/starstream_ivc_proto/src/lib.rs index 9fda97a4..c0e0b668 100644 --- a/starstream_ivc_proto/src/lib.rs +++ b/starstream_ivc_proto/src/lib.rs @@ -75,6 +75,12 @@ pub enum LedgerOperation { val: F, caller: F, }, + Bind { + owner_id: F, + }, + Unbind { + token_id: F, + }, /// Auxiliary instructions. /// @@ -88,7 +94,7 @@ pub struct ProverOutput { pub proof: (), } -const SCAN_BATCH_SIZE: usize = 20; +const SCAN_BATCH_SIZE: usize = 10; pub fn prove(inst: InterleavingInstance) -> Result { let shape_ccs = ccs_step_shape(inst.clone())?; @@ -234,6 +240,14 @@ fn make_interleaved_trace(inst: &InterleavingInstance) -> Vec LedgerOperation::Bind { + owner_id: (owner_id.0 as u64).into(), + }, + starstream_mock_ledger::WitLedgerEffect::Unbind { token_id } => { + LedgerOperation::Unbind { + token_id: (token_id.0 as u64).into(), + } + } // For opcodes not yet handled by the circuit, we just skip them // and they won't be included in the final `ops` list. _ => continue, @@ -274,7 +288,10 @@ fn ccs_step_shape(inst: InterleavingInstance) -> Result for NebulaMemoryConstraints { self.update_ic_with_ops(cond, address, &rv, &wv)?; - for ((index, val), expected) in vals.iter().enumerate().zip(wv.values.iter()) { - assert_eq!( - val.value().unwrap(), - expected.value().unwrap(), - "write doesn't match expectation at index {index}." - ); - } - tracing::debug!( "nebula ({}) write values {:?} at address {} in segment {}", cond.value()?, @@ -316,6 +308,14 @@ impl IVCMemoryAllocated for NebulaMemoryConstraints { mem.1, ); + for ((index, val), expected) in vals.iter().enumerate().zip(wv.values.iter()) { + assert_eq!( + val.value().unwrap(), + expected.value().unwrap(), + "write doesn't match expectation at index {index}." + ); + } + Ok(()) } } diff --git a/starstream_ivc_proto/src/memory/nebula/tracer.rs b/starstream_ivc_proto/src/memory/nebula/tracer.rs index 1af58dd0..58f27231 100644 --- a/starstream_ivc_proto/src/memory/nebula/tracer.rs +++ b/starstream_ivc_proto/src/memory/nebula/tracer.rs @@ -43,7 +43,7 @@ impl NebulaMemory { .unwrap_or_else(|| { self.is .get(address) - .expect("read uninitialized address") + .expect(&format!("read uninitialized address: {address:?}")) .clone() }) } else { diff --git a/starstream_ivc_proto/src/neo.rs b/starstream_ivc_proto/src/neo.rs index a32b412b..3f38cdb1 100644 --- a/starstream_ivc_proto/src/neo.rs +++ b/starstream_ivc_proto/src/neo.rs @@ -30,7 +30,10 @@ where shape_ccs: CcsStructure, params: M::Params, ) -> Self { - let irw = InterRoundWires::new(crate::F::from(circuit_builder.p_len() as u64)); + let irw = InterRoundWires::new( + crate::F::from(circuit_builder.p_len() as u64), + circuit_builder.instance.entrypoint.0 as u64, + ); let mb = circuit_builder.trace_memory_ops(params); From 35d75ac6e08bd76c484183ff97f993fe9ee794d4 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Fri, 2 Jan 2026 12:56:02 -0300 Subject: [PATCH 041/152] add Init register op and rename arg to activation Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/src/circuit.rs | 204 +++++++++++++----- starstream_ivc_proto/src/circuit_test.rs | 68 ++++-- starstream_ivc_proto/src/lib.rs | 28 ++- starstream_mock_ledger/README.md | 42 ++-- starstream_mock_ledger/src/mocked_verifier.rs | 52 +++-- starstream_mock_ledger/src/tests.rs | 65 ++++-- .../src/transaction_effects/witness.rs | 7 +- 7 files changed, 347 insertions(+), 119 deletions(-) diff --git a/starstream_ivc_proto/src/circuit.rs b/starstream_ivc_proto/src/circuit.rs index e081de79..f32e2977 100644 --- a/starstream_ivc_proto/src/circuit.rs +++ b/starstream_ivc_proto/src/circuit.rs @@ -56,7 +56,8 @@ impl RomSwitchboardWires { #[derive(Clone, Debug, Default)] pub struct MemSwitchboard { pub expected_input: bool, - pub arg: bool, + pub activation: bool, + pub init: bool, pub counters: bool, pub initialized: bool, pub finalized: bool, @@ -67,7 +68,8 @@ pub struct MemSwitchboard { #[derive(Clone)] pub struct MemSwitchboardWires { pub expected_input: Boolean, - pub arg: Boolean, + pub activation: Boolean, + pub init: Boolean, pub counters: Boolean, pub initialized: Boolean, pub finalized: Boolean, @@ -82,7 +84,8 @@ impl MemSwitchboardWires { ) -> Result { Ok(Self { expected_input: Boolean::new_witness(cs.clone(), || Ok(switches.expected_input))?, - arg: Boolean::new_witness(cs.clone(), || Ok(switches.arg))?, + activation: Boolean::new_witness(cs.clone(), || Ok(switches.activation))?, + init: Boolean::new_witness(cs.clone(), || Ok(switches.init))?, counters: Boolean::new_witness(cs.clone(), || Ok(switches.counters))?, initialized: Boolean::new_witness(cs.clone(), || Ok(switches.initialized))?, finalized: Boolean::new_witness(cs.clone(), || Ok(switches.finalized))?, @@ -97,16 +100,19 @@ pub const ROM_MUST_BURN: u64 = 2u64; pub const ROM_IS_UTXO: u64 = 3u64; pub const RAM_EXPECTED_INPUT: u64 = 4u64; -pub const RAM_ARG: u64 = 5u64; +pub const RAM_ACTIVATION: u64 = 5u64; pub const RAM_COUNTERS: u64 = 6u64; pub const RAM_INITIALIZED: u64 = 7u64; pub const RAM_FINALIZED: u64 = 8u64; pub const RAM_DID_BURN: u64 = 9u64; pub const RAM_OWNERSHIP: u64 = 10u64; +// TODO: this could technically be a ROM, or maybe some sort of write once +// memory +pub const RAM_INIT: u64 = 11u64; // TODO: this is not implemented yet, since it's the only one with a dynamic // memory size, I'll implement this at last -pub const RAM_HANDLER_STACK: u64 = 11u64; +pub const RAM_HANDLER_STACK: u64 = 12u64; pub fn opcode_to_mem_switches(instr: &LedgerOperation) -> (MemSwitchboard, MemSwitchboard) { // TODO: we could actually have more granularity with 4 of theses, for reads @@ -121,23 +127,23 @@ pub fn opcode_to_mem_switches(instr: &LedgerOperation) -> (MemSwitchboard, Me match instr { LedgerOperation::Resume { .. } => { - curr_s.arg = true; + curr_s.activation = true; curr_s.expected_input = true; - target_s.arg = true; + target_s.activation = true; target_s.expected_input = true; target_s.finalized = true; target_s.initialized = true; } LedgerOperation::Yield { ret, .. } => { - curr_s.arg = true; + curr_s.activation = true; if ret.is_some() { curr_s.expected_input = true; } curr_s.finalized = true; } LedgerOperation::Burn { .. } => { - curr_s.arg = true; + curr_s.activation = true; curr_s.finalized = true; curr_s.did_burn = true; curr_s.expected_input = true; @@ -145,11 +151,14 @@ pub fn opcode_to_mem_switches(instr: &LedgerOperation) -> (MemSwitchboard, Me LedgerOperation::NewUtxo { .. } | LedgerOperation::NewCoord { .. } => { // New* ops initialize the target process target_s.initialized = true; - target_s.expected_input = true; + target_s.init = true; target_s.counters = true; // sets counter to 0 } - LedgerOperation::Input { .. } => { - curr_s.arg = true; + LedgerOperation::Activation { .. } => { + curr_s.activation = true; + } + LedgerOperation::Init { .. } => { + curr_s.init = true; } LedgerOperation::Bind { .. } => { target_s.initialized = true; @@ -216,7 +225,8 @@ pub struct Wires { new_utxo_switch: Boolean, new_coord_switch: Boolean, burn_switch: Boolean, - input_switch: Boolean, + activation_switch: Boolean, + init_switch: Boolean, bind_switch: Boolean, unbind_switch: Boolean, @@ -257,7 +267,8 @@ pub struct Wires { #[derive(Clone)] pub struct ProgramStateWires { expected_input: FpVar, - arg: FpVar, + activation: FpVar, + init: FpVar, counters: FpVar, initialized: Boolean, finalized: Boolean, @@ -285,7 +296,8 @@ pub struct PreWires { program_hash_switch: bool, new_utxo_switch: bool, new_coord_switch: bool, - input_switch: bool, + activation_switch: bool, + init_switch: bool, bind_switch: bool, unbind_switch: bool, @@ -303,7 +315,8 @@ pub struct PreWires { #[derive(Clone, Debug)] pub struct ProgramState { expected_input: F, - arg: F, + activation: F, + init: F, counters: F, initialized: bool, finalized: bool, @@ -331,7 +344,8 @@ impl ProgramStateWires { ) -> Result { Ok(ProgramStateWires { expected_input: FpVar::new_witness(cs.clone(), || Ok(write_values.expected_input))?, - arg: FpVar::new_witness(cs.clone(), || Ok(write_values.arg))?, + activation: FpVar::new_witness(cs.clone(), || Ok(write_values.activation))?, + init: FpVar::new_witness(cs.clone(), || Ok(write_values.init))?, counters: FpVar::new_witness(cs.clone(), || Ok(write_values.counters))?, initialized: Boolean::new_witness(cs.clone(), || Ok(write_values.initialized))?, finalized: Boolean::new_witness(cs.clone(), || Ok(write_values.finalized))?, @@ -368,7 +382,8 @@ impl Wires { vals.program_hash_switch, vals.new_utxo_switch, vals.new_coord_switch, - vals.input_switch, + vals.activation_switch, + vals.init_switch, vals.bind_switch, vals.unbind_switch, ]; @@ -387,7 +402,8 @@ impl Wires { program_hash_switch, new_utxo_switch, new_coord_switch, - input_switch, + activation_switch, + init_switch, bind_switch, unbind_switch, ] = allocated_switches.as_slice() @@ -508,7 +524,8 @@ impl Wires { program_hash_switch: program_hash_switch.clone(), new_utxo_switch: new_utxo_switch.clone(), new_coord_switch: new_coord_switch.clone(), - input_switch: input_switch.clone(), + activation_switch: activation_switch.clone(), + init_switch: init_switch.clone(), bind_switch: bind_switch.clone(), unbind_switch: unbind_switch.clone(), @@ -561,12 +578,23 @@ fn program_state_read_wires>( .into_iter() .next() .unwrap(), - arg: rm + activation: rm + .conditional_read( + &switches.activation, + &Address { + addr: address.clone(), + tag: FpVar::new_constant(cs.clone(), F::from(RAM_ACTIVATION))?, + }, + )? + .into_iter() + .next() + .unwrap(), + init: rm .conditional_read( - &switches.arg, + &switches.init, &Address { addr: address.clone(), - tag: FpVar::new_constant(cs.clone(), F::from(RAM_ARG))?, + tag: FpVar::new_constant(cs.clone(), F::from(RAM_INIT))?, }, )? .into_iter() @@ -648,11 +676,18 @@ fn trace_program_state_reads>( tag: RAM_EXPECTED_INPUT, }, )[0], - arg: mem.conditional_read( - switches.arg, + activation: mem.conditional_read( + switches.activation, + Address { + addr: pid, + tag: RAM_ACTIVATION, + }, + )[0], + init: mem.conditional_read( + switches.init, Address { addr: pid, - tag: RAM_ARG, + tag: RAM_INIT, }, )[0], counters: mem.conditional_read( @@ -709,12 +744,20 @@ fn trace_program_state_writes>( [state.expected_input].to_vec(), ); mem.conditional_write( - switches.arg, + switches.activation, + Address { + addr: pid, + tag: RAM_ACTIVATION, + }, + [state.activation].to_vec(), + ); + mem.conditional_write( + switches.init, Address { addr: pid, - tag: RAM_ARG, + tag: RAM_INIT, }, - [state.arg].to_vec(), + [state.init].to_vec(), ); mem.conditional_write( switches.counters, @@ -722,7 +765,7 @@ fn trace_program_state_writes>( addr: pid, tag: RAM_COUNTERS, }, - [dbg!(state.counters)].to_vec(), + [state.counters].to_vec(), ); mem.conditional_write( switches.initialized, @@ -775,12 +818,20 @@ fn program_state_write_wires>( )?; rm.conditional_write( - &switches.arg, + &switches.activation, + &Address { + addr: address.clone(), + tag: FpVar::new_constant(cs.clone(), F::from(RAM_ACTIVATION))?, + }, + &[state.activation.clone()], + )?; + rm.conditional_write( + &switches.init, &Address { addr: address.clone(), - tag: FpVar::new_constant(cs.clone(), F::from(RAM_ARG))?, + tag: FpVar::new_constant(cs.clone(), F::from(RAM_INIT))?, }, - &[state.arg.clone()], + &[state.init.clone()], )?; rm.conditional_write( &switches.counters, @@ -897,12 +948,12 @@ impl LedgerOperation { LedgerOperation::Resume { val, ret, .. } => { // Current process gives control to target. // It's `arg` is cleared, and its `expected_input` is set to the return value `ret`. - curr_write.arg = F::ZERO; // Represents None + curr_write.activation = F::ZERO; // Represents None curr_write.expected_input = *ret; // Target process receives control. // Its `arg` is set to `val`, and it is no longer in a `finalized` state. - target_write.arg = *val; + target_write.activation = *val; target_write.finalized = false; } LedgerOperation::Yield { @@ -914,7 +965,7 @@ impl LedgerOperation { } => { // Current process yields control back to its parent (the target of this operation). // Its `arg` is cleared. - curr_write.arg = F::ZERO; // Represents None + curr_write.activation = F::ZERO; // Represents None if let Some(r) = ret { // If Yield returns a value, it expects a new input `r` for the next resume. curr_write.expected_input = *r; @@ -926,7 +977,7 @@ impl LedgerOperation { } LedgerOperation::Burn { ret } => { // The current UTXO is burned. - curr_write.arg = F::ZERO; // Represents None + curr_write.activation = F::ZERO; // Represents None curr_write.finalized = true; curr_write.did_burn = true; curr_write.expected_input = *ret; // Sets its final return value. @@ -936,7 +987,7 @@ impl LedgerOperation { // The current process is a coordinator creating a new process. // The new process (target) is initialized. target_write.initialized = true; - target_write.expected_input = *val; + target_write.init = *val; target_write.counters = F::ZERO; } _ => { @@ -996,7 +1047,8 @@ impl> StepCircuitBuilder { let next_wires = self.visit_resume(next_wires)?; let next_wires = self.visit_burn(next_wires)?; let next_wires = self.visit_new_process(next_wires)?; - let next_wires = self.visit_input(next_wires)?; + let next_wires = self.visit_activation(next_wires)?; + let next_wires = self.visit_init(next_wires)?; let next_wires = self.visit_bind(next_wires)?; let next_wires = self.visit_unbind(next_wires)?; @@ -1021,7 +1073,8 @@ impl> StepCircuitBuilder { mb.register_mem(ROM_MUST_BURN, 1, "ROM_MUST_BURN"); mb.register_mem(ROM_IS_UTXO, 1, "ROM_IS_UTXO"); mb.register_mem(RAM_EXPECTED_INPUT, 1, "RAM_EXPECTED_INPUT"); - mb.register_mem(RAM_ARG, 1, "RAM_ARG"); + mb.register_mem(RAM_ACTIVATION, 1, "RAM_ACTIVATION"); + mb.register_mem(RAM_INIT, 1, "RAM_INIT"); mb.register_mem(RAM_COUNTERS, 1, "RAM_COUNTERS"); mb.register_mem(RAM_INITIALIZED, 1, "RAM_INITIALIZED"); mb.register_mem(RAM_FINALIZED, 1, "RAM_FINALIZED"); @@ -1091,7 +1144,15 @@ impl> StepCircuitBuilder { mb.init( Address { addr: pid as u64, - tag: RAM_ARG, + tag: RAM_ACTIVATION, + }, + vec![F::from(0u64)], // None + ); + + mb.init( + Address { + addr: pid as u64, + tag: RAM_INIT, }, vec![F::from(0u64)], // None ); @@ -1383,9 +1444,24 @@ impl> StepCircuitBuilder { }; Wires::from_irw(&irw, rm, curr_write, target_write) } - LedgerOperation::Input { val, caller } => { + LedgerOperation::Activation { val, caller } => { let irw = PreWires { - input_switch: true, + activation_switch: true, + val: *val, + caller: *caller, + irw: irw.clone(), + ..PreWires::new( + irw.clone(), + curr_mem_switches.clone(), + target_mem_switches.clone(), + rom_switches.clone(), + ) + }; + Wires::from_irw(&irw, rm, curr_write, target_write) + } + LedgerOperation::Init { val, caller } => { + let irw = PreWires { + init_switch: true, val: *val, caller: *caller, irw: irw.clone(), @@ -1453,10 +1529,12 @@ impl> StepCircuitBuilder { // 4. Re-entrancy check (target's arg must be None/0) wires .target_read_wires - .arg + .activation .conditional_enforce_equal(&FpVar::zero(), switch)?; // 5. Claim check: val passed in must match target's expected_input. + dbg!(wires.target_read_wires.expected_input.value().unwrap()); + dbg!(wires.val.value().unwrap()); wires .target_read_wires .expected_input @@ -1613,12 +1691,35 @@ impl> StepCircuitBuilder { wires.target_write_wires.initialized = switch.select(&wires.constant_true, &wires.target_read_wires.initialized)?; + wires.target_write_wires.init = switch.select(&wires.val, &wires.target_read_wires.init)?; + + Ok(wires) + } + + #[tracing::instrument(target = "gr1cs", skip_all)] + fn visit_activation(&self, wires: Wires) -> Result { + let switch = &wires.activation_switch; + + // When a process calls `input`, it's reading the argument that was + // passed to it when it was resumed. + + // 1. Check that the value from the opcode matches the value in the `arg` register. + wires + .curr_read_wires + .activation + .conditional_enforce_equal(&wires.val, switch)?; + + // 2. Check that the caller from the opcode matches the `id_prev` IVC variable. + wires + .id_prev_value + .conditional_enforce_equal(&wires.caller, switch)?; + Ok(wires) } #[tracing::instrument(target = "gr1cs", skip_all)] - fn visit_input(&self, wires: Wires) -> Result { - let switch = &wires.input_switch; + fn visit_init(&self, wires: Wires) -> Result { + let switch = &wires.init_switch; // When a process calls `input`, it's reading the argument that was // passed to it when it was resumed. @@ -1626,7 +1727,7 @@ impl> StepCircuitBuilder { // 1. Check that the value from the opcode matches the value in the `arg` register. wires .curr_read_wires - .arg + .init .conditional_enforce_equal(&wires.val, switch)?; // 2. Check that the caller from the opcode matches the `id_prev` IVC variable. @@ -1739,7 +1840,8 @@ impl PreWires { check_utxo_output_switch: false, nop_switch: false, burn_switch: false, - input_switch: false, + activation_switch: false, + init_switch: false, bind_switch: false, unbind_switch: false, @@ -1781,7 +1883,8 @@ impl ProgramState { Self { finalized: false, expected_input: F::ZERO, - arg: F::ZERO, + activation: F::ZERO, + init: F::ZERO, counters: F::ZERO, initialized: false, did_burn: false, @@ -1791,7 +1894,8 @@ impl ProgramState { pub fn debug_print(&self) { tracing::debug!("expected_input={}", self.expected_input); - tracing::debug!("arg={}", self.arg); + tracing::debug!("activation={}", self.activation); + tracing::debug!("init={}", self.init); tracing::debug!("counters={}", self.counters); tracing::debug!("finalized={}", self.finalized); tracing::debug!("did_burn={}", self.did_burn); diff --git a/starstream_ivc_proto/src/circuit_test.rs b/starstream_ivc_proto/src/circuit_test.rs index a9c1a5f8..51a3a9e6 100644 --- a/starstream_ivc_proto/src/circuit_test.rs +++ b/starstream_ivc_proto/src/circuit_test.rs @@ -27,18 +27,18 @@ fn test_circuit_simple_resume() { let p1 = ProcessId(token_id); let p2 = ProcessId(coord_id); - let val_4 = v(&[4]); + let val_0 = v(&[0]); let val_1 = v(&[1]); + let val_4 = v(&[4]); let utxo_trace = MockedLookupTableCommitment { trace: vec![ - WitLedgerEffect::Input { + WitLedgerEffect::Init { val: val_4.clone(), - // maybe rename this to id_prev - // TODO: but actually, do I need this? I think probably not - // - // it's part of the host call constraint, but I could just get - // it from the id_prev wire for the lookup + caller: p2, + }, + WitLedgerEffect::Activation { + val: val_0.clone(), caller: p2, }, WitLedgerEffect::Yield { @@ -51,6 +51,14 @@ fn test_circuit_simple_resume() { let token_trace = MockedLookupTableCommitment { trace: vec![ + WitLedgerEffect::Init { + val: val_1.clone(), + caller: p2, + }, + WitLedgerEffect::Activation { + val: val_0.clone(), + caller: p2, + }, WitLedgerEffect::Bind { owner_id: p0 }, WitLedgerEffect::Yield { val: val_1.clone(), // Yielding nothing @@ -74,20 +82,31 @@ fn test_circuit_simple_resume() { }, WitLedgerEffect::Resume { target: p1, - val: val_1.clone(), + val: val_0.clone(), ret: val_1.clone(), id_prev: None, }, WitLedgerEffect::Resume { target: p0, - val: val_4.clone(), + val: val_0.clone(), ret: val_1.clone(), - id_prev: None, + id_prev: Some(p1), }, ], }; - let traces = vec![utxo_trace, token_trace, coord_trace]; + let traces = vec![ + utxo_trace, + token_trace, + coord_trace, + MockedLookupTableCommitment { trace: vec![] }, + MockedLookupTableCommitment { trace: vec![] }, + MockedLookupTableCommitment { trace: vec![] }, + MockedLookupTableCommitment { trace: vec![] }, + MockedLookupTableCommitment { trace: vec![] }, + MockedLookupTableCommitment { trace: vec![] }, + MockedLookupTableCommitment { trace: vec![] }, + ]; let trace_lens = traces .iter() @@ -97,13 +116,28 @@ fn test_circuit_simple_resume() { let instance = InterleavingInstance { n_inputs: 0, n_new: 2, - n_coords: 1, + n_coords: 8, entrypoint: p2, - process_table: vec![h(0), h(1), h(2)], - is_utxo: vec![true, true, false], - must_burn: vec![false, false, false], - ownership_in: vec![None, None, None], - ownership_out: vec![None, Some(ProcessId(0)), None], + process_table: vec![h(0), h(1), h(2), h(3), h(4), h(5), h(6), h(7), h(8), h(9)], + is_utxo: vec![ + true, true, false, false, false, false, false, false, false, false, + ], + must_burn: vec![ + false, false, false, false, false, false, false, false, false, false, + ], + ownership_in: vec![None, None, None, None, None, None, None, None, None, None], + ownership_out: vec![ + None, + Some(ProcessId(0)), + None, + None, + None, + None, + None, + None, + None, + None, + ], host_calls_roots: traces, host_calls_lens: trace_lens, input_states: vec![], diff --git a/starstream_ivc_proto/src/lib.rs b/starstream_ivc_proto/src/lib.rs index c0e0b668..4db5a7ab 100644 --- a/starstream_ivc_proto/src/lib.rs +++ b/starstream_ivc_proto/src/lib.rs @@ -71,7 +71,11 @@ pub enum LedgerOperation { Burn { ret: F, }, - Input { + Activation { + val: F, + caller: F, + }, + Init { val: F, caller: F, }, @@ -136,13 +140,13 @@ pub fn prove(inst: InterleavingInstance) -> Result session.add_step(&mut f_circuit, &()).unwrap(); } - let run = session.fold_and_prove(&shape_ccs).unwrap(); + // let run = session.fold_and_prove(&shape_ccs).unwrap(); - let mcss_public = session.mcss_public(); - let ok = session - .verify(&shape_ccs, &mcss_public, &run) - .expect("verify should run"); - assert!(ok, "optimized verification should pass"); + // let mcss_public = session.mcss_public(); + // let ok = session + // .verify(&shape_ccs, &mcss_public, &run) + // .expect("verify should run"); + // assert!(ok, "optimized verification should pass"); // TODO: extract the actual proof Ok(ProverOutput { proof: () }) @@ -234,8 +238,14 @@ fn make_interleaved_trace(inst: &InterleavingInstance) -> Vec { - LedgerOperation::Input { + starstream_mock_ledger::WitLedgerEffect::Activation { val, caller } => { + LedgerOperation::Activation { + val: value_to_field(val), + caller: (caller.0 as u64).into(), + } + } + starstream_mock_ledger::WitLedgerEffect::Init { val, caller } => { + LedgerOperation::Init { val: value_to_field(val), caller: (caller.0 as u64).into(), } diff --git a/starstream_mock_ledger/README.md b/starstream_mock_ledger/README.md index 9a273b56..f8e8c3f4 100644 --- a/starstream_mock_ledger/README.md +++ b/starstream_mock_ledger/README.md @@ -27,13 +27,14 @@ The global state of the interleaving machine σ is defined as: ```text Configuration (σ) ================= -σ = (id_curr, id_prev, M, arg, process_table, host_calls, counters, safe_to_ledger, is_utxo, initialized, handler_stack, ownership, is_burned) +σ = (id_curr, id_prev, M, activation, init, process_table, host_calls, counters, safe_to_ledger, is_utxo, initialized, handler_stack, ownership, is_burned) Where: id_curr : ID of the currently executing VM. In the range [0..#coord + #utxo] id_prev : ID of the VM that called the current one (return address). M : A map {ProcessID -> Value} - arg : A map {ProcessID -> Option<(Value, ProcessID)>} + activation : A map {ProcessID -> Option<(Value, ProcessID)>} + init : A map {ProcessID -> Option<(Value, ProcessID)>} process_table : Read-only map {ID -> ProgramHash} for attestation. host_calls : A map {ProcessID -> Host-calls lookup table} counters : A map {ProcessID -> Counter} @@ -114,20 +115,35 @@ Rule: Resume 3. id_prev' <- id_curr (Save "caller" for yield) 4. id_curr' <- target (Switch) 5. safe_to_ledger'[target] <- False (This is not the final yield for this utxo in this transaction) - 6. arg'[target] <- Some(val, id_curr) + 6. activation'[target] <- Some(val, id_curr) ``` -## Input +## Activation -Rule: Input +Rule: Activation =========== - op = Input() -> (val, caller) + op = Activation() -> (val, caller) - 1. arg[id_curr] == Some(val, caller) + 1. activation[id_curr] == Some(val, caller) 2. let t = CC[id_curr] in let c = counters[id_curr] in - t[c] == + t[c] == + +----------------------------------------------------------------------- + 1. counters'[id_curr] += 1 + +## Init + +Rule: Init +=========== + op = Init() -> (val, caller) + + 1. init[id_curr] == Some(val, caller) + + 2. let t = CC[id_curr] in + let c = counters[id_curr] in + t[c] == ----------------------------------------------------------------------- 1. counters'[id_curr] += 1 @@ -167,7 +183,7 @@ Rule: Yield (resumed) 3. id_curr' <- id_prev (Switch to parent) 4. id_prev' <- id_curr (Save "caller") 5. safe_to_ledger'[id_curr] <- False (This is not the final yield for this utxo in this transaction) - 6. arg'[id_curr] <- None + 6. activation'[id_curr] <- None ``` ```text @@ -188,7 +204,7 @@ Rule: Yield (end transaction) 2. id_curr' <- id_prev (Switch to parent) 3. id_prev' <- id_curr (Save "caller") 4. safe_to_ledger'[id_curr] <- True (This utxo creates a transacition output) - 5. arg'[id_curr] <- None + 5. activation'[id_curr] <- None ``` ## Program Hash @@ -254,7 +270,7 @@ Assigns a new (transaction-local) ID for a UTXO program. ----------------------------------------------------------------------- 1. initialized[id] <- True 2. M[id] <- val - 3. arg'[id] <- None + 3. init'[id] <- Some(val, id_curr) 4. counters'[id_curr] += 1 ``` @@ -297,7 +313,7 @@ handler) instance. ----------------------------------------------------------------------- 1. initialized[id] <- True 2. M[id] <- val - 3. arg'[id] <- None + 3. init'[id] <- Some(val, id_curr) 4. counters'[id_curr] += 1 ``` @@ -421,7 +437,7 @@ Destroys the UTXO state. 4. counters'[id_curr] += 1 - 5. arg'[id_curr] <- None + 5. activation'[id_curr] <- None ``` # 6. Tokens diff --git a/starstream_mock_ledger/src/mocked_verifier.rs b/starstream_mock_ledger/src/mocked_verifier.rs index 3e9c2ecb..6d97f08d 100644 --- a/starstream_mock_ledger/src/mocked_verifier.rs +++ b/starstream_mock_ledger/src/mocked_verifier.rs @@ -186,7 +186,8 @@ pub struct InterleavingState { /// Claims memory: M[pid] = expected argument to next Resume into pid. expected_input: Vec, - arg: Vec>, + activation: Vec>, + init: Vec>, counters: Vec, @@ -239,7 +240,8 @@ pub fn verify_interleaving_semantics( id_curr: ProcessId(inst.entrypoint.into()), id_prev: None, expected_input: claims_memory, - arg: vec![None; n], + activation: vec![None; n], + init: vec![None; n], counters: vec![0; n], handler_stack: HashMap::new(), ownership: inst.ownership_in.clone(), @@ -406,13 +408,23 @@ pub fn state_transition( return Err(InterleavingError::TargetNotInitialized(target)); } - if state.arg[target.0].is_some() { + if state.activation[target.0].is_some() { return Err(InterleavingError::ReentrantResume(target)); } - state.arg[id_curr.0] = None; + state.activation[id_curr.0] = None; - if state.expected_input[target.0].clone() != val { + if state.counters[target.0] == 0 { + if let Some((init_val, _)) = &state.init[target.0] { + if init_val != &val { + return Err(InterleavingError::ResumeClaimMismatch { + target, + expected: init_val.clone(), + got: val, + }); + } + } + } else if state.expected_input[target.0].clone() != val { return Err(InterleavingError::ResumeClaimMismatch { target, expected: state.expected_input[target.0].clone(), @@ -420,7 +432,7 @@ pub fn state_transition( }); } - state.arg[target.0] = Some((val.clone(), id_curr)); + state.activation[target.0] = Some((val.clone(), id_curr)); state.expected_input[id_curr.0] = ret; @@ -494,7 +506,7 @@ pub fn state_transition( } } - state.arg[id_curr.0] = None; + state.activation[id_curr.0] = None; state.id_curr = parent; } @@ -540,9 +552,8 @@ pub fn state_transition( )); } state.initialized[id.0] = true; + state.init[id.0] = Some((val.clone(), id_curr)); state.expected_input[id.0] = val; - - state.arg[id.0] = None; } WitLedgerEffect::NewCoord { @@ -575,6 +586,7 @@ pub fn state_transition( } state.initialized[id.0] = true; + state.init[id.0] = Some((val.clone(), id_curr)); state.expected_input[id.0] = val; } @@ -617,15 +629,27 @@ pub fn state_transition( } } - WitLedgerEffect::Input { val, caller } => { + WitLedgerEffect::Activation { val, caller } => { let curr = state.id_curr; - let Some((v, c)) = &state.arg[curr.0] else { - return Err(InterleavingError::Shape("Input called with no arg set")); + let Some((v, c)) = &state.activation[curr.0] else { + return Err(InterleavingError::Shape("Activation called with no arg set")); }; if v != &val || c != &caller { - return Err(InterleavingError::Shape("Input result mismatch")); + return Err(InterleavingError::Shape("Activation result mismatch")); + } + } + + WitLedgerEffect::Init { val, caller } => { + let curr = state.id_curr; + + let Some((v, c)) = state.init[curr.0].take() else { + return Err(InterleavingError::Shape("Init called with no arg set")); + }; + + if v != val || c != caller { + return Err(InterleavingError::Shape("Init result mismatch")); } } @@ -651,7 +675,7 @@ pub fn state_transition( }); } - state.arg[id_curr.0] = None; + state.activation[id_curr.0] = None; state.finalized[id_curr.0] = true; state.did_burn[id_curr.0] = true; state.expected_input[id_curr.0] = ret; diff --git a/starstream_mock_ledger/src/tests.rs b/starstream_mock_ledger/src/tests.rs index d444f224..2d86ea26 100644 --- a/starstream_mock_ledger/src/tests.rs +++ b/starstream_mock_ledger/src/tests.rs @@ -207,17 +207,37 @@ fn test_transaction_with_coord_and_utxos() { // Host call traces for each process in canonical order: inputs ++ new_outputs ++ coord_scripts // Process 0: Input 1, Process 1: Input 2, Process 2: UTXO A (spawn), Process 3: UTXO B (spawn), Process 4: Coordination script - let input_1_trace = vec![WitLedgerEffect::Yield { - val: v(b"continued_1"), - ret: None, - id_prev: Some(ProcessId(4)), - }]; + let input_1_trace = vec![ + WitLedgerEffect::Activation { + val: v(b"spend_input_1"), + caller: ProcessId(4), + }, + WitLedgerEffect::Yield { + val: v(b"continued_1"), + ret: None, + id_prev: Some(ProcessId(4)), + }, + ]; - let input_2_trace = vec![WitLedgerEffect::Burn { - ret: v(b"burned_2"), - }]; + let input_2_trace = vec![ + WitLedgerEffect::Activation { + val: v(b"spend_input_2"), + caller: ProcessId(4), + }, + WitLedgerEffect::Burn { + ret: v(b"burned_2"), + }, + ]; let utxo_a_trace = vec![ + WitLedgerEffect::Init { + val: v(b"init_a"), + caller: ProcessId(4), + }, + WitLedgerEffect::Activation { + val: v(b"init_a"), + caller: ProcessId(4), + }, WitLedgerEffect::Bind { owner_id: ProcessId(3), }, @@ -228,11 +248,21 @@ fn test_transaction_with_coord_and_utxos() { }, ]; - let utxo_b_trace = vec![WitLedgerEffect::Yield { - val: v(b"done_b"), - ret: None, - id_prev: Some(ProcessId(4)), - }]; + let utxo_b_trace = vec![ + WitLedgerEffect::Init { + val: v(b"init_b"), + caller: ProcessId(4), + }, + WitLedgerEffect::Activation { + val: v(b"init_b"), + caller: ProcessId(4), + }, + WitLedgerEffect::Yield { + val: v(b"done_b"), + ret: None, + id_prev: Some(ProcessId(4)), + }, + ]; let coord_trace = vec![ WitLedgerEffect::NewUtxo { @@ -361,7 +391,8 @@ fn test_effect_handlers() { // | | // Resume ----------------->| // (val="init_utxo") | - // | Input (val="init_utxo", caller=P1) + // | Init (val="init_utxo", caller=P1) + // | Activation (val="init_utxo", caller=P1) // | ProgramHash(P1) -> (attest caller) // | GetHandlerFor -> P1 // |<----------------- Resume (Effect call) @@ -384,7 +415,11 @@ fn test_effect_handlers() { // Host call traces for each process in canonical order: (no inputs) ++ new_outputs ++ coord_scripts // Process 0: UTXO, Process 1: Coordination script let utxo_trace = vec![ - WitLedgerEffect::Input { + WitLedgerEffect::Init { + val: v(b"init_utxo"), + caller: ProcessId(1), + }, + WitLedgerEffect::Activation { val: v(b"init_utxo"), caller: ProcessId(1), }, diff --git a/starstream_mock_ledger/src/transaction_effects/witness.rs b/starstream_mock_ledger/src/transaction_effects/witness.rs index b5d26746..bcc726fa 100644 --- a/starstream_mock_ledger/src/transaction_effects/witness.rs +++ b/starstream_mock_ledger/src/transaction_effects/witness.rs @@ -53,7 +53,12 @@ pub enum WitLedgerEffect { ret: Value, }, - Input { + Activation { + val: Value, + caller: ProcessId, + }, + + Init { val: Value, caller: ProcessId, }, From 445b733616a1a43a19fe81ca52dd16bda82025c1 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Fri, 2 Jan 2026 20:40:36 -0300 Subject: [PATCH 042/152] wip add arena for passing data Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/src/circuit.rs | 315 +++++++++++++----- starstream_ivc_proto/src/circuit_test.rs | 80 ++--- starstream_ivc_proto/src/lib.rs | 42 ++- starstream_mock_ledger/README.md | 77 ++++- starstream_mock_ledger/src/lib.rs | 3 + starstream_mock_ledger/src/mocked_verifier.rs | 119 +++++-- starstream_mock_ledger/src/tests.rs | 273 ++++++--------- .../src/transaction_effects/witness.rs | 29 +- 8 files changed, 565 insertions(+), 373 deletions(-) diff --git a/starstream_ivc_proto/src/circuit.rs b/starstream_ivc_proto/src/circuit.rs index f32e2977..73a01e44 100644 --- a/starstream_ivc_proto/src/circuit.rs +++ b/starstream_ivc_proto/src/circuit.rs @@ -109,93 +109,11 @@ pub const RAM_OWNERSHIP: u64 = 10u64; // TODO: this could technically be a ROM, or maybe some sort of write once // memory pub const RAM_INIT: u64 = 11u64; +pub const RAM_REF_ARENA: u64 = 12u64; // TODO: this is not implemented yet, since it's the only one with a dynamic // memory size, I'll implement this at last -pub const RAM_HANDLER_STACK: u64 = 12u64; - -pub fn opcode_to_mem_switches(instr: &LedgerOperation) -> (MemSwitchboard, MemSwitchboard) { - // TODO: we could actually have more granularity with 4 of theses, for reads - // and writes - // - // it may actually better for correctnes? - let mut curr_s = MemSwitchboard::default(); - let mut target_s = MemSwitchboard::default(); - - // All ops increment counter of the current process, except Nop - curr_s.counters = !matches!(instr, LedgerOperation::Nop {}); - - match instr { - LedgerOperation::Resume { .. } => { - curr_s.activation = true; - curr_s.expected_input = true; - - target_s.activation = true; - target_s.expected_input = true; - target_s.finalized = true; - target_s.initialized = true; - } - LedgerOperation::Yield { ret, .. } => { - curr_s.activation = true; - if ret.is_some() { - curr_s.expected_input = true; - } - curr_s.finalized = true; - } - LedgerOperation::Burn { .. } => { - curr_s.activation = true; - curr_s.finalized = true; - curr_s.did_burn = true; - curr_s.expected_input = true; - } - LedgerOperation::NewUtxo { .. } | LedgerOperation::NewCoord { .. } => { - // New* ops initialize the target process - target_s.initialized = true; - target_s.init = true; - target_s.counters = true; // sets counter to 0 - } - LedgerOperation::Activation { .. } => { - curr_s.activation = true; - } - LedgerOperation::Init { .. } => { - curr_s.init = true; - } - LedgerOperation::Bind { .. } => { - target_s.initialized = true; - curr_s.ownership = true; - } - LedgerOperation::Unbind { .. } => { - target_s.ownership = true; - } - _ => {} - } - (curr_s, target_s) -} - -pub fn opcode_to_rom_switches(instr: &LedgerOperation) -> RomSwitchboard { - let mut rom_s = RomSwitchboard::default(); - match instr { - LedgerOperation::Resume { .. } => { - rom_s.read_is_utxo_curr = true; - rom_s.read_is_utxo_target = true; - } - LedgerOperation::Burn { .. } => { - rom_s.read_is_utxo_curr = true; - rom_s.read_must_burn_curr = true; - } - LedgerOperation::NewUtxo { .. } | LedgerOperation::NewCoord { .. } => { - rom_s.read_is_utxo_curr = true; - rom_s.read_is_utxo_target = true; - rom_s.read_program_hash_target = true; - } - LedgerOperation::Bind { .. } => { - rom_s.read_is_utxo_curr = true; - rom_s.read_is_utxo_target = true; - } - _ => {} - } - rom_s -} +pub const RAM_HANDLER_STACK: u64 = 13u64; pub struct StepCircuitBuilder { pub instance: InterleavingInstance, @@ -215,6 +133,7 @@ pub struct Wires { id_curr: FpVar, id_prev_is_some: Boolean, id_prev_value: FpVar, + ref_arena_stack_ptr: FpVar, p_len: FpVar, @@ -229,6 +148,8 @@ pub struct Wires { init_switch: Boolean, bind_switch: Boolean, unbind_switch: Boolean, + new_ref_switch: Boolean, + get_switch: Boolean, check_utxo_output_switch: Boolean, @@ -249,6 +170,8 @@ pub struct Wires { curr_mem_switches: MemSwitchboardWires, target_mem_switches: MemSwitchboardWires, + ref_arena_read: FpVar, + // ROM lookup results is_utxo_curr: FpVar, is_utxo_target: FpVar, @@ -300,6 +223,8 @@ pub struct PreWires { init_switch: bool, bind_switch: bool, unbind_switch: bool, + new_ref_switch: bool, + get_switch: bool, curr_mem_switches: MemSwitchboard, target_mem_switches: MemSwitchboard, @@ -332,6 +257,7 @@ pub struct InterRoundWires { id_curr: F, id_prev_is_some: bool, id_prev_value: F, + ref_arena_stack_ptr: F, p_len: F, n_finalized: F, @@ -371,6 +297,8 @@ impl Wires { let p_len = FpVar::::new_witness(cs.clone(), || Ok(vals.irw.p_len))?; let id_prev_is_some = Boolean::new_witness(cs.clone(), || Ok(vals.irw.id_prev_is_some))?; let id_prev_value = FpVar::new_witness(cs.clone(), || Ok(vals.irw.id_prev_value))?; + let ref_arena_stack_ptr = + FpVar::new_witness(cs.clone(), || Ok(vals.irw.ref_arena_stack_ptr))?; // switches let switches = [ @@ -386,6 +314,8 @@ impl Wires { vals.init_switch, vals.bind_switch, vals.unbind_switch, + vals.new_ref_switch, + vals.get_switch, ]; let allocated_switches: Vec<_> = switches @@ -406,6 +336,8 @@ impl Wires { init_switch, bind_switch, unbind_switch, + new_ref_switch, + get_switch, ] = allocated_switches.as_slice() else { unreachable!() @@ -510,10 +442,20 @@ impl Wires { )?[0] .clone(); + let ref_arena_read = rm.conditional_read( + &(get_switch | new_ref_switch), + &Address { + tag: FpVar::new_constant(cs.clone(), F::from(RAM_REF_ARENA))?, + addr: get_switch.select(&val, &ret)?, + }, + )?[0] + .clone(); + Ok(Wires { id_curr, id_prev_is_some, id_prev_value, + ref_arena_stack_ptr, p_len, @@ -528,6 +470,8 @@ impl Wires { init_switch: init_switch.clone(), bind_switch: bind_switch.clone(), unbind_switch: unbind_switch.clone(), + new_ref_switch: new_ref_switch.clone(), + get_switch: get_switch.clone(), constant_false: Boolean::new_constant(cs.clone(), false)?, constant_true: Boolean::new_constant(cs.clone(), true)?, @@ -556,6 +500,7 @@ impl Wires { is_utxo_target, must_burn_curr, rom_program_hash, + ref_arena_read, }) } } @@ -887,6 +832,7 @@ impl InterRoundWires { id_prev_value: F::ZERO, p_len, n_finalized: F::from(0), + ref_arena_stack_ptr: F::ZERO, } } @@ -919,6 +865,14 @@ impl InterRoundWires { ); self.p_len = res.p_len.value().unwrap(); + + tracing::debug!( + "ref_arena_stack_ptr from {} to {}", + self.ref_arena_stack_ptr, + res.ref_arena_stack_ptr.value().unwrap() + ); + + self.ref_arena_stack_ptr = res.ref_arena_stack_ptr.value().unwrap(); } } @@ -1051,6 +1005,8 @@ impl> StepCircuitBuilder { let next_wires = self.visit_init(next_wires)?; let next_wires = self.visit_bind(next_wires)?; let next_wires = self.visit_unbind(next_wires)?; + let next_wires = self.visit_new_ref(next_wires)?; + let next_wires = self.visit_get(next_wires)?; rm.finish_step(i == self.ops.len() - 1)?; @@ -1079,6 +1035,7 @@ impl> StepCircuitBuilder { mb.register_mem(RAM_INITIALIZED, 1, "RAM_INITIALIZED"); mb.register_mem(RAM_FINALIZED, 1, "RAM_FINALIZED"); mb.register_mem(RAM_DID_BURN, 1, "RAM_DID_BURN"); + mb.register_mem(RAM_REF_ARENA, 1, "RAM_REF_ARENA"); mb.register_mem(RAM_OWNERSHIP, 1, "RAM_OWNERSHIP"); for (pid, mod_hash) in self.instance.process_table.iter().enumerate() { @@ -1209,6 +1166,7 @@ impl> StepCircuitBuilder { // // note however that we don't enforce/check anything, that's done in the // circuit constraints + for instr in &self.ops { let (curr_switches, target_switches) = opcode_to_mem_switches(instr); self.mem_switches @@ -1292,6 +1250,35 @@ impl> StepCircuitBuilder { } } + for instr in &self.ops { + let ref_read_arena_address = match instr { + LedgerOperation::NewRef { val, ret } => { + // we never pop from this, actually + mb.init( + dbg!(Address { + tag: RAM_REF_ARENA, + addr: ret.into_bigint().0[0], + }), + vec![val.clone()], + ); + + Some(ret) + } + LedgerOperation::Get { reff, ret: _ } => Some(reff), + _ => None, + }; + + mb.conditional_read( + ref_read_arena_address.is_some(), + Address { + tag: RAM_REF_ARENA, + addr: ref_read_arena_address + .map(|addr| addr.into_bigint().0[0]) + .unwrap_or(0), + }, + ); + } + mb } @@ -1504,6 +1491,36 @@ impl> StepCircuitBuilder { }; Wires::from_irw(&irw, rm, curr_write, target_write) } + LedgerOperation::NewRef { val, ret } => { + let irw = PreWires { + val: *val, + ret: *ret, + new_ref_switch: true, + irw: irw.clone(), + ..PreWires::new( + irw.clone(), + curr_mem_switches.clone(), + target_mem_switches.clone(), + rom_switches.clone(), + ) + }; + Wires::from_irw(&irw, rm, curr_write, target_write) + } + LedgerOperation::Get { reff, ret } => { + let irw = PreWires { + val: *reff, + ret: *ret, + get_switch: true, + irw: irw.clone(), + ..PreWires::new( + irw.clone(), + curr_mem_switches.clone(), + target_mem_switches.clone(), + rom_switches.clone(), + ) + }; + Wires::from_irw(&irw, rm, curr_write, target_write) + } } } #[tracing::instrument(target = "gr1cs", skip(self, wires))] @@ -1533,8 +1550,6 @@ impl> StepCircuitBuilder { .conditional_enforce_equal(&FpVar::zero(), switch)?; // 5. Claim check: val passed in must match target's expected_input. - dbg!(wires.target_read_wires.expected_input.value().unwrap()); - dbg!(wires.val.value().unwrap()); wires .target_read_wires .expected_input @@ -1688,6 +1703,7 @@ impl> StepCircuitBuilder { .conditional_enforce_equal(&wires.constant_false.clone().into(), &switch)?; // Mark new process as initialized + // TODO: There is no need to have this asignment, actually wires.target_write_wires.initialized = switch.select(&wires.constant_true, &wires.target_read_wires.initialized)?; @@ -1758,6 +1774,7 @@ impl> StepCircuitBuilder { .owned_by .conditional_enforce_equal(&wires.p_len, switch)?; + // TODO: no need to have this assignment, probably wires.curr_write_wires.owned_by = switch.select(&wires.target, &wires.curr_read_wires.owned_by)?; @@ -1780,17 +1797,141 @@ impl> StepCircuitBuilder { .conditional_enforce_equal(&wires.id_curr, switch)?; // p_len is a sentinel for None + // TODO: no need to assign wires.target_write_wires.owned_by = switch.select(&wires.p_len, &wires.curr_read_wires.owned_by)?; Ok(wires) } + #[tracing::instrument(target = "gr1cs", skip_all)] + fn visit_new_ref(&self, mut wires: Wires) -> Result { + let switch = &wires.new_ref_switch; + + wires + .ret + .conditional_enforce_equal(&wires.ref_arena_stack_ptr, switch)?; + + wires + .val + .conditional_enforce_equal(&wires.ref_arena_read, switch)?; + + wires.ref_arena_stack_ptr = switch.select( + &(&wires.ref_arena_stack_ptr + &wires.constant_one), + &wires.ref_arena_stack_ptr, + )?; + + Ok(wires) + } + + #[tracing::instrument(target = "gr1cs", skip_all)] + fn visit_get(&self, mut wires: Wires) -> Result { + let switch = &wires.get_switch; + + // TODO: prove that reff is < ref_arena_stack_ptr ? + // or is it not needed? since we never decrease? + // + // the problem is that this seems to require range checks + // + // but technically it shouldn't be possible to ask for a value that is + // not allocated yet (even if in zk we can allocate everything from the beginning + // since we don't pop) + + wires + .ret + .conditional_enforce_equal(&wires.ref_arena_read, switch)?; + + Ok(wires) + } + pub(crate) fn p_len(&self) -> usize { self.instance.process_table.len() } } +pub fn opcode_to_mem_switches(instr: &LedgerOperation) -> (MemSwitchboard, MemSwitchboard) { + // TODO: we could actually have more granularity with 4 of theses, for reads + // and writes + // + // it may actually better for correctnes? + let mut curr_s = MemSwitchboard::default(); + let mut target_s = MemSwitchboard::default(); + + // All ops increment counter of the current process, except Nop + curr_s.counters = !matches!(instr, LedgerOperation::Nop {}); + + match instr { + LedgerOperation::Resume { .. } => { + curr_s.activation = true; + curr_s.expected_input = true; + + target_s.activation = true; + target_s.expected_input = true; + target_s.finalized = true; + target_s.initialized = true; + } + LedgerOperation::Yield { ret, .. } => { + curr_s.activation = true; + if ret.is_some() { + curr_s.expected_input = true; + } + curr_s.finalized = true; + } + LedgerOperation::Burn { .. } => { + curr_s.activation = true; + curr_s.finalized = true; + curr_s.did_burn = true; + curr_s.expected_input = true; + } + LedgerOperation::NewUtxo { .. } | LedgerOperation::NewCoord { .. } => { + // New* ops initialize the target process + target_s.initialized = true; + target_s.init = true; + target_s.counters = true; // sets counter to 0 + } + LedgerOperation::Activation { .. } => { + curr_s.activation = true; + } + LedgerOperation::Init { .. } => { + curr_s.init = true; + } + LedgerOperation::Bind { .. } => { + target_s.initialized = true; + curr_s.ownership = true; + } + LedgerOperation::Unbind { .. } => { + target_s.ownership = true; + } + _ => {} + } + (curr_s, target_s) +} + +pub fn opcode_to_rom_switches(instr: &LedgerOperation) -> RomSwitchboard { + let mut rom_s = RomSwitchboard::default(); + match instr { + LedgerOperation::Resume { .. } => { + rom_s.read_is_utxo_curr = true; + rom_s.read_is_utxo_target = true; + } + LedgerOperation::Burn { .. } => { + rom_s.read_is_utxo_curr = true; + rom_s.read_must_burn_curr = true; + } + LedgerOperation::NewUtxo { .. } | LedgerOperation::NewCoord { .. } => { + rom_s.read_is_utxo_curr = true; + rom_s.read_is_utxo_target = true; + rom_s.read_program_hash_target = true; + } + LedgerOperation::Bind { .. } => { + rom_s.read_is_utxo_curr = true; + rom_s.read_is_utxo_target = true; + } + _ => {} + } + rom_s +} + #[tracing::instrument(target = "gr1cs", skip(cs, wires_in, wires_out))] fn ivcify_wires( cs: &ConstraintSystemRef, @@ -1844,6 +1985,8 @@ impl PreWires { init_switch: false, bind_switch: false, unbind_switch: false, + new_ref_switch: false, + get_switch: false, // io vars irw, diff --git a/starstream_ivc_proto/src/circuit_test.rs b/starstream_ivc_proto/src/circuit_test.rs index 51a3a9e6..285cc856 100644 --- a/starstream_ivc_proto/src/circuit_test.rs +++ b/starstream_ivc_proto/src/circuit_test.rs @@ -1,6 +1,6 @@ use crate::{prove, test_utils::init_test_logging}; use starstream_mock_ledger::{ - CoroutineState, Hash, InterleavingInstance, MockedLookupTableCommitment, ProcessId, Value, + CoroutineState, Hash, InterleavingInstance, MockedLookupTableCommitment, ProcessId, Ref, Value, WitLedgerEffect, }; @@ -31,18 +31,22 @@ fn test_circuit_simple_resume() { let val_1 = v(&[1]); let val_4 = v(&[4]); + let ref_0 = Ref(0); + let ref_1 = Ref(1); + let ref_4 = Ref(2); + let utxo_trace = MockedLookupTableCommitment { trace: vec![ WitLedgerEffect::Init { - val: val_4.clone(), + val: ref_4, caller: p2, }, WitLedgerEffect::Activation { - val: val_0.clone(), + val: ref_0, caller: p2, }, WitLedgerEffect::Yield { - val: val_1.clone(), // Yielding nothing + val: ref_1.clone(), // Yielding nothing ret: None, // Not expecting to be resumed again id_prev: Some(p2), }, @@ -52,16 +56,16 @@ fn test_circuit_simple_resume() { let token_trace = MockedLookupTableCommitment { trace: vec![ WitLedgerEffect::Init { - val: val_1.clone(), + val: ref_1, caller: p2, }, WitLedgerEffect::Activation { - val: val_0.clone(), + val: ref_0, caller: p2, }, WitLedgerEffect::Bind { owner_id: p0 }, WitLedgerEffect::Yield { - val: val_1.clone(), // Yielding nothing + val: ref_1.clone(), // Yielding nothing ret: None, // Not expecting to be resumed again id_prev: Some(p2), }, @@ -70,43 +74,44 @@ fn test_circuit_simple_resume() { let coord_trace = MockedLookupTableCommitment { trace: vec![ + WitLedgerEffect::NewRef { + val: val_0, + ret: ref_0, + }, + WitLedgerEffect::NewRef { + val: val_1.clone(), + ret: ref_1, + }, + WitLedgerEffect::NewRef { + val: val_4.clone(), + ret: ref_4, + }, WitLedgerEffect::NewUtxo { program_hash: h(0), - val: val_4.clone(), + val: ref_4, id: p0, }, WitLedgerEffect::NewUtxo { program_hash: h(1), - val: val_1.clone(), + val: ref_1, id: p1, }, WitLedgerEffect::Resume { target: p1, - val: val_0.clone(), - ret: val_1.clone(), + val: ref_0.clone(), + ret: ref_1.clone(), id_prev: None, }, WitLedgerEffect::Resume { target: p0, - val: val_0.clone(), - ret: val_1.clone(), + val: ref_0, + ret: ref_1, id_prev: Some(p1), }, ], }; - let traces = vec![ - utxo_trace, - token_trace, - coord_trace, - MockedLookupTableCommitment { trace: vec![] }, - MockedLookupTableCommitment { trace: vec![] }, - MockedLookupTableCommitment { trace: vec![] }, - MockedLookupTableCommitment { trace: vec![] }, - MockedLookupTableCommitment { trace: vec![] }, - MockedLookupTableCommitment { trace: vec![] }, - MockedLookupTableCommitment { trace: vec![] }, - ]; + let traces = vec![utxo_trace, token_trace, coord_trace]; let trace_lens = traces .iter() @@ -118,26 +123,11 @@ fn test_circuit_simple_resume() { n_new: 2, n_coords: 8, entrypoint: p2, - process_table: vec![h(0), h(1), h(2), h(3), h(4), h(5), h(6), h(7), h(8), h(9)], - is_utxo: vec![ - true, true, false, false, false, false, false, false, false, false, - ], - must_burn: vec![ - false, false, false, false, false, false, false, false, false, false, - ], - ownership_in: vec![None, None, None, None, None, None, None, None, None, None], - ownership_out: vec![ - None, - Some(ProcessId(0)), - None, - None, - None, - None, - None, - None, - None, - None, - ], + process_table: vec![h(0), h(1), h(2)], + is_utxo: vec![true, true, false], + must_burn: vec![false, false, false], + ownership_in: vec![None, None, None], + ownership_out: vec![None, Some(ProcessId(0)), None], host_calls_roots: traces, host_calls_lens: trace_lens, input_states: vec![], diff --git a/starstream_ivc_proto/src/lib.rs b/starstream_ivc_proto/src/lib.rs index 4db5a7ab..e6c1e6b1 100644 --- a/starstream_ivc_proto/src/lib.rs +++ b/starstream_ivc_proto/src/lib.rs @@ -86,6 +86,15 @@ pub enum LedgerOperation { token_id: F, }, + NewRef { + val: F, + ret: F, + }, + Get { + reff: F, + ret: F, + }, + /// Auxiliary instructions. /// /// Nop is used as a dummy instruction to build the circuit layout on the @@ -99,6 +108,7 @@ pub struct ProverOutput { } const SCAN_BATCH_SIZE: usize = 10; +// const SCAN_BATCH_SIZE: usize = 200; pub fn prove(inst: InterleavingInstance) -> Result { let shape_ccs = ccs_step_shape(inst.clone())?; @@ -189,8 +199,8 @@ fn make_interleaved_trace(inst: &InterleavingInstance) -> Vec Vec Vec Vec LedgerOperation::NewUtxo { program_hash: F::from(program_hash.0[0] as u64), - val: value_to_field(val), + val: F::from(val.0), target: (id.0 as u64).into(), }, starstream_mock_ledger::WitLedgerEffect::NewCoord { @@ -235,18 +245,18 @@ fn make_interleaved_trace(inst: &InterleavingInstance) -> Vec LedgerOperation::NewCoord { program_hash: F::from(program_hash.0[0] as u64), - val: value_to_field(val), + val: F::from(val.0), target: (id.0 as u64).into(), }, starstream_mock_ledger::WitLedgerEffect::Activation { val, caller } => { LedgerOperation::Activation { - val: value_to_field(val), + val: F::from(val.0), caller: (caller.0 as u64).into(), } } starstream_mock_ledger::WitLedgerEffect::Init { val, caller } => { LedgerOperation::Init { - val: value_to_field(val), + val: F::from(val.0), caller: (caller.0 as u64).into(), } } @@ -258,6 +268,16 @@ fn make_interleaved_trace(inst: &InterleavingInstance) -> Vec { + LedgerOperation::NewRef { + val: value_to_field(val), + ret: F::from(ret.0), + } + } + starstream_mock_ledger::WitLedgerEffect::Get { reff, ret } => LedgerOperation::Get { + reff: F::from(reff.0), + ret: value_to_field(ret), + }, // For opcodes not yet handled by the circuit, we just skip them // and they won't be included in the final `ops` list. _ => continue, @@ -269,9 +289,7 @@ fn make_interleaved_trace(inst: &InterleavingInstance) -> Vec ark_ff::Fp, 1> { +fn value_to_field(val: starstream_mock_ledger::Value) -> F { F::from(val.0[0]) } diff --git a/starstream_mock_ledger/README.md b/starstream_mock_ledger/README.md index f8e8c3f4..5fc580d1 100644 --- a/starstream_mock_ledger/README.md +++ b/starstream_mock_ledger/README.md @@ -27,14 +27,15 @@ The global state of the interleaving machine σ is defined as: ```text Configuration (σ) ================= -σ = (id_curr, id_prev, M, activation, init, process_table, host_calls, counters, safe_to_ledger, is_utxo, initialized, handler_stack, ownership, is_burned) +σ = (id_curr, id_prev, M, activation, init, ref_store, process_table, host_calls, counters, safe_to_ledger, is_utxo, initialized, handler_stack, ownership, is_burned) Where: id_curr : ID of the currently executing VM. In the range [0..#coord + #utxo] id_prev : ID of the VM that called the current one (return address). - M : A map {ProcessID -> Value} - activation : A map {ProcessID -> Option<(Value, ProcessID)>} + M : A map {ProcessID -> Ref} + activation : A map {ProcessID -> Option<(Ref, ProcessID)>} init : A map {ProcessID -> Option<(Value, ProcessID)>} + ref_store : A map {Ref -> Value} process_table : Read-only map {ID -> ProgramHash} for attestation. host_calls : A map {ProcessID -> Host-calls lookup table} counters : A map {ProcessID -> Counter} @@ -85,20 +86,21 @@ our value matches its claim. ```text Rule: Resume ============ - op = Resume(target, val) -> ret + op = Resume(target, val_ref) -> ret_ref 1. id_curr ≠ target (No self resume) - 2. M[target] == val + 2. let val = ref_store[val_ref] in + M[target] == val (Check val matches target's previous claim) 3. let t = CC[id_curr] in c = counters[id_curr] in - t[c] == + t[c] == (The opcode matches the host call lookup table used in the wasm proof at the current index) @@ -110,12 +112,12 @@ Rule: Resume (Can't jump to an unitialized process) -------------------------------------------------------------------------------------------- - 1. M[id_curr] <- ret (Claim, needs to be checked later by future resumer) + 1. M[id_curr] <- ret_ref (Claim, needs to be checked later by future resumer) 2. counters'[id_curr] += 1 (Keep track of host call index per process) 3. id_prev' <- id_curr (Save "caller" for yield) 4. id_curr' <- target (Switch) 5. safe_to_ledger'[target] <- False (This is not the final yield for this utxo in this transaction) - 6. activation'[target] <- Some(val, id_curr) + 6. activation'[target] <- Some(val_ref, id_curr) ``` ## Activation @@ -164,21 +166,22 @@ with an actual result). In that case, id_prev would be null (or some sentinel). ```text Rule: Yield (resumed) ============ - op = Yield(val) -> ret + op = Yield(val_ref) -> ret_ref - 1. M[id_prev] == val + 1. let val = ref_store[val_ref] in + M[id_prev] == val (Check val matches target's previous claim) 2. let t = CC[id_curr] in c = counters[id_curr] in - t[c] == + t[c] == (The opcode matches the host call lookup table used in the wasm proof at the current index) -------------------------------------------------------------------------------------------- - 1. M[id_curr] <- ret (Claim, needs to be checked later by future resumer) + 1. M[id_curr] <- ret_ref (Claim, needs to be checked later by future resumer) 2. counters'[id_curr] += 1 (Keep track of host call index per process) 3. id_curr' <- id_prev (Switch to parent) 4. id_prev' <- id_curr (Save "caller") @@ -189,12 +192,12 @@ Rule: Yield (resumed) ```text Rule: Yield (end transaction) ============================= - op = Yield(val) + op = Yield(val_ref) 3. let t = CC[id_curr] in c = counters[id_curr] in - t[c] == + t[c] == (Remember, there is no ret value since that won't be known until the next transaction) @@ -409,13 +412,14 @@ Rule: Burn ========== Destroys the UTXO state. - op = Burn(val) + op = Burn(val_ref) 1. is_utxo[id_curr] 2. is_initialized[id_curr] 3. is_burned[id_curr] - 4. M[id_prev] == val + 4. let val = ref_store[val_ref] in + M[id_prev] == val (Resume receives val) @@ -496,7 +500,46 @@ Rule: Unbind (owner calls) ----------------------------------------------------------------------- 1. ownership'[token_id] <- ⊥ 2. counters'[owner_id] += 1 +``` + +# 7. Data Operations + +## NewRef + +```text +Rule: NewRef +============== + op = NewRef(val) -> ref + + 1. let + t = CC[id_curr] in + c = counters[id_curr] in + t[c] == + + (Host call lookup condition) +----------------------------------------------------------------------- + 1. ref_store'[ref] <- val + 2. counters'[id_curr] += 1 +``` +## Get + +```text +Rule: Get +============== + op = Get(ref) -> val + + 1. ref_store[ref] == val + + 2. let + t = CC[id_curr] in + c = counters[id_curr] in + t[c] == + + (Host call lookup condition) +----------------------------------------------------------------------- + 1. counters'[id_curr] += 1 +``` # Verification @@ -520,4 +563,4 @@ for (process, proof, host_calls) in transaction.proofs: assert_not(is_utxo[id_curr]) // we finish in a coordination script -``` +``` \ No newline at end of file diff --git a/starstream_mock_ledger/src/lib.rs b/starstream_mock_ledger/src/lib.rs index 30b9c2f9..4e12d79d 100644 --- a/starstream_mock_ledger/src/lib.rs +++ b/starstream_mock_ledger/src/lib.rs @@ -42,6 +42,9 @@ impl Value { } } +#[derive(Clone, Copy, PartialEq, Eq, Hash, Debug)] +pub struct Ref(pub u64); + #[derive(Clone, PartialEq, Eq, Hash)] pub struct CoroutineState { // For the purpose of this model, we only care *if* the state changed, diff --git a/starstream_mock_ledger/src/mocked_verifier.rs b/starstream_mock_ledger/src/mocked_verifier.rs index 6d97f08d..610624cb 100644 --- a/starstream_mock_ledger/src/mocked_verifier.rs +++ b/starstream_mock_ledger/src/mocked_verifier.rs @@ -9,7 +9,7 @@ //! It's mainly a direct translation of the algorithm in the README use crate::{ - Hash, InterleavingInstance, Value, WasmModule, + Hash, InterleavingInstance, Ref, Value, WasmModule, transaction_effects::{InterfaceId, ProcessId, witness::WitLedgerEffect}, }; use std::collections::HashMap; @@ -69,8 +69,8 @@ pub enum InterleavingError { #[error("resume claim mismatch: target={target} expected={expected:?} got={got:?}")] ResumeClaimMismatch { target: ProcessId, - expected: Value, - got: Value, + expected: Ref, + got: Ref, }, #[error("yield claim mismatch: id_prev={id_prev:?} expected={expected:?} got={got:?}")] @@ -165,6 +165,9 @@ pub enum InterleavingError { #[error("resume target already has arg (re-entrancy): target={0}")] ReentrantResume(ProcessId), + + #[error("ref not found: {0:?}")] + RefNotFound(Ref), } // ---------------------------- verifier ---------------------------- @@ -184,12 +187,14 @@ pub struct InterleavingState { id_prev: Option, /// Claims memory: M[pid] = expected argument to next Resume into pid. - expected_input: Vec, + expected_input: Vec, - activation: Vec>, - init: Vec>, + activation: Vec>, + init: Vec>, counters: Vec, + ref_counter: u64, + ref_store: HashMap, /// If a new output or coordination script is created, it must be through a /// spawn from a coordinator script @@ -224,9 +229,10 @@ pub fn verify_interleaving_semantics( // initialized with the same data. // // TODO: maybe we also need to assert/prove that it starts with a Yield - let mut claims_memory = vec![Value::nil(); n]; + let mut claims_memory = vec![Ref(0); n]; for i in 0..inst.n_inputs { - claims_memory[i] = inst.input_states[i].last_yield.clone(); + // TODO: This is not correct, last_yield is a Value, not a Ref + // claims_memory[i] = inst.input_states[i].last_yield.clone(); } let rom = ROM { @@ -243,6 +249,8 @@ pub fn verify_interleaving_semantics( activation: vec![None; n], init: vec![None; n], counters: vec![0; n], + ref_counter: 0, + ref_store: HashMap::new(), handler_stack: HashMap::new(), ownership: inst.ownership_in.clone(), initialized: vec![false; n], @@ -416,23 +424,26 @@ pub fn state_transition( if state.counters[target.0] == 0 { if let Some((init_val, _)) = &state.init[target.0] { - if init_val != &val { + if *init_val != val { return Err(InterleavingError::ResumeClaimMismatch { target, expected: init_val.clone(), - got: val, + got: val.clone(), }); } } - } else if state.expected_input[target.0].clone() != val { - return Err(InterleavingError::ResumeClaimMismatch { - target, - expected: state.expected_input[target.0].clone(), - got: val, - }); + } else { + let expected = state.expected_input[target.0]; + if expected != val { + return Err(InterleavingError::ResumeClaimMismatch { + target, + expected: expected.clone(), + got: val.clone(), + }); + } } - state.activation[target.0] = Some((val.clone(), id_curr)); + state.activation[target.0] = Some((val, id_curr)); state.expected_input[id_curr.0] = ret; @@ -442,14 +453,14 @@ pub fn state_transition( counter: c, expected: WitLedgerEffect::Resume { target, - val: state.expected_input[target.0].clone(), - ret: state.expected_input[id_curr.0].clone(), + val, + ret, id_prev: state.id_prev, }, got: WitLedgerEffect::Resume { target, - val: state.expected_input[target.0].clone(), - ret: state.expected_input[id_curr.0].clone(), + val, + ret, id_prev, }, }); @@ -468,8 +479,8 @@ pub fn state_transition( pid: id_curr, counter: c, expected: WitLedgerEffect::Yield { - val: val.clone(), - ret: ret.clone(), + val, + ret, id_prev: state.id_prev, }, got: WitLedgerEffect::Yield { val, ret, id_prev }, @@ -480,6 +491,11 @@ pub fn state_transition( .id_prev .ok_or(InterleavingError::YieldWithNoParent { pid: id_curr })?; + let val = state + .ref_store + .get(&val) + .ok_or(InterleavingError::RefNotFound(val))?; + match ret { Some(retv) => { state.expected_input[id_curr.0] = retv; @@ -489,12 +505,17 @@ pub fn state_transition( state.finalized[id_curr.0] = false; if let Some(prev) = state.id_prev { - let expected = state.expected_input[prev.0].clone(); + let expected_ref = state.expected_input[prev.0]; + let expected = state + .ref_store + .get(&expected_ref) + .ok_or(InterleavingError::RefNotFound(expected_ref))?; + if expected != val { return Err(InterleavingError::YieldClaimMismatch { id_prev: state.id_prev, - expected, - got: val, + expected: expected.clone(), + got: val.clone(), }); } } @@ -553,7 +574,8 @@ pub fn state_transition( } state.initialized[id.0] = true; state.init[id.0] = Some((val.clone(), id_curr)); - state.expected_input[id.0] = val; + // TODO: this is not correct, last_yield is a Value, not a Ref + // state.expected_input[id.0] = val; } WitLedgerEffect::NewCoord { @@ -587,7 +609,8 @@ pub fn state_transition( state.initialized[id.0] = true; state.init[id.0] = Some((val.clone(), id_curr)); - state.expected_input[id.0] = val; + // TODO: this is not correct, last_yield is a Value, not a Ref + // state.expected_input[id.0] = val; } WitLedgerEffect::InstallHandler { interface_id } => { @@ -633,7 +656,9 @@ pub fn state_transition( let curr = state.id_curr; let Some((v, c)) = &state.activation[curr.0] else { - return Err(InterleavingError::Shape("Activation called with no arg set")); + return Err(InterleavingError::Shape( + "Activation called with no arg set", + )); }; if v != &val || c != &caller { @@ -653,6 +678,25 @@ pub fn state_transition( } } + WitLedgerEffect::NewRef { val, ret } => { + state.ref_counter += 1; + let new_ref = Ref(state.ref_counter); + if new_ref != ret { + return Err(InterleavingError::Shape("NewRef result mismatch")); + } + state.ref_store.insert(new_ref, val); + } + + WitLedgerEffect::Get { reff, ret } => { + let val = state + .ref_store + .get(&reff) + .ok_or(InterleavingError::RefNotFound(reff))?; + if val != &ret { + return Err(InterleavingError::Shape("Get result mismatch")); + } + } + WitLedgerEffect::Burn { ret } => { if !rom.is_utxo[id_curr.0] { return Err(InterleavingError::UtxoOnly(id_curr)); @@ -666,12 +710,23 @@ pub fn state_transition( .id_prev .ok_or(InterleavingError::BurnWithNoParent { pid: id_curr })?; - if state.expected_input[parent.0].clone() != ret { + let ret_val = state + .ref_store + .get(&ret) + .ok_or(InterleavingError::RefNotFound(ret))?; + + let expected_ref = state.expected_input[parent.0]; + let expected_val = state + .ref_store + .get(&expected_ref) + .ok_or(InterleavingError::RefNotFound(expected_ref))?; + + if expected_val != ret_val { // Burn is the final return of the coroutine return Err(InterleavingError::YieldClaimMismatch { id_prev: state.id_prev, - expected: state.expected_input[parent.0].clone(), - got: ret, + expected: expected_val.clone(), + got: ret_val.clone(), }); } diff --git a/starstream_mock_ledger/src/tests.rs b/starstream_mock_ledger/src/tests.rs index 2d86ea26..840008d4 100644 --- a/starstream_mock_ledger/src/tests.rs +++ b/starstream_mock_ledger/src/tests.rs @@ -48,7 +48,7 @@ fn mock_genesis() -> (Ledger, UtxoId, UtxoId, CoroutineId, CoroutineId) { UtxoEntry { state: CoroutineState { pc: 0, - last_yield: v(b"spend_input_1"), + last_yield: Ref(1), }, contract_hash: input_hash_1.clone(), }, @@ -58,7 +58,7 @@ fn mock_genesis() -> (Ledger, UtxoId, UtxoId, CoroutineId, CoroutineId) { UtxoEntry { state: CoroutineState { pc: 0, - last_yield: v(b"spend_input_2"), + last_yield: Ref(2), }, contract_hash: input_hash_2.clone(), }, @@ -173,47 +173,19 @@ fn mock_genesis_and_apply_tx(proven_tx: ProvenTransaction) -> Result(created) | - // |---NewUtxo---|-----------------|-----------------|-------------->|(created) - // | | | | | - // |---Resume--->| (spend) | | | - // |<--Yield-----| (continue) | | | - // | | | | | - // |---Resume--------------------->| (spend) | | - // |<--Burn------------------------| | | - // | | | | | - // |---Resume--------------------------------------->| | - // |<--Yield-----------------------------------------| | - // | | | | | - // |---Resume------------------------------------------------------->| - // |<--Yield---------------------------------------------------------| - // | | | | | - // (end) (output) X (burned) (output) (output) - let (ledger, input_utxo_1, input_utxo_2, _, _) = mock_genesis(); let coord_hash = h(1); let utxo_hash_a = h(2); let utxo_hash_b = h(3); - // Host call traces for each process in canonical order: inputs ++ new_outputs ++ coord_scripts - // Process 0: Input 1, Process 1: Input 2, Process 2: UTXO A (spawn), Process 3: UTXO B (spawn), Process 4: Coordination script let input_1_trace = vec![ WitLedgerEffect::Activation { val: v(b"spend_input_1"), caller: ProcessId(4), }, WitLedgerEffect::Yield { - val: v(b"continued_1"), + val: Ref(2), ret: None, id_prev: Some(ProcessId(4)), }, @@ -225,7 +197,7 @@ fn test_transaction_with_coord_and_utxos() { caller: ProcessId(4), }, WitLedgerEffect::Burn { - ret: v(b"burned_2"), + ret: Ref(4), }, ]; @@ -242,7 +214,7 @@ fn test_transaction_with_coord_and_utxos() { owner_id: ProcessId(3), }, WitLedgerEffect::Yield { - val: v(b"done_a"), + val: Ref(6), ret: None, id_prev: Some(ProcessId(4)), }, @@ -258,7 +230,7 @@ fn test_transaction_with_coord_and_utxos() { caller: ProcessId(4), }, WitLedgerEffect::Yield { - val: v(b"done_b"), + val: Ref(8), ret: None, id_prev: Some(ProcessId(4)), }, @@ -275,28 +247,60 @@ fn test_transaction_with_coord_and_utxos() { val: v(b"init_b"), id: ProcessId(3), }, + WitLedgerEffect::NewRef { + val: v(b"spend_input_1"), + ret: Ref(1), + }, + WitLedgerEffect::NewRef { + val: v(b"continued_1"), + ret: Ref(2), + }, WitLedgerEffect::Resume { target: ProcessId(0), - val: v(b"spend_input_1"), - ret: v(b"continued_1"), + val: Ref(1), + ret: Ref(2), id_prev: None, }, + WitLedgerEffect::NewRef { + val: v(b"spend_input_2"), + ret: Ref(3), + }, + WitLedgerEffect::NewRef { + val: v(b"burned_2"), + ret: Ref(4), + }, WitLedgerEffect::Resume { target: ProcessId(1), - val: v(b"spend_input_2"), - ret: v(b"burned_2"), + val: Ref(3), + ret: Ref(4), id_prev: Some(ProcessId(0)), }, + WitLedgerEffect::NewRef { + val: v(b"init_a"), + ret: Ref(5), + }, + WitLedgerEffect::NewRef { + val: v(b"done_a"), + ret: Ref(6), + }, WitLedgerEffect::Resume { target: ProcessId(2), - val: v(b"init_a"), - ret: v(b"done_a"), + val: Ref(5), + ret: Ref(6), id_prev: Some(ProcessId(1)), }, + WitLedgerEffect::NewRef { + val: v(b"init_b"), + ret: Ref(7), + }, + WitLedgerEffect::NewRef { + val: v(b"done_b"), + ret: Ref(8), + }, WitLedgerEffect::Resume { target: ProcessId(3), - val: v(b"init_b"), - ret: v(b"done_b"), + val: Ref(7), + ret: Ref(8), id_prev: Some(ProcessId(2)), }, ]; @@ -306,7 +310,7 @@ fn test_transaction_with_coord_and_utxos() { input_utxo_1, Some(CoroutineState { pc: 1, - last_yield: v(b"continued_1"), + last_yield: Ref(2), }), input_1_trace, ) @@ -315,7 +319,7 @@ fn test_transaction_with_coord_and_utxos() { NewOutput { state: CoroutineState { pc: 0, - last_yield: v(b"utxo_a_state"), + last_yield: Ref(6), }, contract_hash: utxo_hash_a.clone(), }, @@ -325,95 +329,29 @@ fn test_transaction_with_coord_and_utxos() { NewOutput { state: CoroutineState { pc: 0, - last_yield: v(b"utxo_b_state"), + last_yield: Ref(8), }, contract_hash: utxo_hash_b.clone(), }, utxo_b_trace, ) .with_coord_script(coord_hash, coord_trace) - .with_ownership(OutputRef(2), OutputRef(3)) // utxo_a owned by utxo_b + .with_ownership(OutputRef(2), OutputRef(3)) .with_entrypoint(4) .build(); let ledger = ledger.apply_transaction(&proven_tx).unwrap(); - // Verify final ledger state - assert_eq!(ledger.utxos.len(), 3); // 1 continuation + 2 new outputs - assert_eq!(ledger.ownership_registry.len(), 1); // UTXO A is owned by UTXO B + assert_eq!(ledger.utxos.len(), 3); + assert_eq!(ledger.ownership_registry.len(), 1); } #[test] fn test_effect_handlers() { - // Create a transaction with: - // - 1 coordination script (process 1) that acts as an effect handler - // - 1 new UTXO (process 0) that calls the effect handler - // - // Roughly models this: - // - // interface Interface { - // Effect(int): int - // } - // - // utxo Utxo { - // main { - // raise Interface::Effect(42); - // } - // } - // - // script { - // fn main() { - // let utxo = Utxo::new(); - // - // try { - // utxo.resume(utxo); - // } - // with Interface { - // do Effect(x) = { - // resume(43) - // } - // } - // } - // } - // - // This test simulates a coordination script acting as an algebraic effect handler - // for a UTXO. The UTXO "raises" an effect by calling the handler, and the - // handler resumes the UTXO with the result. - // - // P1 (Coord/Handler) P0 (UTXO) - // | | - // (entrypoint) | - // | | - // InstallHandler (self) | - // | | - // NewUtxo ---------------->(P0 created) - // (val="init_utxo") | - // | | - // Resume ----------------->| - // (val="init_utxo") | - // | Init (val="init_utxo", caller=P1) - // | Activation (val="init_utxo", caller=P1) - // | ProgramHash(P1) -> (attest caller) - // | GetHandlerFor -> P1 - // |<----------------- Resume (Effect call) - // | (val="Interface::Effect(42)") - //(handles effect) | - // | | - // Resume ----------------->| (Resume with result) - //(val="Interface::EffectResponse(43)") - // | | - // |<----------------- Yield - // | (val="utxo_final") - //UninstallHandler (self) | - // | | - // (end) | - let coord_hash = h(1); let utxo_hash = h(2); let interface_id = h(42); - // Host call traces for each process in canonical order: (no inputs) ++ new_outputs ++ coord_scripts - // Process 0: UTXO, Process 1: Coordination script let utxo_trace = vec![ WitLedgerEffect::Init { val: v(b"init_utxo"), @@ -425,7 +363,7 @@ fn test_effect_handlers() { }, WitLedgerEffect::ProgramHash { target: ProcessId(1), - program_hash: coord_hash.clone(), // assert coord_script hash == h(1) + program_hash: coord_hash.clone(), }, WitLedgerEffect::GetHandlerFor { interface_id: interface_id.clone(), @@ -433,12 +371,12 @@ fn test_effect_handlers() { }, WitLedgerEffect::Resume { target: ProcessId(1), - val: v(b"Interface::Effect(42)"), // request - ret: v(b"Interface::EffectResponse(43)"), // expected response + val: Ref(2), + ret: Ref(3), id_prev: Some(ProcessId(1)), }, WitLedgerEffect::Yield { - val: v(b"utxo_final"), + val: Ref(4), ret: None, id_prev: Some(ProcessId(1)), }, @@ -453,16 +391,32 @@ fn test_effect_handlers() { val: v(b"init_utxo"), id: ProcessId(0), }, + WitLedgerEffect::NewRef { + val: v(b"init_utxo"), + ret: Ref(1), + }, + WitLedgerEffect::NewRef { + val: v(b"Interface::Effect(42)"), + ret: Ref(2), + }, WitLedgerEffect::Resume { target: ProcessId(0), - val: v(b"init_utxo"), - ret: v(b"Interface::Effect(42)"), // expected request + val: Ref(1), + ret: Ref(2), id_prev: None, }, + WitLedgerEffect::NewRef { + val: v(b"Interface::EffectResponse(43)"), + ret: Ref(3), + }, + WitLedgerEffect::NewRef { + val: v(b"utxo_final"), + ret: Ref(4), + }, WitLedgerEffect::Resume { target: ProcessId(0), - val: v(b"Interface::EffectResponse(43)"), // response sent - ret: v(b"utxo_final"), + val: Ref(3), + ret: Ref(4), id_prev: Some(ProcessId(0)), }, WitLedgerEffect::UninstallHandler { interface_id }, @@ -473,7 +427,7 @@ fn test_effect_handlers() { NewOutput { state: CoroutineState { pc: 0, - last_yield: v(b"utxo_state"), + last_yield: Ref(4), }, contract_hash: utxo_hash.clone(), }, @@ -492,8 +446,8 @@ fn test_effect_handlers() { let ledger = ledger.apply_transaction(&proven_tx).unwrap(); - assert_eq!(ledger.utxos.len(), 1); // 1 new UTXO - assert_eq!(ledger.ownership_registry.len(), 0); // No ownership relationships + assert_eq!(ledger.utxos.len(), 1); + assert_eq!(ledger.ownership_registry.len(), 0); } #[test] @@ -504,9 +458,12 @@ fn test_burn_with_continuation_fails() { input_utxo_1, Some(CoroutineState { pc: 1, - last_yield: v(b"continued"), + last_yield: Ref(1), }), - vec![WitLedgerEffect::Burn { ret: v(b"burned") }], + vec![ + WitLedgerEffect::NewRef { val: v(b"burned"), ret: Ref(1) }, + WitLedgerEffect::Burn { ret: Ref(1) }, + ], ) .with_entrypoint(0) .build(); @@ -526,12 +483,15 @@ fn test_utxo_resumes_utxo_fails() { .with_input( input_utxo_1, None, - vec![WitLedgerEffect::Resume { - target: ProcessId(1), - val: v(b""), - ret: v(b""), - id_prev: None, - }], + vec![ + WitLedgerEffect::NewRef { val: v(b""), ret: Ref(1) }, + WitLedgerEffect::Resume { + target: ProcessId(1), + val: Ref(1), + ret: Ref(1), + id_prev: None, + }, + ], ) .with_input(input_utxo_2, None, vec![]) .with_entrypoint(0) @@ -553,7 +513,7 @@ fn test_continuation_without_yield_fails() { input_utxo_1, Some(CoroutineState { pc: 1, - last_yield: v(b"continued"), + last_yield: Ref(1), }), vec![], ) @@ -605,7 +565,7 @@ fn test_duplicate_input_utxo_fails() { UtxoEntry { state: CoroutineState { pc: 0, - last_yield: Value::nil(), + last_yield: Ref(0), }, contract_hash: h(1), }, @@ -637,52 +597,23 @@ fn test_duplicate_input_utxo_fails() { .with_input( input_id.clone(), None, - vec![WitLedgerEffect::Burn { ret: Value::nil() }], - ) - .with_input( - input_id.clone(), - None, - vec![WitLedgerEffect::Burn { ret: Value::nil() }], + vec![ + WitLedgerEffect::NewRef { val: Value::nil(), ret: Ref(1) }, + WitLedgerEffect::Burn { ret: Ref(1) } + ], ) .with_coord_script( coord_hash, vec![ + WitLedgerEffect::NewRef { val: Value::nil(), ret: Ref(1) }, WitLedgerEffect::Resume { target: 0.into(), - val: Value::nil(), - ret: Value::nil(), + val: Ref(1), + ret: Ref(1), id_prev: None, }, - WitLedgerEffect::Resume { - target: 1.into(), - val: Value::nil(), - ret: Value::nil(), - id_prev: Some(0.into()), - }, ], ) - .with_entrypoint(2) - .build(); - - let result = ledger.apply_transaction(&tx); - - assert!(matches!(result, Err(VerificationError::InputNotFound))); - - let tx = TransactionBuilder::new() - .with_input( - input_id.clone(), - None, - vec![WitLedgerEffect::Burn { ret: Value::nil() }], - ) - .with_coord_script( - coord_hash, - vec![WitLedgerEffect::Resume { - target: 0.into(), - val: Value::nil(), - ret: Value::nil(), - id_prev: None, - }], - ) .with_entrypoint(1) .build(); diff --git a/starstream_mock_ledger/src/transaction_effects/witness.rs b/starstream_mock_ledger/src/transaction_effects/witness.rs index bcc726fa..880165e3 100644 --- a/starstream_mock_ledger/src/transaction_effects/witness.rs +++ b/starstream_mock_ledger/src/transaction_effects/witness.rs @@ -1,5 +1,5 @@ use crate::{ - Hash, Value, WasmModule, + Hash, Ref, Value, WasmModule, transaction_effects::{InterfaceId, ProcessId}, }; @@ -11,13 +11,13 @@ use crate::{ pub enum WitLedgerEffect { Resume { target: ProcessId, - val: Value, - ret: Value, + val: Ref, + ret: Ref, id_prev: Option, }, Yield { - val: Value, - ret: Option, + val: Ref, + ret: Option, id_prev: Option, }, ProgramHash { @@ -26,12 +26,12 @@ pub enum WitLedgerEffect { }, NewUtxo { program_hash: Hash, - val: Value, + val: Ref, id: ProcessId, }, NewCoord { program_hash: Hash, - val: Value, + val: Ref, id: ProcessId, }, // Scoped handlers for custom effects @@ -50,19 +50,28 @@ pub enum WitLedgerEffect { // UTXO-only Burn { - ret: Value, + ret: Ref, }, Activation { - val: Value, + val: Ref, caller: ProcessId, }, Init { - val: Value, + val: Ref, caller: ProcessId, }, + NewRef { + val: Value, + ret: Ref, + }, + Get { + reff: Ref, + ret: Value, + }, + // Tokens Bind { owner_id: ProcessId, From e6dc65884431b92fa57609e88a3696c17db36f18 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Fri, 2 Jan 2026 22:41:57 -0300 Subject: [PATCH 043/152] fix padding Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/src/circuit.rs | 7 +++++ starstream_ivc_proto/src/memory/dummy.rs | 4 +++ starstream_ivc_proto/src/memory/mod.rs | 2 ++ .../src/memory/nebula/tracer.rs | 29 +++++++++++++++---- 4 files changed, 37 insertions(+), 5 deletions(-) diff --git a/starstream_ivc_proto/src/circuit.rs b/starstream_ivc_proto/src/circuit.rs index 73a01e44..458cab65 100644 --- a/starstream_ivc_proto/src/circuit.rs +++ b/starstream_ivc_proto/src/circuit.rs @@ -1279,6 +1279,13 @@ impl> StepCircuitBuilder { ); } + let current_steps = self.ops.len(); + if let Some(missing) = mb.required_steps().checked_sub(current_steps) { + tracing::debug!("padding with {missing} Nop operations for scan"); + self.ops + .extend(std::iter::repeat_n(LedgerOperation::Nop {}, missing)); + } + mb } diff --git a/starstream_ivc_proto/src/memory/dummy.rs b/starstream_ivc_proto/src/memory/dummy.rs index a9b09949..cfd0d9fa 100644 --- a/starstream_ivc_proto/src/memory/dummy.rs +++ b/starstream_ivc_proto/src/memory/dummy.rs @@ -77,6 +77,10 @@ impl IVCMemory for DummyMemory { } } + fn required_steps(&self) -> usize { + 0 + } + fn constraints(self) -> Self::Allocator { DummyMemoryConstraints { cs: None, diff --git a/starstream_ivc_proto/src/memory/mod.rs b/starstream_ivc_proto/src/memory/mod.rs index 753110be..85d75a61 100644 --- a/starstream_ivc_proto/src/memory/mod.rs +++ b/starstream_ivc_proto/src/memory/mod.rs @@ -56,6 +56,8 @@ pub trait IVCMemory { fn conditional_read(&mut self, cond: bool, address: Address) -> Vec; fn conditional_write(&mut self, cond: bool, address: Address, value: Vec); + fn required_steps(&self) -> usize; + fn constraints(self) -> Self::Allocator; } diff --git a/starstream_ivc_proto/src/memory/nebula/tracer.rs b/starstream_ivc_proto/src/memory/nebula/tracer.rs index 58f27231..12b17c67 100644 --- a/starstream_ivc_proto/src/memory/nebula/tracer.rs +++ b/starstream_ivc_proto/src/memory/nebula/tracer.rs @@ -155,9 +155,32 @@ impl IVCMemory for NebulaMemory Self::Allocator { + fn required_steps(&self) -> usize { + self.is.len() / SCAN_BATCH_SIZE + } + + fn constraints(mut self) -> Self::Allocator { let mut ic_is_fs = ICPlain::zero(); + let padding_required = SCAN_BATCH_SIZE - (self.is.len() % SCAN_BATCH_SIZE); + + let mut max_address = self.is.keys().rev().next().unwrap().clone(); + + max_address.tag += 1; + + self.register_mem(max_address.tag, 1, "PADDING_SEGMENT"); + + for _ in 0..padding_required { + self.is.insert( + max_address.clone(), + MemOp { + values: vec![F::ZERO], + timestamp: 0, + }, + ); + max_address.addr += 1; + } + // compute FS such that: // // IS U WS = RS U FS @@ -186,10 +209,6 @@ impl IVCMemory for NebulaMemory Date: Fri, 2 Jan 2026 23:25:08 -0300 Subject: [PATCH 044/152] upgrade nightstream version Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- Cargo.lock | 54 ++++++++++++++++------ starstream_ivc_proto/Cargo.toml | 10 ++--- starstream_ivc_proto/src/circuit.rs | 4 +- starstream_ivc_proto/src/lib.rs | 24 +++++----- starstream_ivc_proto/src/neo.rs | 70 +++++++++++++++++++++-------- 5 files changed, 112 insertions(+), 50 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 554d6496..bbee4ce7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1868,7 +1868,7 @@ dependencies = [ [[package]] name = "neo-ajtai" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=99c2cdbe2cd8e91396edd128bfe202590aac6d3e#99c2cdbe2cd8e91396edd128bfe202590aac6d3e" +source = "git+https://github.com/nicarq/Nightstream.git?rev=0713b5dda6b1e4b924d59f1dd0e1fc51a6495667#0713b5dda6b1e4b924d59f1dd0e1fc51a6495667" dependencies = [ "neo-ccs", "neo-math", @@ -1888,7 +1888,7 @@ dependencies = [ [[package]] name = "neo-ccs" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=99c2cdbe2cd8e91396edd128bfe202590aac6d3e#99c2cdbe2cd8e91396edd128bfe202590aac6d3e" +source = "git+https://github.com/nicarq/Nightstream.git?rev=0713b5dda6b1e4b924d59f1dd0e1fc51a6495667#0713b5dda6b1e4b924d59f1dd0e1fc51a6495667" dependencies = [ "neo-math", "neo-params", @@ -1909,32 +1909,30 @@ dependencies = [ [[package]] name = "neo-fold" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=99c2cdbe2cd8e91396edd128bfe202590aac6d3e#99c2cdbe2cd8e91396edd128bfe202590aac6d3e" +source = "git+https://github.com/nicarq/Nightstream.git?rev=0713b5dda6b1e4b924d59f1dd0e1fc51a6495667#0713b5dda6b1e4b924d59f1dd0e1fc51a6495667" dependencies = [ - "bincode", - "blake3", "neo-ajtai", "neo-ccs", "neo-math", + "neo-memory", "neo-params", "neo-reductions", "neo-transcript", - "p3-challenger", + "neo-vm-trace", "p3-field", "p3-goldilocks", "p3-matrix", - "p3-poseidon2", - "p3-symmetric", - "rand 0.9.2", - "rand_chacha 0.9.0", "rayon", + "serde", + "serde_json", "thiserror 2.0.17", + "tracing", ] [[package]] name = "neo-math" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=99c2cdbe2cd8e91396edd128bfe202590aac6d3e#99c2cdbe2cd8e91396edd128bfe202590aac6d3e" +source = "git+https://github.com/nicarq/Nightstream.git?rev=0713b5dda6b1e4b924d59f1dd0e1fc51a6495667#0713b5dda6b1e4b924d59f1dd0e1fc51a6495667" dependencies = [ "p3-field", "p3-goldilocks", @@ -1946,10 +1944,29 @@ dependencies = [ "thiserror 2.0.17", ] +[[package]] +name = "neo-memory" +version = "0.1.0" +source = "git+https://github.com/nicarq/Nightstream.git?rev=0713b5dda6b1e4b924d59f1dd0e1fc51a6495667#0713b5dda6b1e4b924d59f1dd0e1fc51a6495667" +dependencies = [ + "neo-ajtai", + "neo-ccs", + "neo-math", + "neo-params", + "neo-reductions", + "neo-transcript", + "neo-vm-trace", + "p3-field", + "p3-goldilocks", + "p3-matrix", + "serde", + "thiserror 2.0.17", +] + [[package]] name = "neo-params" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=99c2cdbe2cd8e91396edd128bfe202590aac6d3e#99c2cdbe2cd8e91396edd128bfe202590aac6d3e" +source = "git+https://github.com/nicarq/Nightstream.git?rev=0713b5dda6b1e4b924d59f1dd0e1fc51a6495667#0713b5dda6b1e4b924d59f1dd0e1fc51a6495667" dependencies = [ "serde", "thiserror 2.0.17", @@ -1958,7 +1975,7 @@ dependencies = [ [[package]] name = "neo-reductions" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=99c2cdbe2cd8e91396edd128bfe202590aac6d3e#99c2cdbe2cd8e91396edd128bfe202590aac6d3e" +source = "git+https://github.com/nicarq/Nightstream.git?rev=0713b5dda6b1e4b924d59f1dd0e1fc51a6495667#0713b5dda6b1e4b924d59f1dd0e1fc51a6495667" dependencies = [ "bincode", "blake3", @@ -1982,7 +1999,7 @@ dependencies = [ [[package]] name = "neo-transcript" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=99c2cdbe2cd8e91396edd128bfe202590aac6d3e#99c2cdbe2cd8e91396edd128bfe202590aac6d3e" +source = "git+https://github.com/nicarq/Nightstream.git?rev=0713b5dda6b1e4b924d59f1dd0e1fc51a6495667#0713b5dda6b1e4b924d59f1dd0e1fc51a6495667" dependencies = [ "neo-ccs", "neo-math", @@ -1995,6 +2012,15 @@ dependencies = [ "subtle", ] +[[package]] +name = "neo-vm-trace" +version = "0.1.0" +source = "git+https://github.com/nicarq/Nightstream.git?rev=0713b5dda6b1e4b924d59f1dd0e1fc51a6495667#0713b5dda6b1e4b924d59f1dd0e1fc51a6495667" +dependencies = [ + "serde", + "thiserror 2.0.17", +] + [[package]] name = "nu-ansi-term" version = "0.50.3" diff --git a/starstream_ivc_proto/Cargo.toml b/starstream_ivc_proto/Cargo.toml index 93f51fe2..d92b5959 100644 --- a/starstream_ivc_proto/Cargo.toml +++ b/starstream_ivc_proto/Cargo.toml @@ -13,11 +13,11 @@ ark-poly-commit = "0.5.0" tracing = { version = "0.1", default-features = false, features = [ "attributes" ] } tracing-subscriber = { version = "0.3", features = ["env-filter"] } -neo-fold = { git = "https://github.com/nicarq/Nightstream.git", rev = "99c2cdbe2cd8e91396edd128bfe202590aac6d3e", features = ["fs-guard"] } -neo-math = { git = "https://github.com/nicarq/Nightstream.git", rev = "99c2cdbe2cd8e91396edd128bfe202590aac6d3e" } -neo-ccs = { git = "https://github.com/nicarq/Nightstream.git", rev = "99c2cdbe2cd8e91396edd128bfe202590aac6d3e" } -neo-ajtai = { git = "https://github.com/nicarq/Nightstream.git", rev = "99c2cdbe2cd8e91396edd128bfe202590aac6d3e" } -neo-params = { git = "https://github.com/nicarq/Nightstream.git", rev = "99c2cdbe2cd8e91396edd128bfe202590aac6d3e" } +neo-fold = { git = "https://github.com/nicarq/Nightstream.git", rev = "0713b5dda6b1e4b924d59f1dd0e1fc51a6495667" } +neo-math = { git = "https://github.com/nicarq/Nightstream.git", rev = "0713b5dda6b1e4b924d59f1dd0e1fc51a6495667" } +neo-ccs = { git = "https://github.com/nicarq/Nightstream.git", rev = "0713b5dda6b1e4b924d59f1dd0e1fc51a6495667" } +neo-ajtai = { git = "https://github.com/nicarq/Nightstream.git", rev = "0713b5dda6b1e4b924d59f1dd0e1fc51a6495667" } +neo-params = { git = "https://github.com/nicarq/Nightstream.git", rev = "0713b5dda6b1e4b924d59f1dd0e1fc51a6495667" } starstream_mock_ledger = { path = "../starstream_mock_ledger" } diff --git a/starstream_ivc_proto/src/circuit.rs b/starstream_ivc_proto/src/circuit.rs index 458cab65..a8210a5f 100644 --- a/starstream_ivc_proto/src/circuit.rs +++ b/starstream_ivc_proto/src/circuit.rs @@ -1227,10 +1227,10 @@ impl> StepCircuitBuilder { self.write_ops .push((curr_write.clone(), target_write.clone())); - trace_program_state_writes(&mut mb, dbg!(curr_pid), &curr_write, &curr_switches); + trace_program_state_writes(&mut mb, curr_pid, &curr_write, &curr_switches); trace_program_state_writes( &mut mb, - dbg!(target_pid.unwrap_or(0)), + target_pid.unwrap_or(0), &target_write, &target_switches, ); diff --git a/starstream_ivc_proto/src/lib.rs b/starstream_ivc_proto/src/lib.rs index e6c1e6b1..0a1a710a 100644 --- a/starstream_ivc_proto/src/lib.rs +++ b/starstream_ivc_proto/src/lib.rs @@ -11,6 +11,7 @@ mod poseidon2; mod test_utils; use std::collections::HashMap; +use std::time::Instant; use crate::circuit::InterRoundWires; use crate::memory::IVCMemory; @@ -121,11 +122,9 @@ pub fn prove(inst: InterleavingInstance) -> Result let circuit_builder = StepCircuitBuilder::>::new(inst, ops); - let num_iters = circuit_builder.ops.len(); - let n = shape_ccs.n.max(shape_ccs.m); - let mut f_circuit = StepCircuitNeo::new( + let (mut f_circuit, num_iters) = StepCircuitNeo::new( circuit_builder, shape_ccs.clone(), NebulaMemoryParams { @@ -145,18 +144,23 @@ pub fn prove(inst: InterleavingInstance) -> Result params.b = 3; let mut session = FoldingSession::new(FoldingMode::Optimized, params, l.clone()); + session.unsafe_allow_unlinked_steps(); for _i in 0..num_iters { + let now = Instant::now(); session.add_step(&mut f_circuit, &()).unwrap(); + tracing::info!("step added in {} ms", now.elapsed().as_millis()); } - // let run = session.fold_and_prove(&shape_ccs).unwrap(); + let now = Instant::now(); + let run = session.fold_and_prove(&shape_ccs).unwrap(); + tracing::info!("proof generated in {} ms", now.elapsed().as_millis()); - // let mcss_public = session.mcss_public(); - // let ok = session - // .verify(&shape_ccs, &mcss_public, &run) - // .expect("verify should run"); - // assert!(ok, "optimized verification should pass"); + let mcss_public = session.mcss_public(); + let ok = session + .verify(&shape_ccs, &mcss_public, &run) + .expect("verify should run"); + assert!(ok, "optimized verification should pass"); // TODO: extract the actual proof Ok(ProverOutput { proof: () }) @@ -185,7 +189,7 @@ fn make_interleaved_trace(inst: &InterleavingInstance) -> Vec, shape_ccs: CcsStructure, params: M::Params, - ) -> Self { + ) -> (Self, usize) { let irw = InterRoundWires::new( crate::F::from(circuit_builder.p_len() as u64), circuit_builder.instance.entrypoint.0 as u64, @@ -37,12 +39,17 @@ where let mb = circuit_builder.trace_memory_ops(params); - Self { - shape_ccs, - circuit_builder, - irw, - mem: mb.constraints(), - } + let num_iters = circuit_builder.ops.len(); + + ( + Self { + shape_ccs, + circuit_builder, + irw, + mem: mb.constraints(), + }, + num_iters, + ) } } @@ -94,7 +101,7 @@ where neo_ccs::check_ccs_rowwise_zero(&self.shape_ccs, &[], &step.witness).unwrap(); StepArtifacts { - ccs: step.ccs, + ccs: Arc::new(step.ccs), witness: step.witness, public_app_inputs: vec![], spec, @@ -108,6 +115,7 @@ pub(crate) struct NeoInstance { pub(crate) witness: Vec, } +#[tracing::instrument(skip(cs))] pub(crate) fn arkworks_to_neo(cs: ConstraintSystemRef) -> NeoInstance { cs.finalize(); @@ -145,7 +153,32 @@ pub(crate) fn arkworks_to_neo_ccs( let b_mat = ark_matrix_to_neo(cs, &matrices[1]); let c_mat = ark_matrix_to_neo(cs, &matrices[2]); - let ccs = neo_ccs::r1cs_to_ccs(a_mat, b_mat, c_mat); + // R1CS → CCS embedding with identity-first form: M_0 = I_n, M_1=A, M_2=B, M_3=C. + let f_base = SparsePoly::new( + 3, + vec![ + Term { + coeff: neo_math::F::ONE, + exps: vec![1, 1, 0], + }, // X1 * X2 + Term { + coeff: -neo_math::F::ONE, + exps: vec![0, 0, 1], + }, // -X3 + ], + ); + + let n = cs.num_constraints().max(cs.num_variables()); + + let matrices = vec![ + CcsMatrix::Identity { n }, + CcsMatrix::Csc(CscMat::from_triplets(a_mat, n, n)), + CcsMatrix::Csc(CscMat::from_triplets(b_mat, n, n)), + CcsMatrix::Csc(CscMat::from_triplets(c_mat, n, n)), + ]; + let f = f_base.insert_var_at_front(); + + let ccs = CcsStructure::new_sparse(matrices, f).expect("valid R1CS→CCS structure"); ccs.ensure_identity_first() .expect("ensure_identity_first should succeed"); @@ -156,23 +189,22 @@ pub(crate) fn arkworks_to_neo_ccs( fn ark_matrix_to_neo( cs: &ConstraintSystemRef, sparse_matrix: &[Vec<(FpGoldilocks, usize)>], -) -> neo_ccs::Mat { - // the final result should be a square matrix (but the sparse matrix may not be) - let n = cs.num_constraints().max(cs.num_variables()); - - dbg!(cs.num_constraints()); - dbg!(cs.num_variables()); +) -> Vec<(usize, usize, neo_math::F)> { + tracing::info!("num constraints {}", cs.num_constraints()); + tracing::info!("num variables {}", cs.num_variables()); + let mut triplets = vec![]; // TODO: would be nice to just be able to construct the sparse matrix - let mut dense = vec![neo_math::F::from_u64(0); n * n]; + // let mut dense = vec![neo_math::F::from_u64(0); n * n]; for (row_i, row) in sparse_matrix.iter().enumerate() { for (col_v, col_i) in row.iter() { - dense[n * row_i + col_i] = ark_field_to_p3_goldilocks(col_v); + triplets.push((row_i, *col_i, ark_field_to_p3_goldilocks(col_v))); + // dense[n * row_i + col_i] = ark_field_to_p3_goldilocks(col_v); } } - neo_ccs::Mat::from_row_major(n, n, dense) + triplets } pub fn ark_field_to_p3_goldilocks(col_v: &FpGoldilocks) -> p3_goldilocks::Goldilocks { From ccca00ea919c76eac8382cbbcbafc9f1dc3fff42 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Fri, 2 Jan 2026 23:38:39 -0300 Subject: [PATCH 045/152] use ref get instruction in the test too Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/src/circuit_test.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/starstream_ivc_proto/src/circuit_test.rs b/starstream_ivc_proto/src/circuit_test.rs index 285cc856..210f3c89 100644 --- a/starstream_ivc_proto/src/circuit_test.rs +++ b/starstream_ivc_proto/src/circuit_test.rs @@ -41,6 +41,10 @@ fn test_circuit_simple_resume() { val: ref_4, caller: p2, }, + WitLedgerEffect::Get { + reff: ref_4, + ret: val_4.clone(), + }, WitLedgerEffect::Activation { val: ref_0, caller: p2, @@ -59,6 +63,10 @@ fn test_circuit_simple_resume() { val: ref_1, caller: p2, }, + WitLedgerEffect::Get { + reff: ref_1, + ret: val_1.clone(), + }, WitLedgerEffect::Activation { val: ref_0, caller: p2, From b1cb2b3bb11bc817e4ef98fd3e6a1746084124f9 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Sat, 3 Jan 2026 15:27:34 -0300 Subject: [PATCH 046/152] unify opcode switch configuration into a single function Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/src/circuit.rs | 436 ++++++++++++++++++++-------- 1 file changed, 309 insertions(+), 127 deletions(-) diff --git a/starstream_ivc_proto/src/circuit.rs b/starstream_ivc_proto/src/circuit.rs index a8210a5f..59c2917d 100644 --- a/starstream_ivc_proto/src/circuit.rs +++ b/starstream_ivc_proto/src/circuit.rs @@ -17,6 +17,78 @@ use std::marker::PhantomData; use std::ops::{Mul, Not}; use tracing::debug_span; +struct OpcodeConfig { + mem_switches_curr: MemSwitchboard, + mem_switches_target: MemSwitchboard, + rom_switches: RomSwitchboard, + execution_switches: ExecutionSwitches, + pre_wire_values: PreWireValues, +} + +struct ExecutionSwitches { + resume: bool, + yield_op: bool, + burn: bool, + program_hash: bool, + new_utxo: bool, + new_coord: bool, + activation: bool, + init: bool, + bind: bool, + unbind: bool, + new_ref: bool, + get: bool, + nop: bool, +} + +struct PreWireValues { + target: F, + val: F, + ret: F, + program_hash: F, + new_process_id: F, + caller: F, + ret_is_some: bool, + id_prev_is_some: bool, + id_prev_value: F, +} + +impl Default for ExecutionSwitches { + fn default() -> Self { + Self { + resume: false, + yield_op: false, + burn: false, + program_hash: false, + new_utxo: false, + new_coord: false, + activation: false, + init: false, + bind: false, + unbind: false, + new_ref: false, + get: false, + nop: false, + } + } +} + +impl Default for PreWireValues { + fn default() -> Self { + Self { + target: F::ZERO, + val: F::ZERO, + ret: F::ZERO, + program_hash: F::ZERO, + new_process_id: F::ZERO, + caller: F::ZERO, + ret_is_some: false, + id_prev_is_some: false, + id_prev_value: F::ZERO, + } + } +} + #[derive(Clone, Debug, Default)] pub struct RomSwitchboard { pub read_is_utxo_curr: bool, @@ -33,26 +105,6 @@ pub struct RomSwitchboardWires { pub read_program_hash_target: Boolean, } -impl RomSwitchboardWires { - pub fn allocate( - cs: ConstraintSystemRef, - switches: &RomSwitchboard, - ) -> Result { - Ok(Self { - read_is_utxo_curr: Boolean::new_witness(cs.clone(), || Ok(switches.read_is_utxo_curr))?, - read_is_utxo_target: Boolean::new_witness(cs.clone(), || { - Ok(switches.read_is_utxo_target) - })?, - read_must_burn_curr: Boolean::new_witness(cs.clone(), || { - Ok(switches.read_must_burn_curr) - })?, - read_program_hash_target: Boolean::new_witness(cs.clone(), || { - Ok(switches.read_program_hash_target) - })?, - }) - } -} - #[derive(Clone, Debug, Default)] pub struct MemSwitchboard { pub expected_input: bool, @@ -77,24 +129,6 @@ pub struct MemSwitchboardWires { pub ownership: Boolean, } -impl MemSwitchboardWires { - pub fn allocate( - cs: ConstraintSystemRef, - switches: &MemSwitchboard, - ) -> Result { - Ok(Self { - expected_input: Boolean::new_witness(cs.clone(), || Ok(switches.expected_input))?, - activation: Boolean::new_witness(cs.clone(), || Ok(switches.activation))?, - init: Boolean::new_witness(cs.clone(), || Ok(switches.init))?, - counters: Boolean::new_witness(cs.clone(), || Ok(switches.counters))?, - initialized: Boolean::new_witness(cs.clone(), || Ok(switches.initialized))?, - finalized: Boolean::new_witness(cs.clone(), || Ok(switches.finalized))?, - did_burn: Boolean::new_witness(cs.clone(), || Ok(switches.did_burn))?, - ownership: Boolean::new_witness(cs.clone(), || Ok(switches.ownership))?, - }) - } -} - pub const ROM_PROCESS_TABLE: u64 = 1u64; pub const ROM_MUST_BURN: u64 = 2u64; pub const ROM_IS_UTXO: u64 = 3u64; @@ -327,7 +361,7 @@ impl Wires { resume_switch, yield_switch, check_utxo_output_switch, - nop_switch, + _nop_switch, burn_switch, program_hash_switch, new_utxo_switch, @@ -387,7 +421,6 @@ impl Wires { let target_write_wires = ProgramStateWires::from_write_values(cs.clone(), target_write_values)?; - dbg!(curr_address.value().unwrap()); program_state_write_wires( rm, &cs, @@ -395,7 +428,7 @@ impl Wires { curr_write_wires.clone(), &curr_mem_switches, )?; - dbg!(target_address.value().unwrap()); + program_state_write_wires( rm, &cs, @@ -877,6 +910,181 @@ impl InterRoundWires { } impl LedgerOperation { + // Generate complete opcode configuration + fn get_config(&self, irw: &InterRoundWires) -> OpcodeConfig { + let mut config = OpcodeConfig { + mem_switches_curr: MemSwitchboard::default(), + mem_switches_target: MemSwitchboard::default(), + rom_switches: RomSwitchboard::default(), + execution_switches: ExecutionSwitches::default(), + pre_wire_values: PreWireValues::default(), + }; + + // All ops increment counter of the current process, except Nop + config.mem_switches_curr.counters = !matches!(self, LedgerOperation::Nop {}); + + match self { + LedgerOperation::Nop {} => { + config.execution_switches.nop = true; + } + LedgerOperation::Resume { + target, + val, + ret, + id_prev, + } => { + config.execution_switches.resume = true; + + config.mem_switches_curr.activation = true; + config.mem_switches_curr.expected_input = true; + + config.mem_switches_target.activation = true; + config.mem_switches_target.expected_input = true; + config.mem_switches_target.finalized = true; + config.mem_switches_target.initialized = true; + + config.rom_switches.read_is_utxo_curr = true; + config.rom_switches.read_is_utxo_target = true; + + config.pre_wire_values.target = *target; + config.pre_wire_values.val = *val; + config.pre_wire_values.ret = *ret; + config.pre_wire_values.id_prev_is_some = id_prev.is_some(); + config.pre_wire_values.id_prev_value = id_prev.unwrap_or_default(); + } + LedgerOperation::Yield { val, ret, id_prev } => { + config.execution_switches.yield_op = true; + + config.mem_switches_curr.activation = true; + if ret.is_some() { + config.mem_switches_curr.expected_input = true; + } + config.mem_switches_curr.finalized = true; + + config.pre_wire_values.target = irw.id_prev_value; + config.pre_wire_values.val = *val; + config.pre_wire_values.ret = ret.unwrap_or_default(); + config.pre_wire_values.ret_is_some = ret.is_some(); + config.pre_wire_values.id_prev_is_some = id_prev.is_some(); + config.pre_wire_values.id_prev_value = id_prev.unwrap_or_default(); + } + LedgerOperation::Burn { ret } => { + config.execution_switches.burn = true; + + config.mem_switches_curr.activation = true; + config.mem_switches_curr.finalized = true; + config.mem_switches_curr.did_burn = true; + config.mem_switches_curr.expected_input = true; + + config.rom_switches.read_is_utxo_curr = true; + config.rom_switches.read_must_burn_curr = true; + + config.pre_wire_values.target = irw.id_prev_value; + config.pre_wire_values.ret = *ret; + config.pre_wire_values.id_prev_is_some = irw.id_prev_is_some; + config.pre_wire_values.id_prev_value = irw.id_prev_value; + } + LedgerOperation::ProgramHash { + target, + program_hash, + } => { + config.execution_switches.program_hash = true; + + config.pre_wire_values.target = *target; + config.pre_wire_values.program_hash = *program_hash; + } + LedgerOperation::NewUtxo { + program_hash, + val, + target, + } => { + config.execution_switches.new_utxo = true; + + config.mem_switches_target.initialized = true; + config.mem_switches_target.init = true; + config.mem_switches_target.counters = true; + + config.rom_switches.read_is_utxo_curr = true; + config.rom_switches.read_is_utxo_target = true; + config.rom_switches.read_program_hash_target = true; + + config.pre_wire_values.target = *target; + config.pre_wire_values.val = *val; + config.pre_wire_values.program_hash = *program_hash; + } + LedgerOperation::NewCoord { + program_hash, + val, + target, + } => { + config.execution_switches.new_coord = true; + + config.mem_switches_target.initialized = true; + config.mem_switches_target.init = true; + config.mem_switches_target.counters = true; + + config.rom_switches.read_is_utxo_curr = true; + config.rom_switches.read_is_utxo_target = true; + config.rom_switches.read_program_hash_target = true; + + config.pre_wire_values.target = *target; + config.pre_wire_values.val = *val; + config.pre_wire_values.program_hash = *program_hash; + } + LedgerOperation::Activation { val, caller } => { + config.execution_switches.activation = true; + + config.mem_switches_curr.activation = true; + + config.pre_wire_values.val = *val; + config.pre_wire_values.caller = *caller; + } + LedgerOperation::Init { val, caller } => { + config.execution_switches.init = true; + + config.mem_switches_curr.init = true; + + config.pre_wire_values.val = *val; + config.pre_wire_values.caller = *caller; + } + LedgerOperation::Bind { owner_id } => { + config.execution_switches.bind = true; + + config.mem_switches_target.initialized = true; + config.mem_switches_curr.ownership = true; + + config.rom_switches.read_is_utxo_curr = true; + config.rom_switches.read_is_utxo_target = true; + + config.pre_wire_values.target = *owner_id; + } + LedgerOperation::Unbind { token_id } => { + config.execution_switches.unbind = true; + + config.mem_switches_target.ownership = true; + + config.rom_switches.read_is_utxo_curr = true; + config.rom_switches.read_is_utxo_target = true; + + config.pre_wire_values.target = *token_id; + } + LedgerOperation::NewRef { val, ret } => { + config.execution_switches.new_ref = true; + + config.pre_wire_values.val = *val; + config.pre_wire_values.ret = *ret; + } + LedgerOperation::Get { reff, ret } => { + config.execution_switches.get = true; + + config.pre_wire_values.val = *reff; + config.pre_wire_values.ret = *ret; + } + } + + config + } + // state transitions for current and target (next) programs // in general, we only change the state of a most two processes in a single // step. @@ -1167,12 +1375,18 @@ impl> StepCircuitBuilder { // note however that we don't enforce/check anything, that's done in the // circuit constraints + // We need a dummy IRW for the trace phase since we don't have the actual IRW yet + let dummy_irw = InterRoundWires::new( + F::from(self.p_len() as u64), + self.instance.entrypoint.0 as u64, + ); + for instr in &self.ops { - let (curr_switches, target_switches) = opcode_to_mem_switches(instr); + let (curr_switches, target_switches) = opcode_to_mem_switches(instr, &dummy_irw); self.mem_switches .push((curr_switches.clone(), target_switches.clone())); - let rom_switches = opcode_to_rom_switches(instr); + let rom_switches = opcode_to_rom_switches(instr, &dummy_irw); self.rom_switches.push(rom_switches.clone()); let target_addr = match instr { @@ -1832,7 +2046,7 @@ impl> StepCircuitBuilder { } #[tracing::instrument(target = "gr1cs", skip_all)] - fn visit_get(&self, mut wires: Wires) -> Result { + fn visit_get(&self, wires: Wires) -> Result { let switch = &wires.get_switch; // TODO: prove that reff is < ref_arena_stack_ptr ? @@ -1856,94 +2070,24 @@ impl> StepCircuitBuilder { } } -pub fn opcode_to_mem_switches(instr: &LedgerOperation) -> (MemSwitchboard, MemSwitchboard) { - // TODO: we could actually have more granularity with 4 of theses, for reads - // and writes - // - // it may actually better for correctnes? - let mut curr_s = MemSwitchboard::default(); - let mut target_s = MemSwitchboard::default(); - - // All ops increment counter of the current process, except Nop - curr_s.counters = !matches!(instr, LedgerOperation::Nop {}); - - match instr { - LedgerOperation::Resume { .. } => { - curr_s.activation = true; - curr_s.expected_input = true; - - target_s.activation = true; - target_s.expected_input = true; - target_s.finalized = true; - target_s.initialized = true; - } - LedgerOperation::Yield { ret, .. } => { - curr_s.activation = true; - if ret.is_some() { - curr_s.expected_input = true; - } - curr_s.finalized = true; - } - LedgerOperation::Burn { .. } => { - curr_s.activation = true; - curr_s.finalized = true; - curr_s.did_burn = true; - curr_s.expected_input = true; - } - LedgerOperation::NewUtxo { .. } | LedgerOperation::NewCoord { .. } => { - // New* ops initialize the target process - target_s.initialized = true; - target_s.init = true; - target_s.counters = true; // sets counter to 0 - } - LedgerOperation::Activation { .. } => { - curr_s.activation = true; - } - LedgerOperation::Init { .. } => { - curr_s.init = true; - } - LedgerOperation::Bind { .. } => { - target_s.initialized = true; - curr_s.ownership = true; - } - LedgerOperation::Unbind { .. } => { - target_s.ownership = true; - } - _ => {} - } - (curr_s, target_s) +pub fn opcode_to_mem_switches( + instr: &LedgerOperation, + irw: &InterRoundWires, +) -> (MemSwitchboard, MemSwitchboard) { + let config = instr.get_config(irw); + (config.mem_switches_curr, config.mem_switches_target) } -pub fn opcode_to_rom_switches(instr: &LedgerOperation) -> RomSwitchboard { - let mut rom_s = RomSwitchboard::default(); - match instr { - LedgerOperation::Resume { .. } => { - rom_s.read_is_utxo_curr = true; - rom_s.read_is_utxo_target = true; - } - LedgerOperation::Burn { .. } => { - rom_s.read_is_utxo_curr = true; - rom_s.read_must_burn_curr = true; - } - LedgerOperation::NewUtxo { .. } | LedgerOperation::NewCoord { .. } => { - rom_s.read_is_utxo_curr = true; - rom_s.read_is_utxo_target = true; - rom_s.read_program_hash_target = true; - } - LedgerOperation::Bind { .. } => { - rom_s.read_is_utxo_curr = true; - rom_s.read_is_utxo_target = true; - } - _ => {} - } - rom_s +pub fn opcode_to_rom_switches(instr: &LedgerOperation, irw: &InterRoundWires) -> RomSwitchboard { + let config = instr.get_config(irw); + config.rom_switches } -#[tracing::instrument(target = "gr1cs", skip(cs, wires_in, wires_out))] +#[tracing::instrument(target = "gr1cs", skip_all)] fn ivcify_wires( - cs: &ConstraintSystemRef, - wires_in: &Wires, - wires_out: &Wires, + _cs: &ConstraintSystemRef, + _wires_in: &Wires, + _wires_out: &Wires, ) -> Result<(), SynthesisError> { // let (current_program_in, current_program_out) = { // let f_in = || wires_in.id_curr.value(); @@ -2028,6 +2172,44 @@ impl PreWires { } } +impl MemSwitchboardWires { + pub fn allocate( + cs: ConstraintSystemRef, + switches: &MemSwitchboard, + ) -> Result { + Ok(Self { + expected_input: Boolean::new_witness(cs.clone(), || Ok(switches.expected_input))?, + activation: Boolean::new_witness(cs.clone(), || Ok(switches.activation))?, + init: Boolean::new_witness(cs.clone(), || Ok(switches.init))?, + counters: Boolean::new_witness(cs.clone(), || Ok(switches.counters))?, + initialized: Boolean::new_witness(cs.clone(), || Ok(switches.initialized))?, + finalized: Boolean::new_witness(cs.clone(), || Ok(switches.finalized))?, + did_burn: Boolean::new_witness(cs.clone(), || Ok(switches.did_burn))?, + ownership: Boolean::new_witness(cs.clone(), || Ok(switches.ownership))?, + }) + } +} + +impl RomSwitchboardWires { + pub fn allocate( + cs: ConstraintSystemRef, + switches: &RomSwitchboard, + ) -> Result { + Ok(Self { + read_is_utxo_curr: Boolean::new_witness(cs.clone(), || Ok(switches.read_is_utxo_curr))?, + read_is_utxo_target: Boolean::new_witness(cs.clone(), || { + Ok(switches.read_is_utxo_target) + })?, + read_must_burn_curr: Boolean::new_witness(cs.clone(), || { + Ok(switches.read_must_burn_curr) + })?, + read_program_hash_target: Boolean::new_witness(cs.clone(), || { + Ok(switches.read_program_hash_target) + })?, + }) + } +} + impl ProgramState { pub fn dummy() -> Self { Self { From b4d690a595b24728186054f3a1d9d9c2d08d676e Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Sat, 3 Jan 2026 15:50:59 -0300 Subject: [PATCH 047/152] reduce duplicated code with a macro Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/src/circuit.rs | 506 ++++++++++++---------------- 1 file changed, 215 insertions(+), 291 deletions(-) diff --git a/starstream_ivc_proto/src/circuit.rs b/starstream_ivc_proto/src/circuit.rs index 59c2917d..f2d84898 100644 --- a/starstream_ivc_proto/src/circuit.rs +++ b/starstream_ivc_proto/src/circuit.rs @@ -17,6 +17,72 @@ use std::marker::PhantomData; use std::ops::{Mul, Not}; use tracing::debug_span; +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum MemoryTag { + // ROM tags + ProcessTable = 1, + MustBurn = 2, + IsUtxo = 3, + + // RAM tags + ExpectedInput = 4, + Activation = 5, + Counters = 6, + Initialized = 7, + Finalized = 8, + DidBurn = 9, + Ownership = 10, + Init = 11, + RefArena = 12, + HandlerStack = 13, +} + +impl From for u64 { + fn from(tag: MemoryTag) -> u64 { + tag as u64 + } +} + +impl From for F { + fn from(tag: MemoryTag) -> F { + F::from(tag as u64) + } +} + +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum ProgramStateTag { + ExpectedInput, + Activation, + Init, + Counters, + Initialized, + Finalized, + DidBurn, + Ownership, +} + +impl From for MemoryTag { + fn from(tag: ProgramStateTag) -> MemoryTag { + match tag { + ProgramStateTag::ExpectedInput => MemoryTag::ExpectedInput, + ProgramStateTag::Activation => MemoryTag::Activation, + ProgramStateTag::Init => MemoryTag::Init, + ProgramStateTag::Counters => MemoryTag::Counters, + ProgramStateTag::Initialized => MemoryTag::Initialized, + ProgramStateTag::Finalized => MemoryTag::Finalized, + ProgramStateTag::DidBurn => MemoryTag::DidBurn, + ProgramStateTag::Ownership => MemoryTag::Ownership, + } + } +} + +impl From for u64 { + fn from(tag: ProgramStateTag) -> u64 { + let memory_tag: MemoryTag = tag.into(); + memory_tag.into() + } +} + struct OpcodeConfig { mem_switches_curr: MemSwitchboard, mem_switches_target: MemSwitchboard, @@ -129,26 +195,6 @@ pub struct MemSwitchboardWires { pub ownership: Boolean, } -pub const ROM_PROCESS_TABLE: u64 = 1u64; -pub const ROM_MUST_BURN: u64 = 2u64; -pub const ROM_IS_UTXO: u64 = 3u64; - -pub const RAM_EXPECTED_INPUT: u64 = 4u64; -pub const RAM_ACTIVATION: u64 = 5u64; -pub const RAM_COUNTERS: u64 = 6u64; -pub const RAM_INITIALIZED: u64 = 7u64; -pub const RAM_FINALIZED: u64 = 8u64; -pub const RAM_DID_BURN: u64 = 9u64; -pub const RAM_OWNERSHIP: u64 = 10u64; -// TODO: this could technically be a ROM, or maybe some sort of write once -// memory -pub const RAM_INIT: u64 = 11u64; -pub const RAM_REF_ARENA: u64 = 12u64; - -// TODO: this is not implemented yet, since it's the only one with a dynamic -// memory size, I'll implement this at last -pub const RAM_HANDLER_STACK: u64 = 13u64; - pub struct StepCircuitBuilder { pub instance: InterleavingInstance, pub last_yield: Vec, @@ -230,7 +276,7 @@ pub struct ProgramStateWires { initialized: Boolean, finalized: Boolean, did_burn: Boolean, - owned_by: FpVar, // an index into the process table + ownership: FpVar, // an index into the process table } // helper so that we always allocate witnesses in the same order @@ -280,7 +326,7 @@ pub struct ProgramState { initialized: bool, finalized: bool, did_burn: bool, - owned_by: F, // an index into the process table + ownership: F, // an index into the process table } /// IVC wires (state between steps) @@ -310,11 +356,106 @@ impl ProgramStateWires { initialized: Boolean::new_witness(cs.clone(), || Ok(write_values.initialized))?, finalized: Boolean::new_witness(cs.clone(), || Ok(write_values.finalized))?, did_burn: Boolean::new_witness(cs.clone(), || Ok(write_values.did_burn))?, - owned_by: FpVar::new_witness(cs.clone(), || Ok(write_values.owned_by))?, + ownership: FpVar::new_witness(cs.clone(), || Ok(write_values.ownership))?, }) } } +macro_rules! define_program_state_operations { + ($(($field:ident, $tag:ident, $field_type:ident)),* $(,)?) => { + // Out-of-circuit version + fn trace_program_state_writes>( + mem: &mut M, + pid: u64, + state: &ProgramState, + switches: &MemSwitchboard, + ) { + $( + mem.conditional_write( + switches.$field, + Address { + addr: pid, + tag: ProgramStateTag::$tag.into(), + }, + [define_program_state_operations!(@convert_to_f state.$field, $field_type)].to_vec(), + ); + )* + } + + // In-circuit version + fn program_state_write_wires>( + rm: &mut M, + cs: &ConstraintSystemRef, + address: FpVar, + state: ProgramStateWires, + switches: &MemSwitchboardWires, + ) -> Result<(), SynthesisError> { + $( + rm.conditional_write( + &switches.$field, + &Address { + addr: address.clone(), + tag: FpVar::new_constant(cs.clone(), F::from(MemoryTag::from(ProgramStateTag::$tag)))?, + }, + &[state.$field.clone().into()], + )?; + )* + Ok(()) + } + + // Out-of-circuit read version + fn trace_program_state_reads>( + mem: &mut M, + pid: u64, + switches: &MemSwitchboard, + ) -> ProgramState { + ProgramState { + $( + $field: define_program_state_operations!(@convert_from_f + mem.conditional_read( + switches.$field, + Address { + addr: pid, + tag: ProgramStateTag::$tag.into(), + }, + )[0], $field_type), + )* + } + } + + // Just a helper for totality checking + // + // this will generate a compiler error if the macro is not called with all variants + #[allow(dead_code)] + fn _check_program_state_totality(tag: ProgramStateTag) { + match tag { + $( + ProgramStateTag::$tag => {}, + )* + } + } + }; + + // Helper macro for converting to F + (@convert_to_f $value:expr, field) => { $value }; + (@convert_to_f $value:expr, bool) => { F::from($value) }; + + // Helper macro for converting from F + (@convert_from_f $value:expr, field) => { $value }; + (@convert_from_f $value:expr, bool) => { $value == F::ONE }; +} + +define_program_state_operations!( + (expected_input, ExpectedInput, field), + (activation, Activation, field), + (init, Init, field), + (counters, Counters, field), + (initialized, Initialized, bool), + (finalized, Finalized, bool), + (did_burn, DidBurn, bool), + (ownership, Ownership, field), +); + impl Wires { pub fn from_irw>( vals: &PreWires, @@ -443,7 +584,7 @@ impl Wires { &rom_switches.read_is_utxo_curr, &Address { addr: id_curr.clone(), - tag: FpVar::new_constant(cs.clone(), F::from(ROM_IS_UTXO))?, + tag: FpVar::new_constant(cs.clone(), F::from(MemoryTag::IsUtxo))?, }, )?[0] .clone(); @@ -452,7 +593,7 @@ impl Wires { &rom_switches.read_is_utxo_target, &Address { addr: target_address.clone(), - tag: FpVar::new_constant(cs.clone(), F::from(ROM_IS_UTXO))?, + tag: FpVar::new_constant(cs.clone(), F::from(MemoryTag::IsUtxo))?, }, )?[0] .clone(); @@ -461,7 +602,7 @@ impl Wires { &rom_switches.read_must_burn_curr, &Address { addr: id_curr.clone(), - tag: FpVar::new_constant(cs.clone(), F::from(ROM_MUST_BURN))?, + tag: FpVar::new_constant(cs.clone(), F::from(MemoryTag::MustBurn))?, }, )?[0] .clone(); @@ -470,7 +611,7 @@ impl Wires { &rom_switches.read_program_hash_target, &Address { addr: target_address.clone(), - tag: FpVar::new_constant(cs.clone(), F::from(ROM_PROCESS_TABLE))?, + tag: FpVar::new_constant(cs.clone(), F::from(MemoryTag::ProcessTable))?, }, )?[0] .clone(); @@ -478,7 +619,7 @@ impl Wires { let ref_arena_read = rm.conditional_read( &(get_switch | new_ref_switch), &Address { - tag: FpVar::new_constant(cs.clone(), F::from(RAM_REF_ARENA))?, + tag: FpVar::new_constant(cs.clone(), F::from(MemoryTag::RefArena))?, addr: get_switch.select(&val, &ret)?, }, )?[0] @@ -550,7 +691,7 @@ fn program_state_read_wires>( &switches.expected_input, &Address { addr: address.clone(), - tag: FpVar::new_constant(cs.clone(), F::from(RAM_EXPECTED_INPUT))?, + tag: FpVar::new_constant(cs.clone(), F::from(MemoryTag::ExpectedInput))?, }, )? .into_iter() @@ -561,7 +702,7 @@ fn program_state_read_wires>( &switches.activation, &Address { addr: address.clone(), - tag: FpVar::new_constant(cs.clone(), F::from(RAM_ACTIVATION))?, + tag: FpVar::new_constant(cs.clone(), F::from(MemoryTag::Activation))?, }, )? .into_iter() @@ -572,7 +713,7 @@ fn program_state_read_wires>( &switches.init, &Address { addr: address.clone(), - tag: FpVar::new_constant(cs.clone(), F::from(RAM_INIT))?, + tag: FpVar::new_constant(cs.clone(), F::from(MemoryTag::Init))?, }, )? .into_iter() @@ -583,7 +724,7 @@ fn program_state_read_wires>( &switches.counters, &Address { addr: address.clone(), - tag: FpVar::new_constant(cs.clone(), F::from(RAM_COUNTERS))?, + tag: FpVar::new_constant(cs.clone(), F::from(MemoryTag::Counters))?, }, )? .into_iter() @@ -594,7 +735,7 @@ fn program_state_read_wires>( &switches.initialized, &Address { addr: address.clone(), - tag: FpVar::new_constant(cs.clone(), F::from(RAM_INITIALIZED))?, + tag: FpVar::new_constant(cs.clone(), F::from(MemoryTag::Initialized))?, }, )? .into_iter() @@ -606,7 +747,7 @@ fn program_state_read_wires>( &switches.finalized, &Address { addr: address.clone(), - tag: FpVar::new_constant(cs.clone(), F::from(RAM_FINALIZED))?, + tag: FpVar::new_constant(cs.clone(), F::from(MemoryTag::Finalized))?, }, )? .into_iter() @@ -619,19 +760,19 @@ fn program_state_read_wires>( &switches.did_burn, &Address { addr: address.clone(), - tag: FpVar::new_constant(cs.clone(), F::from(RAM_DID_BURN))?, + tag: FpVar::new_constant(cs.clone(), F::from(MemoryTag::DidBurn))?, }, )? .into_iter() .next() .unwrap() .is_one()?, - owned_by: rm + ownership: rm .conditional_read( &switches.ownership, &Address { addr: address.clone(), - tag: FpVar::new_constant(cs.clone(), F::from(RAM_OWNERSHIP))?, + tag: FpVar::new_constant(cs.clone(), F::from(MemoryTag::Ownership))?, }, )? .into_iter() @@ -640,223 +781,6 @@ fn program_state_read_wires>( }) } -// this is out-of-circuit logic (witness generation) -fn trace_program_state_reads>( - mem: &mut M, - pid: u64, - switches: &MemSwitchboard, -) -> ProgramState { - ProgramState { - expected_input: mem.conditional_read( - switches.expected_input, - Address { - addr: pid, - tag: RAM_EXPECTED_INPUT, - }, - )[0], - activation: mem.conditional_read( - switches.activation, - Address { - addr: pid, - tag: RAM_ACTIVATION, - }, - )[0], - init: mem.conditional_read( - switches.init, - Address { - addr: pid, - tag: RAM_INIT, - }, - )[0], - counters: mem.conditional_read( - switches.counters, - Address { - addr: pid, - tag: RAM_COUNTERS, - }, - )[0], - initialized: mem.conditional_read( - switches.initialized, - Address { - addr: pid, - tag: RAM_INITIALIZED, - }, - )[0] == F::ONE, - finalized: mem.conditional_read( - switches.finalized, - Address { - addr: pid, - tag: RAM_FINALIZED, - }, - )[0] == F::ONE, - did_burn: mem.conditional_read( - switches.did_burn, - Address { - addr: pid, - tag: RAM_DID_BURN, - }, - )[0] == F::ONE, - owned_by: mem.conditional_read( - switches.ownership, - Address { - addr: pid, - tag: RAM_OWNERSHIP, - }, - )[0], - } -} - -// this is out-of-circuit logic (witness generation) -fn trace_program_state_writes>( - mem: &mut M, - pid: u64, - state: &ProgramState, - switches: &MemSwitchboard, -) { - mem.conditional_write( - switches.expected_input, - Address { - addr: pid, - tag: RAM_EXPECTED_INPUT, - }, - [state.expected_input].to_vec(), - ); - mem.conditional_write( - switches.activation, - Address { - addr: pid, - tag: RAM_ACTIVATION, - }, - [state.activation].to_vec(), - ); - mem.conditional_write( - switches.init, - Address { - addr: pid, - tag: RAM_INIT, - }, - [state.init].to_vec(), - ); - mem.conditional_write( - switches.counters, - Address { - addr: pid, - tag: RAM_COUNTERS, - }, - [state.counters].to_vec(), - ); - mem.conditional_write( - switches.initialized, - Address { - addr: pid, - tag: RAM_INITIALIZED, - }, - [F::from(state.initialized)].to_vec(), - ); - mem.conditional_write( - switches.finalized, - Address { - addr: pid, - tag: RAM_FINALIZED, - }, - [F::from(state.finalized)].to_vec(), - ); - mem.conditional_write( - switches.did_burn, - Address { - addr: pid, - tag: RAM_DID_BURN, - }, - [F::from(state.did_burn)].to_vec(), - ); - mem.conditional_write( - switches.ownership, - Address { - addr: pid, - tag: RAM_OWNERSHIP, - }, - [state.owned_by].to_vec(), - ); -} - -fn program_state_write_wires>( - rm: &mut M, - cs: &ConstraintSystemRef, - address: FpVar, - state: ProgramStateWires, - switches: &MemSwitchboardWires, -) -> Result<(), SynthesisError> { - rm.conditional_write( - &switches.expected_input, - &Address { - addr: address.clone(), - tag: FpVar::new_constant(cs.clone(), F::from(RAM_EXPECTED_INPUT))?, - }, - &[state.expected_input.clone()], - )?; - - rm.conditional_write( - &switches.activation, - &Address { - addr: address.clone(), - tag: FpVar::new_constant(cs.clone(), F::from(RAM_ACTIVATION))?, - }, - &[state.activation.clone()], - )?; - rm.conditional_write( - &switches.init, - &Address { - addr: address.clone(), - tag: FpVar::new_constant(cs.clone(), F::from(RAM_INIT))?, - }, - &[state.init.clone()], - )?; - rm.conditional_write( - &switches.counters, - &Address { - addr: address.clone(), - tag: FpVar::new_constant(cs.clone(), F::from(RAM_COUNTERS))?, - }, - &[state.counters.clone()], - )?; - rm.conditional_write( - &switches.initialized, - &Address { - addr: address.clone(), - tag: FpVar::new_constant(cs.clone(), F::from(RAM_INITIALIZED))?, - }, - &[state.initialized.clone().into()], - )?; - rm.conditional_write( - &switches.finalized, - &Address { - addr: address.clone(), - tag: FpVar::new_constant(cs.clone(), F::from(RAM_FINALIZED))?, - }, - &[state.finalized.clone().into()], - )?; - - rm.conditional_write( - &switches.did_burn, - &Address { - addr: address.clone(), - tag: FpVar::new_constant(cs.clone(), F::from(RAM_DID_BURN))?, - }, - &[state.did_burn.clone().into()], - )?; - - rm.conditional_write( - &switches.ownership, - &Address { - addr: address.clone(), - tag: FpVar::new_constant(cs.clone(), F::from(RAM_OWNERSHIP))?, - }, - &[state.owned_by.clone()], - )?; - - Ok(()) -} - impl InterRoundWires { pub fn new(p_len: F, entrypoint: u64) -> Self { InterRoundWires { @@ -1233,24 +1157,24 @@ impl> StepCircuitBuilder { let mut mb = { let mut mb = M::new(params); - mb.register_mem(ROM_PROCESS_TABLE, 1, "ROM_PROCESS_TABLE"); - mb.register_mem(ROM_MUST_BURN, 1, "ROM_MUST_BURN"); - mb.register_mem(ROM_IS_UTXO, 1, "ROM_IS_UTXO"); - mb.register_mem(RAM_EXPECTED_INPUT, 1, "RAM_EXPECTED_INPUT"); - mb.register_mem(RAM_ACTIVATION, 1, "RAM_ACTIVATION"); - mb.register_mem(RAM_INIT, 1, "RAM_INIT"); - mb.register_mem(RAM_COUNTERS, 1, "RAM_COUNTERS"); - mb.register_mem(RAM_INITIALIZED, 1, "RAM_INITIALIZED"); - mb.register_mem(RAM_FINALIZED, 1, "RAM_FINALIZED"); - mb.register_mem(RAM_DID_BURN, 1, "RAM_DID_BURN"); - mb.register_mem(RAM_REF_ARENA, 1, "RAM_REF_ARENA"); - mb.register_mem(RAM_OWNERSHIP, 1, "RAM_OWNERSHIP"); + mb.register_mem(MemoryTag::ProcessTable.into(), 1, "ROM_PROCESS_TABLE"); + mb.register_mem(MemoryTag::MustBurn.into(), 1, "ROM_MUST_BURN"); + mb.register_mem(MemoryTag::IsUtxo.into(), 1, "ROM_IS_UTXO"); + mb.register_mem(MemoryTag::ExpectedInput.into(), 1, "RAM_EXPECTED_INPUT"); + mb.register_mem(MemoryTag::Activation.into(), 1, "RAM_ACTIVATION"); + mb.register_mem(MemoryTag::Init.into(), 1, "RAM_INIT"); + mb.register_mem(MemoryTag::Counters.into(), 1, "RAM_COUNTERS"); + mb.register_mem(MemoryTag::Initialized.into(), 1, "RAM_INITIALIZED"); + mb.register_mem(MemoryTag::Finalized.into(), 1, "RAM_FINALIZED"); + mb.register_mem(MemoryTag::DidBurn.into(), 1, "RAM_DID_BURN"); + mb.register_mem(MemoryTag::RefArena.into(), 1, "RAM_REF_ARENA"); + mb.register_mem(MemoryTag::Ownership.into(), 1, "RAM_OWNERSHIP"); for (pid, mod_hash) in self.instance.process_table.iter().enumerate() { mb.init( Address { addr: pid as u64, - tag: ROM_PROCESS_TABLE, + tag: MemoryTag::ProcessTable.into(), }, // TODO: use a proper conversion from hash to val, this is just a placeholder vec![F::from(mod_hash.0[0] as u64)], @@ -1259,7 +1183,7 @@ impl> StepCircuitBuilder { mb.init( Address { addr: pid as u64, - tag: RAM_INITIALIZED, + tag: MemoryTag::Initialized.into(), }, vec![F::from( if pid < self.instance.n_inputs || pid == self.instance.entrypoint.0 { @@ -1273,7 +1197,7 @@ impl> StepCircuitBuilder { mb.init( Address { addr: pid as u64, - tag: RAM_COUNTERS, + tag: MemoryTag::Counters.into(), }, vec![F::from(0u64)], ); @@ -1281,7 +1205,7 @@ impl> StepCircuitBuilder { mb.init( Address { addr: pid as u64, - tag: RAM_FINALIZED, + tag: MemoryTag::Finalized.into(), }, vec![F::from(0u64)], // false ); @@ -1289,7 +1213,7 @@ impl> StepCircuitBuilder { mb.init( Address { addr: pid as u64, - tag: RAM_DID_BURN, + tag: MemoryTag::DidBurn.into(), }, vec![F::from(0u64)], // false ); @@ -1297,7 +1221,7 @@ impl> StepCircuitBuilder { mb.init( Address { addr: pid as u64, - tag: RAM_EXPECTED_INPUT, + tag: MemoryTag::ExpectedInput.into(), }, vec![if pid >= self.instance.n_inputs { F::from(0u64) @@ -1309,7 +1233,7 @@ impl> StepCircuitBuilder { mb.init( Address { addr: pid as u64, - tag: RAM_ACTIVATION, + tag: MemoryTag::Activation.into(), }, vec![F::from(0u64)], // None ); @@ -1317,7 +1241,7 @@ impl> StepCircuitBuilder { mb.init( Address { addr: pid as u64, - tag: RAM_INIT, + tag: MemoryTag::Init.into(), }, vec![F::from(0u64)], // None ); @@ -1327,7 +1251,7 @@ impl> StepCircuitBuilder { mb.init( Address { addr: pid as u64, - tag: ROM_MUST_BURN, + tag: MemoryTag::MustBurn.into(), }, vec![F::from(if *must_burn { 1u64 } else { 0 })], ); @@ -1337,7 +1261,7 @@ impl> StepCircuitBuilder { mb.init( Address { addr: pid as u64, - tag: ROM_IS_UTXO, + tag: MemoryTag::IsUtxo.into(), }, vec![F::from(if *is_utxo { 1u64 } else { 0 })], ); @@ -1347,7 +1271,7 @@ impl> StepCircuitBuilder { mb.init( Address { addr: pid as u64, - tag: RAM_OWNERSHIP, + tag: MemoryTag::Ownership.into(), }, vec![F::from( owner @@ -1410,28 +1334,28 @@ impl> StepCircuitBuilder { rom_switches.read_is_utxo_curr, Address { addr: curr_pid, - tag: ROM_IS_UTXO, + tag: MemoryTag::IsUtxo.into(), }, ); mb.conditional_read( rom_switches.read_is_utxo_target, Address { addr: target_pid.unwrap_or(0), - tag: ROM_IS_UTXO, + tag: MemoryTag::IsUtxo.into(), }, ); mb.conditional_read( rom_switches.read_must_burn_curr, Address { addr: curr_pid, - tag: ROM_MUST_BURN, + tag: MemoryTag::MustBurn.into(), }, ); mb.conditional_read( rom_switches.read_program_hash_target, Address { addr: target_pid.unwrap_or(0), - tag: ROM_PROCESS_TABLE, + tag: MemoryTag::ProcessTable.into(), }, ); @@ -1470,7 +1394,7 @@ impl> StepCircuitBuilder { // we never pop from this, actually mb.init( dbg!(Address { - tag: RAM_REF_ARENA, + tag: MemoryTag::RefArena.into(), addr: ret.into_bigint().0[0], }), vec![val.clone()], @@ -1485,7 +1409,7 @@ impl> StepCircuitBuilder { mb.conditional_read( ref_read_arena_address.is_some(), Address { - tag: RAM_REF_ARENA, + tag: MemoryTag::RefArena.into(), addr: ref_read_arena_address .map(|addr| addr.into_bigint().0[0]) .unwrap_or(0), @@ -1992,12 +1916,12 @@ impl> StepCircuitBuilder { wires .curr_read_wires - .owned_by + .ownership .conditional_enforce_equal(&wires.p_len, switch)?; // TODO: no need to have this assignment, probably - wires.curr_write_wires.owned_by = - switch.select(&wires.target, &wires.curr_read_wires.owned_by)?; + wires.curr_write_wires.ownership = + switch.select(&wires.target, &wires.curr_read_wires.ownership)?; Ok(wires) } @@ -2014,13 +1938,13 @@ impl> StepCircuitBuilder { // only the owner can unbind wires .target_read_wires - .owned_by + .ownership .conditional_enforce_equal(&wires.id_curr, switch)?; // p_len is a sentinel for None // TODO: no need to assign - wires.target_write_wires.owned_by = - switch.select(&wires.p_len, &wires.curr_read_wires.owned_by)?; + wires.target_write_wires.ownership = + switch.select(&wires.p_len, &wires.curr_read_wires.ownership)?; Ok(wires) } @@ -2220,7 +2144,7 @@ impl ProgramState { counters: F::ZERO, initialized: false, did_burn: false, - owned_by: F::ZERO, + ownership: F::ZERO, } } @@ -2231,6 +2155,6 @@ impl ProgramState { tracing::debug!("counters={}", self.counters); tracing::debug!("finalized={}", self.finalized); tracing::debug!("did_burn={}", self.did_burn); - tracing::debug!("owned_by={}", self.owned_by); + tracing::debug!("ownership={}", self.ownership); } } From d49c3db42a7a14cae3a80ae4e251427fed3d2c95 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Sat, 3 Jan 2026 16:24:29 -0300 Subject: [PATCH 048/152] refactor execution switches Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/src/circuit.rs | 110 ++++++++++++---------------- 1 file changed, 45 insertions(+), 65 deletions(-) diff --git a/starstream_ivc_proto/src/circuit.rs b/starstream_ivc_proto/src/circuit.rs index f2d84898..b790fca1 100644 --- a/starstream_ivc_proto/src/circuit.rs +++ b/starstream_ivc_proto/src/circuit.rs @@ -87,24 +87,25 @@ struct OpcodeConfig { mem_switches_curr: MemSwitchboard, mem_switches_target: MemSwitchboard, rom_switches: RomSwitchboard, - execution_switches: ExecutionSwitches, + execution_switches: ExecutionSwitches, pre_wire_values: PreWireValues, } -struct ExecutionSwitches { - resume: bool, - yield_op: bool, - burn: bool, - program_hash: bool, - new_utxo: bool, - new_coord: bool, - activation: bool, - init: bool, - bind: bool, - unbind: bool, - new_ref: bool, - get: bool, - nop: bool, +#[derive(Clone)] +struct ExecutionSwitches { + resume: T, + yield_op: T, + burn: T, + program_hash: T, + new_utxo: T, + new_coord: T, + activation: T, + init: T, + bind: T, + unbind: T, + new_ref: T, + get: T, + nop: T, } struct PreWireValues { @@ -119,7 +120,7 @@ struct PreWireValues { id_prev_value: F, } -impl Default for ExecutionSwitches { +impl Default for ExecutionSwitches { fn default() -> Self { Self { resume: false, @@ -217,27 +218,12 @@ pub struct Wires { p_len: FpVar, - // switches - resume_switch: Boolean, - yield_switch: Boolean, - program_hash_switch: Boolean, - new_utxo_switch: Boolean, - new_coord_switch: Boolean, - burn_switch: Boolean, - activation_switch: Boolean, - init_switch: Boolean, - bind_switch: Boolean, - unbind_switch: Boolean, - new_ref_switch: Boolean, - get_switch: Boolean, - - check_utxo_output_switch: Boolean, + switches: ExecutionSwitches>, target: FpVar, val: FpVar, ret: FpVar, program_hash: FpVar, - new_process_id: FpVar, caller: FpVar, ret_is_some: Boolean, @@ -287,13 +273,11 @@ pub struct PreWires { program_hash: F, - new_process_id: F, caller: F, // switches yield_switch: bool, resume_switch: bool, - check_utxo_output_switch: bool, nop_switch: bool, burn_switch: bool, program_hash_switch: bool, @@ -479,7 +463,6 @@ impl Wires { let switches = [ vals.resume_switch, vals.yield_switch, - vals.check_utxo_output_switch, vals.nop_switch, vals.burn_switch, vals.program_hash_switch, @@ -501,8 +484,7 @@ impl Wires { let [ resume_switch, yield_switch, - check_utxo_output_switch, - _nop_switch, + nop_switch, burn_switch, program_hash_switch, new_utxo_switch, @@ -540,7 +522,6 @@ impl Wires { let ret_is_some = Boolean::new_witness(cs.clone(), || Ok(vals.ret_is_some))?; let program_hash = FpVar::::new_witness(cs.clone(), || Ok(vals.program_hash))?; - let new_process_id = FpVar::::new_witness(cs.clone(), || Ok(vals.new_process_id))?; let caller = FpVar::::new_witness(cs.clone(), || Ok(vals.caller))?; let curr_mem_switches = MemSwitchboardWires::allocate(cs.clone(), &vals.curr_mem_switches)?; @@ -633,19 +614,21 @@ impl Wires { p_len, - yield_switch: yield_switch.clone(), - resume_switch: resume_switch.clone(), - check_utxo_output_switch: check_utxo_output_switch.clone(), - burn_switch: burn_switch.clone(), - program_hash_switch: program_hash_switch.clone(), - new_utxo_switch: new_utxo_switch.clone(), - new_coord_switch: new_coord_switch.clone(), - activation_switch: activation_switch.clone(), - init_switch: init_switch.clone(), - bind_switch: bind_switch.clone(), - unbind_switch: unbind_switch.clone(), - new_ref_switch: new_ref_switch.clone(), - get_switch: get_switch.clone(), + switches: ExecutionSwitches { + yield_op: yield_switch.clone(), + resume: resume_switch.clone(), + burn: burn_switch.clone(), + program_hash: program_hash_switch.clone(), + new_utxo: new_utxo_switch.clone(), + new_coord: new_coord_switch.clone(), + activation: activation_switch.clone(), + init: init_switch.clone(), + bind: bind_switch.clone(), + unbind: unbind_switch.clone(), + new_ref: new_ref_switch.clone(), + get: get_switch.clone(), + nop: nop_switch.clone(), + }, constant_false: Boolean::new_constant(cs.clone(), false)?, constant_true: Boolean::new_constant(cs.clone(), true)?, @@ -656,7 +639,6 @@ impl Wires { val, ret, program_hash, - new_process_id, caller, ret_is_some, @@ -1670,7 +1652,7 @@ impl> StepCircuitBuilder { } #[tracing::instrument(target = "gr1cs", skip(self, wires))] fn visit_resume(&self, mut wires: Wires) -> Result { - let switch = &wires.resume_switch; + let switch = &wires.switches.resume; // 1. self-resume check wires @@ -1718,7 +1700,7 @@ impl> StepCircuitBuilder { #[tracing::instrument(target = "gr1cs", skip(self, wires))] fn visit_burn(&self, mut wires: Wires) -> Result { - let switch = &wires.burn_switch; + let switch = &wires.switches.burn; // --- // Ckecks from the mocked verifier @@ -1764,7 +1746,7 @@ impl> StepCircuitBuilder { #[tracing::instrument(target = "gr1cs", skip(self, wires))] fn visit_yield(&self, mut wires: Wires) -> Result { - let switch = &wires.yield_switch; + let switch = &wires.switches.yield_op; // 1. Must have a parent. wires @@ -1813,7 +1795,7 @@ impl> StepCircuitBuilder { #[tracing::instrument(target = "gr1cs", skip(self, wires))] fn visit_new_process(&self, mut wires: Wires) -> Result { - let switch = &wires.new_utxo_switch | &wires.new_coord_switch; + let switch = &wires.switches.new_utxo | &wires.switches.new_coord; // The target is the new process being created. // The current process is the coordination script doing the creation. @@ -1828,7 +1810,7 @@ impl> StepCircuitBuilder { let target_is_utxo = wires.is_utxo_target.is_one()?; // if new_utxo_switch is true, target_is_utxo must be true. // if new_utxo_switch is false (i.e. new_coord_switch is true), target_is_utxo must be false. - target_is_utxo.conditional_enforce_equal(&wires.new_utxo_switch, &switch)?; + target_is_utxo.conditional_enforce_equal(&wires.switches.new_utxo, &switch)?; // 3. Program hash check wires @@ -1859,7 +1841,7 @@ impl> StepCircuitBuilder { #[tracing::instrument(target = "gr1cs", skip_all)] fn visit_activation(&self, wires: Wires) -> Result { - let switch = &wires.activation_switch; + let switch = &wires.switches.activation; // When a process calls `input`, it's reading the argument that was // passed to it when it was resumed. @@ -1880,7 +1862,7 @@ impl> StepCircuitBuilder { #[tracing::instrument(target = "gr1cs", skip_all)] fn visit_init(&self, wires: Wires) -> Result { - let switch = &wires.init_switch; + let switch = &wires.switches.init; // When a process calls `input`, it's reading the argument that was // passed to it when it was resumed. @@ -1901,7 +1883,7 @@ impl> StepCircuitBuilder { #[tracing::instrument(target = "gr1cs", skip_all)] fn visit_bind(&self, mut wires: Wires) -> Result { - let switch = &wires.bind_switch; + let switch = &wires.switches.bind; // curr is the token (or the utxo bound to the target) let is_utxo_curr = wires.is_utxo_curr.is_one()?; @@ -1928,7 +1910,7 @@ impl> StepCircuitBuilder { #[tracing::instrument(target = "gr1cs", skip_all)] fn visit_unbind(&self, mut wires: Wires) -> Result { - let switch = &wires.unbind_switch; + let switch = &wires.switches.unbind; let is_utxo_curr = wires.is_utxo_curr.is_one()?; let is_utxo_target = wires.is_utxo_target.is_one()?; @@ -1951,7 +1933,7 @@ impl> StepCircuitBuilder { #[tracing::instrument(target = "gr1cs", skip_all)] fn visit_new_ref(&self, mut wires: Wires) -> Result { - let switch = &wires.new_ref_switch; + let switch = &wires.switches.new_ref; wires .ret @@ -1971,7 +1953,7 @@ impl> StepCircuitBuilder { #[tracing::instrument(target = "gr1cs", skip_all)] fn visit_get(&self, wires: Wires) -> Result { - let switch = &wires.get_switch; + let switch = &wires.switches.get; // TODO: prove that reff is < ref_arena_stack_ptr ? // or is it not needed? since we never decrease? @@ -2053,7 +2035,6 @@ impl PreWires { // switches yield_switch: false, resume_switch: false, - check_utxo_output_switch: false, nop_switch: false, burn_switch: false, activation_switch: false, @@ -2074,7 +2055,6 @@ impl PreWires { val: F::ZERO, ret: F::ZERO, program_hash: F::ZERO, - new_process_id: F::ZERO, caller: F::ZERO, ret_is_some: false, From e293eae5bf731ee4f71ba8b9e248df23dc272452 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Sat, 3 Jan 2026 18:05:07 -0300 Subject: [PATCH 049/152] refactor memory tag allocs Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/src/circuit.rs | 35 ++++++++++++++++------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/starstream_ivc_proto/src/circuit.rs b/starstream_ivc_proto/src/circuit.rs index b790fca1..3c520315 100644 --- a/starstream_ivc_proto/src/circuit.rs +++ b/starstream_ivc_proto/src/circuit.rs @@ -49,6 +49,12 @@ impl From for F { } } +impl MemoryTag { + pub fn allocate(&self, cs: ConstraintSystemRef) -> Result, SynthesisError> { + FpVar::new_constant(cs, F::from(*self)) + } +} + #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum ProgramStateTag { ExpectedInput, @@ -379,7 +385,7 @@ macro_rules! define_program_state_operations { &switches.$field, &Address { addr: address.clone(), - tag: FpVar::new_constant(cs.clone(), F::from(MemoryTag::from(ProgramStateTag::$tag)))?, + tag: MemoryTag::from(ProgramStateTag::$tag).allocate(cs.clone())?, }, &[state.$field.clone().into()], )?; @@ -565,7 +571,7 @@ impl Wires { &rom_switches.read_is_utxo_curr, &Address { addr: id_curr.clone(), - tag: FpVar::new_constant(cs.clone(), F::from(MemoryTag::IsUtxo))?, + tag: MemoryTag::IsUtxo.allocate(cs.clone())?, }, )?[0] .clone(); @@ -574,7 +580,7 @@ impl Wires { &rom_switches.read_is_utxo_target, &Address { addr: target_address.clone(), - tag: FpVar::new_constant(cs.clone(), F::from(MemoryTag::IsUtxo))?, + tag: MemoryTag::IsUtxo.allocate(cs.clone())?, }, )?[0] .clone(); @@ -583,7 +589,7 @@ impl Wires { &rom_switches.read_must_burn_curr, &Address { addr: id_curr.clone(), - tag: FpVar::new_constant(cs.clone(), F::from(MemoryTag::MustBurn))?, + tag: MemoryTag::MustBurn.allocate(cs.clone())?, }, )?[0] .clone(); @@ -592,7 +598,7 @@ impl Wires { &rom_switches.read_program_hash_target, &Address { addr: target_address.clone(), - tag: FpVar::new_constant(cs.clone(), F::from(MemoryTag::ProcessTable))?, + tag: MemoryTag::ProcessTable.allocate(cs.clone())?, }, )?[0] .clone(); @@ -600,7 +606,7 @@ impl Wires { let ref_arena_read = rm.conditional_read( &(get_switch | new_ref_switch), &Address { - tag: FpVar::new_constant(cs.clone(), F::from(MemoryTag::RefArena))?, + tag: MemoryTag::RefArena.allocate(cs.clone())?, addr: get_switch.select(&val, &ret)?, }, )?[0] @@ -673,7 +679,7 @@ fn program_state_read_wires>( &switches.expected_input, &Address { addr: address.clone(), - tag: FpVar::new_constant(cs.clone(), F::from(MemoryTag::ExpectedInput))?, + tag: MemoryTag::ExpectedInput.allocate(cs.clone())?, }, )? .into_iter() @@ -684,7 +690,7 @@ fn program_state_read_wires>( &switches.activation, &Address { addr: address.clone(), - tag: FpVar::new_constant(cs.clone(), F::from(MemoryTag::Activation))?, + tag: MemoryTag::Activation.allocate(cs.clone())?, }, )? .into_iter() @@ -695,7 +701,7 @@ fn program_state_read_wires>( &switches.init, &Address { addr: address.clone(), - tag: FpVar::new_constant(cs.clone(), F::from(MemoryTag::Init))?, + tag: MemoryTag::Init.allocate(cs.clone())?, }, )? .into_iter() @@ -706,7 +712,7 @@ fn program_state_read_wires>( &switches.counters, &Address { addr: address.clone(), - tag: FpVar::new_constant(cs.clone(), F::from(MemoryTag::Counters))?, + tag: MemoryTag::Counters.allocate(cs.clone())?, }, )? .into_iter() @@ -717,7 +723,7 @@ fn program_state_read_wires>( &switches.initialized, &Address { addr: address.clone(), - tag: FpVar::new_constant(cs.clone(), F::from(MemoryTag::Initialized))?, + tag: MemoryTag::Initialized.allocate(cs.clone())?, }, )? .into_iter() @@ -729,20 +735,19 @@ fn program_state_read_wires>( &switches.finalized, &Address { addr: address.clone(), - tag: FpVar::new_constant(cs.clone(), F::from(MemoryTag::Finalized))?, + tag: MemoryTag::Finalized.allocate(cs.clone())?, }, )? .into_iter() .next() .unwrap() .is_one()?, - did_burn: rm .conditional_read( &switches.did_burn, &Address { addr: address.clone(), - tag: FpVar::new_constant(cs.clone(), F::from(MemoryTag::DidBurn))?, + tag: MemoryTag::DidBurn.allocate(cs.clone())?, }, )? .into_iter() @@ -754,7 +759,7 @@ fn program_state_read_wires>( &switches.ownership, &Address { addr: address.clone(), - tag: FpVar::new_constant(cs.clone(), F::from(MemoryTag::Ownership))?, + tag: MemoryTag::Ownership.allocate(cs.clone())?, }, )? .into_iter() From 1d90db2cdc2e8e1e068c7403fe349eb95db28e53 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Sat, 3 Jan 2026 18:06:47 -0300 Subject: [PATCH 050/152] rename ref_arena_stack_ptr to ref_arena_counter Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/src/circuit.rs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/starstream_ivc_proto/src/circuit.rs b/starstream_ivc_proto/src/circuit.rs index 3c520315..9979d0f0 100644 --- a/starstream_ivc_proto/src/circuit.rs +++ b/starstream_ivc_proto/src/circuit.rs @@ -327,7 +327,7 @@ pub struct InterRoundWires { id_curr: F, id_prev_is_some: bool, id_prev_value: F, - ref_arena_stack_ptr: F, + ref_arena_counter: F, p_len: F, n_finalized: F, @@ -426,11 +426,9 @@ macro_rules! define_program_state_operations { } }; - // Helper macro for converting to F (@convert_to_f $value:expr, field) => { $value }; (@convert_to_f $value:expr, bool) => { F::from($value) }; - // Helper macro for converting from F (@convert_from_f $value:expr, field) => { $value }; (@convert_from_f $value:expr, bool) => { $value == F::ONE }; } @@ -463,7 +461,7 @@ impl Wires { let id_prev_is_some = Boolean::new_witness(cs.clone(), || Ok(vals.irw.id_prev_is_some))?; let id_prev_value = FpVar::new_witness(cs.clone(), || Ok(vals.irw.id_prev_value))?; let ref_arena_stack_ptr = - FpVar::new_witness(cs.clone(), || Ok(vals.irw.ref_arena_stack_ptr))?; + FpVar::new_witness(cs.clone(), || Ok(vals.irw.ref_arena_counter))?; // switches let switches = [ @@ -776,7 +774,7 @@ impl InterRoundWires { id_prev_value: F::ZERO, p_len, n_finalized: F::from(0), - ref_arena_stack_ptr: F::ZERO, + ref_arena_counter: F::ZERO, } } @@ -811,12 +809,12 @@ impl InterRoundWires { self.p_len = res.p_len.value().unwrap(); tracing::debug!( - "ref_arena_stack_ptr from {} to {}", - self.ref_arena_stack_ptr, + "ref_arena_counter from {} to {}", + self.ref_arena_counter, res.ref_arena_stack_ptr.value().unwrap() ); - self.ref_arena_stack_ptr = res.ref_arena_stack_ptr.value().unwrap(); + self.ref_arena_counter = res.ref_arena_stack_ptr.value().unwrap(); } } From 9ddfc313f24b98b19646fe5bae6f93288c0ae6d5 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Sat, 3 Jan 2026 18:37:22 -0300 Subject: [PATCH 051/152] refactor mem tracing loop Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/src/circuit.rs | 140 +++++++++++++--------------- 1 file changed, 67 insertions(+), 73 deletions(-) diff --git a/starstream_ivc_proto/src/circuit.rs b/starstream_ivc_proto/src/circuit.rs index 9979d0f0..80ef58ee 100644 --- a/starstream_ivc_proto/src/circuit.rs +++ b/starstream_ivc_proto/src/circuit.rs @@ -14,7 +14,7 @@ use ark_relations::{ }; use starstream_mock_ledger::InterleavingInstance; use std::marker::PhantomData; -use std::ops::{Mul, Not}; +use std::ops::Not; use tracing::debug_span; #[derive(Debug, Clone, Copy, PartialEq, Eq)] @@ -94,7 +94,7 @@ struct OpcodeConfig { mem_switches_target: MemSwitchboard, rom_switches: RomSwitchboard, execution_switches: ExecutionSwitches, - pre_wire_values: PreWireValues, + opcode_var_values: OpcodeVarValues, } #[derive(Clone)] @@ -114,12 +114,11 @@ struct ExecutionSwitches { nop: T, } -struct PreWireValues { +struct OpcodeVarValues { target: F, val: F, ret: F, program_hash: F, - new_process_id: F, caller: F, ret_is_some: bool, id_prev_is_some: bool, @@ -146,14 +145,13 @@ impl Default for ExecutionSwitches { } } -impl Default for PreWireValues { +impl Default for OpcodeVarValues { fn default() -> Self { Self { target: F::ZERO, val: F::ZERO, ret: F::ZERO, program_hash: F::ZERO, - new_process_id: F::ZERO, caller: F::ZERO, ret_is_some: false, id_prev_is_some: false, @@ -819,14 +817,13 @@ impl InterRoundWires { } impl LedgerOperation { - // Generate complete opcode configuration fn get_config(&self, irw: &InterRoundWires) -> OpcodeConfig { let mut config = OpcodeConfig { mem_switches_curr: MemSwitchboard::default(), mem_switches_target: MemSwitchboard::default(), rom_switches: RomSwitchboard::default(), execution_switches: ExecutionSwitches::default(), - pre_wire_values: PreWireValues::default(), + opcode_var_values: OpcodeVarValues::default(), }; // All ops increment counter of the current process, except Nop @@ -855,11 +852,11 @@ impl LedgerOperation { config.rom_switches.read_is_utxo_curr = true; config.rom_switches.read_is_utxo_target = true; - config.pre_wire_values.target = *target; - config.pre_wire_values.val = *val; - config.pre_wire_values.ret = *ret; - config.pre_wire_values.id_prev_is_some = id_prev.is_some(); - config.pre_wire_values.id_prev_value = id_prev.unwrap_or_default(); + config.opcode_var_values.target = *target; + config.opcode_var_values.val = *val; + config.opcode_var_values.ret = *ret; + config.opcode_var_values.id_prev_is_some = id_prev.is_some(); + config.opcode_var_values.id_prev_value = id_prev.unwrap_or_default(); } LedgerOperation::Yield { val, ret, id_prev } => { config.execution_switches.yield_op = true; @@ -870,12 +867,12 @@ impl LedgerOperation { } config.mem_switches_curr.finalized = true; - config.pre_wire_values.target = irw.id_prev_value; - config.pre_wire_values.val = *val; - config.pre_wire_values.ret = ret.unwrap_or_default(); - config.pre_wire_values.ret_is_some = ret.is_some(); - config.pre_wire_values.id_prev_is_some = id_prev.is_some(); - config.pre_wire_values.id_prev_value = id_prev.unwrap_or_default(); + config.opcode_var_values.target = irw.id_prev_value; + config.opcode_var_values.val = *val; + config.opcode_var_values.ret = ret.unwrap_or_default(); + config.opcode_var_values.ret_is_some = ret.is_some(); + config.opcode_var_values.id_prev_is_some = id_prev.is_some(); + config.opcode_var_values.id_prev_value = id_prev.unwrap_or_default(); } LedgerOperation::Burn { ret } => { config.execution_switches.burn = true; @@ -888,10 +885,10 @@ impl LedgerOperation { config.rom_switches.read_is_utxo_curr = true; config.rom_switches.read_must_burn_curr = true; - config.pre_wire_values.target = irw.id_prev_value; - config.pre_wire_values.ret = *ret; - config.pre_wire_values.id_prev_is_some = irw.id_prev_is_some; - config.pre_wire_values.id_prev_value = irw.id_prev_value; + config.opcode_var_values.target = irw.id_prev_value; + config.opcode_var_values.ret = *ret; + config.opcode_var_values.id_prev_is_some = irw.id_prev_is_some; + config.opcode_var_values.id_prev_value = irw.id_prev_value; } LedgerOperation::ProgramHash { target, @@ -899,8 +896,8 @@ impl LedgerOperation { } => { config.execution_switches.program_hash = true; - config.pre_wire_values.target = *target; - config.pre_wire_values.program_hash = *program_hash; + config.opcode_var_values.target = *target; + config.opcode_var_values.program_hash = *program_hash; } LedgerOperation::NewUtxo { program_hash, @@ -917,9 +914,9 @@ impl LedgerOperation { config.rom_switches.read_is_utxo_target = true; config.rom_switches.read_program_hash_target = true; - config.pre_wire_values.target = *target; - config.pre_wire_values.val = *val; - config.pre_wire_values.program_hash = *program_hash; + config.opcode_var_values.target = *target; + config.opcode_var_values.val = *val; + config.opcode_var_values.program_hash = *program_hash; } LedgerOperation::NewCoord { program_hash, @@ -936,25 +933,25 @@ impl LedgerOperation { config.rom_switches.read_is_utxo_target = true; config.rom_switches.read_program_hash_target = true; - config.pre_wire_values.target = *target; - config.pre_wire_values.val = *val; - config.pre_wire_values.program_hash = *program_hash; + config.opcode_var_values.target = *target; + config.opcode_var_values.val = *val; + config.opcode_var_values.program_hash = *program_hash; } LedgerOperation::Activation { val, caller } => { config.execution_switches.activation = true; config.mem_switches_curr.activation = true; - config.pre_wire_values.val = *val; - config.pre_wire_values.caller = *caller; + config.opcode_var_values.val = *val; + config.opcode_var_values.caller = *caller; } LedgerOperation::Init { val, caller } => { config.execution_switches.init = true; config.mem_switches_curr.init = true; - config.pre_wire_values.val = *val; - config.pre_wire_values.caller = *caller; + config.opcode_var_values.val = *val; + config.opcode_var_values.caller = *caller; } LedgerOperation::Bind { owner_id } => { config.execution_switches.bind = true; @@ -965,7 +962,7 @@ impl LedgerOperation { config.rom_switches.read_is_utxo_curr = true; config.rom_switches.read_is_utxo_target = true; - config.pre_wire_values.target = *owner_id; + config.opcode_var_values.target = *owner_id; } LedgerOperation::Unbind { token_id } => { config.execution_switches.unbind = true; @@ -975,19 +972,19 @@ impl LedgerOperation { config.rom_switches.read_is_utxo_curr = true; config.rom_switches.read_is_utxo_target = true; - config.pre_wire_values.target = *token_id; + config.opcode_var_values.target = *token_id; } LedgerOperation::NewRef { val, ret } => { config.execution_switches.new_ref = true; - config.pre_wire_values.val = *val; - config.pre_wire_values.ret = *ret; + config.opcode_var_values.val = *val; + config.opcode_var_values.ret = *ret; } LedgerOperation::Get { reff, ret } => { config.execution_switches.get = true; - config.pre_wire_values.val = *reff; - config.pre_wire_values.ret = *ret; + config.opcode_var_values.val = *reff; + config.opcode_var_values.ret = *ret; } } @@ -1273,8 +1270,8 @@ impl> StepCircuitBuilder { mb }; - let mut curr_pid = self.instance.entrypoint.0 as u64; - let mut prev_pid: Option = None; + // let mut curr_pid = self.instance.entrypoint.0 as u64; + // let mut prev_pid: Option = None; // out of circuit memory operations. // this is needed to commit to the memory operations before-hand. @@ -1284,31 +1281,35 @@ impl> StepCircuitBuilder { // note however that we don't enforce/check anything, that's done in the // circuit constraints - // We need a dummy IRW for the trace phase since we don't have the actual IRW yet - let dummy_irw = InterRoundWires::new( + // Initialize IRW for the trace phase and update it as we process each operation + let mut irw = InterRoundWires::new( F::from(self.p_len() as u64), self.instance.entrypoint.0 as u64, ); for instr in &self.ops { - let (curr_switches, target_switches) = opcode_to_mem_switches(instr, &dummy_irw); + let config = instr.get_config(&irw); + let curr_switches = config.mem_switches_curr; + let target_switches = config.mem_switches_target; + let rom_switches = config.rom_switches; + self.mem_switches .push((curr_switches.clone(), target_switches.clone())); - let rom_switches = opcode_to_rom_switches(instr, &dummy_irw); self.rom_switches.push(rom_switches.clone()); let target_addr = match instr { LedgerOperation::Resume { target, .. } => Some(*target), - LedgerOperation::Yield { .. } => prev_pid.map(F::from), - LedgerOperation::Burn { .. } => prev_pid.map(F::from), + LedgerOperation::Yield { .. } => irw.id_prev_is_some.then_some(irw.id_prev_value), + LedgerOperation::Burn { .. } => irw.id_prev_is_some.then_some(irw.id_prev_value), LedgerOperation::NewUtxo { target: id, .. } => Some(*id), LedgerOperation::NewCoord { target: id, .. } => Some(*id), LedgerOperation::ProgramHash { target, .. } => Some(*target), _ => None, }; - let curr_read = trace_program_state_reads(&mut mb, curr_pid, &curr_switches); + let curr_read = + trace_program_state_reads(&mut mb, irw.id_curr.into_bigint().0[0], &curr_switches); let target_pid = target_addr.map(|t| t.into_bigint().0[0]); let target_read = @@ -1318,7 +1319,7 @@ impl> StepCircuitBuilder { mb.conditional_read( rom_switches.read_is_utxo_curr, Address { - addr: curr_pid, + addr: irw.id_curr.into_bigint().0[0], tag: MemoryTag::IsUtxo.into(), }, ); @@ -1332,7 +1333,7 @@ impl> StepCircuitBuilder { mb.conditional_read( rom_switches.read_must_burn_curr, Address { - addr: curr_pid, + addr: irw.id_curr.into_bigint().0[0], tag: MemoryTag::MustBurn.into(), }, ); @@ -1350,7 +1351,12 @@ impl> StepCircuitBuilder { self.write_ops .push((curr_write.clone(), target_write.clone())); - trace_program_state_writes(&mut mb, curr_pid, &curr_write, &curr_switches); + trace_program_state_writes( + &mut mb, + irw.id_curr.into_bigint().0[0], + &curr_write, + &curr_switches, + ); trace_program_state_writes( &mut mb, target_pid.unwrap_or(0), @@ -1361,13 +1367,14 @@ impl> StepCircuitBuilder { // update pids for next iteration match instr { LedgerOperation::Resume { target, .. } => { - prev_pid = Some(curr_pid); - curr_pid = target.into_bigint().0[0]; + irw.id_prev_is_some = true; + irw.id_prev_value = irw.id_curr; + irw.id_curr = target.clone(); } LedgerOperation::Yield { .. } | LedgerOperation::Burn { .. } => { - let parent = prev_pid.expect("yield/burn must have parent"); - prev_pid = Some(curr_pid); - curr_pid = parent; + irw.id_curr = irw.id_prev_value; + irw.id_prev_is_some = true; + irw.id_prev_value = irw.id_curr; } _ => {} } @@ -1378,10 +1385,10 @@ impl> StepCircuitBuilder { LedgerOperation::NewRef { val, ret } => { // we never pop from this, actually mb.init( - dbg!(Address { + Address { tag: MemoryTag::RefArena.into(), addr: ret.into_bigint().0[0], - }), + }, vec![val.clone()], ); @@ -1979,19 +1986,6 @@ impl> StepCircuitBuilder { } } -pub fn opcode_to_mem_switches( - instr: &LedgerOperation, - irw: &InterRoundWires, -) -> (MemSwitchboard, MemSwitchboard) { - let config = instr.get_config(irw); - (config.mem_switches_curr, config.mem_switches_target) -} - -pub fn opcode_to_rom_switches(instr: &LedgerOperation, irw: &InterRoundWires) -> RomSwitchboard { - let config = instr.get_config(irw); - config.rom_switches -} - #[tracing::instrument(target = "gr1cs", skip_all)] fn ivcify_wires( _cs: &ConstraintSystemRef, From 14e8195504e936303e8bd73579aadcf99b995011 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Sat, 3 Jan 2026 18:44:27 -0300 Subject: [PATCH 052/152] refactor: restructure execution switches and simplify PreWires struct Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/src/circuit.rs | 65 +++++++++++------------------ 1 file changed, 25 insertions(+), 40 deletions(-) diff --git a/starstream_ivc_proto/src/circuit.rs b/starstream_ivc_proto/src/circuit.rs index 80ef58ee..bd61ca04 100644 --- a/starstream_ivc_proto/src/circuit.rs +++ b/starstream_ivc_proto/src/circuit.rs @@ -113,6 +113,14 @@ struct ExecutionSwitches { get: T, nop: T, } +impl ExecutionSwitches { + fn nop() -> Self { + Self { + nop: true, + ..Self::default() + } + } +} struct OpcodeVarValues { target: F, @@ -279,20 +287,7 @@ pub struct PreWires { caller: F, - // switches - yield_switch: bool, - resume_switch: bool, - nop_switch: bool, - burn_switch: bool, - program_hash_switch: bool, - new_utxo_switch: bool, - new_coord_switch: bool, - activation_switch: bool, - init_switch: bool, - bind_switch: bool, - unbind_switch: bool, - new_ref_switch: bool, - get_switch: bool, + switches: ExecutionSwitches, curr_mem_switches: MemSwitchboard, target_mem_switches: MemSwitchboard, @@ -463,19 +458,19 @@ impl Wires { // switches let switches = [ - vals.resume_switch, - vals.yield_switch, - vals.nop_switch, - vals.burn_switch, - vals.program_hash_switch, - vals.new_utxo_switch, - vals.new_coord_switch, - vals.activation_switch, - vals.init_switch, - vals.bind_switch, - vals.unbind_switch, - vals.new_ref_switch, - vals.get_switch, + vals.switches.resume, + vals.switches.yield_op, + vals.switches.nop, + vals.switches.burn, + vals.switches.program_hash, + vals.switches.new_utxo, + vals.switches.new_coord, + vals.switches.activation, + vals.switches.init, + vals.switches.bind, + vals.switches.unbind, + vals.switches.new_ref, + vals.switches.get, ]; let allocated_switches: Vec<_> = switches @@ -1008,7 +1003,7 @@ impl LedgerOperation { // All operations increment the counter of the current process curr_write.counters += F::ONE; - match dbg!(self) { + match self { LedgerOperation::Nop {} => { // Nop does nothing to the state curr_write.counters -= F::ONE; // revert counter increment @@ -1085,17 +1080,6 @@ impl> StepCircuitBuilder { } } - // pub fn dummy(utxos: BTreeMap) -> Self { - // Self { - // utxos, - // ops: vec![Instruction::Nop {}], - // write_ops: vec![], - // utxo_order_mapping: Default::default(), - - // mem: PhantomData, - // } - // } - pub fn make_step_circuit( &self, i: usize, @@ -1434,7 +1418,8 @@ impl> StepCircuitBuilder { match instruction { LedgerOperation::Nop {} => { let irw = PreWires { - nop_switch: true, + switches: ExecutionSwitches::nop(), + irw: irw.clone(), ..PreWires::new( From 258a88bbdfcd48f4a2f073298691d0da4e7f18ce Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Sat, 3 Jan 2026 18:44:30 -0300 Subject: [PATCH 053/152] refactor: extract ExecutionSwitch var allocation and constraint from Wires::from_irw Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/src/circuit.rs | 280 ++++++++++++++++++---------- 1 file changed, 177 insertions(+), 103 deletions(-) diff --git a/starstream_ivc_proto/src/circuit.rs b/starstream_ivc_proto/src/circuit.rs index bd61ca04..941b1cac 100644 --- a/starstream_ivc_proto/src/circuit.rs +++ b/starstream_ivc_proto/src/circuit.rs @@ -120,6 +120,165 @@ impl ExecutionSwitches { ..Self::default() } } + + fn resume() -> Self { + Self { + resume: true, + ..Self::default() + } + } + + fn yield_op() -> Self { + Self { + yield_op: true, + ..Self::default() + } + } + + fn burn() -> Self { + Self { + burn: true, + ..Self::default() + } + } + + fn program_hash() -> Self { + Self { + program_hash: true, + ..Self::default() + } + } + + fn new_utxo() -> Self { + Self { + new_utxo: true, + ..Self::default() + } + } + + fn new_coord() -> Self { + Self { + new_coord: true, + ..Self::default() + } + } + + fn activation() -> Self { + Self { + activation: true, + ..Self::default() + } + } + + fn init() -> Self { + Self { + init: true, + ..Self::default() + } + } + + fn bind() -> Self { + Self { + bind: true, + ..Self::default() + } + } + + fn unbind() -> Self { + Self { + unbind: true, + ..Self::default() + } + } + + fn new_ref() -> Self { + Self { + new_ref: true, + ..Self::default() + } + } + + fn get() -> Self { + Self { + get: true, + ..Self::default() + } + } + + /// Allocates circuit variables for the switches and enforces exactly one is true + fn allocate_and_constrain( + &self, + cs: ConstraintSystemRef, + ) -> Result>, SynthesisError> { + let switches = [ + self.resume, + self.yield_op, + self.nop, + self.burn, + self.program_hash, + self.new_utxo, + self.new_coord, + self.activation, + self.init, + self.bind, + self.unbind, + self.new_ref, + self.get, + ]; + + let allocated_switches: Vec<_> = switches + .iter() + .map(|val| Boolean::new_witness(cs.clone(), || Ok(*val)).unwrap()) + .collect(); + + // Enforce exactly one switch is true + cs.enforce_r1cs_constraint( + || { + allocated_switches + .iter() + .fold(LinearCombination::new(), |acc, switch| acc + switch.lc()) + .clone() + }, + || LinearCombination::new() + Variable::one(), + || LinearCombination::new() + Variable::one(), + ) + .unwrap(); + + let [ + resume, + yield_op, + nop, + burn, + program_hash, + new_utxo, + new_coord, + activation, + init, + bind, + unbind, + new_ref, + get, + ] = allocated_switches.as_slice() + else { + unreachable!() + }; + + Ok(ExecutionSwitches { + resume: resume.clone(), + yield_op: yield_op.clone(), + nop: nop.clone(), + burn: burn.clone(), + program_hash: program_hash.clone(), + new_utxo: new_utxo.clone(), + new_coord: new_coord.clone(), + activation: activation.clone(), + init: init.clone(), + bind: bind.clone(), + unbind: unbind.clone(), + new_ref: new_ref.clone(), + get: get.clone(), + }) + } } struct OpcodeVarValues { @@ -456,60 +615,8 @@ impl Wires { let ref_arena_stack_ptr = FpVar::new_witness(cs.clone(), || Ok(vals.irw.ref_arena_counter))?; - // switches - let switches = [ - vals.switches.resume, - vals.switches.yield_op, - vals.switches.nop, - vals.switches.burn, - vals.switches.program_hash, - vals.switches.new_utxo, - vals.switches.new_coord, - vals.switches.activation, - vals.switches.init, - vals.switches.bind, - vals.switches.unbind, - vals.switches.new_ref, - vals.switches.get, - ]; - - let allocated_switches: Vec<_> = switches - .iter() - .map(|val| Boolean::new_witness(cs.clone(), || Ok(*val)).unwrap()) - .collect(); - - let [ - resume_switch, - yield_switch, - nop_switch, - burn_switch, - program_hash_switch, - new_utxo_switch, - new_coord_switch, - activation_switch, - init_switch, - bind_switch, - unbind_switch, - new_ref_switch, - get_switch, - ] = allocated_switches.as_slice() - else { - unreachable!() - }; - - // TODO: figure out how to write this with the proper dsl - // but we only need r1cs anyway. - cs.enforce_r1cs_constraint( - || { - allocated_switches - .iter() - .fold(LinearCombination::new(), |acc, switch| acc + switch.lc()) - .clone() - }, - || LinearCombination::new() + Variable::one(), - || LinearCombination::new() + Variable::one(), - ) - .unwrap(); + // Allocate switches and enforce exactly one is true + let switches = vals.switches.allocate_and_constrain(cs.clone())?; let target = FpVar::::new_witness(ns!(cs.clone(), "target"), || Ok(vals.target))?; @@ -595,10 +702,10 @@ impl Wires { .clone(); let ref_arena_read = rm.conditional_read( - &(get_switch | new_ref_switch), + &(&switches.get | &switches.new_ref), &Address { tag: MemoryTag::RefArena.allocate(cs.clone())?, - addr: get_switch.select(&val, &ret)?, + addr: switches.get.select(&val, &ret)?, }, )?[0] .clone(); @@ -611,21 +718,7 @@ impl Wires { p_len, - switches: ExecutionSwitches { - yield_op: yield_switch.clone(), - resume: resume_switch.clone(), - burn: burn_switch.clone(), - program_hash: program_hash_switch.clone(), - new_utxo: new_utxo_switch.clone(), - new_coord: new_coord_switch.clone(), - activation: activation_switch.clone(), - init: init_switch.clone(), - bind: bind_switch.clone(), - unbind: unbind_switch.clone(), - new_ref: new_ref_switch.clone(), - get: get_switch.clone(), - nop: nop_switch.clone(), - }, + switches, constant_false: Boolean::new_constant(cs.clone(), false)?, constant_true: Boolean::new_constant(cs.clone(), true)?, @@ -1439,7 +1532,7 @@ impl> StepCircuitBuilder { id_prev, } => { let irw = PreWires { - resume_switch: true, + switches: ExecutionSwitches::resume(), target: *target, val: val.clone(), ret: ret.clone(), @@ -1459,7 +1552,7 @@ impl> StepCircuitBuilder { } LedgerOperation::Yield { val, ret, id_prev } => { let irw = PreWires { - yield_switch: true, + switches: ExecutionSwitches::yield_op(), target: irw.id_prev_value, val: val.clone(), ret: ret.unwrap_or_default(), @@ -1479,7 +1572,7 @@ impl> StepCircuitBuilder { } LedgerOperation::Burn { ret } => { let irw = PreWires { - burn_switch: true, + switches: ExecutionSwitches::burn(), target: irw.id_prev_value, ret: ret.clone(), id_prev_is_some: irw.id_prev_is_some, @@ -1500,7 +1593,7 @@ impl> StepCircuitBuilder { program_hash, } => { let irw = PreWires { - program_hash_switch: true, + switches: ExecutionSwitches::program_hash(), target: *target, program_hash: *program_hash, irw: irw.clone(), @@ -1519,7 +1612,7 @@ impl> StepCircuitBuilder { target, } => { let irw = PreWires { - new_utxo_switch: true, + switches: ExecutionSwitches::new_utxo(), target: *target, val: *val, program_hash: *program_hash, @@ -1539,7 +1632,7 @@ impl> StepCircuitBuilder { target, } => { let irw = PreWires { - new_coord_switch: true, + switches: ExecutionSwitches::new_coord(), target: *target, val: *val, program_hash: *program_hash, @@ -1555,7 +1648,7 @@ impl> StepCircuitBuilder { } LedgerOperation::Activation { val, caller } => { let irw = PreWires { - activation_switch: true, + switches: ExecutionSwitches::activation(), val: *val, caller: *caller, irw: irw.clone(), @@ -1570,7 +1663,7 @@ impl> StepCircuitBuilder { } LedgerOperation::Init { val, caller } => { let irw = PreWires { - init_switch: true, + switches: ExecutionSwitches::init(), val: *val, caller: *caller, irw: irw.clone(), @@ -1585,7 +1678,7 @@ impl> StepCircuitBuilder { } LedgerOperation::Bind { owner_id } => { let irw = PreWires { - bind_switch: true, + switches: ExecutionSwitches::bind(), target: *owner_id, irw: irw.clone(), // TODO: it feels like this can be refactored out, since it @@ -1601,7 +1694,7 @@ impl> StepCircuitBuilder { } LedgerOperation::Unbind { token_id } => { let irw = PreWires { - unbind_switch: true, + switches: ExecutionSwitches::unbind(), target: *token_id, irw: irw.clone(), ..PreWires::new( @@ -1615,9 +1708,9 @@ impl> StepCircuitBuilder { } LedgerOperation::NewRef { val, ret } => { let irw = PreWires { + switches: ExecutionSwitches::new_ref(), val: *val, ret: *ret, - new_ref_switch: true, irw: irw.clone(), ..PreWires::new( irw.clone(), @@ -1630,9 +1723,9 @@ impl> StepCircuitBuilder { } LedgerOperation::Get { reff, ret } => { let irw = PreWires { + switches: ExecutionSwitches::get(), val: *reff, ret: *ret, - get_switch: true, irw: irw.clone(), ..PreWires::new( irw.clone(), @@ -2014,35 +2107,16 @@ impl PreWires { rom_switches: RomSwitchboard, ) -> Self { Self { - // switches - yield_switch: false, - resume_switch: false, - nop_switch: false, - burn_switch: false, - activation_switch: false, - init_switch: false, - bind_switch: false, - unbind_switch: false, - new_ref_switch: false, - get_switch: false, - - // io vars + switches: ExecutionSwitches::default(), irw, - - program_hash_switch: false, - new_utxo_switch: false, - new_coord_switch: false, - target: F::ZERO, val: F::ZERO, ret: F::ZERO, program_hash: F::ZERO, caller: F::ZERO, ret_is_some: false, - id_prev_is_some: false, id_prev_value: F::ZERO, - curr_mem_switches, target_mem_switches, rom_switches, From 8098bf38ff163d1a30cfed75245cd53389433d6d Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Sun, 4 Jan 2026 00:42:11 -0300 Subject: [PATCH 054/152] chore: minor cleanup Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/src/circuit.rs | 126 +++++----------------------- 1 file changed, 20 insertions(+), 106 deletions(-) diff --git a/starstream_ivc_proto/src/circuit.rs b/starstream_ivc_proto/src/circuit.rs index 941b1cac..6c443a1c 100644 --- a/starstream_ivc_proto/src/circuit.rs +++ b/starstream_ivc_proto/src/circuit.rs @@ -404,9 +404,6 @@ pub struct Wires { target_read_wires: ProgramStateWires, target_write_wires: ProgramStateWires, - curr_mem_switches: MemSwitchboardWires, - target_mem_switches: MemSwitchboardWires, - ref_arena_read: FpVar, // ROM lookup results @@ -415,9 +412,6 @@ pub struct Wires { must_burn_curr: FpVar, rom_program_hash: FpVar, - // ROM read switches - rom_switches: RomSwitchboardWires, - constant_false: Boolean, constant_true: Boolean, constant_one: FpVar, @@ -738,10 +732,6 @@ impl Wires { target_read_wires, target_write_wires, - curr_mem_switches, - target_mem_switches, - rom_switches, - is_utxo_curr, is_utxo_target, must_burn_curr, @@ -1508,19 +1498,18 @@ impl> StepCircuitBuilder { let (curr_mem_switches, target_mem_switches) = &self.mem_switches[i]; let rom_switches = &self.rom_switches[i]; + let default = PreWires::new( + irw.clone(), + curr_mem_switches.clone(), + target_mem_switches.clone(), + rom_switches.clone(), + ); + match instruction { LedgerOperation::Nop {} => { let irw = PreWires { switches: ExecutionSwitches::nop(), - - irw: irw.clone(), - - ..PreWires::new( - irw.clone(), - curr_mem_switches.clone(), - target_mem_switches.clone(), - rom_switches.clone(), - ) + ..default }; Wires::from_irw(&irw, rm, curr_write, target_write) @@ -1538,14 +1527,7 @@ impl> StepCircuitBuilder { ret: ret.clone(), id_prev_is_some: id_prev.is_some(), id_prev_value: id_prev.unwrap_or_default(), - irw: irw.clone(), - - ..PreWires::new( - irw.clone(), - curr_mem_switches.clone(), - target_mem_switches.clone(), - rom_switches.clone(), - ) + ..default }; Wires::from_irw(&irw, rm, curr_write, target_write) @@ -1559,13 +1541,7 @@ impl> StepCircuitBuilder { ret_is_some: ret.is_some(), id_prev_is_some: id_prev.is_some(), id_prev_value: id_prev.unwrap_or_default(), - irw: irw.clone(), - ..PreWires::new( - irw.clone(), - curr_mem_switches.clone(), - target_mem_switches.clone(), - rom_switches.clone(), - ) + ..default }; Wires::from_irw(&irw, rm, curr_write, target_write) @@ -1577,13 +1553,7 @@ impl> StepCircuitBuilder { ret: ret.clone(), id_prev_is_some: irw.id_prev_is_some, id_prev_value: irw.id_prev_value, - irw: irw.clone(), - ..PreWires::new( - irw.clone(), - curr_mem_switches.clone(), - target_mem_switches.clone(), - rom_switches.clone(), - ) + ..default }; Wires::from_irw(&irw, rm, curr_write, target_write) @@ -1596,13 +1566,7 @@ impl> StepCircuitBuilder { switches: ExecutionSwitches::program_hash(), target: *target, program_hash: *program_hash, - irw: irw.clone(), - ..PreWires::new( - irw.clone(), - curr_mem_switches.clone(), - target_mem_switches.clone(), - rom_switches.clone(), - ) + ..default }; Wires::from_irw(&irw, rm, curr_write, target_write) } @@ -1616,13 +1580,7 @@ impl> StepCircuitBuilder { target: *target, val: *val, program_hash: *program_hash, - irw: irw.clone(), - ..PreWires::new( - irw.clone(), - curr_mem_switches.clone(), - target_mem_switches.clone(), - rom_switches.clone(), - ) + ..default }; Wires::from_irw(&irw, rm, curr_write, target_write) } @@ -1636,13 +1594,7 @@ impl> StepCircuitBuilder { target: *target, val: *val, program_hash: *program_hash, - irw: irw.clone(), - ..PreWires::new( - irw.clone(), - curr_mem_switches.clone(), - target_mem_switches.clone(), - rom_switches.clone(), - ) + ..default }; Wires::from_irw(&irw, rm, curr_write, target_write) } @@ -1651,13 +1603,7 @@ impl> StepCircuitBuilder { switches: ExecutionSwitches::activation(), val: *val, caller: *caller, - irw: irw.clone(), - ..PreWires::new( - irw.clone(), - curr_mem_switches.clone(), - target_mem_switches.clone(), - rom_switches.clone(), - ) + ..default }; Wires::from_irw(&irw, rm, curr_write, target_write) } @@ -1666,13 +1612,7 @@ impl> StepCircuitBuilder { switches: ExecutionSwitches::init(), val: *val, caller: *caller, - irw: irw.clone(), - ..PreWires::new( - irw.clone(), - curr_mem_switches.clone(), - target_mem_switches.clone(), - rom_switches.clone(), - ) + ..default }; Wires::from_irw(&irw, rm, curr_write, target_write) } @@ -1680,15 +1620,7 @@ impl> StepCircuitBuilder { let irw = PreWires { switches: ExecutionSwitches::bind(), target: *owner_id, - irw: irw.clone(), - // TODO: it feels like this can be refactored out, since it - // seems to be the same on all branches - ..PreWires::new( - irw.clone(), - curr_mem_switches.clone(), - target_mem_switches.clone(), - rom_switches.clone(), - ) + ..default }; Wires::from_irw(&irw, rm, curr_write, target_write) } @@ -1696,13 +1628,7 @@ impl> StepCircuitBuilder { let irw = PreWires { switches: ExecutionSwitches::unbind(), target: *token_id, - irw: irw.clone(), - ..PreWires::new( - irw.clone(), - curr_mem_switches.clone(), - target_mem_switches.clone(), - rom_switches.clone(), - ) + ..default }; Wires::from_irw(&irw, rm, curr_write, target_write) } @@ -1711,13 +1637,7 @@ impl> StepCircuitBuilder { switches: ExecutionSwitches::new_ref(), val: *val, ret: *ret, - irw: irw.clone(), - ..PreWires::new( - irw.clone(), - curr_mem_switches.clone(), - target_mem_switches.clone(), - rom_switches.clone(), - ) + ..default }; Wires::from_irw(&irw, rm, curr_write, target_write) } @@ -1726,13 +1646,7 @@ impl> StepCircuitBuilder { switches: ExecutionSwitches::get(), val: *reff, ret: *ret, - irw: irw.clone(), - ..PreWires::new( - irw.clone(), - curr_mem_switches.clone(), - target_mem_switches.clone(), - rom_switches.clone(), - ) + ..default }; Wires::from_irw(&irw, rm, curr_write, target_write) } From da1b07d51032a6573817d35aedb26898367cb005 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Sun, 4 Jan 2026 21:10:14 -0300 Subject: [PATCH 055/152] implement effect handler opcodes in the circuit Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/src/circuit.rs | 515 ++++++++++++++++++++++- starstream_ivc_proto/src/circuit_test.rs | 10 + starstream_ivc_proto/src/lib.rs | 38 +- 3 files changed, 544 insertions(+), 19 deletions(-) diff --git a/starstream_ivc_proto/src/circuit.rs b/starstream_ivc_proto/src/circuit.rs index 6c443a1c..6eb99727 100644 --- a/starstream_ivc_proto/src/circuit.rs +++ b/starstream_ivc_proto/src/circuit.rs @@ -13,6 +13,7 @@ use ark_relations::{ ns, }; use starstream_mock_ledger::InterleavingInstance; +use std::collections::{BTreeMap, BTreeSet}; use std::marker::PhantomData; use std::ops::Not; use tracing::debug_span; @@ -23,18 +24,20 @@ pub enum MemoryTag { ProcessTable = 1, MustBurn = 2, IsUtxo = 3, + Interfaces = 4, // RAM tags - ExpectedInput = 4, - Activation = 5, - Counters = 6, - Initialized = 7, - Finalized = 8, - DidBurn = 9, - Ownership = 10, - Init = 11, - RefArena = 12, - HandlerStack = 13, + ExpectedInput = 5, + Activation = 6, + Counters = 7, + Initialized = 8, + Finalized = 9, + DidBurn = 10, + Ownership = 11, + Init = 12, + RefArena = 13, + HandlerStackArena = 14, + HandlerStackHeads = 15, } impl From for u64 { @@ -111,6 +114,9 @@ struct ExecutionSwitches { unbind: T, new_ref: T, get: T, + install_handler: T, + uninstall_handler: T, + get_handler_for: T, nop: T, } impl ExecutionSwitches { @@ -205,6 +211,27 @@ impl ExecutionSwitches { } } + fn install_handler() -> Self { + Self { + install_handler: true, + ..Self::default() + } + } + + fn uninstall_handler() -> Self { + Self { + uninstall_handler: true, + ..Self::default() + } + } + + fn get_handler_for() -> Self { + Self { + get_handler_for: true, + ..Self::default() + } + } + /// Allocates circuit variables for the switches and enforces exactly one is true fn allocate_and_constrain( &self, @@ -224,6 +251,9 @@ impl ExecutionSwitches { self.unbind, self.new_ref, self.get, + self.install_handler, + self.uninstall_handler, + self.get_handler_for, ]; let allocated_switches: Vec<_> = switches @@ -258,6 +288,9 @@ impl ExecutionSwitches { unbind, new_ref, get, + install_handler, + uninstall_handler, + get_handler_for, ] = allocated_switches.as_slice() else { unreachable!() @@ -277,6 +310,9 @@ impl ExecutionSwitches { unbind: unbind.clone(), new_ref: new_ref.clone(), get: get.clone(), + install_handler: install_handler.clone(), + uninstall_handler: uninstall_handler.clone(), + get_handler_for: get_handler_for.clone(), }) } } @@ -290,6 +326,7 @@ struct OpcodeVarValues { ret_is_some: bool, id_prev_is_some: bool, id_prev_value: F, + interface_index: F, } impl Default for ExecutionSwitches { @@ -307,6 +344,9 @@ impl Default for ExecutionSwitches { unbind: false, new_ref: false, get: false, + install_handler: false, + uninstall_handler: false, + get_handler_for: false, nop: false, } } @@ -323,6 +363,7 @@ impl Default for OpcodeVarValues { ret_is_some: false, id_prev_is_some: false, id_prev_value: F::ZERO, + interface_index: F::ZERO, } } } @@ -386,6 +427,7 @@ pub struct Wires { id_prev_is_some: Boolean, id_prev_value: FpVar, ref_arena_stack_ptr: FpVar, + handler_stack_ptr: FpVar, p_len: FpVar, @@ -397,6 +439,7 @@ pub struct Wires { program_hash: FpVar, caller: FpVar, ret_is_some: Boolean, + interface_index: FpVar, curr_read_wires: ProgramStateWires, curr_write_wires: ProgramStateWires, @@ -405,6 +448,9 @@ pub struct Wires { target_write_wires: ProgramStateWires, ref_arena_read: FpVar, + interface_rom_read: FpVar, + handler_stack_head_read: FpVar, + handler_stack_node_read: Vec>, // ROM lookup results is_utxo_curr: FpVar, @@ -439,6 +485,7 @@ pub struct PreWires { program_hash: F, caller: F, + interface_index: F, switches: ExecutionSwitches, @@ -474,6 +521,7 @@ pub struct InterRoundWires { id_prev_is_some: bool, id_prev_value: F, ref_arena_counter: F, + handler_stack_counter: F, p_len: F, n_finalized: F, @@ -608,6 +656,8 @@ impl Wires { let id_prev_value = FpVar::new_witness(cs.clone(), || Ok(vals.irw.id_prev_value))?; let ref_arena_stack_ptr = FpVar::new_witness(cs.clone(), || Ok(vals.irw.ref_arena_counter))?; + let handler_stack_counter = + FpVar::new_witness(cs.clone(), || Ok(vals.irw.handler_stack_counter))?; // Allocate switches and enforce exactly one is true let switches = vals.switches.allocate_and_constrain(cs.clone())?; @@ -621,6 +671,7 @@ impl Wires { let program_hash = FpVar::::new_witness(cs.clone(), || Ok(vals.program_hash))?; let caller = FpVar::::new_witness(cs.clone(), || Ok(vals.caller))?; + let interface_index = FpVar::::new_witness(cs.clone(), || Ok(vals.interface_index))?; let curr_mem_switches = MemSwitchboardWires::allocate(cs.clone(), &vals.curr_mem_switches)?; let target_mem_switches = @@ -704,11 +755,84 @@ impl Wires { )?[0] .clone(); + // Handler stack memory operations + let handler_stack_switch = + &switches.install_handler | &switches.uninstall_handler | &switches.get_handler_for; + + // Read interface_id from Interfaces ROM using the index + let interface_rom_read = rm.conditional_read( + &handler_stack_switch, + &Address { + tag: MemoryTag::Interfaces.allocate(cs.clone())?, + addr: interface_index.clone(), + }, + )?[0] + .clone(); + + // Read current head pointer using the interface index + let handler_stack_head_read = rm.conditional_read( + &handler_stack_switch, + &Address { + tag: MemoryTag::HandlerStackHeads.allocate(cs.clone())?, + addr: interface_index.clone(), // Use index, not interface_id + }, + )?[0] + .clone(); + + // Read the node data (process_id, next_ptr) - only when handler operations are active + let handler_stack_node_read = rm.conditional_read( + &handler_stack_switch, + &Address { + tag: MemoryTag::HandlerStackArena.allocate(cs.clone())?, + addr: handler_stack_head_read.clone(), + }, + )?; + + // Handler stack memory writes + // Install handler: write new node and update head pointer + rm.conditional_write( + &switches.install_handler, + &Address { + tag: MemoryTag::HandlerStackArena.allocate(cs.clone())?, + addr: handler_stack_counter.clone(), + }, + &[ + switches + .install_handler + .select(&id_curr.clone(), &FpVar::new_constant(cs.clone(), F::ZERO)?)?, // Store current process ID, not interface_id + switches.install_handler.select( + &handler_stack_head_read.clone(), + &FpVar::new_constant(cs.clone(), F::ZERO)?, + )?, // Store current process ID, not interface_id + ], + )?; + + // Uninstall handler: update head pointer to next_ptr + let next_ptr = if handler_stack_node_read.len() >= 2 { + handler_stack_node_read[1].clone() + } else { + FpVar::zero() + }; + + rm.conditional_write( + &(&switches.install_handler | &switches.uninstall_handler), + &Address { + tag: MemoryTag::HandlerStackHeads.allocate(cs.clone())?, + addr: interface_index.clone(), // Use index, not interface_id + }, + &[if switches.install_handler.value()? { + handler_stack_counter.clone() + } else { + next_ptr + }], // new head pointer + )?; + Ok(Wires { id_curr, id_prev_is_some, id_prev_value, ref_arena_stack_ptr, + handler_stack_ptr: handler_stack_counter, p_len, @@ -724,6 +848,7 @@ impl Wires { ret, program_hash, caller, + interface_index, ret_is_some, curr_read_wires, @@ -737,6 +862,9 @@ impl Wires { must_burn_curr, rom_program_hash, ref_arena_read, + interface_rom_read, + handler_stack_head_read, + handler_stack_node_read, }) } } @@ -851,6 +979,7 @@ impl InterRoundWires { p_len, n_finalized: F::from(0), ref_arena_counter: F::ZERO, + handler_stack_counter: F::ZERO, } } @@ -891,6 +1020,14 @@ impl InterRoundWires { ); self.ref_arena_counter = res.ref_arena_stack_ptr.value().unwrap(); + + tracing::debug!( + "handler_stack_counter from {} to {}", + self.handler_stack_counter, + res.handler_stack_ptr.value().unwrap() + ); + + self.handler_stack_counter = res.handler_stack_ptr.value().unwrap(); } } @@ -1064,6 +1201,32 @@ impl LedgerOperation { config.opcode_var_values.val = *reff; config.opcode_var_values.ret = *ret; } + LedgerOperation::InstallHandler { interface_id } => { + config.execution_switches.install_handler = true; + + config.rom_switches.read_is_utxo_curr = true; + + config.opcode_var_values.val = *interface_id; + // interface_index will be computed in trace phase + } + LedgerOperation::UninstallHandler { interface_id } => { + config.execution_switches.uninstall_handler = true; + + config.rom_switches.read_is_utxo_curr = true; + + config.opcode_var_values.val = *interface_id; + // interface_index will be computed in trace phase + } + LedgerOperation::GetHandlerFor { + interface_id, + handler_id, + } => { + config.execution_switches.get_handler_for = true; + + config.opcode_var_values.val = *interface_id; + config.opcode_var_values.ret = *handler_id; + // interface_index will be computed in trace phase + } } config @@ -1181,13 +1344,17 @@ impl> StepCircuitBuilder { let next_wires = self.visit_yield(next_wires)?; let next_wires = self.visit_resume(next_wires)?; let next_wires = self.visit_burn(next_wires)?; + let next_wires = self.visit_program_hash(next_wires)?; let next_wires = self.visit_new_process(next_wires)?; let next_wires = self.visit_activation(next_wires)?; let next_wires = self.visit_init(next_wires)?; let next_wires = self.visit_bind(next_wires)?; let next_wires = self.visit_unbind(next_wires)?; let next_wires = self.visit_new_ref(next_wires)?; - let next_wires = self.visit_get(next_wires)?; + let next_wires = self.visit_get_ref(next_wires)?; + let next_wires = self.visit_install_handler(next_wires)?; + let next_wires = self.visit_uninstall_handler(next_wires)?; + let next_wires = self.visit_get_handler_for(next_wires)?; rm.finish_step(i == self.ops.len() - 1)?; @@ -1201,7 +1368,33 @@ impl> StepCircuitBuilder { Ok(irw) } + fn build_interface_mapping(&self) -> BTreeMap { + let mut unique_interfaces = BTreeSet::new(); + for op in self.ops.iter() { + match op { + LedgerOperation::InstallHandler { interface_id } => { + unique_interfaces.insert(interface_id); + } + LedgerOperation::UninstallHandler { interface_id } => { + unique_interfaces.insert(interface_id); + } + LedgerOperation::GetHandlerFor { interface_id, .. } => { + unique_interfaces.insert(interface_id); + } + _ => (), + } + } + + unique_interfaces + .iter() + .enumerate() + .map(|(index, interface_id)| (**interface_id, index)) + .collect() + } + pub fn trace_memory_ops(&mut self, params: >::Params) -> M { + let interface_mapping = self.build_interface_mapping(); + // initialize all the maps let mut mb = { let mut mb = M::new(params); @@ -1209,6 +1402,8 @@ impl> StepCircuitBuilder { mb.register_mem(MemoryTag::ProcessTable.into(), 1, "ROM_PROCESS_TABLE"); mb.register_mem(MemoryTag::MustBurn.into(), 1, "ROM_MUST_BURN"); mb.register_mem(MemoryTag::IsUtxo.into(), 1, "ROM_IS_UTXO"); + mb.register_mem(MemoryTag::Interfaces.into(), 1, "ROM_INTERFACES"); + mb.register_mem(MemoryTag::ExpectedInput.into(), 1, "RAM_EXPECTED_INPUT"); mb.register_mem(MemoryTag::Activation.into(), 1, "RAM_ACTIVATION"); mb.register_mem(MemoryTag::Init.into(), 1, "RAM_INIT"); @@ -1218,6 +1413,16 @@ impl> StepCircuitBuilder { mb.register_mem(MemoryTag::DidBurn.into(), 1, "RAM_DID_BURN"); mb.register_mem(MemoryTag::RefArena.into(), 1, "RAM_REF_ARENA"); mb.register_mem(MemoryTag::Ownership.into(), 1, "RAM_OWNERSHIP"); + mb.register_mem( + MemoryTag::HandlerStackArena.into(), + 2, + "RAM_HANDLER_STACK_ARENA", + ); + mb.register_mem( + MemoryTag::HandlerStackHeads.into(), + 1, + "RAM_HANDLER_STACK_HEADS", + ); for (pid, mod_hash) in self.instance.process_table.iter().enumerate() { mb.init( @@ -1337,8 +1542,59 @@ impl> StepCircuitBuilder { mb }; - // let mut curr_pid = self.instance.entrypoint.0 as u64; - // let mut prev_pid: Option = None; + // Collect unique interfaces first + let mut unique_interfaces = BTreeSet::new(); + for op in self.ops.iter() { + match op { + LedgerOperation::InstallHandler { interface_id } => { + unique_interfaces.insert(interface_id); + } + LedgerOperation::UninstallHandler { interface_id } => { + unique_interfaces.insert(interface_id); + } + LedgerOperation::GetHandlerFor { interface_id, .. } => { + unique_interfaces.insert(interface_id); + } + _ => (), + } + } + + // Initialize Interfaces ROM and HandlerStackHeads with contiguous indices + for (index, interface_id) in unique_interfaces.iter().enumerate() { + mb.init( + Address { + addr: index as u64, + tag: MemoryTag::Interfaces.into(), + }, + vec![F::from(interface_id.into_bigint().0[0] as u64)], + ); + + mb.init( + Address { + addr: index as u64, + tag: MemoryTag::HandlerStackHeads.into(), + }, + vec![F::from(0u64)], // null pointer (empty stack) + ); + } + + // Initialize handler stack arena nodes + let mut arena_counter = 0; + for op in self.ops.iter() { + match op { + LedgerOperation::InstallHandler { .. } => { + mb.init( + Address { + addr: arena_counter, + tag: MemoryTag::HandlerStackArena.into(), + }, + vec![F::ZERO, F::ZERO], // (interface_id, next_ptr) + ); + arena_counter += 1; + } + _ => (), + } + } // out of circuit memory operations. // this is needed to commit to the memory operations before-hand. @@ -1355,7 +1611,25 @@ impl> StepCircuitBuilder { ); for instr in &self.ops { - let config = instr.get_config(&irw); + let mut config = instr.get_config(&irw); + + // Compute interface index for handler operations + match instr { + LedgerOperation::InstallHandler { interface_id } => { + config.opcode_var_values.interface_index = + F::from(*interface_mapping.get(interface_id).unwrap_or(&0) as u64); + } + LedgerOperation::UninstallHandler { interface_id } => { + config.opcode_var_values.interface_index = + F::from(*interface_mapping.get(interface_id).unwrap_or(&0) as u64); + } + LedgerOperation::GetHandlerFor { interface_id, .. } => { + config.opcode_var_values.interface_index = + F::from(*interface_mapping.get(interface_id).unwrap_or(&0) as u64); + } + _ => {} + } + let curr_switches = config.mem_switches_curr; let target_switches = config.mem_switches_target; let rom_switches = config.rom_switches; @@ -1476,6 +1750,102 @@ impl> StepCircuitBuilder { ); } + let mut irw = InterRoundWires::new( + F::from(self.p_len() as u64), + self.instance.entrypoint.0 as u64, + ); + + // Handler stack memory operations - always perform for uniform circuit + for instr in self.ops.iter() { + let mut config = instr.get_config(&irw); + + // Compute interface index for handler operations + match instr { + LedgerOperation::InstallHandler { interface_id } => { + config.opcode_var_values.interface_index = + F::from(*interface_mapping.get(interface_id).unwrap_or(&0) as u64); + } + LedgerOperation::UninstallHandler { interface_id } => { + config.opcode_var_values.interface_index = + F::from(*interface_mapping.get(interface_id).unwrap_or(&0) as u64); + } + LedgerOperation::GetHandlerFor { interface_id, .. } => { + config.opcode_var_values.interface_index = + F::from(*interface_mapping.get(interface_id).unwrap_or(&0) as u64); + } + _ => {} + } + + let interface_index = config.opcode_var_values.interface_index; + + // Always read from Interfaces ROM + let handler_stack_switch = config.execution_switches.install_handler + || config.execution_switches.uninstall_handler + || config.execution_switches.get_handler_for; + + mb.conditional_read( + handler_stack_switch, + Address { + tag: MemoryTag::Interfaces.into(), + addr: interface_index.into_bigint().0[0], + }, + ); + + // Always read current head pointer (using interface index) + let current_head = mb.conditional_read( + handler_stack_switch, + Address { + tag: MemoryTag::HandlerStackHeads.into(), + addr: interface_index.into_bigint().0[0], // Use index, not interface_id + }, + )[0]; + + // Always read the node data + let node_data = mb.conditional_read( + handler_stack_switch, // Always read for uniform circuit + Address { + tag: MemoryTag::HandlerStackArena.into(), + addr: current_head.into_bigint().0[0], + }, + ); + + // Always write to arena (conditionally based on install_handler) + mb.conditional_write( + config.execution_switches.install_handler, + Address { + tag: MemoryTag::HandlerStackArena.into(), + addr: irw.handler_stack_counter.into_bigint().0[0], + }, + if config.execution_switches.install_handler { + vec![irw.id_curr, current_head] + } else { + vec![F::from(0), F::from(0)] + }, // Store (process_id, old_head_ptr) + ); + + // Always write to heads for install_handler + mb.conditional_write( + config.execution_switches.install_handler + || config.execution_switches.uninstall_handler, + Address { + tag: MemoryTag::HandlerStackHeads.into(), + addr: interface_index.into_bigint().0[0], // Use index, not interface_id + }, + vec![if config.execution_switches.install_handler { + irw.handler_stack_counter + } else if config.execution_switches.uninstall_handler { + node_data[1] + } else { + F::from(0) + }], + ); + + // Update IRW for next iteration if this is install_handler + if config.execution_switches.install_handler { + irw.handler_stack_counter += F::ONE; + } + } + let current_steps = self.ops.len(); if let Some(missing) = mb.required_steps().checked_sub(current_steps) { tracing::debug!("padding with {missing} Nop operations for scan"); @@ -1650,6 +2020,40 @@ impl> StepCircuitBuilder { }; Wires::from_irw(&irw, rm, curr_write, target_write) } + LedgerOperation::InstallHandler { interface_id } => { + let config = instruction.get_config(irw); + let irw = PreWires { + switches: ExecutionSwitches::install_handler(), + val: *interface_id, + interface_index: config.opcode_var_values.interface_index, + ..default + }; + Wires::from_irw(&irw, rm, curr_write, target_write) + } + LedgerOperation::UninstallHandler { interface_id } => { + let config = instruction.get_config(irw); + let irw = PreWires { + switches: ExecutionSwitches::uninstall_handler(), + val: *interface_id, + interface_index: config.opcode_var_values.interface_index, + ..default + }; + Wires::from_irw(&irw, rm, curr_write, target_write) + } + LedgerOperation::GetHandlerFor { + interface_id, + handler_id, + } => { + let config = instruction.get_config(irw); + let irw = PreWires { + switches: ExecutionSwitches::get_handler_for(), + val: *interface_id, + ret: *handler_id, + interface_index: config.opcode_var_values.interface_index, + ..default + }; + Wires::from_irw(&irw, rm, curr_write, target_write) + } } } #[tracing::instrument(target = "gr1cs", skip(self, wires))] @@ -1954,7 +2358,7 @@ impl> StepCircuitBuilder { } #[tracing::instrument(target = "gr1cs", skip_all)] - fn visit_get(&self, wires: Wires) -> Result { + fn visit_get_ref(&self, wires: Wires) -> Result { let switch = &wires.switches.get; // TODO: prove that reff is < ref_arena_stack_ptr ? @@ -1973,6 +2377,86 @@ impl> StepCircuitBuilder { Ok(wires) } + #[tracing::instrument(target = "gr1cs", skip_all)] + fn visit_program_hash(&self, wires: Wires) -> Result { + let switch = &wires.switches.program_hash; + + // Check that the program hash from the opcode matches the ROM lookup result + wires + .program_hash + .conditional_enforce_equal(&wires.rom_program_hash, switch)?; + + Ok(wires) + } + + #[tracing::instrument(target = "gr1cs", skip_all)] + fn visit_install_handler(&self, mut wires: Wires) -> Result { + let switch = &wires.switches.install_handler; + + // Only coordination scripts can install handlers + wires + .is_utxo_curr + .is_one()? + .conditional_enforce_equal(&Boolean::FALSE, switch)?; + + // Verify that Interfaces[interface_index] == interface_id + wires + .interface_rom_read + .conditional_enforce_equal(&wires.val, switch)?; + + // Update handler stack counter (allocate new node) + wires.handler_stack_ptr = switch.select( + &(&wires.handler_stack_ptr + &wires.constant_one), + &wires.handler_stack_ptr, + )?; + + Ok(wires) + } + + #[tracing::instrument(target = "gr1cs", skip_all)] + fn visit_uninstall_handler(&self, wires: Wires) -> Result { + let switch = &wires.switches.uninstall_handler; + + // Only coordination scripts can uninstall handlers + wires + .is_utxo_curr + .is_one()? + .conditional_enforce_equal(&Boolean::FALSE, switch)?; + + // Verify that Interfaces[interface_index] == interface_id + wires + .interface_rom_read + .conditional_enforce_equal(&wires.val, switch)?; + + // Read the node at current head: should contain (process_id, next_ptr) + let node_data = wires.handler_stack_node_read.clone(); + + // Verify the process_id in the node matches the current process (only installer can uninstall) + wires + .id_curr + .conditional_enforce_equal(&node_data[0], switch)?; + + Ok(wires) + } + + #[tracing::instrument(target = "gr1cs", skip_all)] + fn visit_get_handler_for(&self, wires: Wires) -> Result { + let switch = &wires.switches.get_handler_for; + + // Verify that Interfaces[interface_index] == interface_id + wires + .interface_rom_read + .conditional_enforce_equal(&wires.val, switch)?; + + // Read the node at current head: should contain (process_id, next_ptr) + let node_data = wires.handler_stack_node_read.clone(); + + // The process_id in the node IS the handler_id we want to return + wires.ret.conditional_enforce_equal(&node_data[0], switch)?; + + Ok(wires) + } + pub(crate) fn p_len(&self) -> usize { self.instance.process_table.len() } @@ -2028,6 +2512,7 @@ impl PreWires { ret: F::ZERO, program_hash: F::ZERO, caller: F::ZERO, + interface_index: F::ZERO, ret_is_some: false, id_prev_is_some: false, id_prev_value: F::ZERO, diff --git a/starstream_ivc_proto/src/circuit_test.rs b/starstream_ivc_proto/src/circuit_test.rs index 210f3c89..3acc8430 100644 --- a/starstream_ivc_proto/src/circuit_test.rs +++ b/starstream_ivc_proto/src/circuit_test.rs @@ -49,6 +49,10 @@ fn test_circuit_simple_resume() { val: ref_0, caller: p2, }, + WitLedgerEffect::GetHandlerFor { + interface_id: h(100), + handler_id: p2, + }, WitLedgerEffect::Yield { val: ref_1.clone(), // Yielding nothing ret: None, // Not expecting to be resumed again @@ -110,12 +114,18 @@ fn test_circuit_simple_resume() { ret: ref_1.clone(), id_prev: None, }, + WitLedgerEffect::InstallHandler { + interface_id: h(100), + }, WitLedgerEffect::Resume { target: p0, val: ref_0, ret: ref_1, id_prev: Some(p1), }, + WitLedgerEffect::UninstallHandler { + interface_id: h(100), + }, ], }; diff --git a/starstream_ivc_proto/src/lib.rs b/starstream_ivc_proto/src/lib.rs index 0a1a710a..76550bf4 100644 --- a/starstream_ivc_proto/src/lib.rs +++ b/starstream_ivc_proto/src/lib.rs @@ -95,7 +95,16 @@ pub enum LedgerOperation { reff: F, ret: F, }, - + InstallHandler { + interface_id: F, + }, + UninstallHandler { + interface_id: F, + }, + GetHandlerFor { + interface_id: F, + handler_id: F, + }, /// Auxiliary instructions. /// /// Nop is used as a dummy instruction to build the circuit layout on the @@ -282,9 +291,30 @@ fn make_interleaved_trace(inst: &InterleavingInstance) -> Vec continue, + starstream_mock_ledger::WitLedgerEffect::ProgramHash { + target, + program_hash, + } => LedgerOperation::ProgramHash { + target: (target.0 as u64).into(), + program_hash: F::from(program_hash.0[0]), + }, + starstream_mock_ledger::WitLedgerEffect::InstallHandler { interface_id } => { + LedgerOperation::InstallHandler { + interface_id: F::from(interface_id.0[0]), + } + } + starstream_mock_ledger::WitLedgerEffect::UninstallHandler { interface_id } => { + LedgerOperation::UninstallHandler { + interface_id: F::from(interface_id.0[0]), + } + } + starstream_mock_ledger::WitLedgerEffect::GetHandlerFor { + interface_id, + handler_id, + } => LedgerOperation::GetHandlerFor { + interface_id: F::from(interface_id.0[0]), + handler_id: (handler_id.0 as u64).into(), + }, }; ops.push(op); From dd8b698d15d140a27b4b3f7f39ae4dc4ce35c41c Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Mon, 5 Jan 2026 02:02:50 -0300 Subject: [PATCH 056/152] handler memory refactoring/simplifications Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/src/circuit.rs | 472 +++++++++++++++------------- 1 file changed, 260 insertions(+), 212 deletions(-) diff --git a/starstream_ivc_proto/src/circuit.rs b/starstream_ivc_proto/src/circuit.rs index 6eb99727..8bcd4d89 100644 --- a/starstream_ivc_proto/src/circuit.rs +++ b/starstream_ivc_proto/src/circuit.rs @@ -2,12 +2,10 @@ use crate::memory::{self, Address, IVCMemory}; use crate::value_to_field; use crate::{F, LedgerOperation, memory::IVCMemoryAllocated}; use ark_ff::{AdditiveGroup, Field as _, PrimeField}; -use ark_r1cs_std::alloc::AllocationMode; use ark_r1cs_std::fields::FieldVar; use ark_r1cs_std::{ GR1CSVar as _, alloc::AllocVar as _, eq::EqGadget, fields::fp::FpVar, prelude::Boolean, }; -use ark_relations::gr1cs; use ark_relations::{ gr1cs::{ConstraintSystemRef, LinearCombination, SynthesisError, Variable}, ns, @@ -18,6 +16,79 @@ use std::marker::PhantomData; use std::ops::Not; use tracing::debug_span; +#[derive(Debug, Clone)] +struct InterfaceResolver { + mapping: BTreeMap, +} + +impl InterfaceResolver { + fn new(ops: &[LedgerOperation]) -> Self { + let mut unique_interfaces = BTreeSet::new(); + for op in ops.iter() { + match op { + LedgerOperation::InstallHandler { interface_id } => { + unique_interfaces.insert(*interface_id); + } + LedgerOperation::UninstallHandler { interface_id } => { + unique_interfaces.insert(*interface_id); + } + LedgerOperation::GetHandlerFor { interface_id, .. } => { + unique_interfaces.insert(*interface_id); + } + _ => (), + } + } + + let mapping = unique_interfaces + .iter() + .enumerate() + .map(|(index, interface_id)| (*interface_id, index)) + .collect(); + + Self { mapping } + } + + fn get_index(&self, interface_id: F) -> usize { + *self.mapping.get(&interface_id).unwrap_or(&0) + } + + fn get_interface_index_field(&self, interface_id: F) -> F { + F::from(self.get_index(interface_id) as u64) + } + + fn interfaces(&self) -> Vec { + let mut interfaces = vec![F::ZERO; self.mapping.len()]; + for (interface_id, index) in &self.mapping { + interfaces[*index] = *interface_id; + } + interfaces + } +} + +#[derive(Clone)] +struct HandlerState { + handler_stack_node_read: Vec>, + interface_rom_read: FpVar, +} + +#[derive(Clone, Debug, Default)] +pub struct HandlerSwitchboard { + pub read_interface: bool, + pub read_head: bool, + pub read_node: bool, + pub write_node: bool, + pub write_head: bool, +} + +#[derive(Clone)] +pub struct HandlerSwitchboardWires { + pub read_interface: Boolean, + pub read_head: Boolean, + pub read_node: Boolean, + pub write_node: Boolean, + pub write_head: Boolean, +} + #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum MemoryTag { // ROM tags @@ -96,6 +167,7 @@ struct OpcodeConfig { mem_switches_curr: MemSwitchboard, mem_switches_target: MemSwitchboard, rom_switches: RomSwitchboard, + handler_switches: HandlerSwitchboard, execution_switches: ExecutionSwitches, opcode_var_values: OpcodeVarValues, } @@ -326,7 +398,6 @@ struct OpcodeVarValues { ret_is_some: bool, id_prev_is_some: bool, id_prev_value: F, - interface_index: F, } impl Default for ExecutionSwitches { @@ -363,7 +434,6 @@ impl Default for OpcodeVarValues { ret_is_some: false, id_prev_is_some: false, id_prev_value: F::ZERO, - interface_index: F::ZERO, } } } @@ -415,6 +485,8 @@ pub struct StepCircuitBuilder { write_ops: Vec<(ProgramState, ProgramState)>, mem_switches: Vec<(MemSwitchboard, MemSwitchboard)>, rom_switches: Vec, + handler_switches: Vec, + interface_resolver: InterfaceResolver, mem: PhantomData, } @@ -439,7 +511,6 @@ pub struct Wires { program_hash: FpVar, caller: FpVar, ret_is_some: Boolean, - interface_index: FpVar, curr_read_wires: ProgramStateWires, curr_write_wires: ProgramStateWires, @@ -448,9 +519,7 @@ pub struct Wires { target_write_wires: ProgramStateWires, ref_arena_read: FpVar, - interface_rom_read: FpVar, - handler_stack_head_read: FpVar, - handler_stack_node_read: Vec>, + handler_state: HandlerState, // ROM lookup results is_utxo_curr: FpVar, @@ -492,6 +561,7 @@ pub struct PreWires { curr_mem_switches: MemSwitchboard, target_mem_switches: MemSwitchboard, rom_switches: RomSwitchboard, + handler_switches: HandlerSwitchboard, irw: InterRoundWires, @@ -639,6 +709,8 @@ define_program_state_operations!( ); impl Wires { + // IMPORTANT: no rust branches in this function, since the purpose of this + // is to get the exact same layout for all the opcodes pub fn from_irw>( vals: &PreWires, rm: &mut M, @@ -671,7 +743,6 @@ impl Wires { let program_hash = FpVar::::new_witness(cs.clone(), || Ok(vals.program_hash))?; let caller = FpVar::::new_witness(cs.clone(), || Ok(vals.caller))?; - let interface_index = FpVar::::new_witness(cs.clone(), || Ok(vals.interface_index))?; let curr_mem_switches = MemSwitchboardWires::allocate(cs.clone(), &vals.curr_mem_switches)?; let target_mem_switches = @@ -755,78 +826,71 @@ impl Wires { )?[0] .clone(); - // Handler stack memory operations - let handler_stack_switch = - &switches.install_handler | &switches.uninstall_handler | &switches.get_handler_for; + let handler_switches = + HandlerSwitchboardWires::allocate(cs.clone(), &vals.handler_switches)?; + + let interface_index_var = FpVar::new_witness(cs.clone(), || Ok(vals.interface_index))?; - // Read interface_id from Interfaces ROM using the index let interface_rom_read = rm.conditional_read( - &handler_stack_switch, + &handler_switches.read_interface, &Address { tag: MemoryTag::Interfaces.allocate(cs.clone())?, - addr: interface_index.clone(), + addr: interface_index_var.clone(), }, )?[0] .clone(); - // Read current head pointer using the interface index let handler_stack_head_read = rm.conditional_read( - &handler_stack_switch, + &handler_switches.read_head, &Address { tag: MemoryTag::HandlerStackHeads.allocate(cs.clone())?, - addr: interface_index.clone(), // Use index, not interface_id + addr: interface_index_var.clone(), }, )?[0] .clone(); - // Read the node data (process_id, next_ptr) - only when handler operations are active let handler_stack_node_read = rm.conditional_read( - &handler_stack_switch, + &handler_switches.read_node, &Address { tag: MemoryTag::HandlerStackArena.allocate(cs.clone())?, addr: handler_stack_head_read.clone(), }, )?; - // Handler stack memory writes - // Install handler: write new node and update head pointer rm.conditional_write( - &switches.install_handler, + &handler_switches.write_node, &Address { tag: MemoryTag::HandlerStackArena.allocate(cs.clone())?, addr: handler_stack_counter.clone(), }, &[ - switches - .install_handler - .select(&id_curr.clone(), &FpVar::new_constant(cs.clone(), F::ZERO)?)?, // Store current process ID, not interface_id - switches.install_handler.select( - &handler_stack_head_read.clone(), + handler_switches + .write_node + .select(&id_curr, &FpVar::new_constant(cs.clone(), F::ZERO)?)?, // process_id + handler_switches.write_node.select( + &handler_stack_head_read, &FpVar::new_constant(cs.clone(), F::ZERO)?, - )?, // Store current process ID, not interface_id + )?, // next_ptr (old head) ], )?; - // Uninstall handler: update head pointer to next_ptr - let next_ptr = if handler_stack_node_read.len() >= 2 { - handler_stack_node_read[1].clone() - } else { - FpVar::zero() - }; - rm.conditional_write( - &(&switches.install_handler | &switches.uninstall_handler), + &handler_switches.write_head, &Address { tag: MemoryTag::HandlerStackHeads.allocate(cs.clone())?, - addr: interface_index.clone(), // Use index, not interface_id + addr: interface_index_var.clone(), }, - &[if switches.install_handler.value()? { - handler_stack_counter.clone() - } else { - next_ptr - }], // new head pointer + &[handler_switches.write_node.select( + &handler_stack_counter, // install: new node becomes head + &handler_stack_node_read[1], + )?], )?; + let handler_state = HandlerState { + handler_stack_node_read, + interface_rom_read: interface_rom_read.clone(), + }; + Ok(Wires { id_curr, id_prev_is_some, @@ -848,7 +912,6 @@ impl Wires { ret, program_hash, caller, - interface_index, ret_is_some, curr_read_wires, @@ -862,9 +925,7 @@ impl Wires { must_burn_curr, rom_program_hash, ref_arena_read, - interface_rom_read, - handler_stack_head_read, - handler_stack_node_read, + handler_state, }) } } @@ -1037,6 +1098,7 @@ impl LedgerOperation { mem_switches_curr: MemSwitchboard::default(), mem_switches_target: MemSwitchboard::default(), rom_switches: RomSwitchboard::default(), + handler_switches: HandlerSwitchboard::default(), execution_switches: ExecutionSwitches::default(), opcode_var_values: OpcodeVarValues::default(), }; @@ -1203,19 +1265,25 @@ impl LedgerOperation { } LedgerOperation::InstallHandler { interface_id } => { config.execution_switches.install_handler = true; - config.rom_switches.read_is_utxo_curr = true; + config.handler_switches.read_interface = true; + config.handler_switches.read_head = true; + config.handler_switches.write_node = true; + config.handler_switches.write_head = true; + config.opcode_var_values.val = *interface_id; - // interface_index will be computed in trace phase } LedgerOperation::UninstallHandler { interface_id } => { config.execution_switches.uninstall_handler = true; - config.rom_switches.read_is_utxo_curr = true; + config.handler_switches.read_interface = true; + config.handler_switches.read_head = true; + config.handler_switches.read_node = true; + config.handler_switches.write_head = true; + config.opcode_var_values.val = *interface_id; - // interface_index will be computed in trace phase } LedgerOperation::GetHandlerFor { interface_id, @@ -1223,9 +1291,12 @@ impl LedgerOperation { } => { config.execution_switches.get_handler_for = true; + config.handler_switches.read_interface = true; + config.handler_switches.read_head = true; + config.handler_switches.read_node = true; + config.opcode_var_values.val = *interface_id; config.opcode_var_values.ret = *handler_id; - // interface_index will be computed in trace phase } } @@ -1315,11 +1386,15 @@ impl> StepCircuitBuilder { .map(|v| value_to_field(v.last_yield.clone())) .collect(); + let interface_resolver = InterfaceResolver::new(&ops); + Self { ops, write_ops: vec![], mem_switches: vec![], rom_switches: vec![], + handler_switches: vec![], + interface_resolver, mem: PhantomData, instance, last_yield, @@ -1368,33 +1443,7 @@ impl> StepCircuitBuilder { Ok(irw) } - fn build_interface_mapping(&self) -> BTreeMap { - let mut unique_interfaces = BTreeSet::new(); - for op in self.ops.iter() { - match op { - LedgerOperation::InstallHandler { interface_id } => { - unique_interfaces.insert(interface_id); - } - LedgerOperation::UninstallHandler { interface_id } => { - unique_interfaces.insert(interface_id); - } - LedgerOperation::GetHandlerFor { interface_id, .. } => { - unique_interfaces.insert(interface_id); - } - _ => (), - } - } - - unique_interfaces - .iter() - .enumerate() - .map(|(index, interface_id)| (**interface_id, index)) - .collect() - } - pub fn trace_memory_ops(&mut self, params: >::Params) -> M { - let interface_mapping = self.build_interface_mapping(); - // initialize all the maps let mut mb = { let mut mb = M::new(params); @@ -1542,59 +1591,8 @@ impl> StepCircuitBuilder { mb }; - // Collect unique interfaces first - let mut unique_interfaces = BTreeSet::new(); - for op in self.ops.iter() { - match op { - LedgerOperation::InstallHandler { interface_id } => { - unique_interfaces.insert(interface_id); - } - LedgerOperation::UninstallHandler { interface_id } => { - unique_interfaces.insert(interface_id); - } - LedgerOperation::GetHandlerFor { interface_id, .. } => { - unique_interfaces.insert(interface_id); - } - _ => (), - } - } - - // Initialize Interfaces ROM and HandlerStackHeads with contiguous indices - for (index, interface_id) in unique_interfaces.iter().enumerate() { - mb.init( - Address { - addr: index as u64, - tag: MemoryTag::Interfaces.into(), - }, - vec![F::from(interface_id.into_bigint().0[0] as u64)], - ); - - mb.init( - Address { - addr: index as u64, - tag: MemoryTag::HandlerStackHeads.into(), - }, - vec![F::from(0u64)], // null pointer (empty stack) - ); - } - - // Initialize handler stack arena nodes - let mut arena_counter = 0; - for op in self.ops.iter() { - match op { - LedgerOperation::InstallHandler { .. } => { - mb.init( - Address { - addr: arena_counter, - tag: MemoryTag::HandlerStackArena.into(), - }, - vec![F::ZERO, F::ZERO], // (interface_id, next_ptr) - ); - arena_counter += 1; - } - _ => (), - } - } + // Initialize handler memory using simplified approach + self.init_handler_memory(&mut mb); // out of circuit memory operations. // this is needed to commit to the memory operations before-hand. @@ -1611,33 +1609,18 @@ impl> StepCircuitBuilder { ); for instr in &self.ops { - let mut config = instr.get_config(&irw); - - // Compute interface index for handler operations - match instr { - LedgerOperation::InstallHandler { interface_id } => { - config.opcode_var_values.interface_index = - F::from(*interface_mapping.get(interface_id).unwrap_or(&0) as u64); - } - LedgerOperation::UninstallHandler { interface_id } => { - config.opcode_var_values.interface_index = - F::from(*interface_mapping.get(interface_id).unwrap_or(&0) as u64); - } - LedgerOperation::GetHandlerFor { interface_id, .. } => { - config.opcode_var_values.interface_index = - F::from(*interface_mapping.get(interface_id).unwrap_or(&0) as u64); - } - _ => {} - } + let config = instr.get_config(&irw); let curr_switches = config.mem_switches_curr; let target_switches = config.mem_switches_target; let rom_switches = config.rom_switches; + let handler_switches = config.handler_switches; self.mem_switches .push((curr_switches.clone(), target_switches.clone())); self.rom_switches.push(rom_switches.clone()); + self.handler_switches.push(handler_switches.clone()); let target_addr = match instr { LedgerOperation::Resume { target, .. } => Some(*target), @@ -1750,93 +1733,132 @@ impl> StepCircuitBuilder { ); } + // Handler stack memory operations - always perform for uniform circuit + self.trace_handler_stack_mem_opcodes(&mut mb); + + let current_steps = self.ops.len(); + if let Some(missing) = mb.required_steps().checked_sub(current_steps) { + tracing::debug!("padding with {missing} Nop operations for scan"); + self.ops + .extend(std::iter::repeat_n(LedgerOperation::Nop {}, missing)); + } + + mb + } + + fn init_handler_memory(&self, mem: &mut M) { + let interfaces = self.interface_resolver.interfaces(); + + // Initialize Interfaces ROM and HandlerStackHeads + for (index, interface_id) in interfaces.iter().enumerate() { + mem.init( + Address { + addr: index as u64, + tag: MemoryTag::Interfaces.into(), + }, + vec![*interface_id], + ); + + mem.init( + Address { + addr: index as u64, + tag: MemoryTag::HandlerStackHeads.into(), + }, + vec![F::ZERO], // null pointer (empty stack) + ); + } + + // Pre-allocate arena nodes for all InstallHandler operations + let install_count = self + .ops + .iter() + .filter(|op| matches!(op, LedgerOperation::InstallHandler { .. })) + .count(); + + for i in 0..install_count { + mem.init( + Address { + addr: i as u64, + tag: MemoryTag::HandlerStackArena.into(), + }, + vec![F::ZERO, F::ZERO], // (process_id, next_ptr) + ); + } + } + + fn trace_handler_stack_mem_opcodes(&mut self, mb: &mut M) { let mut irw = InterRoundWires::new( F::from(self.p_len() as u64), self.instance.entrypoint.0 as u64, ); - // Handler stack memory operations - always perform for uniform circuit for instr in self.ops.iter() { - let mut config = instr.get_config(&irw); - - // Compute interface index for handler operations - match instr { - LedgerOperation::InstallHandler { interface_id } => { - config.opcode_var_values.interface_index = - F::from(*interface_mapping.get(interface_id).unwrap_or(&0) as u64); - } - LedgerOperation::UninstallHandler { interface_id } => { - config.opcode_var_values.interface_index = - F::from(*interface_mapping.get(interface_id).unwrap_or(&0) as u64); - } - LedgerOperation::GetHandlerFor { interface_id, .. } => { - config.opcode_var_values.interface_index = - F::from(*interface_mapping.get(interface_id).unwrap_or(&0) as u64); - } - _ => {} - } - - let interface_index = config.opcode_var_values.interface_index; - - // Always read from Interfaces ROM - let handler_stack_switch = config.execution_switches.install_handler - || config.execution_switches.uninstall_handler - || config.execution_switches.get_handler_for; + let config = instr.get_config(&irw); + + // Get interface index for handler operations + let interface_index = match instr { + LedgerOperation::InstallHandler { interface_id } => self + .interface_resolver + .get_interface_index_field(*interface_id), + LedgerOperation::UninstallHandler { interface_id } => self + .interface_resolver + .get_interface_index_field(*interface_id), + LedgerOperation::GetHandlerFor { interface_id, .. } => self + .interface_resolver + .get_interface_index_field(*interface_id), + _ => F::ZERO, + }; + // Trace handler memory operations directly mb.conditional_read( - handler_stack_switch, + config.handler_switches.read_interface, Address { tag: MemoryTag::Interfaces.into(), addr: interface_index.into_bigint().0[0], }, ); - // Always read current head pointer (using interface index) let current_head = mb.conditional_read( - handler_stack_switch, + config.handler_switches.read_head, Address { tag: MemoryTag::HandlerStackHeads.into(), - addr: interface_index.into_bigint().0[0], // Use index, not interface_id + addr: interface_index.into_bigint().0[0], }, )[0]; - // Always read the node data let node_data = mb.conditional_read( - handler_stack_switch, // Always read for uniform circuit + config.handler_switches.read_node, Address { tag: MemoryTag::HandlerStackArena.into(), addr: current_head.into_bigint().0[0], }, ); - // Always write to arena (conditionally based on install_handler) mb.conditional_write( - config.execution_switches.install_handler, + config.handler_switches.write_node, Address { tag: MemoryTag::HandlerStackArena.into(), addr: irw.handler_stack_counter.into_bigint().0[0], }, - if config.execution_switches.install_handler { + if config.handler_switches.write_node { vec![irw.id_curr, current_head] } else { - vec![F::from(0), F::from(0)] - }, // Store (process_id, old_head_ptr) + vec![F::ZERO, F::ZERO] + }, ); - // Always write to heads for install_handler mb.conditional_write( - config.execution_switches.install_handler - || config.execution_switches.uninstall_handler, + config.handler_switches.write_head, Address { tag: MemoryTag::HandlerStackHeads.into(), - addr: interface_index.into_bigint().0[0], // Use index, not interface_id + addr: interface_index.into_bigint().0[0], }, - vec![if config.execution_switches.install_handler { + vec![if config.handler_switches.write_node { irw.handler_stack_counter - } else if config.execution_switches.uninstall_handler { - node_data[1] + } else if config.handler_switches.write_head { + node_data.get(1).copied().unwrap_or(F::ZERO) } else { - F::from(0) + F::ZERO }], ); @@ -1845,15 +1867,6 @@ impl> StepCircuitBuilder { irw.handler_stack_counter += F::ONE; } } - - let current_steps = self.ops.len(); - if let Some(missing) = mb.required_steps().checked_sub(current_steps) { - tracing::debug!("padding with {missing} Nop operations for scan"); - self.ops - .extend(std::iter::repeat_n(LedgerOperation::Nop {}, missing)); - } - - mb } #[tracing::instrument(target = "gr1cs", skip_all)] @@ -1867,12 +1880,29 @@ impl> StepCircuitBuilder { let (curr_write, target_write) = &self.write_ops[i]; let (curr_mem_switches, target_mem_switches) = &self.mem_switches[i]; let rom_switches = &self.rom_switches[i]; + let handler_switches = &self.handler_switches[i]; + + // Compute interface index for handler operations + let interface_index = match instruction { + LedgerOperation::InstallHandler { interface_id } => self + .interface_resolver + .get_interface_index_field(*interface_id), + LedgerOperation::UninstallHandler { interface_id } => self + .interface_resolver + .get_interface_index_field(*interface_id), + LedgerOperation::GetHandlerFor { interface_id, .. } => self + .interface_resolver + .get_interface_index_field(*interface_id), + _ => F::ZERO, + }; let default = PreWires::new( irw.clone(), curr_mem_switches.clone(), target_mem_switches.clone(), rom_switches.clone(), + handler_switches.clone(), + interface_index, ); match instruction { @@ -2021,21 +2051,17 @@ impl> StepCircuitBuilder { Wires::from_irw(&irw, rm, curr_write, target_write) } LedgerOperation::InstallHandler { interface_id } => { - let config = instruction.get_config(irw); let irw = PreWires { switches: ExecutionSwitches::install_handler(), val: *interface_id, - interface_index: config.opcode_var_values.interface_index, ..default }; Wires::from_irw(&irw, rm, curr_write, target_write) } LedgerOperation::UninstallHandler { interface_id } => { - let config = instruction.get_config(irw); let irw = PreWires { switches: ExecutionSwitches::uninstall_handler(), val: *interface_id, - interface_index: config.opcode_var_values.interface_index, ..default }; Wires::from_irw(&irw, rm, curr_write, target_write) @@ -2044,12 +2070,10 @@ impl> StepCircuitBuilder { interface_id, handler_id, } => { - let config = instruction.get_config(irw); let irw = PreWires { switches: ExecutionSwitches::get_handler_for(), val: *interface_id, ret: *handler_id, - interface_index: config.opcode_var_values.interface_index, ..default }; Wires::from_irw(&irw, rm, curr_write, target_write) @@ -2400,7 +2424,9 @@ impl> StepCircuitBuilder { .conditional_enforce_equal(&Boolean::FALSE, switch)?; // Verify that Interfaces[interface_index] == interface_id + // This ensures the interface index witness is correct wires + .handler_state .interface_rom_read .conditional_enforce_equal(&wires.val, switch)?; @@ -2424,12 +2450,14 @@ impl> StepCircuitBuilder { .conditional_enforce_equal(&Boolean::FALSE, switch)?; // Verify that Interfaces[interface_index] == interface_id + // This ensures the interface index witness is correct wires + .handler_state .interface_rom_read .conditional_enforce_equal(&wires.val, switch)?; // Read the node at current head: should contain (process_id, next_ptr) - let node_data = wires.handler_stack_node_read.clone(); + let node_data = &wires.handler_state.handler_stack_node_read; // Verify the process_id in the node matches the current process (only installer can uninstall) wires @@ -2444,12 +2472,14 @@ impl> StepCircuitBuilder { let switch = &wires.switches.get_handler_for; // Verify that Interfaces[interface_index] == interface_id + // This ensures the interface index witness is correct wires + .handler_state .interface_rom_read .conditional_enforce_equal(&wires.val, switch)?; // Read the node at current head: should contain (process_id, next_ptr) - let node_data = wires.handler_stack_node_read.clone(); + let node_data = &wires.handler_state.handler_stack_node_read; // The process_id in the node IS the handler_id we want to return wires.ret.conditional_enforce_equal(&node_data[0], switch)?; @@ -2503,6 +2533,8 @@ impl PreWires { curr_mem_switches: MemSwitchboard, target_mem_switches: MemSwitchboard, rom_switches: RomSwitchboard, + handler_switches: HandlerSwitchboard, + interface_index: F, ) -> Self { Self { switches: ExecutionSwitches::default(), @@ -2512,13 +2544,14 @@ impl PreWires { ret: F::ZERO, program_hash: F::ZERO, caller: F::ZERO, - interface_index: F::ZERO, + interface_index, ret_is_some: false, id_prev_is_some: false, id_prev_value: F::ZERO, curr_mem_switches, target_mem_switches, rom_switches, + handler_switches, } } pub fn debug_print(&self) { @@ -2569,6 +2602,21 @@ impl RomSwitchboardWires { } } +impl HandlerSwitchboardWires { + pub fn allocate( + cs: ConstraintSystemRef, + switches: &HandlerSwitchboard, + ) -> Result { + Ok(Self { + read_interface: Boolean::new_witness(cs.clone(), || Ok(switches.read_interface))?, + read_head: Boolean::new_witness(cs.clone(), || Ok(switches.read_head))?, + read_node: Boolean::new_witness(cs.clone(), || Ok(switches.read_node))?, + write_node: Boolean::new_witness(cs.clone(), || Ok(switches.write_node))?, + write_head: Boolean::new_witness(cs.clone(), || Ok(switches.write_head))?, + }) + } +} + impl ProgramState { pub fn dummy() -> Self { Self { From 0569adbf345380efb05f9b72c274c8d43f0e5b1b Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Mon, 5 Jan 2026 15:30:07 -0300 Subject: [PATCH 057/152] use dummy public instance for dummy circuit Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/src/lib.rs | 208 +++----------------------------- 1 file changed, 19 insertions(+), 189 deletions(-) diff --git a/starstream_ivc_proto/src/lib.rs b/starstream_ivc_proto/src/lib.rs index 76550bf4..52f23978 100644 --- a/starstream_ivc_proto/src/lib.rs +++ b/starstream_ivc_proto/src/lib.rs @@ -27,7 +27,7 @@ use neo_ccs::CcsStructure; use neo_fold::pi_ccs::FoldingMode; use neo_fold::session::FoldingSession; use neo_params::NeoParams; -use starstream_mock_ledger::InterleavingInstance; +use starstream_mock_ledger::{InterleavingInstance, ProcessId}; type F = FpGoldilocks; @@ -121,7 +121,7 @@ const SCAN_BATCH_SIZE: usize = 10; // const SCAN_BATCH_SIZE: usize = 200; pub fn prove(inst: InterleavingInstance) -> Result { - let shape_ccs = ccs_step_shape(inst.clone())?; + let shape_ccs = ccs_step_shape()?; // map all the disjoints vectors of traces (one per process) into a single // list, which is simpler to think about for ivc. @@ -327,7 +327,7 @@ fn value_to_field(val: starstream_mock_ledger::Value) -> F { F::from(val.0[0]) } -fn ccs_step_shape(inst: InterleavingInstance) -> Result, SynthesisError> { +fn ccs_step_shape() -> Result, SynthesisError> { let _span = tracing::debug_span!("dummy circuit").entered(); tracing::debug!("constructing nop circuit to get initial (stable) ccs shape"); @@ -340,6 +340,22 @@ fn ccs_step_shape(inst: InterleavingInstance) -> Result>::new( inst, vec![LedgerOperation::Nop {}], @@ -360,189 +376,3 @@ fn ccs_step_shape(inst: InterleavingInstance) -> Result>(); - - // let tx = Transaction::new_unproven( - // changes.clone(), - // vec![ - // LedgerOperation::Nop {}, - // LedgerOperation::Resume { - // target: utxo_id2, - // val: F::from(0), - // ret: F::from(0), - // }, - // LedgerOperation::DropUtxo { utxo_id: utxo_id2 }, - // LedgerOperation::Resume { - // target: utxo_id3, - // val: F::from(42), - // ret: F::from(43), - // }, - // LedgerOperation::YieldResume { - // utxo_id: utxo_id3, - // output: F::from(42), - // }, - // LedgerOperation::Yield { - // utxo_id: utxo_id3, - // input: F::from(43), - // }, - // ], - // ); - - // let proof = tx.prove().unwrap(); - - // proof.verify(changes); - // } - - // #[test] - // #[should_panic] - // fn test_fail_starstream_tx_resume_mismatch() { - // let utxo_id1: ProgramId = ProgramId::from(110); - - // let changes = vec![( - // utxo_id1, - // UtxoChange { - // output_before: F::from(0), - // output_after: F::from(43), - // consumed: false, - // }, - // )] - // .into_iter() - // .collect::>(); - - // let tx = Transaction::new_unproven( - // changes.clone(), - // vec![ - // LedgerOperation::Nop {}, - // LedgerOperation::Resume { - // target: utxo_id1, - // val: F::from(42), - // ret: F::from(43), - // }, - // LedgerOperation::YieldResume { - // utxo_id: utxo_id1, - // output: F::from(42000), - // }, - // LedgerOperation::Yield { - // utxo_id: utxo_id1, - // input: F::from(43), - // }, - // ], - // ); - - // let proof = tx.prove().unwrap(); - - // proof.verify(changes); - // } - - // #[test] - // #[should_panic] - // fn test_starstream_tx_invalid_witness() { - // init_test_logging(); - - // let utxo_id1: ProgramId = ProgramId::from(110); - // let utxo_id2: ProgramId = ProgramId::from(300); - // let utxo_id3: ProgramId = ProgramId::from(400); - - // let changes = vec![ - // ( - // utxo_id1, - // UtxoChange { - // output_before: F::from(5), - // output_after: F::from(5), - // consumed: false, - // }, - // ), - // ( - // utxo_id2, - // UtxoChange { - // output_before: F::from(4), - // output_after: F::from(0), - // consumed: true, - // }, - // ), - // ( - // utxo_id3, - // UtxoChange { - // output_before: F::from(5), - // output_after: F::from(43), - // consumed: false, - // }, - // ), - // ] - // .into_iter() - // .collect::>(); - - // let tx = Transaction::new_unproven( - // changes.clone(), - // vec![ - // LedgerOperation::Nop {}, - // LedgerOperation::Resume { - // target: utxo_id2, - // val: F::from(0), - // ret: F::from(0), - // }, - // LedgerOperation::DropUtxo { utxo_id: utxo_id2 }, - // LedgerOperation::Resume { - // target: utxo_id3, - // val: F::from(42), - // // Invalid: output should be F::from(43) to match output_after, - // // but we're providing a mismatched value - // ret: F::from(999), - // }, - // LedgerOperation::YieldResume { - // utxo_id: utxo_id3, - // output: F::from(42), - // }, - // LedgerOperation::Yield { - // utxo_id: utxo_id3, - // // Invalid: input should match Resume output but doesn't - // input: F::from(999), - // }, - // ], - // ); - - // // This should fail during proving because the witness is invalid - // tx.prove().unwrap(); - // } -} From eefb511cd56627c13058e1a9026f711005754ade Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Tue, 6 Jan 2026 20:06:45 -0300 Subject: [PATCH 058/152] wip: port the circuit to the new (twist-and-shout-enabled) nightstream api Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- Cargo.lock | 2 + starstream_ivc_proto/Cargo.toml | 2 + starstream_ivc_proto/src/lib.rs | 140 +++++++---- starstream_ivc_proto/src/neo.rs | 429 +++++++++++++++----------------- 4 files changed, 302 insertions(+), 271 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index bbee4ce7..148014b5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3027,7 +3027,9 @@ dependencies = [ "neo-ccs", "neo-fold", "neo-math", + "neo-memory", "neo-params", + "neo-vm-trace", "p3-field", "p3-goldilocks", "p3-poseidon2", diff --git a/starstream_ivc_proto/Cargo.toml b/starstream_ivc_proto/Cargo.toml index d92b5959..1d94cd57 100644 --- a/starstream_ivc_proto/Cargo.toml +++ b/starstream_ivc_proto/Cargo.toml @@ -18,6 +18,8 @@ neo-math = { git = "https://github.com/nicarq/Nightstream.git", rev = "0713b5dda neo-ccs = { git = "https://github.com/nicarq/Nightstream.git", rev = "0713b5dda6b1e4b924d59f1dd0e1fc51a6495667" } neo-ajtai = { git = "https://github.com/nicarq/Nightstream.git", rev = "0713b5dda6b1e4b924d59f1dd0e1fc51a6495667" } neo-params = { git = "https://github.com/nicarq/Nightstream.git", rev = "0713b5dda6b1e4b924d59f1dd0e1fc51a6495667" } +neo-vm-trace = { git = "https://github.com/nicarq/Nightstream.git", rev = "0713b5dda6b1e4b924d59f1dd0e1fc51a6495667" } +neo-memory = { git = "https://github.com/nicarq/Nightstream.git", rev = "0713b5dda6b1e4b924d59f1dd0e1fc51a6495667" } starstream_mock_ledger = { path = "../starstream_mock_ledger" } diff --git a/starstream_ivc_proto/src/lib.rs b/starstream_ivc_proto/src/lib.rs index 52f23978..31aa00d0 100644 --- a/starstream_ivc_proto/src/lib.rs +++ b/starstream_ivc_proto/src/lib.rs @@ -11,22 +11,25 @@ mod poseidon2; mod test_utils; use std::collections::HashMap; +use std::sync::Arc; use std::time::Instant; use crate::circuit::InterRoundWires; use crate::memory::IVCMemory; use crate::nebula::tracer::{NebulaMemory, NebulaMemoryParams}; -use crate::neo::StepCircuitNeo; -use crate::neo::arkworks_to_neo_ccs; -use ark_relations::gr1cs::{ConstraintSystem, SynthesisError}; +use crate::neo::{StarstreamVm, StepCircuitNeo}; +use ark_relations::gr1cs::{ + ConstraintSystem, ConstraintSystemRef, OptimizationGoal, SynthesisError, +}; use circuit::StepCircuitBuilder; use goldilocks::FpGoldilocks; pub use memory::nebula; use neo_ajtai::AjtaiSModule; -use neo_ccs::CcsStructure; use neo_fold::pi_ccs::FoldingMode; -use neo_fold::session::FoldingSession; +use neo_fold::session::{FoldingSession, preprocess_shared_bus_r1cs}; use neo_params::NeoParams; +use neo_vm_trace::{Shout, ShoutId, Twist, TwistId, VmCpu}; +use rand::SeedableRng as _; use starstream_mock_ledger::{InterleavingInstance, ProcessId}; type F = FpGoldilocks; @@ -119,55 +122,96 @@ pub struct ProverOutput { const SCAN_BATCH_SIZE: usize = 10; // const SCAN_BATCH_SIZE: usize = 200; +// -pub fn prove(inst: InterleavingInstance) -> Result { - let shape_ccs = ccs_step_shape()?; - - // map all the disjoints vectors of traces (one per process) into a single - // list, which is simpler to think about for ivc. - let ops = make_interleaved_trace(&inst); - - println!("making proof, steps {}", ops.len()); +#[derive(Clone, Debug, Default)] +pub struct MapTwist { + mem: HashMap<(TwistId, u64), u64>, +} - let circuit_builder = StepCircuitBuilder::>::new(inst, ops); +impl Twist for MapTwist { + fn load(&mut self, id: TwistId, addr: u64) -> u64 { + *self.mem.get(&(id, addr)).unwrap_or(&0) + } - let n = shape_ccs.n.max(shape_ccs.m); + fn store(&mut self, id: TwistId, addr: u64, val: u64) { + self.mem.insert((id, addr), val); + } +} - let (mut f_circuit, num_iters) = StepCircuitNeo::new( - circuit_builder, - shape_ccs.clone(), - NebulaMemoryParams { - // the proof system is still too slow to run the poseidon commitments, especially when iterating. - unsound_disable_poseidon_commitment: true, - }, - ); +#[derive(Clone, Debug)] +pub struct MapShout { + pub table: Vec, +} - // since we are using square matrices, n = m - neo::setup_ajtai_for_dims(n); +impl Shout for MapShout { + fn lookup(&mut self, id: ShoutId, key: u64) -> u64 { + assert_eq!(id.0, 0, "this test only supports shout_id=0"); + self.table.get(key as usize).copied().unwrap_or(0) + } +} - let l = AjtaiSModule::from_global_for_dims(neo_math::D, n).expect("AjtaiSModule init"); +pub fn prove(inst: InterleavingInstance) -> Result { + // map all the disjoints vectors of traces (one per process) into a single + // list, which is simpler to think about for ivc. + let ops = make_interleaved_trace(&inst); + let max_steps = ops.len(); - let mut params = NeoParams::goldilocks_auto_r1cs_ccs(n) - .expect("goldilocks_auto_r1cs_ccs should find valid params"); + tracing::info!("making proof, steps {}", ops.len()); - params.b = 3; + let circuit_builder = StepCircuitBuilder::>::new(inst, ops); - let mut session = FoldingSession::new(FoldingMode::Optimized, params, l.clone()); + let circuit = Arc::new(StepCircuitNeo::new()); + let pre = preprocess_shared_bus_r1cs(Arc::clone(&circuit)).expect("preprocess_shared_bus_r1cs"); + let m = pre.m(); + + // - bump k_rho for comfortable Π_RLC norm bound margin in tests + // - use b=4 so Ajtai digit encoding can represent full Goldilocks values (b^d >> q), + // which matters once you run many chunks/steps (values quickly leave the tiny b=2^54 range). + let base_params = NeoParams::goldilocks_auto_r1cs_ccs(m).expect("params"); + let params = NeoParams::new( + base_params.q, + base_params.eta, + base_params.d, + base_params.kappa, + base_params.m, + 4, // b + 16, // k_rho + base_params.T, + base_params.s, + base_params.lambda, + ) + .expect("params"); + + let committer = setup_ajtai_committer(m, params.kappa as usize); + let prover = pre + .into_prover(params.clone(), committer.clone()) + .expect("into_prover (R1csCpu shared-bus config)"); + + let mut session = FoldingSession::new(FoldingMode::Optimized, params.clone(), committer); session.unsafe_allow_unlinked_steps(); - for _i in 0..num_iters { - let now = Instant::now(); - session.add_step(&mut f_circuit, &()).unwrap(); - tracing::info!("step added in {} ms", now.elapsed().as_millis()); - } + let mut twist = MapTwist::default(); + let shout = MapShout { table: vec![] }; + let t_witness = Instant::now(); + + prover + .execute_into_session( + &mut session, + StarstreamVm::new(circuit_builder), + twist, + shout, + max_steps, + ) + .expect("execute_into_session should succeed"); - let now = Instant::now(); - let run = session.fold_and_prove(&shape_ccs).unwrap(); - tracing::info!("proof generated in {} ms", now.elapsed().as_millis()); + let t_prove = Instant::now(); + let run = session.fold_and_prove(prover.ccs()).unwrap(); + tracing::info!("proof generated in {} ms", t_prove.elapsed().as_millis()); let mcss_public = session.mcss_public(); let ok = session - .verify(&shape_ccs, &mcss_public, &run) + .verify(&prover.ccs(), &mcss_public, &run) .expect("verify should run"); assert!(ok, "optimized verification should pass"); @@ -175,6 +219,12 @@ pub fn prove(inst: InterleavingInstance) -> Result Ok(ProverOutput { proof: () }) } +fn setup_ajtai_committer(m: usize, kappa: usize) -> AjtaiSModule { + let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(42); + let pp = neo_ajtai::setup(&mut rng, neo_math::D, kappa, m).expect("Ajtai setup"); + AjtaiSModule::new(Arc::new(pp)) +} + fn make_interleaved_trace(inst: &InterleavingInstance) -> Vec> { let mut ops = vec![]; let mut id_curr = inst.entrypoint.0; @@ -327,7 +377,7 @@ fn value_to_field(val: starstream_mock_ledger::Value) -> F { F::from(val.0[0]) } -fn ccs_step_shape() -> Result, SynthesisError> { +fn ccs_step_shape() -> Result, SynthesisError> { let _span = tracing::debug_span!("dummy circuit").entered(); tracing::debug!("constructing nop circuit to get initial (stable) ccs shape"); @@ -335,11 +385,6 @@ fn ccs_step_shape() -> Result, SynthesisError> { let cs = ConstraintSystem::new_ref(); cs.set_optimization_goal(ark_relations::gr1cs::OptimizationGoal::Constraints); - // let mut dummy_tx = StepCircuitBuilder::>::new( - // Default::default(), - // vec![LedgerOperation::Nop {}], - // ); - // let hash = starstream_mock_ledger::Hash([0u8; 32], std::marker::PhantomData); let inst = InterleavingInstance { @@ -356,12 +401,12 @@ fn ccs_step_shape() -> Result, SynthesisError> { entrypoint: ProcessId(0), input_states: vec![], }; + let mut dummy_tx = StepCircuitBuilder::>::new( inst, vec![LedgerOperation::Nop {}], ); - // let mb = dummy_tx.trace_memory_ops(()); let mb = dummy_tx.trace_memory_ops(NebulaMemoryParams { unsound_disable_poseidon_commitment: true, }); @@ -370,9 +415,10 @@ fn ccs_step_shape() -> Result, SynthesisError> { F::from(dummy_tx.p_len() as u64), dummy_tx.instance.entrypoint.0 as u64, ); + dummy_tx.make_step_circuit(0, &mut mb.constraints(), cs.clone(), irw)?; cs.finalize(); - Ok(arkworks_to_neo_ccs(&cs)) + Ok(cs) } diff --git a/starstream_ivc_proto/src/neo.rs b/starstream_ivc_proto/src/neo.rs index 4d315f38..09f426bd 100644 --- a/starstream_ivc_proto/src/neo.rs +++ b/starstream_ivc_proto/src/neo.rs @@ -1,210 +1,173 @@ -use std::sync::Arc; - use crate::{ + SCAN_BATCH_SIZE, ccs_step_shape, circuit::{InterRoundWires, StepCircuitBuilder}, goldilocks::FpGoldilocks, memory::IVCMemory, + nebula::{ + NebulaMemoryConstraints, + tracer::{NebulaMemory, NebulaMemoryParams}, + }, }; -use ark_ff::{Field, PrimeField}; -use ark_relations::gr1cs::{ConstraintSystem, ConstraintSystemRef, OptimizationGoal}; -use neo_ccs::{CcsMatrix, CcsStructure, CscMat, SparsePoly, Term}; -use neo_fold::session::{NeoStep, StepArtifacts, StepSpec}; -use neo_math::D; +use ark_ff::PrimeField; +use ark_relations::gr1cs::{ConstraintSystem, OptimizationGoal, SynthesisError}; +use neo_ccs::CcsStructure; +use neo_fold::session::{NeoCircuit, WitnessLayout}; +use neo_memory::{ShoutCpuBinding, TwistCpuBinding}; +use neo_vm_trace::{Shout, StepTrace, Twist, VmCpu}; use p3_field::PrimeCharacteristicRing; -use rand::SeedableRng as _; - -pub(crate) struct StepCircuitNeo -where - M: IVCMemory, -{ - pub(crate) shape_ccs: CcsStructure, // stable shape across steps - pub(crate) circuit_builder: StepCircuitBuilder, - pub(crate) irw: InterRoundWires, - pub(crate) mem: M::Allocator, -} +use std::collections::HashMap; -impl StepCircuitNeo -where - M: IVCMemory, -{ - pub fn new( - mut circuit_builder: StepCircuitBuilder, - shape_ccs: CcsStructure, - params: M::Params, - ) -> (Self, usize) { - let irw = InterRoundWires::new( - crate::F::from(circuit_builder.p_len() as u64), - circuit_builder.instance.entrypoint.0 as u64, - ); - - let mb = circuit_builder.trace_memory_ops(params); +pub(crate) struct StepCircuitNeo { + pub(crate) matrices: Vec>>, + pub(crate) num_constraints: usize, + pub(crate) num_instance_variables: usize, + pub(crate) num_variables: usize, +} - let num_iters = circuit_builder.ops.len(); +impl StepCircuitNeo { + pub fn new() -> Self { + let ark_cs = ccs_step_shape().unwrap(); - ( - Self { - shape_ccs, - circuit_builder, - irw, - mem: mb.constraints(), - }, - num_iters, - ) - } -} + let num_constraints = ark_cs.num_constraints(); + let num_instance_variables = ark_cs.num_instance_variables(); + let num_variables = ark_cs.num_constraints(); -impl NeoStep for StepCircuitNeo -where - M: IVCMemory, -{ - type ExternalInputs = (); + tracing::info!("num constraints {}", num_constraints); + tracing::info!("num instance variables {}", num_instance_variables); + tracing::info!("num variables {}", num_variables); - fn state_len(&self) -> usize { - 3 - } + let matrices = ark_cs + .into_inner() + .unwrap() + .to_matrices() + .unwrap() + .remove("R1CS") + .unwrap(); - fn step_spec(&self) -> StepSpec { - StepSpec { - y_len: self.state_len(), - const1_index: 0, - y_step_indices: vec![2, 4, 6], - app_input_indices: Some(vec![1, 3, 5]), - m_in: 7, + Self { + matrices, + num_constraints, + num_instance_variables, + num_variables, } } +} - fn synthesize_step( - &mut self, - step_idx: usize, - _z_prev: &[::neo_math::F], - _inputs: &Self::ExternalInputs, - ) -> StepArtifacts { - let cs = ConstraintSystem::::new_ref(); - cs.set_optimization_goal(OptimizationGoal::Constraints); - - self.irw = self - .circuit_builder - .make_step_circuit(step_idx, &mut self.mem, cs.clone(), self.irw.clone()) - .unwrap(); +#[derive(Clone)] +pub struct CircuitLayout {} - let spec = self.step_spec(); +impl WitnessLayout for CircuitLayout { + // instance.len() + const M_IN: usize = 1; - let mut step = arkworks_to_neo(cs.clone()); + // instance.len()+witness.len() + const USED_COLS: usize = 1224 + 1; - dbg!(cs.which_is_unsatisfied().unwrap()); - assert!(cs.is_satisfied().unwrap()); - - let padded_witness_len = step.ccs.n.max(step.ccs.m); - step.witness.resize(padded_witness_len, neo_math::F::ZERO); + fn new_layout() -> Self { + CircuitLayout {} + } +} - neo_ccs::check_ccs_rowwise_zero(&step.ccs, &[], &step.witness).unwrap(); - neo_ccs::check_ccs_rowwise_zero(&self.shape_ccs, &[], &step.witness).unwrap(); +impl NeoCircuit for StepCircuitNeo { + type Layout = CircuitLayout; - StepArtifacts { - ccs: Arc::new(step.ccs), - witness: step.witness, - public_app_inputs: vec![], - spec, - } + fn chunk_size(&self) -> usize { + 1 // for now, this is simpler to debug } -} -pub(crate) struct NeoInstance { - pub(crate) ccs: CcsStructure, - // instance + witness assignments - pub(crate) witness: Vec, -} + fn const_one_col(&self, layout: &Self::Layout) -> usize { + 0 + } -#[tracing::instrument(skip(cs))] -pub(crate) fn arkworks_to_neo(cs: ConstraintSystemRef) -> NeoInstance { - cs.finalize(); + fn resources(&self, resources: &mut neo_fold::session::SharedBusResources) { + // TODO: (no memory for now) + // + // . Define Memory Layouts (for Twist): You specify the geometry of your read-write memories, such as their size and address structure. + // // In resources() + // resources + // .twist(0) // Configure Twist memory with op_id = 0 + // // Define its layout: k=size, d=dimensions, etc. + // .layout(PlainMemLayout { k: 2, d: 1, n_side: 2 }); + // . Set Initial Memory Values (for Twist): If your memory isn't zero-initialized, you set the starting values of specific memory cells here. This is how you would "pre-load" a program or + // initial data into memory before execution begins. + + // // In resources() + // resources + // .twist(0) + // // ... after .layout(...) + // // Initialize the cell at address 0 with the value F::ONE + // .init_cell(0, F::ONE); + // . Provide Lookup Table Contents (for Shout): You define the complete contents of any read-only tables that your circuit will look up into. This is how you would define a boot ROM or a + // fixed data table (like a sine wave table). + + // // In resources() + // // Set the data for the lookup table with op_id = 0 + // resources.set_binary_table(0, vec![F::ZERO, F::ONE]); + } - let ccs = arkworks_to_neo_ccs(&cs); + fn define_cpu_constraints( + &self, + cs: &mut neo_fold::session::CcsBuilder, + layout: &Self::Layout, + ) -> Result<(), String> { + let matrices = &self.matrices; - let instance_assignment = cs.instance_assignment().unwrap(); - assert_eq!(instance_assignment[0], FpGoldilocks::ONE); + for row in 0..self.num_constraints { + let a_row = ark_matrix_to_neo(&matrices[0][row]); + let b_row = ark_matrix_to_neo(&matrices[1][row]); + let c_row = ark_matrix_to_neo(&matrices[2][row]); - let instance = cs - .instance_assignment() - .unwrap() - .iter() - .map(ark_field_to_p3_goldilocks) - .collect::>(); + cs.r1cs_terms(a_row, b_row, c_row); + } - let witness = cs - .witness_assignment() - .unwrap() - .iter() - .map(ark_field_to_p3_goldilocks) - .collect::>(); + tracing::info!("constraints defined"); - NeoInstance { - ccs, - witness: [instance, witness].concat(), + Ok(()) } -} - -pub(crate) fn arkworks_to_neo_ccs( - cs: &ConstraintSystemRef, -) -> neo_ccs::CcsStructure { - let matrices = &cs.to_matrices().unwrap()["R1CS"]; - - let a_mat = ark_matrix_to_neo(cs, &matrices[0]); - let b_mat = ark_matrix_to_neo(cs, &matrices[1]); - let c_mat = ark_matrix_to_neo(cs, &matrices[2]); - - // R1CS → CCS embedding with identity-first form: M_0 = I_n, M_1=A, M_2=B, M_3=C. - let f_base = SparsePoly::new( - 3, - vec![ - Term { - coeff: neo_math::F::ONE, - exps: vec![1, 1, 0], - }, // X1 * X2 - Term { - coeff: -neo_math::F::ONE, - exps: vec![0, 0, 1], - }, // -X3 - ], - ); - let n = cs.num_constraints().max(cs.num_variables()); + fn build_witness_prefix( + &self, + layout: &Self::Layout, + chunk: &[StepTrace], + ) -> Result, String> { + let mut witness = vec![]; - let matrices = vec![ - CcsMatrix::Identity { n }, - CcsMatrix::Csc(CscMat::from_triplets(a_mat, n, n)), - CcsMatrix::Csc(CscMat::from_triplets(b_mat, n, n)), - CcsMatrix::Csc(CscMat::from_triplets(c_mat, n, n)), - ]; - let f = f_base.insert_var_at_front(); + let c = &chunk[0]; - let ccs = CcsStructure::new_sparse(matrices, f).expect("valid R1CS→CCS structure"); + for v in &c.regs_after { + witness.push(neo_math::F::from_u64(*v)); + } - ccs.ensure_identity_first() - .expect("ensure_identity_first should succeed"); + Ok(witness) + } - ccs + fn cpu_bindings( + &self, + layout: &Self::Layout, + ) -> Result<(HashMap, HashMap), String> { + // Create the mapping for Shout (read-only) operations + // let shout_map = HashMap::from([ + // (1u32, layout.boot_rom.cpu_binding()), // op_id 1 -> boot_rom port + // (2u32, layout.trig_table.cpu_binding()), // op_id 2 -> trig_table port + // ]); + + // // Create the mapping for Twist (read-write) operations + // let twist_map = HashMap::from([ + // (0u32, layout.main_ram.cpu_binding()), // op_id 0 -> main_ram port + // ]); + + Ok((HashMap::new(), HashMap::new())) + } } -fn ark_matrix_to_neo( - cs: &ConstraintSystemRef, - sparse_matrix: &[Vec<(FpGoldilocks, usize)>], -) -> Vec<(usize, usize, neo_math::F)> { - tracing::info!("num constraints {}", cs.num_constraints()); - tracing::info!("num variables {}", cs.num_variables()); - let mut triplets = vec![]; - - // TODO: would be nice to just be able to construct the sparse matrix - // let mut dense = vec![neo_math::F::from_u64(0); n * n]; - - for (row_i, row) in sparse_matrix.iter().enumerate() { - for (col_v, col_i) in row.iter() { - triplets.push((row_i, *col_i, ark_field_to_p3_goldilocks(col_v))); - // dense[n * row_i + col_i] = ark_field_to_p3_goldilocks(col_v); - } +fn ark_matrix_to_neo(sparse_row: &[(FpGoldilocks, usize)]) -> Vec<(usize, neo_math::F)> { + let mut row = vec![]; + + for (col_v, col_i) in sparse_row.iter() { + row.push((*col_i, ark_field_to_p3_goldilocks(col_v))); } - triplets + row } pub fn ark_field_to_p3_goldilocks(col_v: &FpGoldilocks) -> p3_goldilocks::Goldilocks { @@ -221,76 +184,94 @@ pub fn ark_field_to_p3_goldilocks(col_v: &FpGoldilocks) -> p3_goldilocks::Goldil result } -pub(crate) fn setup_ajtai_for_dims(m: usize) { - let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(42); - let pp = neo_ajtai::setup(&mut rng, D, 4, m).expect("Ajtai setup should succeed"); - let _ = neo_ajtai::set_global_pp(pp); +pub struct StarstreamVm { + step_circuit_builder: StepCircuitBuilder>, + step_i: usize, + mem: NebulaMemoryConstraints, + irw: InterRoundWires, + regs: Vec, } -#[cfg(test)] -mod tests { - use crate::{ - F, - neo::{ark_field_to_p3_goldilocks, arkworks_to_neo}, - }; - use ark_r1cs_std::{alloc::AllocVar, eq::EqGadget as _, fields::fp::FpVar}; - use ark_relations::gr1cs::ConstraintSystem; - use p3_field::PrimeCharacteristicRing; - - #[test] - fn test_ark_field() { - assert_eq!( - ark_field_to_p3_goldilocks(&F::from(20)), - ::neo_math::F::from_u64(20) +impl StarstreamVm { + pub fn new( + mut step_circuit_builder: StepCircuitBuilder>, + ) -> Self { + let irw = InterRoundWires::new( + crate::F::from(step_circuit_builder.p_len() as u64), + step_circuit_builder.instance.entrypoint.0 as u64, ); - assert_eq!( - ark_field_to_p3_goldilocks(&F::from(100)), - ::neo_math::F::from_u64(100) - ); + let params = NebulaMemoryParams { + unsound_disable_poseidon_commitment: true, + }; - assert_eq!( - ark_field_to_p3_goldilocks(&F::from(400)), - ::neo_math::F::from_u64(400) - ); + let mb = step_circuit_builder.trace_memory_ops(params); - assert_eq!( - ark_field_to_p3_goldilocks(&F::from(u64::MAX)), - ::neo_math::F::from_u64(u64::MAX) - ); + Self { + step_circuit_builder, + step_i: 0, + mem: mb.constraints(), + irw, + regs: vec![0; 1224 + 1], + } } +} - #[test] - fn test_r1cs_conversion_sat() { - let cs = ConstraintSystem::::new_ref(); - - let var1 = FpVar::new_witness(cs.clone(), || Ok(F::from(1_u64))).unwrap(); - let var2 = FpVar::new_witness(cs.clone(), || Ok(F::from(1_u64))).unwrap(); - - var1.enforce_equal(&var2).unwrap(); - - let step = arkworks_to_neo(cs.clone()); - - let neo_check = - neo_ccs::relations::check_ccs_rowwise_zero(&step.ccs, &[], &step.witness).is_ok(); +impl VmCpu for StarstreamVm { + type Error = SynthesisError; - assert_eq!(cs.is_satisfied().unwrap(), neo_check); + fn snapshot_regs(&self) -> Vec { + self.regs.clone() } - #[test] - fn test_r1cs_conversion_unsat() { - let cs = ConstraintSystem::::new_ref(); + fn pc(&self) -> u64 { + self.step_i as u64 + } - let var1 = FpVar::new_witness(cs.clone(), || Ok(F::from(1_u64))).unwrap(); - let var2 = FpVar::new_witness(cs.clone(), || Ok(F::from(2_u64))).unwrap(); + fn halted(&self) -> bool { + self.step_i == self.step_circuit_builder.ops.len() + } - var1.enforce_equal(&var2).unwrap(); + fn step( + &mut self, + twist: &mut T, + shout: &mut S, + ) -> Result, Self::Error> + where + T: Twist, + S: Shout, + { + let cs = ConstraintSystem::::new_ref(); + cs.set_optimization_goal(OptimizationGoal::Constraints); - let step = arkworks_to_neo(cs.clone()); + let irw = self.step_circuit_builder.make_step_circuit( + self.step_i, + &mut self.mem, + cs.clone(), + self.irw.clone(), + )?; - let neo_check = - neo_ccs::relations::check_ccs_rowwise_zero(&step.ccs, &[], &step.witness).is_ok(); + dbg!(cs.which_is_unsatisfied().unwrap()); + assert!(cs.is_satisfied().unwrap()); - assert_eq!(cs.is_satisfied().unwrap(), neo_check); + self.irw = irw; + + self.step_i += 1; + + self.regs = cs + .instance_assignment()? + .into_iter() + .map(|input| input.into_bigint().0[0]) + .chain( + cs.witness_assignment()? + .into_iter() + .map(|wit| wit.into_bigint().0[0]), + ) + .collect(); + + Ok(neo_vm_trace::StepMeta { + pc_after: self.step_i as u64, + opcode: 0, + }) } } From f30e3c3b90630ef0e8dd1d64c2bf6ec7a0ebb7ca Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Tue, 6 Jan 2026 20:29:43 -0300 Subject: [PATCH 059/152] connect ivc circuit to nightstream's shout support Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/Cargo.toml | 22 +- starstream_ivc_proto/src/circuit.rs | 110 +++-- starstream_ivc_proto/src/lib.rs | 69 ++- starstream_ivc_proto/src/memory/dummy.rs | 14 +- starstream_ivc_proto/src/memory/mod.rs | 38 +- .../src/memory/nebula/gadget.rs | 2 + starstream_ivc_proto/src/memory/nebula/mod.rs | 7 +- .../src/memory/nebula/tracer.rs | 14 +- .../src/memory/twist_and_shout/mod.rs | 433 ++++++++++++++++++ starstream_ivc_proto/src/neo.rs | 175 +++---- starstream_ivc_proto/src/test_utils.rs | 2 +- 11 files changed, 713 insertions(+), 173 deletions(-) create mode 100644 starstream_ivc_proto/src/memory/twist_and_shout/mod.rs diff --git a/starstream_ivc_proto/Cargo.toml b/starstream_ivc_proto/Cargo.toml index 1d94cd57..ac03a6d5 100644 --- a/starstream_ivc_proto/Cargo.toml +++ b/starstream_ivc_proto/Cargo.toml @@ -13,19 +13,19 @@ ark-poly-commit = "0.5.0" tracing = { version = "0.1", default-features = false, features = [ "attributes" ] } tracing-subscriber = { version = "0.3", features = ["env-filter"] } -neo-fold = { git = "https://github.com/nicarq/Nightstream.git", rev = "0713b5dda6b1e4b924d59f1dd0e1fc51a6495667" } -neo-math = { git = "https://github.com/nicarq/Nightstream.git", rev = "0713b5dda6b1e4b924d59f1dd0e1fc51a6495667" } -neo-ccs = { git = "https://github.com/nicarq/Nightstream.git", rev = "0713b5dda6b1e4b924d59f1dd0e1fc51a6495667" } -neo-ajtai = { git = "https://github.com/nicarq/Nightstream.git", rev = "0713b5dda6b1e4b924d59f1dd0e1fc51a6495667" } -neo-params = { git = "https://github.com/nicarq/Nightstream.git", rev = "0713b5dda6b1e4b924d59f1dd0e1fc51a6495667" } -neo-vm-trace = { git = "https://github.com/nicarq/Nightstream.git", rev = "0713b5dda6b1e4b924d59f1dd0e1fc51a6495667" } -neo-memory = { git = "https://github.com/nicarq/Nightstream.git", rev = "0713b5dda6b1e4b924d59f1dd0e1fc51a6495667" } +neo-fold = { git = "https://github.com/nicarq/Nightstream.git", rev = "484d3dcb7d8f988cd7602d7717a4d63244f06377" } +neo-math = { git = "https://github.com/nicarq/Nightstream.git", rev = "484d3dcb7d8f988cd7602d7717a4d63244f06377" } +neo-ccs = { git = "https://github.com/nicarq/Nightstream.git", rev = "484d3dcb7d8f988cd7602d7717a4d63244f06377" } +neo-ajtai = { git = "https://github.com/nicarq/Nightstream.git", rev = "484d3dcb7d8f988cd7602d7717a4d63244f06377" } +neo-params = { git = "https://github.com/nicarq/Nightstream.git", rev = "484d3dcb7d8f988cd7602d7717a4d63244f06377" } +neo-vm-trace = { git = "https://github.com/nicarq/Nightstream.git", rev = "484d3dcb7d8f988cd7602d7717a4d63244f06377" } +neo-memory = { git = "https://github.com/nicarq/Nightstream.git", rev = "484d3dcb7d8f988cd7602d7717a4d63244f06377" } starstream_mock_ledger = { path = "../starstream_mock_ledger" } -p3-goldilocks = { version = "0.3.0", default-features = false } -p3-field = "0.3.0" -p3-symmetric = "0.3.0" -p3-poseidon2 = "0.3.0" +p3-goldilocks = { version = "0.4.1", default-features = false } +p3-field = "0.4.1" +p3-symmetric = "0.4.1" +p3-poseidon2 = "0.4.1" rand_chacha = "0.9.0" rand = "0.9" diff --git a/starstream_ivc_proto/src/circuit.rs b/starstream_ivc_proto/src/circuit.rs index 8bcd4d89..0519abe0 100644 --- a/starstream_ivc_proto/src/circuit.rs +++ b/starstream_ivc_proto/src/circuit.rs @@ -1,4 +1,5 @@ -use crate::memory::{self, Address, IVCMemory}; +use crate::memory::twist_and_shout::Lanes; +use crate::memory::{self, Address, IVCMemory, MemType}; use crate::value_to_field; use crate::{F, LedgerOperation, memory::IVCMemoryAllocated}; use ark_ff::{AdditiveGroup, Field as _, PrimeField}; @@ -1407,7 +1408,13 @@ impl> StepCircuitBuilder { rm: &mut M::Allocator, cs: ConstraintSystemRef, mut irw: InterRoundWires, - ) -> Result { + ) -> Result< + ( + InterRoundWires, + >::FinishStepPayload, + ), + SynthesisError, + > { rm.start_step(cs.clone()).unwrap(); let _guard = tracing::info_span!("make_step_circuit", i = i, op = ?self.ops[i]).entered(); @@ -1431,7 +1438,7 @@ impl> StepCircuitBuilder { let next_wires = self.visit_uninstall_handler(next_wires)?; let next_wires = self.visit_get_handler_for(next_wires)?; - rm.finish_step(i == self.ops.len() - 1)?; + let mem_step_data = rm.finish_step(i == self.ops.len() - 1)?; // input <-> output mappings are done by modifying next_wires ivcify_wires(&cs, &wires_in, &next_wires)?; @@ -1440,7 +1447,7 @@ impl> StepCircuitBuilder { tracing::debug!("constraints: {}", cs.num_constraints()); - Ok(irw) + Ok((irw, mem_step_data)) } pub fn trace_memory_ops(&mut self, params: >::Params) -> M { @@ -1448,30 +1455,7 @@ impl> StepCircuitBuilder { let mut mb = { let mut mb = M::new(params); - mb.register_mem(MemoryTag::ProcessTable.into(), 1, "ROM_PROCESS_TABLE"); - mb.register_mem(MemoryTag::MustBurn.into(), 1, "ROM_MUST_BURN"); - mb.register_mem(MemoryTag::IsUtxo.into(), 1, "ROM_IS_UTXO"); - mb.register_mem(MemoryTag::Interfaces.into(), 1, "ROM_INTERFACES"); - - mb.register_mem(MemoryTag::ExpectedInput.into(), 1, "RAM_EXPECTED_INPUT"); - mb.register_mem(MemoryTag::Activation.into(), 1, "RAM_ACTIVATION"); - mb.register_mem(MemoryTag::Init.into(), 1, "RAM_INIT"); - mb.register_mem(MemoryTag::Counters.into(), 1, "RAM_COUNTERS"); - mb.register_mem(MemoryTag::Initialized.into(), 1, "RAM_INITIALIZED"); - mb.register_mem(MemoryTag::Finalized.into(), 1, "RAM_FINALIZED"); - mb.register_mem(MemoryTag::DidBurn.into(), 1, "RAM_DID_BURN"); - mb.register_mem(MemoryTag::RefArena.into(), 1, "RAM_REF_ARENA"); - mb.register_mem(MemoryTag::Ownership.into(), 1, "RAM_OWNERSHIP"); - mb.register_mem( - MemoryTag::HandlerStackArena.into(), - 2, - "RAM_HANDLER_STACK_ARENA", - ); - mb.register_mem( - MemoryTag::HandlerStackHeads.into(), - 1, - "RAM_HANDLER_STACK_HEADS", - ); + register_memory_segments(&mut mb); for (pid, mod_hash) in self.instance.process_table.iter().enumerate() { mb.init( @@ -2492,6 +2476,76 @@ impl> StepCircuitBuilder { } } +fn register_memory_segments>(mb: &mut M) { + mb.register_mem( + MemoryTag::ProcessTable.into(), + 1, + MemType::Rom, + "ROM_PROCESS_TABLE", + ); + mb.register_mem(MemoryTag::MustBurn.into(), 1, MemType::Rom, "ROM_MUST_BURN"); + mb.register_mem_with_lanes( + MemoryTag::IsUtxo.into(), + 1, + MemType::Rom, + Lanes(2), + "ROM_IS_UTXO", + ); + mb.register_mem( + MemoryTag::Interfaces.into(), + 1, + MemType::Rom, + "ROM_INTERFACES", + ); + + mb.register_mem( + MemoryTag::ExpectedInput.into(), + 1, + MemType::Ram, + "RAM_EXPECTED_INPUT", + ); + mb.register_mem( + MemoryTag::Activation.into(), + 1, + MemType::Ram, + "RAM_ACTIVATION", + ); + mb.register_mem(MemoryTag::Init.into(), 1, MemType::Ram, "RAM_INIT"); + mb.register_mem(MemoryTag::Counters.into(), 1, MemType::Ram, "RAM_COUNTERS"); + mb.register_mem( + MemoryTag::Initialized.into(), + 1, + MemType::Ram, + "RAM_INITIALIZED", + ); + mb.register_mem( + MemoryTag::Finalized.into(), + 1, + MemType::Ram, + "RAM_FINALIZED", + ); + mb.register_mem(MemoryTag::DidBurn.into(), 1, MemType::Ram, "RAM_DID_BURN"); + mb.register_mem(MemoryTag::RefArena.into(), 1, MemType::Ram, "RAM_REF_ARENA"); + mb.register_mem( + MemoryTag::Ownership.into(), + 1, + MemType::Ram, + "RAM_OWNERSHIP", + ); + mb.register_mem( + MemoryTag::HandlerStackArena.into(), + 2, + MemType::Ram, + "RAM_HANDLER_STACK_ARENA", + ); + mb.register_mem( + MemoryTag::HandlerStackHeads.into(), + 1, + MemType::Ram, + "RAM_HANDLER_STACK_HEADS", + ); +} + #[tracing::instrument(target = "gr1cs", skip_all)] fn ivcify_wires( _cs: &ConstraintSystemRef, diff --git a/starstream_ivc_proto/src/lib.rs b/starstream_ivc_proto/src/lib.rs index 31aa00d0..bac324f0 100644 --- a/starstream_ivc_proto/src/lib.rs +++ b/starstream_ivc_proto/src/lib.rs @@ -16,19 +16,18 @@ use std::time::Instant; use crate::circuit::InterRoundWires; use crate::memory::IVCMemory; -use crate::nebula::tracer::{NebulaMemory, NebulaMemoryParams}; +use crate::memory::twist_and_shout::{TSMemLayouts, TSMemory}; use crate::neo::{StarstreamVm, StepCircuitNeo}; -use ark_relations::gr1cs::{ - ConstraintSystem, ConstraintSystemRef, OptimizationGoal, SynthesisError, -}; +use ark_relations::gr1cs::{ConstraintSystem, ConstraintSystemRef, SynthesisError}; use circuit::StepCircuitBuilder; use goldilocks::FpGoldilocks; pub use memory::nebula; use neo_ajtai::AjtaiSModule; use neo_fold::pi_ccs::FoldingMode; use neo_fold::session::{FoldingSession, preprocess_shared_bus_r1cs}; +use neo_fold::shard::StepLinkingConfig; use neo_params::NeoParams; -use neo_vm_trace::{Shout, ShoutId, Twist, TwistId, VmCpu}; +use neo_vm_trace::{Twist, TwistId}; use rand::SeedableRng as _; use starstream_mock_ledger::{InterleavingInstance, ProcessId}; @@ -120,10 +119,6 @@ pub struct ProverOutput { pub proof: (), } -const SCAN_BATCH_SIZE: usize = 10; -// const SCAN_BATCH_SIZE: usize = 200; -// - #[derive(Clone, Debug, Default)] pub struct MapTwist { mem: HashMap<(TwistId, u64), u64>, @@ -139,18 +134,6 @@ impl Twist for MapTwist { } } -#[derive(Clone, Debug)] -pub struct MapShout { - pub table: Vec, -} - -impl Shout for MapShout { - fn lookup(&mut self, id: ShoutId, key: u64) -> u64 { - assert_eq!(id.0, 0, "this test only supports shout_id=0"); - self.table.get(key as usize).copied().unwrap_or(0) - } -} - pub fn prove(inst: InterleavingInstance) -> Result { // map all the disjoints vectors of traces (one per process) into a single // list, which is simpler to think about for ivc. @@ -159,15 +142,15 @@ pub fn prove(inst: InterleavingInstance) -> Result tracing::info!("making proof, steps {}", ops.len()); - let circuit_builder = StepCircuitBuilder::>::new(inst, ops); + let mut circuit_builder = StepCircuitBuilder::>::new(inst, ops); - let circuit = Arc::new(StepCircuitNeo::new()); + let mb = circuit_builder.trace_memory_ops(()); + + let circuit = Arc::new(StepCircuitNeo::new(mb.init_tables())); let pre = preprocess_shared_bus_r1cs(Arc::clone(&circuit)).expect("preprocess_shared_bus_r1cs"); let m = pre.m(); - // - bump k_rho for comfortable Π_RLC norm bound margin in tests - // - use b=4 so Ajtai digit encoding can represent full Goldilocks values (b^d >> q), - // which matters once you run many chunks/steps (values quickly leave the tiny b=2^54 range). + // params copy-pasted from nightstream tests, this needs review let base_params = NeoParams::goldilocks_auto_r1cs_ccs(m).expect("params"); let params = NeoParams::new( base_params.q, @@ -189,16 +172,17 @@ pub fn prove(inst: InterleavingInstance) -> Result .expect("into_prover (R1csCpu shared-bus config)"); let mut session = FoldingSession::new(FoldingMode::Optimized, params.clone(), committer); - session.unsafe_allow_unlinked_steps(); - let mut twist = MapTwist::default(); - let shout = MapShout { table: vec![] }; - let t_witness = Instant::now(); + // TODO: not sound, but not important right now + session.set_step_linking(StepLinkingConfig::new(vec![(0, 0)])); + + let twist = MapTwist::default(); + let shout = mb.clone(); prover .execute_into_session( &mut session, - StarstreamVm::new(circuit_builder), + StarstreamVm::new(circuit_builder, mb.constraints()), twist, shout, max_steps, @@ -209,10 +193,10 @@ pub fn prove(inst: InterleavingInstance) -> Result let run = session.fold_and_prove(prover.ccs()).unwrap(); tracing::info!("proof generated in {} ms", t_prove.elapsed().as_millis()); - let mcss_public = session.mcss_public(); let ok = session - .verify(&prover.ccs(), &mcss_public, &run) + .verify_collected(&prover.ccs(), &run) .expect("verify should run"); + assert!(ok, "optimized verification should pass"); // TODO: extract the actual proof @@ -377,7 +361,7 @@ fn value_to_field(val: starstream_mock_ledger::Value) -> F { F::from(val.0[0]) } -fn ccs_step_shape() -> Result, SynthesisError> { +fn ccs_step_shape() -> Result<(ConstraintSystemRef, TSMemLayouts), SynthesisError> { let _span = tracing::debug_span!("dummy circuit").entered(); tracing::debug!("constructing nop circuit to get initial (stable) ccs shape"); @@ -402,23 +386,22 @@ fn ccs_step_shape() -> Result, SynthesisError> { input_states: vec![], }; - let mut dummy_tx = StepCircuitBuilder::>::new( - inst, - vec![LedgerOperation::Nop {}], - ); + let mut dummy_tx = StepCircuitBuilder::>::new(inst, vec![LedgerOperation::Nop {}]); - let mb = dummy_tx.trace_memory_ops(NebulaMemoryParams { - unsound_disable_poseidon_commitment: true, - }); + let mb = dummy_tx.trace_memory_ops(()); let irw = InterRoundWires::new( F::from(dummy_tx.p_len() as u64), dummy_tx.instance.entrypoint.0 as u64, ); - dummy_tx.make_step_circuit(0, &mut mb.constraints(), cs.clone(), irw)?; + let mut running_mem = mb.constraints(); + + dummy_tx.make_step_circuit(0, &mut running_mem, cs.clone(), irw)?; cs.finalize(); - Ok(cs) + let mem_spec = running_mem.ts_mem_layouts(); + + Ok((cs, mem_spec)) } diff --git a/starstream_ivc_proto/src/memory/dummy.rs b/starstream_ivc_proto/src/memory/dummy.rs index cfd0d9fa..0e3a477a 100644 --- a/starstream_ivc_proto/src/memory/dummy.rs +++ b/starstream_ivc_proto/src/memory/dummy.rs @@ -2,6 +2,8 @@ use super::Address; use super::IVCMemory; use super::IVCMemoryAllocated; use crate::memory::AllocatedAddress; +use crate::memory::MemType; +use crate::memory::twist_and_shout::Lanes; use ark_ff::PrimeField; use ark_r1cs_std::GR1CSVar as _; use ark_r1cs_std::alloc::AllocVar as _; @@ -25,7 +27,6 @@ pub struct DummyMemory { impl IVCMemory for DummyMemory { type Allocator = DummyMemoryConstraints; - type Params = (); fn new(_params: Self::Params) -> Self { @@ -38,7 +39,14 @@ impl IVCMemory for DummyMemory { } } - fn register_mem(&mut self, tag: u64, size: u64, debug_name: &'static str) { + fn register_mem_with_lanes( + &mut self, + tag: u64, + size: u64, + _mem_type: MemType, + _extra_info: Lanes, + debug_name: &'static str, + ) { self.mems.insert(tag, (size, debug_name)); } @@ -101,6 +109,8 @@ pub struct DummyMemoryConstraints { } impl IVCMemoryAllocated for DummyMemoryConstraints { + type FinishStepPayload = (); + fn start_step(&mut self, cs: ConstraintSystemRef) -> Result<(), SynthesisError> { self.cs.replace(cs); diff --git a/starstream_ivc_proto/src/memory/mod.rs b/starstream_ivc_proto/src/memory/mod.rs index 85d75a61..bb820c93 100644 --- a/starstream_ivc_proto/src/memory/mod.rs +++ b/starstream_ivc_proto/src/memory/mod.rs @@ -2,9 +2,11 @@ use crate::F; use ark_ff::PrimeField; use ark_r1cs_std::{GR1CSVar as _, alloc::AllocVar, fields::fp::FpVar, prelude::Boolean}; use ark_relations::gr1cs::{ConstraintSystemRef, SynthesisError}; +use std::fmt; pub mod dummy; pub mod nebula; +pub mod twist_and_shout; #[derive(PartialOrd, Ord, PartialEq, Eq, Debug, Clone)] pub struct Address { @@ -43,17 +45,44 @@ impl AllocatedAddress { } } +#[derive(Clone, Copy, PartialEq, PartialOrd, Debug)] +pub enum MemType { + Rom, + Ram, +} + +impl fmt::Display for MemType { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + match self { + MemType::Rom => write!(f, "ROM"), + MemType::Ram => write!(f, "RAM"), + } + } +} + pub trait IVCMemory { type Allocator: IVCMemoryAllocated; type Params; fn new(info: Self::Params) -> Self; - fn register_mem(&mut self, tag: u64, size: u64, debug_name: &'static str); + fn register_mem(&mut self, tag: u64, size: u64, mem_type: MemType, debug_name: &'static str) { + self.register_mem_with_lanes(tag, size, mem_type, Default::default(), debug_name); + } + + fn register_mem_with_lanes( + &mut self, + tag: u64, + size: u64, + mem_type: MemType, + extra_info: twist_and_shout::Lanes, + debug_name: &'static str, + ); fn init(&mut self, address: Address, values: Vec); fn conditional_read(&mut self, cond: bool, address: Address) -> Vec; + fn conditional_write(&mut self, cond: bool, address: Address, value: Vec); fn required_steps(&self) -> usize; @@ -62,9 +91,14 @@ pub trait IVCMemory { } pub trait IVCMemoryAllocated { + type FinishStepPayload; + fn get_cs(&self) -> ConstraintSystemRef; fn start_step(&mut self, cs: ConstraintSystemRef) -> Result<(), SynthesisError>; - fn finish_step(&mut self, is_last_step: bool) -> Result<(), SynthesisError>; + fn finish_step( + &mut self, + is_last_step: bool, + ) -> Result; fn conditional_read( &mut self, diff --git a/starstream_ivc_proto/src/memory/nebula/gadget.rs b/starstream_ivc_proto/src/memory/nebula/gadget.rs index 354779ab..f8491cbc 100644 --- a/starstream_ivc_proto/src/memory/nebula/gadget.rs +++ b/starstream_ivc_proto/src/memory/nebula/gadget.rs @@ -139,6 +139,8 @@ impl FingerPrintWires { } impl IVCMemoryAllocated for NebulaMemoryConstraints { + type FinishStepPayload = (); + #[tracing::instrument(target = "gr1cs", skip(self, cs))] fn start_step(&mut self, cs: ConstraintSystemRef) -> Result<(), SynthesisError> { self.cs.replace(cs.clone()); diff --git a/starstream_ivc_proto/src/memory/nebula/mod.rs b/starstream_ivc_proto/src/memory/nebula/mod.rs index edc1440d..c2eb2722 100644 --- a/starstream_ivc_proto/src/memory/nebula/mod.rs +++ b/starstream_ivc_proto/src/memory/nebula/mod.rs @@ -79,6 +79,7 @@ mod tests { use super::*; use crate::memory::IVCMemory; use crate::memory::IVCMemoryAllocated; + use crate::memory::MemType; use crate::memory::nebula::tracer::NebulaMemory; use crate::memory::nebula::tracer::NebulaMemoryParams; use crate::test_utils::init_test_logging; @@ -95,7 +96,7 @@ mod tests { unsound_disable_poseidon_commitment: false, }); - memory.register_mem(1, 2, "test_segment"); + memory.register_mem(1, 2, MemType::Ram, "test_segment"); let address = Address { addr: 10, tag: 1 }; let initial_values = vec![F::from(42), F::from(100)]; @@ -176,7 +177,7 @@ mod tests { let mut memory = NebulaMemory::<1>::new(NebulaMemoryParams { unsound_disable_poseidon_commitment: false, }); - memory.register_mem(1, 2, "test_segment"); + memory.register_mem(1, 2, MemType::Ram, "test_segment"); let address = Address { addr: 10, tag: 1 }; let initial_values = vec![F::from(42), F::from(100)]; @@ -284,7 +285,7 @@ mod tests { let total_addresses = SCAN_BATCH_SIZE * num_steps; // 6 addresses let mut memory = NebulaMemory::::new(NebulaMemoryParams::default()); - memory.register_mem(1, 2, "test_segment"); + memory.register_mem(1, 2, MemType::Ram, "test_segment"); let addresses: Vec> = (0..total_addresses) .map(|i| Address { diff --git a/starstream_ivc_proto/src/memory/nebula/tracer.rs b/starstream_ivc_proto/src/memory/nebula/tracer.rs index 12b17c67..0f1bef52 100644 --- a/starstream_ivc_proto/src/memory/nebula/tracer.rs +++ b/starstream_ivc_proto/src/memory/nebula/tracer.rs @@ -7,7 +7,9 @@ use super::NebulaMemoryConstraints; use super::ic::ICPlain; use crate::F; use crate::memory::IVCMemory; +use crate::memory::MemType; use crate::memory::nebula::gadget::FingerPrintPreWires; +use crate::memory::twist_and_shout::Lanes; use std::collections::BTreeMap; use std::collections::VecDeque; @@ -127,7 +129,15 @@ impl IVCMemory for NebulaMemory IVCMemory for NebulaMemory { + pub(crate) phantom: PhantomData, + pub(crate) reads: BTreeMap, VecDeque>>, + pub(crate) writes: BTreeMap, VecDeque>>, + pub(crate) init: BTreeMap, Vec>, + + pub(crate) mems: BTreeMap, + + /// Captured shout events for witness generation, organized by address + pub(crate) shout_events: BTreeMap, VecDeque>, +} + +/// Initial ROM tables computed by TSMemory +pub struct TSMemInitTables { + pub mems: BTreeMap, + pub rom_sizes: BTreeMap, + pub init: BTreeMap>, +} + +/// Layout/bindings computed by TSMemoryConstraints +pub struct TSMemLayouts { + pub shout_bindings: BTreeMap>, +} + +#[derive(Clone, Copy)] +pub struct Lanes(pub usize); + +impl Default for Lanes { + fn default() -> Self { + Self(1) + } +} + +impl IVCMemory for TSMemory { + type Allocator = TSMemoryConstraints; + type Params = (); + + fn new(_params: Self::Params) -> Self { + TSMemory { + phantom: PhantomData, + reads: BTreeMap::default(), + writes: BTreeMap::default(), + init: BTreeMap::default(), + mems: BTreeMap::default(), + shout_events: BTreeMap::default(), + } + } + + fn register_mem_with_lanes( + &mut self, + tag: u64, + size: u64, + mem_type: MemType, + lanes: Lanes, + debug_name: &'static str, + ) { + self.mems.insert(tag, (size, lanes, mem_type, debug_name)); + } + + fn init(&mut self, address: Address, values: Vec) { + self.init.insert(address, values.clone()); + } + + fn conditional_read(&mut self, cond: bool, address: Address) -> Vec { + if let Some(&(_, _, MemType::Rom, _)) = self.mems.get(&address.tag) { + // For ROM memories, we need to capture the shout event + if cond { + // Get the value from init (ROM is read-only) + let value = self.init.get(&address).unwrap().clone(); + + // Record this as a shout event for witness generation + let shout_event = ShoutEvent { + shout_id: address.tag as u32, + key: address.addr, + value: value[0].into_bigint().as_ref()[0], // Convert F to u64 + }; + let shout_events = self.shout_events.entry(address.clone()).or_default(); + shout_events.push_back(shout_event); + + value + } else { + // No lookup, return zero + let mem_value_size = self.mems.get(&address.tag).unwrap().0; + std::iter::repeat_n(F::from(0), mem_value_size as usize).collect() + } + } else { + let reads = self.reads.entry(address.clone()).or_default(); + + if cond { + let last = self + .writes + .get(&address) + .and_then(|writes| writes.back().cloned()) + .unwrap_or_else(|| self.init.get(&address).unwrap().clone()); + + reads.push_back(last.clone()); + last + } else { + let mem_value_size = self.mems.get(&address.tag).unwrap().0; + std::iter::repeat_n(F::from(0), mem_value_size as usize).collect() + } + } + } + + fn conditional_write(&mut self, cond: bool, address: Address, values: Vec) { + assert_eq!( + self.mems.get(&address.tag).unwrap().0 as usize, + values.len(), + "write doesn't match mem value size" + ); + + if cond { + self.writes.entry(address).or_default().push_back(values); + } + } + + fn required_steps(&self) -> usize { + 0 + } + + fn constraints(self) -> Self::Allocator { + TSMemoryConstraints { + cs: None, + reads: self.reads, + writes: self.writes, + mems: self.mems, + shout_events: self.shout_events, + shout_bindings: BTreeMap::new(), + step_events: vec![], + is_first_step: true, + } + } +} + +impl TSMemory { + pub fn init_tables(&self) -> TSMemInitTables { + let mut rom_sizes = BTreeMap::new(); + let mut init = BTreeMap::new(); + + for (address, val) in &self.init { + if let Some((_, _, MemType::Rom, _)) = self.mems.get(&address.tag) { + *rom_sizes.entry(address.tag).or_insert(0) += 1; + } + init.entry(address.tag).or_insert(vec![]).push(val[0]); + } + + TSMemInitTables { + mems: self.mems.clone(), + rom_sizes, + init, + } + } +} + +impl Shout for TSMemory { + fn lookup(&mut self, shout_id: neo_vm_trace::ShoutId, key: u64) -> u64 { + let value = self + .init + .get(&Address { + tag: shout_id.0 as u64, + addr: key, + }) + .unwrap() + .clone(); + + value[0].into_bigint().0[0] + } +} + +pub struct TSMemoryConstraints { + pub(crate) cs: Option>, + pub(crate) reads: BTreeMap, VecDeque>>, + pub(crate) writes: BTreeMap, VecDeque>>, + + pub(crate) mems: BTreeMap, + + /// Captured shout events for witness generation, organized by address + pub(crate) shout_events: BTreeMap, VecDeque>, + + /// Captured shout CPU bindings with actual witness indices + pub(crate) shout_bindings: BTreeMap>, + + step_events: Vec, + + /// We only need to compute ShoutBinding layouts once + is_first_step: bool, +} + +impl TSMemoryConstraints { + /// Generate the memory layouts with actual witness indices + pub fn ts_mem_layouts(&self) -> TSMemLayouts { + TSMemLayouts { + shout_bindings: self.shout_bindings.clone(), + } + } + + /// Allocate witness variables for shout protocol based on address + pub fn allocate_shout_witnesses( + &mut self, + address: &Address, + ) -> Result<(FpVar, FpVar, FpVar), SynthesisError> { + let cs = self.get_cs(); + + let (has_lookup_val, addr_val, val_val) = { + let event = self + .shout_events + .get_mut(dbg!(address)) + .unwrap() + .pop_front() + .unwrap(); + + self.step_events.push(event.clone()); + + (F::from(1), F::from(event.key), F::from(event.value)) + }; + + let has_lookup = FpVar::new_witness(cs.clone(), || Ok(has_lookup_val))?; + let addr = FpVar::new_witness(cs.clone(), || Ok(addr_val))?; + let val = FpVar::new_witness(cs.clone(), || Ok(val_val))?; + + Ok((has_lookup, addr, val)) + } +} + +impl IVCMemoryAllocated for TSMemoryConstraints { + type FinishStepPayload = Vec; + + fn start_step(&mut self, cs: ConstraintSystemRef) -> Result<(), SynthesisError> { + self.cs.replace(cs); + + Ok(()) + } + + fn finish_step( + &mut self, + _is_last_step: bool, + ) -> Result { + self.cs = None; + + let mut step_events = vec![]; + std::mem::swap(&mut step_events, &mut self.step_events); + + self.is_first_step = false; + + Ok(step_events) + } + + fn get_cs(&self) -> ConstraintSystemRef { + self.cs.as_ref().unwrap().clone() + } + + #[tracing::instrument(target = "gr1cs", skip_all)] + fn conditional_read( + &mut self, + cond: &Boolean, + address: &AllocatedAddress, + ) -> Result>, SynthesisError> { + let _guard = tracing::debug_span!("conditional_read").entered(); + + let mem = self.mems.get(&address.tag_value()).copied().unwrap(); + + // Check if this is a ROM memory that should use Shout protocol + if mem.2 == MemType::Rom { + // For ROM memories, allocate witnesses using Shout protocol + let address_val = Address { + addr: address.address_value(), + tag: address.tag_value(), + }; + + let cs = self.get_cs(); + let (has_lookup, addr_witness, val_witness) = if cond.value()? { + self.allocate_shout_witnesses(&address_val)? + } else { + ( + FpVar::new_witness(cs.clone(), || Ok(F::ZERO))?, + FpVar::new_witness(cs.clone(), || Ok(F::ZERO))?, + FpVar::new_witness(cs.clone(), || Ok(F::ZERO))?, + ) + }; + + let tag = address.tag_value(); + + if let Some(&(_, _lanes, MemType::Rom, _)) = self.mems.get(&tag) + && self.is_first_step + { + let binding = ShoutCpuBinding { + has_lookup: cs.num_witness_variables() - 3, + addr: cs.num_witness_variables() - 2, + val: cs.num_witness_variables() - 1, + }; + + self.shout_bindings.entry(tag).or_default().push(binding); + // TODO: maybe check that size is <= lanes + } + + tracing::debug!( + "read ({}) {:?} at address {} in segment {}", + cond.value()?, + val_witness.value()?, + address_val.addr, + mem.2, + ); + + // Enforce that has_lookup matches the condition + FpVar::from(cond.clone()).enforce_equal(&has_lookup)?; + + // Enforce that addr_witness matches the address when lookup is active + let addr_fp = + FpVar::new_witness(self.get_cs(), || Ok(F::from(address.address_value())))?; + let addr_constraint = cond.select(&addr_fp, &FpVar::zero())?; + addr_witness.enforce_equal(&addr_constraint)?; + + // Return the value witness as a single-element vector + Ok(vec![val_witness]) + } else { + // Existing logic for RAM memories + if cond.value().unwrap() { + let address_val = Address { + addr: address.address_value(), + tag: address.tag_value(), + }; + + let vals = self.reads.get_mut(&address_val).unwrap(); + let v = vals.pop_front().unwrap().clone(); + + let vals = v + .into_iter() + .map(|v| FpVar::new_witness(self.get_cs(), || Ok(v)).unwrap()) + .collect::>(); + + tracing::debug!( + "read {:?} at address {} in segment {}", + vals.iter() + .map(|v| v.value().unwrap().into_bigint()) + .collect::>(), + address_val.addr, + mem.2, + ); + + Ok(vals) + } else { + let vals = std::iter::repeat_with(|| { + FpVar::new_witness(self.get_cs(), || Ok(F::from(0))).unwrap() + }) + .take(mem.0 as usize); + + Ok(vals.collect()) + } + } + } + + fn conditional_write( + &mut self, + cond: &Boolean, + address: &AllocatedAddress, + vals: &[FpVar], + ) -> Result<(), SynthesisError> { + let _guard = tracing::debug_span!("conditional_write").entered(); + + if cond.value().unwrap() { + let address = Address { + addr: address.address_value(), + tag: address.tag_value(), + }; + + let writes = self.writes.get_mut(&address).unwrap(); + + let expected_vals = writes.pop_front().unwrap().clone(); + + for ((_, val), expected) in vals.iter().enumerate().zip(expected_vals.iter()) { + assert_eq!(val.value().unwrap(), *expected); + } + + let mem = self.mems.get(&address.tag).copied().unwrap(); + + assert_eq!( + mem.0 as usize, + vals.len(), + "write doesn't match mem value size" + ); + + tracing::debug!( + "write values {:?} at address {} in segment {}", + vals.iter() + .map(|v| v.value().unwrap().into_bigint()) + .collect::>(), + address.addr, + mem.2, + ); + } + + Ok(()) + } +} diff --git a/starstream_ivc_proto/src/neo.rs b/starstream_ivc_proto/src/neo.rs index 09f426bd..0f283c6e 100644 --- a/starstream_ivc_proto/src/neo.rs +++ b/starstream_ivc_proto/src/neo.rs @@ -1,16 +1,11 @@ use crate::{ - SCAN_BATCH_SIZE, ccs_step_shape, + ccs_step_shape, circuit::{InterRoundWires, StepCircuitBuilder}, goldilocks::FpGoldilocks, - memory::IVCMemory, - nebula::{ - NebulaMemoryConstraints, - tracer::{NebulaMemory, NebulaMemoryParams}, - }, + memory::twist_and_shout::{TSMemInitTables, TSMemLayouts, TSMemory, TSMemoryConstraints}, }; use ark_ff::PrimeField; use ark_relations::gr1cs::{ConstraintSystem, OptimizationGoal, SynthesisError}; -use neo_ccs::CcsStructure; use neo_fold::session::{NeoCircuit, WitnessLayout}; use neo_memory::{ShoutCpuBinding, TwistCpuBinding}; use neo_vm_trace::{Shout, StepTrace, Twist, VmCpu}; @@ -20,22 +15,24 @@ use std::collections::HashMap; pub(crate) struct StepCircuitNeo { pub(crate) matrices: Vec>>, pub(crate) num_constraints: usize, - pub(crate) num_instance_variables: usize, - pub(crate) num_variables: usize, + pub(crate) ts_mem_spec: TSMemLayouts, + pub(crate) ts_mem_init: TSMemInitTables, } impl StepCircuitNeo { - pub fn new() -> Self { - let ark_cs = ccs_step_shape().unwrap(); + pub fn new(ts_mem_init: TSMemInitTables) -> Self { + let (ark_cs, ts_mem_spec) = ccs_step_shape().unwrap(); let num_constraints = ark_cs.num_constraints(); let num_instance_variables = ark_cs.num_instance_variables(); - let num_variables = ark_cs.num_constraints(); + let num_variables = ark_cs.num_variables(); tracing::info!("num constraints {}", num_constraints); tracing::info!("num instance variables {}", num_instance_variables); tracing::info!("num variables {}", num_variables); + assert_eq!(num_variables, ::Layout::USED_COLS); + let matrices = ark_cs .into_inner() .unwrap() @@ -47,8 +44,8 @@ impl StepCircuitNeo { Self { matrices, num_constraints, - num_instance_variables, - num_variables, + ts_mem_spec, + ts_mem_init, } } } @@ -61,7 +58,7 @@ impl WitnessLayout for CircuitLayout { const M_IN: usize = 1; // instance.len()+witness.len() - const USED_COLS: usize = 1224 + 1; + const USED_COLS: usize = 182; fn new_layout() -> Self { CircuitLayout {} @@ -75,40 +72,46 @@ impl NeoCircuit for StepCircuitNeo { 1 // for now, this is simpler to debug } - fn const_one_col(&self, layout: &Self::Layout) -> usize { + fn const_one_col(&self, _layout: &Self::Layout) -> usize { 0 } fn resources(&self, resources: &mut neo_fold::session::SharedBusResources) { - // TODO: (no memory for now) - // - // . Define Memory Layouts (for Twist): You specify the geometry of your read-write memories, such as their size and address structure. - // // In resources() - // resources - // .twist(0) // Configure Twist memory with op_id = 0 - // // Define its layout: k=size, d=dimensions, etc. - // .layout(PlainMemLayout { k: 2, d: 1, n_side: 2 }); - // . Set Initial Memory Values (for Twist): If your memory isn't zero-initialized, you set the starting values of specific memory cells here. This is how you would "pre-load" a program or - // initial data into memory before execution begins. - - // // In resources() - // resources - // .twist(0) - // // ... after .layout(...) - // // Initialize the cell at address 0 with the value F::ONE - // .init_cell(0, F::ONE); - // . Provide Lookup Table Contents (for Shout): You define the complete contents of any read-only tables that your circuit will look up into. This is how you would define a boot ROM or a - // fixed data table (like a sine wave table). - - // // In resources() - // // Set the data for the lookup table with op_id = 0 - // resources.set_binary_table(0, vec![F::ZERO, F::ONE]); + let max_rom_size = self.ts_mem_init.rom_sizes.values().max(); + + for (tag, (_dims, lanes, ty, _)) in &self.ts_mem_init.mems { + match ty { + crate::memory::MemType::Rom => { + let mut content: Vec = self + .ts_mem_init + .init + .get(tag) + .map(|content| { + content + .into_iter() + .map(|f| ark_field_to_p3_goldilocks(f)) + .collect() + }) + .unwrap_or(vec![]); + + content.resize(max_rom_size.copied().unwrap(), neo_math::F::ZERO); + + resources + .shout(*tag as u32) + .lanes(lanes.0) + .padded_binary_table(content); + } + crate::memory::MemType::Ram => { + // TODO + } + } + } } fn define_cpu_constraints( &self, cs: &mut neo_fold::session::CcsBuilder, - layout: &Self::Layout, + _layout: &Self::Layout, ) -> Result<(), String> { let matrices = &self.matrices; @@ -127,7 +130,7 @@ impl NeoCircuit for StepCircuitNeo { fn build_witness_prefix( &self, - layout: &Self::Layout, + _layout: &Self::Layout, chunk: &[StepTrace], ) -> Result, String> { let mut witness = vec![]; @@ -143,20 +146,28 @@ impl NeoCircuit for StepCircuitNeo { fn cpu_bindings( &self, - layout: &Self::Layout, - ) -> Result<(HashMap, HashMap), String> { - // Create the mapping for Shout (read-only) operations - // let shout_map = HashMap::from([ - // (1u32, layout.boot_rom.cpu_binding()), // op_id 1 -> boot_rom port - // (2u32, layout.trig_table.cpu_binding()), // op_id 2 -> trig_table port - // ]); - - // // Create the mapping for Twist (read-write) operations - // let twist_map = HashMap::from([ - // (0u32, layout.main_ram.cpu_binding()), // op_id 0 -> main_ram port - // ]); - - Ok((HashMap::new(), HashMap::new())) + _layout: &Self::Layout, + ) -> Result< + ( + HashMap>, + HashMap>, + ), + String, + > { + let mut shout_map: HashMap> = HashMap::new(); + + for (tag, layouts) in &self.ts_mem_spec.shout_bindings { + for layout in layouts { + let entry = shout_map.entry(*tag as u32).or_default(); + entry.push(ShoutCpuBinding { + has_lookup: Self::Layout::M_IN + layout.has_lookup, + addr: Self::Layout::M_IN + layout.addr, + val: Self::Layout::M_IN + layout.val, + }); + } + } + + Ok((shout_map, HashMap::new())) } } @@ -170,49 +181,30 @@ fn ark_matrix_to_neo(sparse_row: &[(FpGoldilocks, usize)]) -> Vec<(usize, neo_ma row } -pub fn ark_field_to_p3_goldilocks(col_v: &FpGoldilocks) -> p3_goldilocks::Goldilocks { - let original_u64 = col_v.into_bigint().0[0]; - let result = neo_math::F::from_u64(original_u64); - - // Assert that we can convert back and get the same element - let converted_back = FpGoldilocks::from(original_u64); - assert_eq!( - *col_v, converted_back, - "Field element conversion is not reversible" - ); - - result -} - pub struct StarstreamVm { - step_circuit_builder: StepCircuitBuilder>, + step_circuit_builder: StepCircuitBuilder>, step_i: usize, - mem: NebulaMemoryConstraints, + mem: TSMemoryConstraints, irw: InterRoundWires, regs: Vec, } impl StarstreamVm { pub fn new( - mut step_circuit_builder: StepCircuitBuilder>, + step_circuit_builder: StepCircuitBuilder>, + mem: TSMemoryConstraints, ) -> Self { let irw = InterRoundWires::new( crate::F::from(step_circuit_builder.p_len() as u64), step_circuit_builder.instance.entrypoint.0 as u64, ); - let params = NebulaMemoryParams { - unsound_disable_poseidon_commitment: true, - }; - - let mb = step_circuit_builder.trace_memory_ops(params); - Self { step_circuit_builder, step_i: 0, - mem: mb.constraints(), + mem, irw, - regs: vec![0; 1224 + 1], + regs: vec![0; ::Layout::USED_COLS], } } } @@ -244,7 +236,7 @@ impl VmCpu for StarstreamVm { let cs = ConstraintSystem::::new_ref(); cs.set_optimization_goal(OptimizationGoal::Constraints); - let irw = self.step_circuit_builder.make_step_circuit( + let (irw, mem_trace_data) = self.step_circuit_builder.make_step_circuit( self.step_i, &mut self.mem, cs.clone(), @@ -269,9 +261,30 @@ impl VmCpu for StarstreamVm { ) .collect(); + for event in mem_trace_data { + assert_eq!( + shout.lookup(neo_vm_trace::ShoutId(event.shout_id), event.key), + event.value + ); + } + Ok(neo_vm_trace::StepMeta { pc_after: self.step_i as u64, opcode: 0, }) } } + +pub fn ark_field_to_p3_goldilocks(col_v: &FpGoldilocks) -> p3_goldilocks::Goldilocks { + let original_u64 = col_v.into_bigint().0[0]; + let result = neo_math::F::from_u64(original_u64); + + // Assert that we can convert back and get the same element + let converted_back = FpGoldilocks::from(original_u64); + assert_eq!( + *col_v, converted_back, + "Field element conversion is not reversible" + ); + + result +} diff --git a/starstream_ivc_proto/src/test_utils.rs b/starstream_ivc_proto/src/test_utils.rs index e18b6f67..7ac4d193 100644 --- a/starstream_ivc_proto/src/test_utils.rs +++ b/starstream_ivc_proto/src/test_utils.rs @@ -1,5 +1,5 @@ use ark_relations::gr1cs::{ConstraintLayer, TracingMode}; -use tracing_subscriber::{EnvFilter, Registry, fmt, layer::SubscriberExt as _}; +use tracing_subscriber::{Registry, fmt, layer::SubscriberExt as _}; pub(crate) fn init_test_logging() { static INIT: std::sync::Once = std::sync::Once::new(); From 3c8fae71266da61e84b4708f55a1cfc9c2819180 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Thu, 8 Jan 2026 02:21:10 -0300 Subject: [PATCH 060/152] update Cargo.lock (nightstream rev version) Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- Cargo.lock | 95 +++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 66 insertions(+), 29 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 148014b5..91b5fc22 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1868,7 +1868,7 @@ dependencies = [ [[package]] name = "neo-ajtai" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=0713b5dda6b1e4b924d59f1dd0e1fc51a6495667#0713b5dda6b1e4b924d59f1dd0e1fc51a6495667" +source = "git+https://github.com/nicarq/Nightstream.git?rev=484d3dcb7d8f988cd7602d7717a4d63244f06377#484d3dcb7d8f988cd7602d7717a4d63244f06377" dependencies = [ "neo-ccs", "neo-math", @@ -1888,7 +1888,7 @@ dependencies = [ [[package]] name = "neo-ccs" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=0713b5dda6b1e4b924d59f1dd0e1fc51a6495667#0713b5dda6b1e4b924d59f1dd0e1fc51a6495667" +source = "git+https://github.com/nicarq/Nightstream.git?rev=484d3dcb7d8f988cd7602d7717a4d63244f06377#484d3dcb7d8f988cd7602d7717a4d63244f06377" dependencies = [ "neo-math", "neo-params", @@ -1909,7 +1909,7 @@ dependencies = [ [[package]] name = "neo-fold" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=0713b5dda6b1e4b924d59f1dd0e1fc51a6495667#0713b5dda6b1e4b924d59f1dd0e1fc51a6495667" +source = "git+https://github.com/nicarq/Nightstream.git?rev=484d3dcb7d8f988cd7602d7717a4d63244f06377#484d3dcb7d8f988cd7602d7717a4d63244f06377" dependencies = [ "neo-ajtai", "neo-ccs", @@ -1922,6 +1922,7 @@ dependencies = [ "p3-field", "p3-goldilocks", "p3-matrix", + "rand_chacha 0.9.0", "rayon", "serde", "serde_json", @@ -1932,7 +1933,7 @@ dependencies = [ [[package]] name = "neo-math" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=0713b5dda6b1e4b924d59f1dd0e1fc51a6495667#0713b5dda6b1e4b924d59f1dd0e1fc51a6495667" +source = "git+https://github.com/nicarq/Nightstream.git?rev=484d3dcb7d8f988cd7602d7717a4d63244f06377#484d3dcb7d8f988cd7602d7717a4d63244f06377" dependencies = [ "p3-field", "p3-goldilocks", @@ -1947,7 +1948,7 @@ dependencies = [ [[package]] name = "neo-memory" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=0713b5dda6b1e4b924d59f1dd0e1fc51a6495667#0713b5dda6b1e4b924d59f1dd0e1fc51a6495667" +source = "git+https://github.com/nicarq/Nightstream.git?rev=484d3dcb7d8f988cd7602d7717a4d63244f06377#484d3dcb7d8f988cd7602d7717a4d63244f06377" dependencies = [ "neo-ajtai", "neo-ccs", @@ -1966,7 +1967,7 @@ dependencies = [ [[package]] name = "neo-params" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=0713b5dda6b1e4b924d59f1dd0e1fc51a6495667#0713b5dda6b1e4b924d59f1dd0e1fc51a6495667" +source = "git+https://github.com/nicarq/Nightstream.git?rev=484d3dcb7d8f988cd7602d7717a4d63244f06377#484d3dcb7d8f988cd7602d7717a4d63244f06377" dependencies = [ "serde", "thiserror 2.0.17", @@ -1975,7 +1976,7 @@ dependencies = [ [[package]] name = "neo-reductions" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=0713b5dda6b1e4b924d59f1dd0e1fc51a6495667#0713b5dda6b1e4b924d59f1dd0e1fc51a6495667" +source = "git+https://github.com/nicarq/Nightstream.git?rev=484d3dcb7d8f988cd7602d7717a4d63244f06377#484d3dcb7d8f988cd7602d7717a4d63244f06377" dependencies = [ "bincode", "blake3", @@ -1999,7 +2000,7 @@ dependencies = [ [[package]] name = "neo-transcript" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=0713b5dda6b1e4b924d59f1dd0e1fc51a6495667#0713b5dda6b1e4b924d59f1dd0e1fc51a6495667" +source = "git+https://github.com/nicarq/Nightstream.git?rev=484d3dcb7d8f988cd7602d7717a4d63244f06377#484d3dcb7d8f988cd7602d7717a4d63244f06377" dependencies = [ "neo-ccs", "neo-math", @@ -2015,7 +2016,7 @@ dependencies = [ [[package]] name = "neo-vm-trace" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=0713b5dda6b1e4b924d59f1dd0e1fc51a6495667#0713b5dda6b1e4b924d59f1dd0e1fc51a6495667" +source = "git+https://github.com/nicarq/Nightstream.git?rev=484d3dcb7d8f988cd7602d7717a4d63244f06377#484d3dcb7d8f988cd7602d7717a4d63244f06377" dependencies = [ "serde", "thiserror 2.0.17", @@ -2097,12 +2098,13 @@ checksum = "9c6901729fa79e91a0913333229e9ca5dc725089d1c363b2f4b4760709dc4a52" [[package]] name = "p3-challenger" -version = "0.3.0" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "998a0de338749383ef23dae0f0b4ce9374f89ef0ac55ef1829e31e950555ccd9" +checksum = "20e42ba74a49c08c6e99f74cd9b343bfa31aa5721fea55079b18e3fd65f1dcbc" dependencies = [ "p3-field", "p3-maybe-rayon", + "p3-monty-31", "p3-symmetric", "p3-util", "tracing", @@ -2110,23 +2112,24 @@ dependencies = [ [[package]] name = "p3-dft" -version = "0.3.0" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3b2764a3982d22d62aa933c8de6f9d71d8a474c9110b69e675dea1887bdeffc" +checksum = "e63fa5eb1bd12a240089e72ae3fe10350944d9c166d00a3bfd2a1794db65cf5c" dependencies = [ "itertools 0.14.0", "p3-field", "p3-matrix", "p3-maybe-rayon", "p3-util", + "spin", "tracing", ] [[package]] name = "p3-field" -version = "0.3.0" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc13a73509fe09c67b339951ca8d4cc6e61c9bf08c130dbc90dda52452918cc2" +checksum = "2ebfdb6ef992ae64e9e8f449ac46516ffa584f11afbdf9ee244288c2a633cdf4" dependencies = [ "itertools 0.14.0", "num-bigint", @@ -2140,11 +2143,12 @@ dependencies = [ [[package]] name = "p3-goldilocks" -version = "0.3.0" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "552849f6309ffde34af0d31aa9a2d0a549cb0ec138d9792bfbf4a17800742362" +checksum = "64716244b5612622d4e78a4f48b74f6d3bb7b4085b7b6b25364b1dfca7198c66" dependencies = [ "num-bigint", + "p3-challenger", "p3-dft", "p3-field", "p3-mds", @@ -2158,9 +2162,9 @@ dependencies = [ [[package]] name = "p3-matrix" -version = "0.3.0" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8e1e9f69c2fe15768b3ceb2915edb88c47398aa22c485d8163deab2a47fe194" +checksum = "5542f96504dae8100c91398fb1e3f5ec669eb9c73d9e0b018a93b5fe32bad230" dependencies = [ "itertools 0.14.0", "p3-field", @@ -2174,15 +2178,15 @@ dependencies = [ [[package]] name = "p3-maybe-rayon" -version = "0.3.0" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33f765046b763d046728b3246b690f81dfa7ccd7523b7a1582c74f616fbce6a0" +checksum = "0e5669ca75645f99cd001e9d0289a4eeff2bc2cd9dc3c6c3aaf22643966e83df" [[package]] name = "p3-mds" -version = "0.3.0" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c90541c6056712daf2ee69ec328db8b5605ae8dbafe60226c8eb75eaac0e1f9" +checksum = "038763af23df9da653065867fd85b38626079031576c86fd537097e5be6a0da0" dependencies = [ "p3-dft", "p3-field", @@ -2191,11 +2195,35 @@ dependencies = [ "rand 0.9.2", ] +[[package]] +name = "p3-monty-31" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57a981d60da3d8cbf8561014e2c186068578405fd69098fa75b43d4afb364a47" +dependencies = [ + "itertools 0.14.0", + "num-bigint", + "p3-dft", + "p3-field", + "p3-matrix", + "p3-maybe-rayon", + "p3-mds", + "p3-poseidon2", + "p3-symmetric", + "p3-util", + "paste", + "rand 0.9.2", + "serde", + "spin", + "tracing", + "transpose", +] + [[package]] name = "p3-poseidon2" -version = "0.3.0" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88e9f053f120a78ad27e9c1991a0ea547777328ca24025c42364d6ee2667d59a" +checksum = "903b73e4f9a7781a18561c74dc169cf03333497b57a8dd02aaeb130c0f386599" dependencies = [ "p3-field", "p3-mds", @@ -2206,9 +2234,9 @@ dependencies = [ [[package]] name = "p3-symmetric" -version = "0.3.0" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72d5db8f05a26d706dfd8aaf7aa4272ca4f3e7a075db897ec7108f24fad78759" +checksum = "3cd788f04e86dd5c35dd87cad29eefdb6371d2fd5f7664451382eeacae3c3ed0" dependencies = [ "itertools 0.14.0", "p3-field", @@ -2217,9 +2245,9 @@ dependencies = [ [[package]] name = "p3-util" -version = "0.3.0" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6dfee67245d9ce78a15176728da2280032f0a84b5819a39a953e7ec03cfd9bd7" +checksum = "663b16021930bc600ecada915c6c3965730a3b9d6a6c23434ccf70bfc29d6881" dependencies = [ "serde", ] @@ -2884,6 +2912,15 @@ dependencies = [ "windows-sys 0.60.2", ] +[[package]] +name = "spin" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d5fe4ccb98d9c292d56fec89a5e07da7fc4cf0dc11e156b41793132775d3e591" +dependencies = [ + "lock_api", +] + [[package]] name = "stable_deref_trait" version = "1.2.1" From 4724726a41e72766d4ef4f7d74b93467d8348cd5 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Thu, 8 Jan 2026 10:50:50 -0300 Subject: [PATCH 061/152] chore: clippy cleanup Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/src/circuit.rs | 20 +++++++++---------- starstream_ivc_proto/src/lib.rs | 6 +++--- .../src/memory/nebula/tracer.rs | 4 ++-- .../src/memory/twist_and_shout/mod.rs | 4 +++- starstream_ivc_proto/src/neo.rs | 19 +++++++++++------- 5 files changed, 30 insertions(+), 23 deletions(-) diff --git a/starstream_ivc_proto/src/circuit.rs b/starstream_ivc_proto/src/circuit.rs index 0519abe0..2cae8cf5 100644 --- a/starstream_ivc_proto/src/circuit.rs +++ b/starstream_ivc_proto/src/circuit.rs @@ -595,7 +595,7 @@ pub struct InterRoundWires { handler_stack_counter: F, p_len: F, - n_finalized: F, + _n_finalized: F, } impl ProgramStateWires { @@ -1039,7 +1039,7 @@ impl InterRoundWires { id_prev_is_some: false, id_prev_value: F::ZERO, p_len, - n_finalized: F::from(0), + _n_finalized: F::from(0), ref_arena_counter: F::ZERO, handler_stack_counter: F::ZERO, } @@ -1677,7 +1677,7 @@ impl> StepCircuitBuilder { LedgerOperation::Resume { target, .. } => { irw.id_prev_is_some = true; irw.id_prev_value = irw.id_curr; - irw.id_curr = target.clone(); + irw.id_curr = *target; } LedgerOperation::Yield { .. } | LedgerOperation::Burn { .. } => { irw.id_curr = irw.id_prev_value; @@ -1697,7 +1697,7 @@ impl> StepCircuitBuilder { tag: MemoryTag::RefArena.into(), addr: ret.into_bigint().0[0], }, - vec![val.clone()], + vec![*val], ); Some(ret) @@ -1907,8 +1907,8 @@ impl> StepCircuitBuilder { let irw = PreWires { switches: ExecutionSwitches::resume(), target: *target, - val: val.clone(), - ret: ret.clone(), + val: *val, + ret: *ret, id_prev_is_some: id_prev.is_some(), id_prev_value: id_prev.unwrap_or_default(), ..default @@ -1920,7 +1920,7 @@ impl> StepCircuitBuilder { let irw = PreWires { switches: ExecutionSwitches::yield_op(), target: irw.id_prev_value, - val: val.clone(), + val: *val, ret: ret.unwrap_or_default(), ret_is_some: ret.is_some(), id_prev_is_some: id_prev.is_some(), @@ -1934,7 +1934,7 @@ impl> StepCircuitBuilder { let irw = PreWires { switches: ExecutionSwitches::burn(), target: irw.id_prev_value, - ret: ret.clone(), + ret: *ret, id_prev_is_some: irw.id_prev_is_some, id_prev_value: irw.id_prev_value, ..default @@ -2082,7 +2082,7 @@ impl> StepCircuitBuilder { wires .target_read_wires .initialized - .conditional_enforce_equal(&wires.constant_true.clone().into(), switch)?; + .conditional_enforce_equal(&wires.constant_true, switch)?; // 4. Re-entrancy check (target's arg must be None/0) wires @@ -2241,7 +2241,7 @@ impl> StepCircuitBuilder { wires .target_read_wires .initialized - .conditional_enforce_equal(&wires.constant_false.clone().into(), &switch)?; + .conditional_enforce_equal(&wires.constant_false, &switch)?; // Mark new process as initialized // TODO: There is no need to have this asignment, actually diff --git a/starstream_ivc_proto/src/lib.rs b/starstream_ivc_proto/src/lib.rs index bac324f0..79600d97 100644 --- a/starstream_ivc_proto/src/lib.rs +++ b/starstream_ivc_proto/src/lib.rs @@ -168,10 +168,10 @@ pub fn prove(inst: InterleavingInstance) -> Result let committer = setup_ajtai_committer(m, params.kappa as usize); let prover = pre - .into_prover(params.clone(), committer.clone()) + .into_prover(params, committer.clone()) .expect("into_prover (R1csCpu shared-bus config)"); - let mut session = FoldingSession::new(FoldingMode::Optimized, params.clone(), committer); + let mut session = FoldingSession::new(FoldingMode::Optimized, params, committer); // TODO: not sound, but not important right now session.set_step_linking(StepLinkingConfig::new(vec![(0, 0)])); @@ -194,7 +194,7 @@ pub fn prove(inst: InterleavingInstance) -> Result tracing::info!("proof generated in {} ms", t_prove.elapsed().as_millis()); let ok = session - .verify_collected(&prover.ccs(), &run) + .verify_collected(prover.ccs(), &run) .expect("verify should run"); assert!(ok, "optimized verification should pass"); diff --git a/starstream_ivc_proto/src/memory/nebula/tracer.rs b/starstream_ivc_proto/src/memory/nebula/tracer.rs index 0f1bef52..538e5413 100644 --- a/starstream_ivc_proto/src/memory/nebula/tracer.rs +++ b/starstream_ivc_proto/src/memory/nebula/tracer.rs @@ -45,7 +45,7 @@ impl NebulaMemory { .unwrap_or_else(|| { self.is .get(address) - .expect(&format!("read uninitialized address: {address:?}")) + .unwrap_or_else(|| panic!("read uninitialized address: {address:?}")) .clone() }) } else { @@ -174,7 +174,7 @@ impl IVCMemory for NebulaMemory for TSMemory { } } +pub type ShoutWitnessTuple = (FpVar, FpVar, FpVar); + pub struct TSMemoryConstraints { pub(crate) cs: Option>, pub(crate) reads: BTreeMap, VecDeque>>, @@ -237,7 +239,7 @@ impl TSMemoryConstraints { pub fn allocate_shout_witnesses( &mut self, address: &Address, - ) -> Result<(FpVar, FpVar, FpVar), SynthesisError> { + ) -> Result, SynthesisError> { let cs = self.get_cs(); let (has_lookup_val, addr_val, val_val) = { diff --git a/starstream_ivc_proto/src/neo.rs b/starstream_ivc_proto/src/neo.rs index 0f283c6e..5da78ecc 100644 --- a/starstream_ivc_proto/src/neo.rs +++ b/starstream_ivc_proto/src/neo.rs @@ -88,8 +88,8 @@ impl NeoCircuit for StepCircuitNeo { .get(tag) .map(|content| { content - .into_iter() - .map(|f| ark_field_to_p3_goldilocks(f)) + .iter() + .map(ark_field_to_p3_goldilocks) .collect() }) .unwrap_or(vec![]); @@ -115,10 +115,15 @@ impl NeoCircuit for StepCircuitNeo { ) -> Result<(), String> { let matrices = &self.matrices; - for row in 0..self.num_constraints { - let a_row = ark_matrix_to_neo(&matrices[0][row]); - let b_row = ark_matrix_to_neo(&matrices[1][row]); - let c_row = ark_matrix_to_neo(&matrices[2][row]); + for ((matrix_a, matrix_b), matrix_c) in matrices[0] + .iter() + .zip(&matrices[1]) + .zip(&matrices[2]) + .take(self.num_constraints) + { + let a_row = ark_matrix_to_neo(matrix_a); + let b_row = ark_matrix_to_neo(matrix_b); + let c_row = ark_matrix_to_neo(matrix_c); cs.r1cs_terms(a_row, b_row, c_row); } @@ -226,7 +231,7 @@ impl VmCpu for StarstreamVm { fn step( &mut self, - twist: &mut T, + _twist: &mut T, shout: &mut S, ) -> Result, Self::Error> where From af0bda0674d5adfe2c429c7c6a5a93557913d003 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Thu, 8 Jan 2026 12:21:56 -0300 Subject: [PATCH 062/152] fix/update mock_ledger tests with refs/arena Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_mock_ledger/src/mocked_verifier.rs | 7 +- starstream_mock_ledger/src/tests.rs | 289 +++++++++++++----- 2 files changed, 220 insertions(+), 76 deletions(-) diff --git a/starstream_mock_ledger/src/mocked_verifier.rs b/starstream_mock_ledger/src/mocked_verifier.rs index 610624cb..b06780d5 100644 --- a/starstream_mock_ledger/src/mocked_verifier.rs +++ b/starstream_mock_ledger/src/mocked_verifier.rs @@ -168,6 +168,9 @@ pub enum InterleavingError { #[error("ref not found: {0:?}")] RefNotFound(Ref), + + #[error("NewRef result mismatch. Got: {0:?}. Expected: {0:?}")] + RefInitializationMismatch(Ref, Ref), } // ---------------------------- verifier ---------------------------- @@ -394,7 +397,7 @@ pub fn state_transition( state.counters[id_curr.0] += 1; - match op { + match dbg!(op) { WitLedgerEffect::Resume { target, val, @@ -682,7 +685,7 @@ pub fn state_transition( state.ref_counter += 1; let new_ref = Ref(state.ref_counter); if new_ref != ret { - return Err(InterleavingError::Shape("NewRef result mismatch")); + return Err(InterleavingError::RefInitializationMismatch(ret, new_ref)); } state.ref_store.insert(new_ref, val); } diff --git a/starstream_mock_ledger/src/tests.rs b/starstream_mock_ledger/src/tests.rs index 840008d4..9b0b964f 100644 --- a/starstream_mock_ledger/src/tests.rs +++ b/starstream_mock_ledger/src/tests.rs @@ -1,6 +1,29 @@ use super::*; use crate::{mocked_verifier::InterleavingError, transaction_effects::witness::WitLedgerEffect}; +struct RefGenerator { + counter: u64, + map: HashMap<&'static str, Ref>, +} + +impl RefGenerator { + fn new() -> Self { + Self { + counter: 1, + map: HashMap::new(), + } + } + + fn get(&mut self, name: &'static str) -> Ref { + let entry = self.map.entry(name).or_insert_with(|| { + let r = Ref(self.counter); + self.counter += 1; + r + }); + *entry + } +} + pub fn h(n: u8) -> Hash { // TODO: actual hashing let mut bytes = [0u8; 32]; @@ -48,7 +71,7 @@ fn mock_genesis() -> (Ledger, UtxoId, UtxoId, CoroutineId, CoroutineId) { UtxoEntry { state: CoroutineState { pc: 0, - last_yield: Ref(1), + last_yield: v(b"yield_1"), }, contract_hash: input_hash_1.clone(), }, @@ -58,7 +81,7 @@ fn mock_genesis() -> (Ledger, UtxoId, UtxoId, CoroutineId, CoroutineId) { UtxoEntry { state: CoroutineState { pc: 0, - last_yield: Ref(2), + last_yield: v(b"yield_2"), }, contract_hash: input_hash_2.clone(), }, @@ -173,19 +196,63 @@ fn mock_genesis_and_apply_tx(proven_tx: ProvenTransaction) -> Result Init | | | + // NewRef("init_b") | | | | + // NewUtxo(B) ----------------------------------> Init | | + // NewRef("spend_input_1") | | | | + // NewRef("continued_1") | | | | + // Resume ----------------> Activation | | | + // |<--- -------------- Yield | | | + // NewRef("spend_input_2") | | | | + // NewRef("burned_2") | | | | + // Resume ------------------------------------> Activation | | + // |<--------------------------------------- Burn | | + // NewRef("done_a") | | | | + // Resume -----------------------------------------------------------> Activation | + // |<------------------------------------------------------------- Bind | + // |<------------------------------------------------------------- Yield | + // NewRef("done_b") | | | | + // Resume ---------------------------------------------------------------------------------> Activation + // |<----------------------------------------------------------------------------------- Yield + // | | | | | + // (end) (continued) (burned) (new_output) (new_output) + let (ledger, input_utxo_1, input_utxo_2, _, _) = mock_genesis(); let coord_hash = h(1); let utxo_hash_a = h(2); let utxo_hash_b = h(3); + let mut refs = RefGenerator::new(); + + // Pre-allocate all refs in the order they appear in coord_trace to ensure consistent numbering + let init_a_ref = refs.get("init_a"); + let init_b_ref = refs.get("init_b"); + let spend_input_1_ref = refs.get("spend_input_1"); + let continued_1_ref = refs.get("continued_1"); + let spend_input_2_ref = refs.get("spend_input_2"); + let burned_2_ref = refs.get("burned_2"); + let done_a_ref = refs.get("done_a"); + let done_b_ref = refs.get("done_b"); + + // Host refs.get("init_b")r each process in canonical order: inputs ++ new_outputs ++ coord_scripts + // Process 0: Input 1, Process 1: Input 2, Process 2: UTXO A (spawn), Process 3: UTXO B (spawn), Process 4: Coordination script let input_1_trace = vec![ WitLedgerEffect::Activation { - val: v(b"spend_input_1"), + val: spend_input_1_ref, caller: ProcessId(4), }, WitLedgerEffect::Yield { - val: Ref(2), + val: continued_1_ref, ret: None, id_prev: Some(ProcessId(4)), }, @@ -193,28 +260,26 @@ fn test_transaction_with_coord_and_utxos() { let input_2_trace = vec![ WitLedgerEffect::Activation { - val: v(b"spend_input_2"), + val: spend_input_2_ref, caller: ProcessId(4), }, - WitLedgerEffect::Burn { - ret: Ref(4), - }, + WitLedgerEffect::Burn { ret: burned_2_ref }, ]; let utxo_a_trace = vec![ WitLedgerEffect::Init { - val: v(b"init_a"), + val: init_a_ref, caller: ProcessId(4), }, WitLedgerEffect::Activation { - val: v(b"init_a"), + val: init_a_ref, caller: ProcessId(4), }, WitLedgerEffect::Bind { owner_id: ProcessId(3), }, WitLedgerEffect::Yield { - val: Ref(6), + val: done_a_ref, ret: None, id_prev: Some(ProcessId(4)), }, @@ -222,85 +287,85 @@ fn test_transaction_with_coord_and_utxos() { let utxo_b_trace = vec![ WitLedgerEffect::Init { - val: v(b"init_b"), + val: init_b_ref, caller: ProcessId(4), }, WitLedgerEffect::Activation { - val: v(b"init_b"), + val: init_b_ref, caller: ProcessId(4), }, WitLedgerEffect::Yield { - val: Ref(8), + val: done_b_ref, ret: None, id_prev: Some(ProcessId(4)), }, ]; let coord_trace = vec![ + WitLedgerEffect::NewRef { + val: v(b"init_a"), + ret: init_a_ref, + }, WitLedgerEffect::NewUtxo { program_hash: utxo_hash_a.clone(), - val: v(b"init_a"), + val: init_a_ref, id: ProcessId(2), }, + WitLedgerEffect::NewRef { + val: v(b"init_b"), + ret: init_b_ref, + }, WitLedgerEffect::NewUtxo { program_hash: utxo_hash_b.clone(), - val: v(b"init_b"), + val: init_b_ref, id: ProcessId(3), }, WitLedgerEffect::NewRef { val: v(b"spend_input_1"), - ret: Ref(1), + ret: spend_input_1_ref, }, WitLedgerEffect::NewRef { val: v(b"continued_1"), - ret: Ref(2), + ret: continued_1_ref, }, WitLedgerEffect::Resume { target: ProcessId(0), - val: Ref(1), - ret: Ref(2), + val: spend_input_1_ref, + ret: continued_1_ref, id_prev: None, }, WitLedgerEffect::NewRef { val: v(b"spend_input_2"), - ret: Ref(3), + ret: spend_input_2_ref, }, WitLedgerEffect::NewRef { val: v(b"burned_2"), - ret: Ref(4), + ret: burned_2_ref, }, WitLedgerEffect::Resume { target: ProcessId(1), - val: Ref(3), - ret: Ref(4), + val: spend_input_2_ref, + ret: burned_2_ref, id_prev: Some(ProcessId(0)), }, - WitLedgerEffect::NewRef { - val: v(b"init_a"), - ret: Ref(5), - }, WitLedgerEffect::NewRef { val: v(b"done_a"), - ret: Ref(6), + ret: done_a_ref, }, WitLedgerEffect::Resume { target: ProcessId(2), - val: Ref(5), - ret: Ref(6), + val: init_a_ref, + ret: done_a_ref, id_prev: Some(ProcessId(1)), }, - WitLedgerEffect::NewRef { - val: v(b"init_b"), - ret: Ref(7), - }, WitLedgerEffect::NewRef { val: v(b"done_b"), - ret: Ref(8), + ret: done_b_ref, }, WitLedgerEffect::Resume { target: ProcessId(3), - val: Ref(7), - ret: Ref(8), + val: init_b_ref, + ret: done_b_ref, id_prev: Some(ProcessId(2)), }, ]; @@ -310,7 +375,7 @@ fn test_transaction_with_coord_and_utxos() { input_utxo_1, Some(CoroutineState { pc: 1, - last_yield: Ref(2), + last_yield: v(b"continued_1"), }), input_1_trace, ) @@ -319,7 +384,7 @@ fn test_transaction_with_coord_and_utxos() { NewOutput { state: CoroutineState { pc: 0, - last_yield: Ref(6), + last_yield: v(b"done_a"), }, contract_hash: utxo_hash_a.clone(), }, @@ -329,7 +394,7 @@ fn test_transaction_with_coord_and_utxos() { NewOutput { state: CoroutineState { pc: 0, - last_yield: Ref(8), + last_yield: v(b"done_b"), }, contract_hash: utxo_hash_b.clone(), }, @@ -342,23 +407,87 @@ fn test_transaction_with_coord_and_utxos() { let ledger = ledger.apply_transaction(&proven_tx).unwrap(); - assert_eq!(ledger.utxos.len(), 3); + assert_eq!(ledger.utxos.len(), 3); assert_eq!(ledger.ownership_registry.len(), 1); } #[test] fn test_effect_handlers() { + // Create a transaction with: + // - 1 coordination script (process 1) that acts as an effect handler + // - 1 new UTXO (process 0) that calls the effect handler + // + // Roughly models this: + // + // interface Interface { + // Effect(int): int + // } + // + // utxo Utxo { + // main { + // raise Interface::Effect(42); + // } + // } + // + // script { + // fn main() { + // let utxo = Utxo::new(); + // + // try { + // utxo.resume(utxo); + // } + // with Interface { + // do Effect(x) = { + // resume(43) + // } + // } + // } + // } + // + // This test simulates a coordination script acting as an algebraic effect handler + // for a UTXO. The UTXO "raises" an effect by calling the handler, and the + // handler resumes the UTXO with the result. + // + // P1 (Coord/Handler) P0 (UTXO) + // | | + // (entrypoint) | + // | | + // InstallHandler (interface) | + // | | + // r1 = NewRef("init_utxo") | + // | | + // NewUtxo -----------------------------------------> (P0 created) + // (val=r1) | + // | | + // Resume --------------------------------------------->| + // (val=r1) | + // | Activation (val=r1, caller=P1) + // | ProgramHash(P1) -> (attest caller) + // | GetHandlerFor(interface) -> P1 + // | r2 = NewRef("Interface::Effect(42)") + // |<----------------------------------Resume (Effect call) + // | (val=r2, ret=r3) + // (handles effect) | + // | | + // r3 = NewRef("EffectResponse") | + // r4 = NewRef("utxo_final") | + // | | + // Resume --------------------------------------------->| (Resume with result) + // (val=r3, ret=r4) | + // | | + // |<-------------------------------------------- Yield (val=r4) + // UninstallHandler(interface) | + // | | + // (end) | let coord_hash = h(1); let utxo_hash = h(2); let interface_id = h(42); + let mut ref_gen = RefGenerator::new(); + let utxo_trace = vec![ - WitLedgerEffect::Init { - val: v(b"init_utxo"), - caller: ProcessId(1), - }, WitLedgerEffect::Activation { - val: v(b"init_utxo"), + val: ref_gen.get("init_utxo"), caller: ProcessId(1), }, WitLedgerEffect::ProgramHash { @@ -369,14 +498,18 @@ fn test_effect_handlers() { interface_id: interface_id.clone(), handler_id: ProcessId(1), }, + WitLedgerEffect::NewRef { + val: v(b"Interface::Effect(42)"), + ret: ref_gen.get("effect_request"), + }, WitLedgerEffect::Resume { target: ProcessId(1), - val: Ref(2), - ret: Ref(3), + val: ref_gen.get("effect_request"), + ret: ref_gen.get("effect_request_response"), id_prev: Some(ProcessId(1)), }, WitLedgerEffect::Yield { - val: Ref(4), + val: ref_gen.get("utxo_final"), ret: None, id_prev: Some(ProcessId(1)), }, @@ -386,37 +519,33 @@ fn test_effect_handlers() { WitLedgerEffect::InstallHandler { interface_id: interface_id.clone(), }, - WitLedgerEffect::NewUtxo { - program_hash: h(2), - val: v(b"init_utxo"), - id: ProcessId(0), - }, WitLedgerEffect::NewRef { val: v(b"init_utxo"), - ret: Ref(1), + ret: ref_gen.get("init_utxo"), }, - WitLedgerEffect::NewRef { - val: v(b"Interface::Effect(42)"), - ret: Ref(2), + WitLedgerEffect::NewUtxo { + program_hash: h(2), + val: ref_gen.get("init_utxo"), + id: ProcessId(0), }, WitLedgerEffect::Resume { target: ProcessId(0), - val: Ref(1), - ret: Ref(2), + val: ref_gen.get("init_utxo"), + ret: ref_gen.get("effect_request"), id_prev: None, }, WitLedgerEffect::NewRef { val: v(b"Interface::EffectResponse(43)"), - ret: Ref(3), + ret: ref_gen.get("effect_request_response"), }, WitLedgerEffect::NewRef { val: v(b"utxo_final"), - ret: Ref(4), + ret: ref_gen.get("utxo_final"), }, WitLedgerEffect::Resume { target: ProcessId(0), - val: Ref(3), - ret: Ref(4), + val: ref_gen.get("effect_request_response"), + ret: ref_gen.get("utxo_final"), id_prev: Some(ProcessId(0)), }, WitLedgerEffect::UninstallHandler { interface_id }, @@ -427,7 +556,7 @@ fn test_effect_handlers() { NewOutput { state: CoroutineState { pc: 0, - last_yield: Ref(4), + last_yield: v(b"utxo_final"), }, contract_hash: utxo_hash.clone(), }, @@ -458,10 +587,13 @@ fn test_burn_with_continuation_fails() { input_utxo_1, Some(CoroutineState { pc: 1, - last_yield: Ref(1), + last_yield: v(b"burned"), }), vec![ - WitLedgerEffect::NewRef { val: v(b"burned"), ret: Ref(1) }, + WitLedgerEffect::NewRef { + val: v(b"burned"), + ret: Ref(1), + }, WitLedgerEffect::Burn { ret: Ref(1) }, ], ) @@ -484,7 +616,10 @@ fn test_utxo_resumes_utxo_fails() { input_utxo_1, None, vec![ - WitLedgerEffect::NewRef { val: v(b""), ret: Ref(1) }, + WitLedgerEffect::NewRef { + val: v(b""), + ret: Ref(1), + }, WitLedgerEffect::Resume { target: ProcessId(1), val: Ref(1), @@ -513,7 +648,7 @@ fn test_continuation_without_yield_fails() { input_utxo_1, Some(CoroutineState { pc: 1, - last_yield: Ref(1), + last_yield: v(b""), }), vec![], ) @@ -565,7 +700,7 @@ fn test_duplicate_input_utxo_fails() { UtxoEntry { state: CoroutineState { pc: 0, - last_yield: Ref(0), + last_yield: Value::nil(), }, contract_hash: h(1), }, @@ -598,14 +733,20 @@ fn test_duplicate_input_utxo_fails() { input_id.clone(), None, vec![ - WitLedgerEffect::NewRef { val: Value::nil(), ret: Ref(1) }, - WitLedgerEffect::Burn { ret: Ref(1) } + WitLedgerEffect::NewRef { + val: Value::nil(), + ret: Ref(2), + }, + WitLedgerEffect::Burn { ret: Ref(1) }, ], ) .with_coord_script( coord_hash, vec![ - WitLedgerEffect::NewRef { val: Value::nil(), ret: Ref(1) }, + WitLedgerEffect::NewRef { + val: Value::nil(), + ret: Ref(1), + }, WitLedgerEffect::Resume { target: 0.into(), val: Ref(1), From 26da292fc8642dc7f5f2478035ede681448fda62 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Thu, 8 Jan 2026 14:59:08 -0300 Subject: [PATCH 063/152] circuit: connect rams to twist Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/src/circuit.rs | 156 +++-- starstream_ivc_proto/src/circuit_test.rs | 73 ++- starstream_ivc_proto/src/lib.rs | 21 +- .../src/memory/twist_and_shout/mod.rs | 610 +++++++++++++----- starstream_ivc_proto/src/neo.rs | 115 +++- 5 files changed, 734 insertions(+), 241 deletions(-) diff --git a/starstream_ivc_proto/src/circuit.rs b/starstream_ivc_proto/src/circuit.rs index 2cae8cf5..bf815095 100644 --- a/starstream_ivc_proto/src/circuit.rs +++ b/starstream_ivc_proto/src/circuit.rs @@ -68,7 +68,7 @@ impl InterfaceResolver { #[derive(Clone)] struct HandlerState { - handler_stack_node_read: Vec>, + handler_stack_node_process: FpVar, interface_rom_read: FpVar, } @@ -108,8 +108,9 @@ pub enum MemoryTag { Ownership = 11, Init = 12, RefArena = 13, - HandlerStackArena = 14, - HandlerStackHeads = 15, + HandlerStackArenaProcess = 14, + HandlerStackArenaNextPtr = 15, + HandlerStackHeads = 16, } impl From for u64 { @@ -850,29 +851,45 @@ impl Wires { )?[0] .clone(); - let handler_stack_node_read = rm.conditional_read( + let handler_stack_node_process = rm.conditional_read( &handler_switches.read_node, &Address { - tag: MemoryTag::HandlerStackArena.allocate(cs.clone())?, + tag: MemoryTag::HandlerStackArenaProcess.allocate(cs.clone())?, addr: handler_stack_head_read.clone(), }, + )?[0] + .clone(); + + let handler_stack_node_next = rm.conditional_read( + &handler_switches.read_node, + &Address { + tag: MemoryTag::HandlerStackArenaNextPtr.allocate(cs.clone())?, + addr: handler_stack_head_read.clone(), + }, + )?[0] + .clone(); + + rm.conditional_write( + &handler_switches.write_node, + &Address { + tag: MemoryTag::HandlerStackArenaProcess.allocate(cs.clone())?, + addr: handler_stack_counter.clone(), + }, + &[handler_switches + .write_node + .select(&id_curr, &FpVar::new_constant(cs.clone(), F::ZERO)?)?], // process_id )?; rm.conditional_write( &handler_switches.write_node, &Address { - tag: MemoryTag::HandlerStackArena.allocate(cs.clone())?, + tag: MemoryTag::HandlerStackArenaNextPtr.allocate(cs.clone())?, addr: handler_stack_counter.clone(), }, - &[ - handler_switches - .write_node - .select(&id_curr, &FpVar::new_constant(cs.clone(), F::ZERO)?)?, // process_id - handler_switches.write_node.select( - &handler_stack_head_read, - &FpVar::new_constant(cs.clone(), F::ZERO)?, - )?, // next_ptr (old head) - ], + &[handler_switches.write_node.select( + &handler_stack_head_read, + &FpVar::new_constant(cs.clone(), F::ZERO)?, + )?], // next_ptr (old head) )?; rm.conditional_write( @@ -883,12 +900,12 @@ impl Wires { }, &[handler_switches.write_node.select( &handler_stack_counter, // install: new node becomes head - &handler_stack_node_read[1], + &handler_stack_node_next, )?], )?; let handler_state = HandlerState { - handler_stack_node_read, + handler_stack_node_process, interface_rom_read: interface_rom_read.clone(), }; @@ -1763,9 +1780,16 @@ impl> StepCircuitBuilder { mem.init( Address { addr: i as u64, - tag: MemoryTag::HandlerStackArena.into(), + tag: MemoryTag::HandlerStackArenaProcess.into(), + }, + vec![F::ZERO], // process_id + ); + mem.init( + Address { + addr: i as u64, + tag: MemoryTag::HandlerStackArenaNextPtr.into(), }, - vec![F::ZERO, F::ZERO], // (process_id, next_ptr) + vec![F::ZERO], // next_ptr ); } } @@ -1810,24 +1834,45 @@ impl> StepCircuitBuilder { }, )[0]; - let node_data = mb.conditional_read( + let _node_process = mb.conditional_read( + config.handler_switches.read_node, + Address { + tag: MemoryTag::HandlerStackArenaProcess.into(), + addr: current_head.into_bigint().0[0], + }, + )[0]; + + let node_next = mb.conditional_read( config.handler_switches.read_node, Address { - tag: MemoryTag::HandlerStackArena.into(), + tag: MemoryTag::HandlerStackArenaNextPtr.into(), addr: current_head.into_bigint().0[0], }, + )[0]; + + mb.conditional_write( + config.handler_switches.write_node, + Address { + tag: MemoryTag::HandlerStackArenaProcess.into(), + addr: irw.handler_stack_counter.into_bigint().0[0], + }, + if config.handler_switches.write_node { + vec![irw.id_curr] + } else { + vec![F::ZERO] + }, ); mb.conditional_write( config.handler_switches.write_node, Address { - tag: MemoryTag::HandlerStackArena.into(), + tag: MemoryTag::HandlerStackArenaNextPtr.into(), addr: irw.handler_stack_counter.into_bigint().0[0], }, if config.handler_switches.write_node { - vec![irw.id_curr, current_head] + vec![current_head] } else { - vec![F::ZERO, F::ZERO] + vec![F::ZERO] }, ); @@ -1840,7 +1885,7 @@ impl> StepCircuitBuilder { vec![if config.handler_switches.write_node { irw.handler_stack_counter } else if config.handler_switches.write_head { - node_data.get(1).copied().unwrap_or(F::ZERO) + node_next } else { F::ZERO }], @@ -2441,12 +2486,12 @@ impl> StepCircuitBuilder { .conditional_enforce_equal(&wires.val, switch)?; // Read the node at current head: should contain (process_id, next_ptr) - let node_data = &wires.handler_state.handler_stack_node_read; + let node_process = &wires.handler_state.handler_stack_node_process; // Verify the process_id in the node matches the current process (only installer can uninstall) wires .id_curr - .conditional_enforce_equal(&node_data[0], switch)?; + .conditional_enforce_equal(node_process, switch)?; Ok(wires) } @@ -2463,10 +2508,10 @@ impl> StepCircuitBuilder { .conditional_enforce_equal(&wires.val, switch)?; // Read the node at current head: should contain (process_id, next_ptr) - let node_data = &wires.handler_state.handler_stack_node_read; + let node_process = &wires.handler_state.handler_stack_node_process; // The process_id in the node IS the handler_id we want to return - wires.ret.conditional_enforce_equal(&node_data[0], switch)?; + wires.ret.conditional_enforce_equal(node_process, switch)?; Ok(wires) } @@ -2497,46 +2542,75 @@ fn register_memory_segments>(mb: &mut M) { MemType::Rom, "ROM_INTERFACES", ); + mb.register_mem(MemoryTag::RefArena.into(), 1, MemType::Rom, "ROM_REF_ARENA"); - mb.register_mem( + mb.register_mem_with_lanes( MemoryTag::ExpectedInput.into(), 1, MemType::Ram, + Lanes(2), "RAM_EXPECTED_INPUT", ); - mb.register_mem( + mb.register_mem_with_lanes( MemoryTag::Activation.into(), 1, MemType::Ram, + Lanes(2), "RAM_ACTIVATION", ); - mb.register_mem(MemoryTag::Init.into(), 1, MemType::Ram, "RAM_INIT"); - mb.register_mem(MemoryTag::Counters.into(), 1, MemType::Ram, "RAM_COUNTERS"); - mb.register_mem( + mb.register_mem_with_lanes( + MemoryTag::Init.into(), + 1, + MemType::Ram, + Lanes(2), + "RAM_INIT", + ); + mb.register_mem_with_lanes( + MemoryTag::Counters.into(), + 1, + MemType::Ram, + Lanes(2), + "RAM_COUNTERS", + ); + mb.register_mem_with_lanes( MemoryTag::Initialized.into(), 1, MemType::Ram, + Lanes(2), "RAM_INITIALIZED", ); - mb.register_mem( + mb.register_mem_with_lanes( MemoryTag::Finalized.into(), 1, MemType::Ram, + Lanes(2), "RAM_FINALIZED", ); - mb.register_mem(MemoryTag::DidBurn.into(), 1, MemType::Ram, "RAM_DID_BURN"); - mb.register_mem(MemoryTag::RefArena.into(), 1, MemType::Ram, "RAM_REF_ARENA"); - mb.register_mem( + mb.register_mem_with_lanes( + MemoryTag::DidBurn.into(), + 1, + MemType::Ram, + Lanes(2), + "RAM_DID_BURN", + ); + mb.register_mem_with_lanes( MemoryTag::Ownership.into(), 1, MemType::Ram, + Lanes(2), "RAM_OWNERSHIP", ); mb.register_mem( - MemoryTag::HandlerStackArena.into(), - 2, + MemoryTag::HandlerStackArenaProcess.into(), + 1, + MemType::Ram, + "RAM_HANDLER_STACK_ARENA_PROCESS", + ); + mb.register_mem( + MemoryTag::HandlerStackArenaNextPtr.into(), + 1, MemType::Ram, - "RAM_HANDLER_STACK_ARENA", + "RAM_HANDLER_STACK_ARENA_NEXT_PTR", ); mb.register_mem( MemoryTag::HandlerStackHeads.into(), diff --git a/starstream_ivc_proto/src/circuit_test.rs b/starstream_ivc_proto/src/circuit_test.rs index 3acc8430..3fe62ff6 100644 --- a/starstream_ivc_proto/src/circuit_test.rs +++ b/starstream_ivc_proto/src/circuit_test.rs @@ -1,7 +1,6 @@ use crate::{prove, test_utils::init_test_logging}; use starstream_mock_ledger::{ - CoroutineState, Hash, InterleavingInstance, MockedLookupTableCommitment, ProcessId, Ref, Value, - WitLedgerEffect, + Hash, InterleavingInstance, MockedLookupTableCommitment, ProcessId, Ref, Value, WitLedgerEffect, }; pub fn h(n: u8) -> Hash { @@ -16,7 +15,7 @@ pub fn v(data: &[u8]) -> Value { } #[test] -fn test_circuit_simple_resume() { +fn test_circuit_many_steps() { init_test_logging(); let utxo_id = 0; @@ -154,3 +153,71 @@ fn test_circuit_simple_resume() { let result = prove(instance); assert!(result.is_ok()); } + +#[test] +fn test_circuit_small() { + init_test_logging(); + + let utxo_id = 0; + let coord_id = 1; + + let p0 = ProcessId(utxo_id); + let p1 = ProcessId(coord_id); + + let val_0 = v(&[0]); + + let ref_0 = Ref(0); + + let utxo_trace = MockedLookupTableCommitment { + trace: vec![WitLedgerEffect::Yield { + val: ref_0.clone(), // Yielding nothing + ret: None, // Not expecting to be resumed again + id_prev: Some(p1), + }], + }; + + let coord_trace = MockedLookupTableCommitment { + trace: vec![ + WitLedgerEffect::NewRef { + val: val_0, + ret: ref_0, + }, + WitLedgerEffect::NewUtxo { + program_hash: h(0), + val: ref_0, + id: p0, + }, + WitLedgerEffect::Resume { + target: p0, + val: ref_0.clone(), + ret: ref_0.clone(), + id_prev: None, + }, + ], + }; + + let traces = vec![utxo_trace, coord_trace]; + + let trace_lens = traces + .iter() + .map(|t| t.trace.len() as u32) + .collect::>(); + + let instance = InterleavingInstance { + n_inputs: 0, + n_new: 1, + n_coords: 1, + entrypoint: p1, + process_table: vec![h(0), h(1)], + is_utxo: vec![true, false], + must_burn: vec![false, false], + ownership_in: vec![None, None], + ownership_out: vec![None, None], + host_calls_roots: traces, + host_calls_lens: trace_lens, + input_states: vec![], + }; + + let result = prove(instance); + assert!(result.is_ok()); +} diff --git a/starstream_ivc_proto/src/lib.rs b/starstream_ivc_proto/src/lib.rs index 79600d97..a65661cd 100644 --- a/starstream_ivc_proto/src/lib.rs +++ b/starstream_ivc_proto/src/lib.rs @@ -27,7 +27,6 @@ use neo_fold::pi_ccs::FoldingMode; use neo_fold::session::{FoldingSession, preprocess_shared_bus_r1cs}; use neo_fold::shard::StepLinkingConfig; use neo_params::NeoParams; -use neo_vm_trace::{Twist, TwistId}; use rand::SeedableRng as _; use starstream_mock_ledger::{InterleavingInstance, ProcessId}; @@ -119,21 +118,6 @@ pub struct ProverOutput { pub proof: (), } -#[derive(Clone, Debug, Default)] -pub struct MapTwist { - mem: HashMap<(TwistId, u64), u64>, -} - -impl Twist for MapTwist { - fn load(&mut self, id: TwistId, addr: u64) -> u64 { - *self.mem.get(&(id, addr)).unwrap_or(&0) - } - - fn store(&mut self, id: TwistId, addr: u64, val: u64) { - self.mem.insert((id, addr), val); - } -} - pub fn prove(inst: InterleavingInstance) -> Result { // map all the disjoints vectors of traces (one per process) into a single // list, which is simpler to think about for ivc. @@ -176,13 +160,12 @@ pub fn prove(inst: InterleavingInstance) -> Result // TODO: not sound, but not important right now session.set_step_linking(StepLinkingConfig::new(vec![(0, 0)])); - let twist = MapTwist::default(); - let shout = mb.clone(); + let (constraints, shout, twist) = mb.split(); prover .execute_into_session( &mut session, - StarstreamVm::new(circuit_builder, mb.constraints()), + StarstreamVm::new(circuit_builder, constraints), twist, shout, max_steps, diff --git a/starstream_ivc_proto/src/memory/twist_and_shout/mod.rs b/starstream_ivc_proto/src/memory/twist_and_shout/mod.rs index dc0bd584..03e7aa16 100644 --- a/starstream_ivc_proto/src/memory/twist_and_shout/mod.rs +++ b/starstream_ivc_proto/src/memory/twist_and_shout/mod.rs @@ -1,6 +1,7 @@ use super::Address; use super::IVCMemory; use super::IVCMemoryAllocated; +use crate::circuit::MemoryTag; use crate::memory::AllocatedAddress; use crate::memory::MemType; use ark_ff::PrimeField; @@ -12,22 +13,66 @@ use ark_r1cs_std::fields::fp::FpVar; use ark_r1cs_std::prelude::Boolean; use ark_relations::gr1cs::ConstraintSystemRef; use ark_relations::gr1cs::SynthesisError; -use neo_vm_trace::Shout; +use neo_vm_trace::{Shout, Twist, TwistId, TwistOpKind}; use std::collections::BTreeMap; use std::collections::VecDeque; use std::marker::PhantomData; -/// CPU binding mapping for Shout protocol +pub const TWIST_DEBUG_FILTER: &[u32] = &[ + MemoryTag::ExpectedInput as u32, + MemoryTag::Activation as u32, + MemoryTag::Counters as u32, + MemoryTag::Initialized as u32, + MemoryTag::Finalized as u32, + MemoryTag::DidBurn as u32, + MemoryTag::Ownership as u32, + MemoryTag::Init as u32, + MemoryTag::RefArena as u32, + MemoryTag::HandlerStackArenaProcess as u32, + MemoryTag::HandlerStackArenaNextPtr as u32, + MemoryTag::HandlerStackHeads as u32, +]; + #[derive(Debug, Clone)] pub struct ShoutCpuBinding { - /// Witness column index for the lookup flag pub has_lookup: usize, - /// Witness column index for the lookup address pub addr: usize, - /// Witness column index for the lookup value pub val: usize, } +#[derive(Debug, Clone)] +pub struct TwistCpuBinding { + pub ra: usize, + pub has_read: usize, + pub rv: usize, + pub wa: usize, + pub has_write: usize, + pub wv: usize, +} + +#[derive(Debug, Clone, Default)] +pub struct PartialTwistCpuBinding { + pub ra: Option, + pub has_read: Option, + pub rv: Option, + pub wa: Option, + pub has_write: Option, + pub wv: Option, +} + +impl PartialTwistCpuBinding { + pub fn to_complete(&self) -> TwistCpuBinding { + TwistCpuBinding { + ra: self.ra.unwrap(), + has_read: self.has_read.unwrap(), + rv: self.rv.unwrap(), + wa: self.wa.unwrap(), + has_write: self.has_write.unwrap(), + wv: self.wv.unwrap(), + } + } +} + /// Event representing a shout lookup operation #[derive(Debug, Clone)] pub struct ShoutEvent { @@ -36,6 +81,17 @@ pub struct ShoutEvent { pub value: u64, } +/// Event representing a twist memory operation +#[derive(Debug, Clone)] +pub struct TwistEvent { + pub twist_id: u32, + pub addr: u64, + pub val: u64, + pub op: TwistOpKind, + pub cond: bool, + pub lane: Option, +} + #[derive(Clone)] pub struct TSMemory { pub(crate) phantom: PhantomData, @@ -47,18 +103,21 @@ pub struct TSMemory { /// Captured shout events for witness generation, organized by address pub(crate) shout_events: BTreeMap, VecDeque>, + /// Captured twist events for witness generation, organized by address + pub(crate) twist_events: BTreeMap, VecDeque>, } /// Initial ROM tables computed by TSMemory pub struct TSMemInitTables { pub mems: BTreeMap, pub rom_sizes: BTreeMap, - pub init: BTreeMap>, + pub init: BTreeMap>, } /// Layout/bindings computed by TSMemoryConstraints pub struct TSMemLayouts { pub shout_bindings: BTreeMap>, + pub twist_bindings: BTreeMap>, } #[derive(Clone, Copy)] @@ -82,6 +141,7 @@ impl IVCMemory for TSMemory { init: BTreeMap::default(), mems: BTreeMap::default(), shout_events: BTreeMap::default(), + twist_events: BTreeMap::default(), } } @@ -102,37 +162,44 @@ impl IVCMemory for TSMemory { fn conditional_read(&mut self, cond: bool, address: Address) -> Vec { if let Some(&(_, _, MemType::Rom, _)) = self.mems.get(&address.tag) { - // For ROM memories, we need to capture the shout event if cond { - // Get the value from init (ROM is read-only) let value = self.init.get(&address).unwrap().clone(); - - // Record this as a shout event for witness generation let shout_event = ShoutEvent { shout_id: address.tag as u32, key: address.addr, - value: value[0].into_bigint().as_ref()[0], // Convert F to u64 + value: value[0].into_bigint().as_ref()[0], }; let shout_events = self.shout_events.entry(address.clone()).or_default(); shout_events.push_back(shout_event); - value } else { - // No lookup, return zero let mem_value_size = self.mems.get(&address.tag).unwrap().0; std::iter::repeat_n(F::from(0), mem_value_size as usize).collect() } } else { let reads = self.reads.entry(address.clone()).or_default(); - if cond { let last = self .writes .get(&address) .and_then(|writes| writes.back().cloned()) .unwrap_or_else(|| self.init.get(&address).unwrap().clone()); - reads.push_back(last.clone()); + + let twist_event = TwistEvent { + twist_id: address.tag as u32, + addr: address.addr, + val: last[0].into_bigint().as_ref()[0], + op: TwistOpKind::Read, + cond, + lane: None, + }; + + self.twist_events + .entry(address.clone()) + .or_default() + .push_back(twist_event); + last } else { let mem_value_size = self.mems.get(&address.tag).unwrap().0; @@ -147,9 +214,25 @@ impl IVCMemory for TSMemory { values.len(), "write doesn't match mem value size" ); - if cond { - self.writes.entry(address).or_default().push_back(values); + self.writes + .entry(address.clone()) + .or_default() + .push_back(values.clone()); + + let twist_event = TwistEvent { + twist_id: address.tag as u32, + addr: address.addr, + val: values[0].into_bigint().as_ref()[0], + op: TwistOpKind::Write, + cond, + lane: None, + }; + + self.twist_events + .entry(address) + .or_default() + .push_back(twist_event); } } @@ -160,13 +243,16 @@ impl IVCMemory for TSMemory { fn constraints(self) -> Self::Allocator { TSMemoryConstraints { cs: None, - reads: self.reads, - writes: self.writes, mems: self.mems, shout_events: self.shout_events, + twist_events: self.twist_events, shout_bindings: BTreeMap::new(), - step_events: vec![], + partial_twist_bindings: BTreeMap::new(), + step_events_shout: vec![], + step_events_twist: vec![], is_first_step: true, + write_lanes: BTreeMap::new(), + read_lanes: BTreeMap::new(), } } } @@ -174,13 +260,22 @@ impl IVCMemory for TSMemory { impl TSMemory { pub fn init_tables(&self) -> TSMemInitTables { let mut rom_sizes = BTreeMap::new(); - let mut init = BTreeMap::new(); + let mut init = BTreeMap::>::new(); for (address, val) in &self.init { - if let Some((_, _, MemType::Rom, _)) = self.mems.get(&address.tag) { + let is_rom = if let Some((_, _, MemType::Rom, _)) = self.mems.get(&address.tag) { *rom_sizes.entry(address.tag).or_insert(0) += 1; + + true + } else { + false + }; + + if is_rom || TWIST_DEBUG_FILTER.contains(&(address.tag as u32)) { + init.entry(address.tag) + .or_default() + .insert(address.addr, val[0]); } - init.entry(address.tag).or_insert(vec![]).push(val[0]); } TSMemInitTables { @@ -189,9 +284,39 @@ impl TSMemory { init, } } + + pub fn split(self) -> (TSMemoryConstraints, TracedShout, TracedTwist) { + let (init, twist_events, mems, shout_events) = + (self.init, self.twist_events, self.mems, self.shout_events); + + let traced_shout = TracedShout { init }; + let traced_twist = TracedTwist { + twist_events: twist_events.clone(), + }; + + let constraints = TSMemoryConstraints { + cs: None, + mems, + shout_events, + twist_events, + shout_bindings: BTreeMap::new(), + partial_twist_bindings: BTreeMap::new(), + step_events_shout: vec![], + step_events_twist: vec![], + is_first_step: true, + write_lanes: BTreeMap::new(), + read_lanes: BTreeMap::new(), + }; + + (constraints, traced_shout, traced_twist) + } +} + +pub struct TracedShout { + pub init: BTreeMap, Vec>, } -impl Shout for TSMemory { +impl Shout for TracedShout { fn lookup(&mut self, shout_id: neo_vm_trace::ShoutId, key: u64) -> u64 { let value = self .init @@ -202,72 +327,292 @@ impl Shout for TSMemory { .unwrap() .clone(); - value[0].into_bigint().0[0] + value[0].into_bigint().as_ref()[0] } } -pub type ShoutWitnessTuple = (FpVar, FpVar, FpVar); +pub struct TracedTwist { + pub twist_events: BTreeMap, VecDeque>, +} + +impl Twist for TracedTwist { + fn load(&mut self, id: TwistId, addr: u64) -> u64 { + let address = Address { + tag: id.0 as u64, + addr, + }; + + let event = self + .twist_events + .get_mut(&address) + .unwrap() + .pop_front() + .unwrap(); + + assert_eq!(event.op, TwistOpKind::Read); + event.val + } + + fn store(&mut self, id: TwistId, addr: u64, val: u64) { + let address = Address { + tag: id.0 as u64, + addr, + }; + let event = self + .twist_events + .get_mut(&address) + .unwrap() + .pop_front() + .unwrap(); + + assert_eq!(event.op, TwistOpKind::Write); + assert_eq!(event.val, val); + } +} pub struct TSMemoryConstraints { pub(crate) cs: Option>, - pub(crate) reads: BTreeMap, VecDeque>>, - pub(crate) writes: BTreeMap, VecDeque>>, pub(crate) mems: BTreeMap, - /// Captured shout events for witness generation, organized by address pub(crate) shout_events: BTreeMap, VecDeque>, + pub(crate) twist_events: BTreeMap, VecDeque>, - /// Captured shout CPU bindings with actual witness indices pub(crate) shout_bindings: BTreeMap>, + pub(crate) partial_twist_bindings: BTreeMap>, - step_events: Vec, + step_events_shout: Vec, + step_events_twist: Vec, - /// We only need to compute ShoutBinding layouts once is_first_step: bool, + + write_lanes: BTreeMap, + read_lanes: BTreeMap, } impl TSMemoryConstraints { - /// Generate the memory layouts with actual witness indices pub fn ts_mem_layouts(&self) -> TSMemLayouts { + let mut twist_bindings = BTreeMap::new(); + + for (tag, partials) in &self.partial_twist_bindings { + let mut complete = Vec::new(); + for p in partials { + complete.push(p.to_complete()); + } + + if TWIST_DEBUG_FILTER.contains(&(*tag as u32)) { + twist_bindings.insert(*tag, complete); + } + } + TSMemLayouts { shout_bindings: self.shout_bindings.clone(), + twist_bindings, } } - /// Allocate witness variables for shout protocol based on address - pub fn allocate_shout_witnesses( + pub fn get_shout_traced_values( &mut self, address: &Address, - ) -> Result, SynthesisError> { - let cs = self.get_cs(); - + ) -> Result<(F, F, F), SynthesisError> { let (has_lookup_val, addr_val, val_val) = { let event = self .shout_events - .get_mut(dbg!(address)) + .get_mut(address) .unwrap() .pop_front() .unwrap(); - self.step_events.push(event.clone()); + self.step_events_shout.push(event.clone()); (F::from(1), F::from(event.key), F::from(event.value)) }; + Ok((has_lookup_val, addr_val, val_val)) + } + + pub fn get_twist_traced_values( + &mut self, + address: &Address, + lane: u32, + kind: TwistOpKind, + ) -> Result<(F, F, F), SynthesisError> { + let (ra, rv) = { + let mut event = self + .twist_events + .get_mut(address) + .unwrap() + .pop_front() + .unwrap(); + + event.lane.replace(lane); + + assert_eq!(event.op, kind); + + if TWIST_DEBUG_FILTER.contains(&event.twist_id) { + self.step_events_twist.push(event.clone()); + } + + (F::from(event.addr), F::from(event.val)) + }; + + Ok((F::one(), ra, rv)) + } +} + +impl TSMemoryConstraints { + fn get_next_read_lane(&mut self, twist_id: u64) -> u32 { + *self + .read_lanes + .entry(twist_id.try_into().unwrap()) + .and_modify(|l| *l += 1) + .or_insert(0) + } + + fn get_next_write_lane(&mut self, twist_id: u64) -> u32 { + *self + .write_lanes + .entry(twist_id.try_into().unwrap()) + .and_modify(|l| *l += 1) + .or_insert(0) + } + + fn update_partial_twist_bindings_read(&mut self, tag: u64, base_index: usize, lane: usize) { + let bindings = self.partial_twist_bindings.entry(tag).or_default(); + + while bindings.len() <= lane { + bindings.push(PartialTwistCpuBinding::default()); + } + + let b = &mut bindings[lane]; + b.has_read = Some(base_index); + b.ra = Some(base_index + 1); + b.rv = Some(base_index + 2); + } + + fn update_partial_twist_bindings_write(&mut self, tag: u64, base_index: usize, lane: usize) { + let bindings = self.partial_twist_bindings.entry(tag).or_default(); + + while bindings.len() <= lane { + bindings.push(PartialTwistCpuBinding::default()); + } + + let b = &mut bindings[lane]; + b.has_write = Some(base_index); + b.wa = Some(base_index + 1); + b.wv = Some(base_index + 2); + } + + fn conditional_read_rom( + &mut self, + cond: &Boolean, + address: &AllocatedAddress, + ) -> Result>, SynthesisError> { + let address_val = Address { + addr: address.address_value(), + tag: address.tag_value(), + }; + + let cs = self.get_cs(); + + let base_index = cs.num_witness_variables(); + + let (has_lookup_val, addr_witness_val, val_witness_val) = if cond.value()? { + self.get_shout_traced_values(&address_val)? + } else { + (F::ZERO, F::from(address.address_value()), F::ZERO) + }; + let has_lookup = FpVar::new_witness(cs.clone(), || Ok(has_lookup_val))?; - let addr = FpVar::new_witness(cs.clone(), || Ok(addr_val))?; - let val = FpVar::new_witness(cs.clone(), || Ok(val_val))?; + let addr_witness = FpVar::new_witness(cs.clone(), || Ok(addr_witness_val))?; + let val_witness = FpVar::new_witness(cs.clone(), || Ok(val_witness_val))?; + + let tag = address.tag_value(); + + if let Some(&(_, _lanes, MemType::Rom, _)) = self.mems.get(&tag) + && self.is_first_step + { + let binding = ShoutCpuBinding { + has_lookup: base_index, + addr: base_index + 1, + val: base_index + 2, + }; + self.shout_bindings.entry(tag).or_default().push(binding); + } - Ok((has_lookup, addr, val)) + FpVar::from(cond.clone()).enforce_equal(&has_lookup)?; + + let addr_fp = FpVar::new_witness(self.get_cs(), || Ok(F::from(address.address_value())))?; + addr_witness.enforce_equal(&addr_fp)?; + + Ok(vec![val_witness]) + } + + fn conditional_read_ram( + &mut self, + cond: &Boolean, + address: &AllocatedAddress, + ) -> Result>, SynthesisError> { + let twist_id = address.tag_value(); + let address_val = Address { + addr: address.address_value(), + tag: twist_id, + }; + + let cs = self.get_cs(); + let base_index = cs.num_witness_variables(); + + let cond_val = cond.value()?; + + let lane = self.get_next_read_lane(twist_id); + + let (has_read_val, ra_val, rv_val) = if cond_val { + self.get_twist_traced_values(&address_val, lane, TwistOpKind::Read)? + } else { + if TWIST_DEBUG_FILTER.contains(&(twist_id as u32)) { + self.step_events_twist.push(TwistEvent { + twist_id: twist_id as u32, + addr: 0, + val: 0, + op: TwistOpKind::Write, + cond: cond_val, + lane: Some(lane), + }); + } + + (F::ZERO, F::ZERO, F::ZERO) + }; + + let has_read = FpVar::new_witness(cs.clone(), || Ok(has_read_val))?; + let ra = FpVar::new_witness(cs.clone(), || Ok(ra_val))?; + let rv = FpVar::new_witness(cs.clone(), || Ok(rv_val))?; + + assert_eq!(cs.num_witness_variables(), base_index + 3); + + let tag = address.tag_value(); + + if let Some(&(_, _lanes, MemType::Ram, _)) = self.mems.get(&tag) + && self.is_first_step + && TWIST_DEBUG_FILTER.contains(&(tag as u32)) + { + self.update_partial_twist_bindings_read(tag, base_index, lane as usize); + } + + FpVar::from(cond.clone()).enforce_equal(&has_read)?; + + let addr_fp = FpVar::new_witness(self.get_cs(), || Ok(F::from(address.address_value())))?; + let addr_constraint = cond.select(&addr_fp, &FpVar::zero())?; + ra.enforce_equal(&addr_constraint)?; + + Ok(vec![rv]) } } impl IVCMemoryAllocated for TSMemoryConstraints { - type FinishStepPayload = Vec; + type FinishStepPayload = (Vec, Vec); fn start_step(&mut self, cs: ConstraintSystemRef) -> Result<(), SynthesisError> { - self.cs.replace(cs); + self.cs.replace(cs.clone()); Ok(()) } @@ -278,12 +623,18 @@ impl IVCMemoryAllocated for TSMemoryConstraints { ) -> Result { self.cs = None; - let mut step_events = vec![]; - std::mem::swap(&mut step_events, &mut self.step_events); + let mut step_events_shout = vec![]; + std::mem::swap(&mut step_events_shout, &mut self.step_events_shout); + + let mut step_events_twist = vec![]; + std::mem::swap(&mut step_events_twist, &mut self.step_events_twist); self.is_first_step = false; - Ok(step_events) + self.read_lanes.clear(); + self.write_lanes.clear(); + + Ok((step_events_shout, step_events_twist)) } fn get_cs(&self) -> ConstraintSystemRef { @@ -300,96 +651,14 @@ impl IVCMemoryAllocated for TSMemoryConstraints { let mem = self.mems.get(&address.tag_value()).copied().unwrap(); - // Check if this is a ROM memory that should use Shout protocol if mem.2 == MemType::Rom { - // For ROM memories, allocate witnesses using Shout protocol - let address_val = Address { - addr: address.address_value(), - tag: address.tag_value(), - }; - - let cs = self.get_cs(); - let (has_lookup, addr_witness, val_witness) = if cond.value()? { - self.allocate_shout_witnesses(&address_val)? - } else { - ( - FpVar::new_witness(cs.clone(), || Ok(F::ZERO))?, - FpVar::new_witness(cs.clone(), || Ok(F::ZERO))?, - FpVar::new_witness(cs.clone(), || Ok(F::ZERO))?, - ) - }; - - let tag = address.tag_value(); - - if let Some(&(_, _lanes, MemType::Rom, _)) = self.mems.get(&tag) - && self.is_first_step - { - let binding = ShoutCpuBinding { - has_lookup: cs.num_witness_variables() - 3, - addr: cs.num_witness_variables() - 2, - val: cs.num_witness_variables() - 1, - }; - - self.shout_bindings.entry(tag).or_default().push(binding); - // TODO: maybe check that size is <= lanes - } - - tracing::debug!( - "read ({}) {:?} at address {} in segment {}", - cond.value()?, - val_witness.value()?, - address_val.addr, - mem.2, - ); - - // Enforce that has_lookup matches the condition - FpVar::from(cond.clone()).enforce_equal(&has_lookup)?; - - // Enforce that addr_witness matches the address when lookup is active - let addr_fp = - FpVar::new_witness(self.get_cs(), || Ok(F::from(address.address_value())))?; - let addr_constraint = cond.select(&addr_fp, &FpVar::zero())?; - addr_witness.enforce_equal(&addr_constraint)?; - - // Return the value witness as a single-element vector - Ok(vec![val_witness]) + self.conditional_read_rom(cond, address) } else { - // Existing logic for RAM memories - if cond.value().unwrap() { - let address_val = Address { - addr: address.address_value(), - tag: address.tag_value(), - }; - - let vals = self.reads.get_mut(&address_val).unwrap(); - let v = vals.pop_front().unwrap().clone(); - - let vals = v - .into_iter() - .map(|v| FpVar::new_witness(self.get_cs(), || Ok(v)).unwrap()) - .collect::>(); - - tracing::debug!( - "read {:?} at address {} in segment {}", - vals.iter() - .map(|v| v.value().unwrap().into_bigint()) - .collect::>(), - address_val.addr, - mem.2, - ); - - Ok(vals) - } else { - let vals = std::iter::repeat_with(|| { - FpVar::new_witness(self.get_cs(), || Ok(F::from(0))).unwrap() - }) - .take(mem.0 as usize); - - Ok(vals.collect()) - } + self.conditional_read_ram(cond, address) } } + #[tracing::instrument(target = "gr1cs", skip_all)] fn conditional_write( &mut self, cond: &Boolean, @@ -398,38 +667,69 @@ impl IVCMemoryAllocated for TSMemoryConstraints { ) -> Result<(), SynthesisError> { let _guard = tracing::debug_span!("conditional_write").entered(); - if cond.value().unwrap() { - let address = Address { - addr: address.address_value(), - tag: address.tag_value(), - }; - - let writes = self.writes.get_mut(&address).unwrap(); - - let expected_vals = writes.pop_front().unwrap().clone(); + let mem_tag = address.tag_value(); + let mem = self.mems.get(&mem_tag).copied().unwrap(); - for ((_, val), expected) in vals.iter().enumerate().zip(expected_vals.iter()) { - assert_eq!(val.value().unwrap(), *expected); - } - - let mem = self.mems.get(&address.tag).copied().unwrap(); + if mem.2 != MemType::Ram { + unreachable!("can't write to Rom memory"); + } + if cond.value().unwrap() { assert_eq!( mem.0 as usize, vals.len(), "write doesn't match mem value size" ); + } - tracing::debug!( - "write values {:?} at address {} in segment {}", - vals.iter() - .map(|v| v.value().unwrap().into_bigint()) - .collect::>(), - address.addr, - mem.2, - ); + let twist_id = address.tag_value(); + let address_cpu = Address { + addr: address.address_value(), + tag: twist_id, + }; + + let cs = self.get_cs(); + let base_index = cs.num_witness_variables(); + + let cond_val = cond.value()?; + + let lane = self.get_next_write_lane(twist_id); + + let (has_write_val, wa_val, wv_val) = if cond_val { + self.get_twist_traced_values(&address_cpu, lane, TwistOpKind::Write)? + } else { + if TWIST_DEBUG_FILTER.contains(&(twist_id as u32)) { + self.step_events_twist.push(TwistEvent { + twist_id: twist_id as u32, + addr: 0, + val: 0, + op: TwistOpKind::Write, + cond: cond_val, + lane: Some(lane), + }); + } + + ( + F::ZERO, + F::from(address.address_value()), + vals[0].value().unwrap_or(F::ZERO), + ) + }; + + let has_write = FpVar::new_witness(cs.clone(), || Ok(has_write_val))?; + let wa = FpVar::new_witness(cs.clone(), || Ok(wa_val))?; + let wv = FpVar::new_witness(cs.clone(), || Ok(wv_val))?; + + if self.is_first_step && TWIST_DEBUG_FILTER.contains(&(address_cpu.tag as u32)) { + self.update_partial_twist_bindings_write(mem_tag, base_index, lane as usize); } + FpVar::from(cond.clone()).enforce_equal(&has_write)?; + + let addr_fp = FpVar::new_witness(self.get_cs(), || Ok(F::from(address.address_value())))?; + wa.enforce_equal(&addr_fp)?; + wv.enforce_equal(&vals[0])?; + Ok(()) } } diff --git a/starstream_ivc_proto/src/neo.rs b/starstream_ivc_proto/src/neo.rs index 5da78ecc..adbf4980 100644 --- a/starstream_ivc_proto/src/neo.rs +++ b/starstream_ivc_proto/src/neo.rs @@ -2,7 +2,9 @@ use crate::{ ccs_step_shape, circuit::{InterRoundWires, StepCircuitBuilder}, goldilocks::FpGoldilocks, - memory::twist_and_shout::{TSMemInitTables, TSMemLayouts, TSMemory, TSMemoryConstraints}, + memory::twist_and_shout::{ + TSMemInitTables, TSMemLayouts, TSMemory, TSMemoryConstraints, TWIST_DEBUG_FILTER, + }, }; use ark_ff::PrimeField; use ark_relations::gr1cs::{ConstraintSystem, OptimizationGoal, SynthesisError}; @@ -48,6 +50,18 @@ impl StepCircuitNeo { ts_mem_init, } } + + fn get_mem_content_iter<'a>( + &'a self, + tag: &'a u64, + ) -> impl Iterator + 'a { + self.ts_mem_init + .init + .get(tag) + .into_iter() + .flat_map(|content| content.iter()) + .map(|(addr, val)| (*addr, ark_field_to_p3_goldilocks(val))) + } } #[derive(Clone)] @@ -58,7 +72,7 @@ impl WitnessLayout for CircuitLayout { const M_IN: usize = 1; // instance.len()+witness.len() - const USED_COLS: usize = 182; + const USED_COLS: usize = 332; fn new_layout() -> Self { CircuitLayout {} @@ -82,27 +96,39 @@ impl NeoCircuit for StepCircuitNeo { for (tag, (_dims, lanes, ty, _)) in &self.ts_mem_init.mems { match ty { crate::memory::MemType::Rom => { - let mut content: Vec = self - .ts_mem_init - .init - .get(tag) - .map(|content| { - content - .iter() - .map(ark_field_to_p3_goldilocks) - .collect() - }) - .unwrap_or(vec![]); + let size = *max_rom_size.unwrap(); + let mut dense_content = vec![neo_math::F::ZERO; size]; - content.resize(max_rom_size.copied().unwrap(), neo_math::F::ZERO); + for (addr, val) in self.get_mem_content_iter(tag) { + dense_content[addr as usize] = val; + } resources .shout(*tag as u32) .lanes(lanes.0) - .padded_binary_table(content); + .padded_binary_table(dense_content); } crate::memory::MemType::Ram => { - // TODO + if !TWIST_DEBUG_FILTER.iter().any(|f| *tag == *f as u64) { + continue; + } + + let twist_id = *tag as u32; + let k = 64usize; // TODO: hardcoded number + assert!(k > 0, "set_binary_mem_layout: k must be > 0"); + assert!( + k.is_power_of_two(), + "set_binary_mem_layout: k must be a power of two" + ); + resources + .twist(twist_id) + .layout(neo_memory::PlainMemLayout { + k, + d: k.trailing_zeros() as usize, + n_side: 2, + lanes: lanes.0, + }) + .init(self.get_mem_content_iter(tag)); } } } @@ -172,7 +198,24 @@ impl NeoCircuit for StepCircuitNeo { } } - Ok((shout_map, HashMap::new())) + let mut twist_map: HashMap> = HashMap::new(); + + for (tag, layouts) in &self.ts_mem_spec.twist_bindings { + for layout in layouts { + let entry = twist_map.entry(*tag as u32).or_default(); + entry.push(TwistCpuBinding { + read_addr: Self::Layout::M_IN + layout.ra, + has_read: Self::Layout::M_IN + layout.has_read, + rv: Self::Layout::M_IN + layout.rv, + write_addr: Self::Layout::M_IN + layout.wa, + has_write: Self::Layout::M_IN + layout.has_write, + wv: Self::Layout::M_IN + layout.wv, + inc: None, + }); + } + } + + Ok((shout_map, twist_map)) } } @@ -231,7 +274,7 @@ impl VmCpu for StarstreamVm { fn step( &mut self, - _twist: &mut T, + twist: &mut T, shout: &mut S, ) -> Result, Self::Error> where @@ -241,7 +284,7 @@ impl VmCpu for StarstreamVm { let cs = ConstraintSystem::::new_ref(); cs.set_optimization_goal(OptimizationGoal::Constraints); - let (irw, mem_trace_data) = self.step_circuit_builder.make_step_circuit( + let (irw, (shout_events, twist_events)) = self.step_circuit_builder.make_step_circuit( self.step_i, &mut self.mem, cs.clone(), @@ -266,13 +309,39 @@ impl VmCpu for StarstreamVm { ) .collect(); - for event in mem_trace_data { + for event in shout_events { assert_eq!( shout.lookup(neo_vm_trace::ShoutId(event.shout_id), event.key), event.value ); } + for event in twist_events { + match event.op { + neo_vm_trace::TwistOpKind::Read => { + assert_eq!( + twist.load_if_lane( + event.cond, + neo_vm_trace::TwistId(event.twist_id), + event.addr, + event.val, + event.lane.unwrap(), + ), + event.val, + ); + } + neo_vm_trace::TwistOpKind::Write => { + twist.store_if_lane( + event.cond, + neo_vm_trace::TwistId(event.twist_id), + event.addr, + event.val, + event.lane.unwrap(), + ); + } + } + } + Ok(neo_vm_trace::StepMeta { pc_after: self.step_i as u64, opcode: 0, @@ -280,14 +349,14 @@ impl VmCpu for StarstreamVm { } } -pub fn ark_field_to_p3_goldilocks(col_v: &FpGoldilocks) -> p3_goldilocks::Goldilocks { - let original_u64 = col_v.into_bigint().0[0]; +pub fn ark_field_to_p3_goldilocks(v: &FpGoldilocks) -> p3_goldilocks::Goldilocks { + let original_u64 = v.into_bigint().0[0]; let result = neo_math::F::from_u64(original_u64); // Assert that we can convert back and get the same element let converted_back = FpGoldilocks::from(original_u64); assert_eq!( - *col_v, converted_back, + *v, converted_back, "Field element conversion is not reversible" ); From 1e2d62ddc0fa6ecf7fb3997616c7743c2d693abb Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Fri, 9 Jan 2026 20:56:10 -0300 Subject: [PATCH 064/152] point nightstream to 100f3e6 (#61) Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- Cargo.lock | 18 +++++++++--------- starstream_ivc_proto/Cargo.toml | 14 +++++++------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 91b5fc22..0b77acb9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1868,7 +1868,7 @@ dependencies = [ [[package]] name = "neo-ajtai" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=484d3dcb7d8f988cd7602d7717a4d63244f06377#484d3dcb7d8f988cd7602d7717a4d63244f06377" +source = "git+https://github.com/nicarq/Nightstream.git?rev=100f3e638e59537ae3f2a109c9a91c2af97479c0#100f3e638e59537ae3f2a109c9a91c2af97479c0" dependencies = [ "neo-ccs", "neo-math", @@ -1888,7 +1888,7 @@ dependencies = [ [[package]] name = "neo-ccs" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=484d3dcb7d8f988cd7602d7717a4d63244f06377#484d3dcb7d8f988cd7602d7717a4d63244f06377" +source = "git+https://github.com/nicarq/Nightstream.git?rev=100f3e638e59537ae3f2a109c9a91c2af97479c0#100f3e638e59537ae3f2a109c9a91c2af97479c0" dependencies = [ "neo-math", "neo-params", @@ -1909,7 +1909,7 @@ dependencies = [ [[package]] name = "neo-fold" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=484d3dcb7d8f988cd7602d7717a4d63244f06377#484d3dcb7d8f988cd7602d7717a4d63244f06377" +source = "git+https://github.com/nicarq/Nightstream.git?rev=100f3e638e59537ae3f2a109c9a91c2af97479c0#100f3e638e59537ae3f2a109c9a91c2af97479c0" dependencies = [ "neo-ajtai", "neo-ccs", @@ -1933,7 +1933,7 @@ dependencies = [ [[package]] name = "neo-math" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=484d3dcb7d8f988cd7602d7717a4d63244f06377#484d3dcb7d8f988cd7602d7717a4d63244f06377" +source = "git+https://github.com/nicarq/Nightstream.git?rev=100f3e638e59537ae3f2a109c9a91c2af97479c0#100f3e638e59537ae3f2a109c9a91c2af97479c0" dependencies = [ "p3-field", "p3-goldilocks", @@ -1948,7 +1948,7 @@ dependencies = [ [[package]] name = "neo-memory" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=484d3dcb7d8f988cd7602d7717a4d63244f06377#484d3dcb7d8f988cd7602d7717a4d63244f06377" +source = "git+https://github.com/nicarq/Nightstream.git?rev=100f3e638e59537ae3f2a109c9a91c2af97479c0#100f3e638e59537ae3f2a109c9a91c2af97479c0" dependencies = [ "neo-ajtai", "neo-ccs", @@ -1967,7 +1967,7 @@ dependencies = [ [[package]] name = "neo-params" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=484d3dcb7d8f988cd7602d7717a4d63244f06377#484d3dcb7d8f988cd7602d7717a4d63244f06377" +source = "git+https://github.com/nicarq/Nightstream.git?rev=100f3e638e59537ae3f2a109c9a91c2af97479c0#100f3e638e59537ae3f2a109c9a91c2af97479c0" dependencies = [ "serde", "thiserror 2.0.17", @@ -1976,7 +1976,7 @@ dependencies = [ [[package]] name = "neo-reductions" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=484d3dcb7d8f988cd7602d7717a4d63244f06377#484d3dcb7d8f988cd7602d7717a4d63244f06377" +source = "git+https://github.com/nicarq/Nightstream.git?rev=100f3e638e59537ae3f2a109c9a91c2af97479c0#100f3e638e59537ae3f2a109c9a91c2af97479c0" dependencies = [ "bincode", "blake3", @@ -2000,7 +2000,7 @@ dependencies = [ [[package]] name = "neo-transcript" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=484d3dcb7d8f988cd7602d7717a4d63244f06377#484d3dcb7d8f988cd7602d7717a4d63244f06377" +source = "git+https://github.com/nicarq/Nightstream.git?rev=100f3e638e59537ae3f2a109c9a91c2af97479c0#100f3e638e59537ae3f2a109c9a91c2af97479c0" dependencies = [ "neo-ccs", "neo-math", @@ -2016,7 +2016,7 @@ dependencies = [ [[package]] name = "neo-vm-trace" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=484d3dcb7d8f988cd7602d7717a4d63244f06377#484d3dcb7d8f988cd7602d7717a4d63244f06377" +source = "git+https://github.com/nicarq/Nightstream.git?rev=100f3e638e59537ae3f2a109c9a91c2af97479c0#100f3e638e59537ae3f2a109c9a91c2af97479c0" dependencies = [ "serde", "thiserror 2.0.17", diff --git a/starstream_ivc_proto/Cargo.toml b/starstream_ivc_proto/Cargo.toml index ac03a6d5..66fda293 100644 --- a/starstream_ivc_proto/Cargo.toml +++ b/starstream_ivc_proto/Cargo.toml @@ -13,13 +13,13 @@ ark-poly-commit = "0.5.0" tracing = { version = "0.1", default-features = false, features = [ "attributes" ] } tracing-subscriber = { version = "0.3", features = ["env-filter"] } -neo-fold = { git = "https://github.com/nicarq/Nightstream.git", rev = "484d3dcb7d8f988cd7602d7717a4d63244f06377" } -neo-math = { git = "https://github.com/nicarq/Nightstream.git", rev = "484d3dcb7d8f988cd7602d7717a4d63244f06377" } -neo-ccs = { git = "https://github.com/nicarq/Nightstream.git", rev = "484d3dcb7d8f988cd7602d7717a4d63244f06377" } -neo-ajtai = { git = "https://github.com/nicarq/Nightstream.git", rev = "484d3dcb7d8f988cd7602d7717a4d63244f06377" } -neo-params = { git = "https://github.com/nicarq/Nightstream.git", rev = "484d3dcb7d8f988cd7602d7717a4d63244f06377" } -neo-vm-trace = { git = "https://github.com/nicarq/Nightstream.git", rev = "484d3dcb7d8f988cd7602d7717a4d63244f06377" } -neo-memory = { git = "https://github.com/nicarq/Nightstream.git", rev = "484d3dcb7d8f988cd7602d7717a4d63244f06377" } +neo-fold = { git = "https://github.com/nicarq/Nightstream.git", rev = "100f3e638e59537ae3f2a109c9a91c2af97479c0" } +neo-math = { git = "https://github.com/nicarq/Nightstream.git", rev = "100f3e638e59537ae3f2a109c9a91c2af97479c0" } +neo-ccs = { git = "https://github.com/nicarq/Nightstream.git", rev = "100f3e638e59537ae3f2a109c9a91c2af97479c0" } +neo-ajtai = { git = "https://github.com/nicarq/Nightstream.git", rev = "100f3e638e59537ae3f2a109c9a91c2af97479c0" } +neo-params = { git = "https://github.com/nicarq/Nightstream.git", rev = "100f3e638e59537ae3f2a109c9a91c2af97479c0" } +neo-vm-trace = { git = "https://github.com/nicarq/Nightstream.git", rev = "100f3e638e59537ae3f2a109c9a91c2af97479c0" } +neo-memory = { git = "https://github.com/nicarq/Nightstream.git", rev = "100f3e638e59537ae3f2a109c9a91c2af97479c0" } starstream_mock_ledger = { path = "../starstream_mock_ledger" } From 17bfb8bc12c287973f9913d9e4a55b17a1ed5e94 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Sat, 10 Jan 2026 21:47:10 -0300 Subject: [PATCH 065/152] allow arbitrarily sized refs Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/src/circuit.rs | 196 ++++++++++++++---- starstream_ivc_proto/src/circuit_test.rs | 21 +- starstream_ivc_proto/src/lib.rs | 30 ++- starstream_ivc_proto/src/neo.rs | 2 +- starstream_mock_ledger/README.md | 39 +++- starstream_mock_ledger/src/lib.rs | 11 +- starstream_mock_ledger/src/mocked_verifier.rs | 67 +++++- starstream_mock_ledger/src/tests.rs | 137 +++++------- .../src/transaction_effects/witness.rs | 6 +- 9 files changed, 346 insertions(+), 163 deletions(-) diff --git a/starstream_ivc_proto/src/circuit.rs b/starstream_ivc_proto/src/circuit.rs index bf815095..47fcb12a 100644 --- a/starstream_ivc_proto/src/circuit.rs +++ b/starstream_ivc_proto/src/circuit.rs @@ -187,6 +187,7 @@ struct ExecutionSwitches { bind: T, unbind: T, new_ref: T, + ref_push: T, get: T, install_handler: T, uninstall_handler: T, @@ -278,6 +279,13 @@ impl ExecutionSwitches { } } + fn ref_push() -> Self { + Self { + ref_push: true, + ..Self::default() + } + } + fn get() -> Self { Self { get: true, @@ -324,6 +332,7 @@ impl ExecutionSwitches { self.bind, self.unbind, self.new_ref, + self.ref_push, self.get, self.install_handler, self.uninstall_handler, @@ -361,6 +370,7 @@ impl ExecutionSwitches { bind, unbind, new_ref, + ref_push, get, install_handler, uninstall_handler, @@ -383,6 +393,7 @@ impl ExecutionSwitches { bind: bind.clone(), unbind: unbind.clone(), new_ref: new_ref.clone(), + ref_push: ref_push.clone(), get: get.clone(), install_handler: install_handler.clone(), uninstall_handler: uninstall_handler.clone(), @@ -395,6 +406,8 @@ struct OpcodeVarValues { target: F, val: F, ret: F, + offset: F, + size: F, program_hash: F, caller: F, ret_is_some: bool, @@ -416,6 +429,7 @@ impl Default for ExecutionSwitches { bind: false, unbind: false, new_ref: false, + ref_push: false, get: false, install_handler: false, uninstall_handler: false, @@ -431,6 +445,8 @@ impl Default for OpcodeVarValues { target: F::ZERO, val: F::ZERO, ret: F::ZERO, + offset: F::ZERO, + size: F::ZERO, program_hash: F::ZERO, caller: F::ZERO, ret_is_some: false, @@ -503,6 +519,9 @@ pub struct Wires { ref_arena_stack_ptr: FpVar, handler_stack_ptr: FpVar, + ref_building_remaining: FpVar, + ref_building_ptr: FpVar, + p_len: FpVar, switches: ExecutionSwitches>, @@ -510,6 +529,8 @@ pub struct Wires { target: FpVar, val: FpVar, ret: FpVar, + offset: FpVar, + size: FpVar, program_hash: FpVar, caller: FpVar, ret_is_some: Boolean, @@ -552,6 +573,8 @@ pub struct PreWires { target: F, val: F, ret: F, + offset: F, + size: F, program_hash: F, @@ -595,6 +618,9 @@ pub struct InterRoundWires { ref_arena_counter: F, handler_stack_counter: F, + ref_building_remaining: F, + ref_building_ptr: F, + p_len: F, _n_finalized: F, } @@ -733,6 +759,10 @@ impl Wires { let handler_stack_counter = FpVar::new_witness(cs.clone(), || Ok(vals.irw.handler_stack_counter))?; + let ref_building_remaining = + FpVar::new_witness(cs.clone(), || Ok(vals.irw.ref_building_remaining))?; + let ref_building_ptr = FpVar::new_witness(cs.clone(), || Ok(vals.irw.ref_building_ptr))?; + // Allocate switches and enforce exactly one is true let switches = vals.switches.allocate_and_constrain(cs.clone())?; @@ -740,6 +770,8 @@ impl Wires { let val = FpVar::::new_witness(ns!(cs.clone(), "val"), || Ok(vals.val))?; let ret = FpVar::::new_witness(ns!(cs.clone(), "ret"), || Ok(vals.ret))?; + let offset = FpVar::::new_witness(ns!(cs.clone(), "offset"), || Ok(vals.offset))?; + let size = FpVar::::new_witness(ns!(cs.clone(), "size"), || Ok(vals.size))?; let ret_is_some = Boolean::new_witness(cs.clone(), || Ok(vals.ret_is_some))?; let program_hash = FpVar::::new_witness(cs.clone(), || Ok(vals.program_hash))?; @@ -819,15 +851,31 @@ impl Wires { )?[0] .clone(); + // addr = ref + offset + let get_addr = &val + &offset; + let ref_arena_read = rm.conditional_read( - &(&switches.get | &switches.new_ref), + &switches.get, &Address { tag: MemoryTag::RefArena.allocate(cs.clone())?, - addr: switches.get.select(&val, &ret)?, + addr: get_addr, }, )?[0] .clone(); + // We also need to write for RefPush. + // Address for write: ref_building_ptr + let push_addr = ref_building_ptr.clone(); + + rm.conditional_write( + &switches.ref_push, + &Address { + tag: MemoryTag::RefArena.allocate(cs.clone())?, + addr: push_addr, + }, + &[val.clone()], + )?; + let handler_switches = HandlerSwitchboardWires::allocate(cs.clone(), &vals.handler_switches)?; @@ -916,6 +964,9 @@ impl Wires { ref_arena_stack_ptr, handler_stack_ptr: handler_stack_counter, + ref_building_remaining, + ref_building_ptr, + p_len, switches, @@ -928,6 +979,8 @@ impl Wires { target, val, ret, + offset, + size, program_hash, caller, ret_is_some, @@ -1059,6 +1112,8 @@ impl InterRoundWires { _n_finalized: F::from(0), ref_arena_counter: F::ZERO, handler_stack_counter: F::ZERO, + ref_building_remaining: F::ZERO, + ref_building_ptr: F::ZERO, } } @@ -1107,6 +1162,9 @@ impl InterRoundWires { ); self.handler_stack_counter = res.handler_stack_ptr.value().unwrap(); + + self.ref_building_remaining = res.ref_building_remaining.value().unwrap(); + self.ref_building_ptr = res.ref_building_ptr.value().unwrap(); } } @@ -1269,16 +1327,22 @@ impl LedgerOperation { config.opcode_var_values.target = *token_id; } - LedgerOperation::NewRef { val, ret } => { + LedgerOperation::NewRef { size, ret } => { config.execution_switches.new_ref = true; - config.opcode_var_values.val = *val; + config.opcode_var_values.size = *size; config.opcode_var_values.ret = *ret; } - LedgerOperation::Get { reff, ret } => { + LedgerOperation::RefPush { val } => { + config.execution_switches.ref_push = true; + + config.opcode_var_values.val = *val; + } + LedgerOperation::Get { reff, offset, ret } => { config.execution_switches.get = true; config.opcode_var_values.val = *reff; + config.opcode_var_values.offset = *offset; config.opcode_var_values.ret = *ret; } LedgerOperation::InstallHandler { interface_id } => { @@ -1450,6 +1514,7 @@ impl> StepCircuitBuilder { let next_wires = self.visit_bind(next_wires)?; let next_wires = self.visit_unbind(next_wires)?; let next_wires = self.visit_new_ref(next_wires)?; + let next_wires = self.visit_ref_push(next_wires)?; let next_wires = self.visit_get_ref(next_wires)?; let next_wires = self.visit_install_handler(next_wires)?; let next_wires = self.visit_uninstall_handler(next_wires)?; @@ -1460,6 +1525,10 @@ impl> StepCircuitBuilder { // input <-> output mappings are done by modifying next_wires ivcify_wires(&cs, &wires_in, &next_wires)?; + // Enforce global invariant: If building ref, must be RefPush + let is_building = wires_in.ref_building_remaining.is_zero()?.not(); + is_building.enforce_equal(&wires_in.switches.ref_push)?; + irw.update(next_wires); tracing::debug!("constraints: {}", cs.num_constraints()); @@ -1705,33 +1774,46 @@ impl> StepCircuitBuilder { } } + let mut ref_building_id = F::ZERO; + let mut ref_building_offset = F::ZERO; + for instr in &self.ops { - let ref_read_arena_address = match instr { - LedgerOperation::NewRef { val, ret } => { - // we never pop from this, actually - mb.init( + match instr { + LedgerOperation::NewRef { size: _, ret } => { + ref_building_id = *ret; + ref_building_offset = F::ZERO; + } + LedgerOperation::RefPush { val } => { + let addr = + ref_building_id.into_bigint().0[0] + ref_building_offset.into_bigint().0[0]; + + mb.conditional_write( + true, Address { tag: MemoryTag::RefArena.into(), - addr: ret.into_bigint().0[0], + addr, }, vec![*val], ); - Some(ret) + ref_building_offset += F::ONE; } - LedgerOperation::Get { reff, ret: _ } => Some(reff), - _ => None, - }; - - mb.conditional_read( - ref_read_arena_address.is_some(), - Address { - tag: MemoryTag::RefArena.into(), - addr: ref_read_arena_address - .map(|addr| addr.into_bigint().0[0]) - .unwrap_or(0), - }, - ); + LedgerOperation::Get { + reff, + offset, + ret: _, + } => { + let addr = reff.into_bigint().0[0] + offset.into_bigint().0[0]; + mb.conditional_read( + true, + Address { + tag: MemoryTag::RefArena.into(), + addr, + }, + ); + } + _ => {} + } } // Handler stack memory operations - always perform for uniform circuit @@ -2061,19 +2143,28 @@ impl> StepCircuitBuilder { }; Wires::from_irw(&irw, rm, curr_write, target_write) } - LedgerOperation::NewRef { val, ret } => { + LedgerOperation::NewRef { size, ret } => { let irw = PreWires { switches: ExecutionSwitches::new_ref(), - val: *val, + size: *size, ret: *ret, ..default }; Wires::from_irw(&irw, rm, curr_write, target_write) } - LedgerOperation::Get { reff, ret } => { + LedgerOperation::RefPush { val } => { + let irw = PreWires { + switches: ExecutionSwitches::ref_push(), + val: *val, + ..default + }; + Wires::from_irw(&irw, rm, curr_write, target_write) + } + LedgerOperation::Get { reff, offset, ret } => { let irw = PreWires { switches: ExecutionSwitches::get(), val: *reff, + offset: *offset, ret: *ret, ..default }; @@ -2394,35 +2485,55 @@ impl> StepCircuitBuilder { fn visit_new_ref(&self, mut wires: Wires) -> Result { let switch = &wires.switches.new_ref; + // 1. Must not be building + wires + .ref_building_remaining + .is_zero()? + .conditional_enforce_equal(&Boolean::TRUE, switch)?; + + // 2. Ret must be fresh ID wires .ret .conditional_enforce_equal(&wires.ref_arena_stack_ptr, switch)?; - wires - .val - .conditional_enforce_equal(&wires.ref_arena_read, switch)?; + // 3. Init building state + // remaining = size + wires.ref_building_remaining = switch.select(&wires.size, &wires.ref_building_remaining)?; + // ptr = ret + wires.ref_building_ptr = switch.select(&wires.ret, &wires.ref_building_ptr)?; + // 4. Increment stack ptr by size wires.ref_arena_stack_ptr = switch.select( - &(&wires.ref_arena_stack_ptr + &wires.constant_one), + &(&wires.ref_arena_stack_ptr + &wires.size), &wires.ref_arena_stack_ptr, )?; Ok(wires) } + #[tracing::instrument(target = "gr1cs", skip_all)] + fn visit_ref_push(&self, mut wires: Wires) -> Result { + let switch = &wires.switches.ref_push; + + let is_building = wires.ref_building_remaining.is_zero()?.not(); + is_building.conditional_enforce_equal(&Boolean::TRUE, switch)?; + + // Update state + // remaining -= 1 + let next_remaining = &wires.ref_building_remaining - &wires.constant_one; + wires.ref_building_remaining = switch.select(&next_remaining, &wires.ref_building_remaining)?; + + // ptr += 1 + let next_ptr = &wires.ref_building_ptr + &wires.constant_one; + wires.ref_building_ptr = switch.select(&next_ptr, &wires.ref_building_ptr)?; + + Ok(wires) + } + #[tracing::instrument(target = "gr1cs", skip_all)] fn visit_get_ref(&self, wires: Wires) -> Result { let switch = &wires.switches.get; - // TODO: prove that reff is < ref_arena_stack_ptr ? - // or is it not needed? since we never decrease? - // - // the problem is that this seems to require range checks - // - // but technically it shouldn't be possible to ask for a value that is - // not allocated yet (even if in zk we can allocate everything from the beginning - // since we don't pop) - wires .ret .conditional_enforce_equal(&wires.ref_arena_read, switch)?; @@ -2542,7 +2653,8 @@ fn register_memory_segments>(mb: &mut M) { MemType::Rom, "ROM_INTERFACES", ); - mb.register_mem(MemoryTag::RefArena.into(), 1, MemType::Rom, "ROM_REF_ARENA"); + + mb.register_mem(MemoryTag::RefArena.into(), 1, MemType::Ram, "RAM_REF_ARENA"); mb.register_mem_with_lanes( MemoryTag::ExpectedInput.into(), @@ -2670,6 +2782,8 @@ impl PreWires { target: F::ZERO, val: F::ZERO, ret: F::ZERO, + offset: F::ZERO, + size: F::ZERO, program_hash: F::ZERO, caller: F::ZERO, interface_index, diff --git a/starstream_ivc_proto/src/circuit_test.rs b/starstream_ivc_proto/src/circuit_test.rs index 3fe62ff6..eca8e122 100644 --- a/starstream_ivc_proto/src/circuit_test.rs +++ b/starstream_ivc_proto/src/circuit_test.rs @@ -11,7 +11,10 @@ pub fn h(n: u8) -> Hash { } pub fn v(data: &[u8]) -> Value { - Value(data.to_vec()) + let mut bytes = [0u8; 8]; + let len = data.len().min(8); + bytes[..len].copy_from_slice(&data[..len]); + Value(u64::from_le_bytes(bytes)) } #[test] @@ -42,6 +45,7 @@ fn test_circuit_many_steps() { }, WitLedgerEffect::Get { reff: ref_4, + offset: 0, ret: val_4.clone(), }, WitLedgerEffect::Activation { @@ -68,6 +72,7 @@ fn test_circuit_many_steps() { }, WitLedgerEffect::Get { reff: ref_1, + offset: 0, ret: val_1.clone(), }, WitLedgerEffect::Activation { @@ -86,17 +91,20 @@ fn test_circuit_many_steps() { let coord_trace = MockedLookupTableCommitment { trace: vec![ WitLedgerEffect::NewRef { - val: val_0, + size: 1, ret: ref_0, }, + WitLedgerEffect::RefPush { val: val_0 }, WitLedgerEffect::NewRef { - val: val_1.clone(), + size: 1, ret: ref_1, }, + WitLedgerEffect::RefPush { val: val_1.clone() }, WitLedgerEffect::NewRef { - val: val_4.clone(), + size: 1, ret: ref_4, }, + WitLedgerEffect::RefPush { val: val_4.clone() }, WitLedgerEffect::NewUtxo { program_hash: h(0), val: ref_4, @@ -179,9 +187,10 @@ fn test_circuit_small() { let coord_trace = MockedLookupTableCommitment { trace: vec![ WitLedgerEffect::NewRef { - val: val_0, + size: 1, ret: ref_0, }, + WitLedgerEffect::RefPush { val: val_0 }, WitLedgerEffect::NewUtxo { program_hash: h(0), val: ref_0, @@ -220,4 +229,4 @@ fn test_circuit_small() { let result = prove(instance); assert!(result.is_ok()); -} +} \ No newline at end of file diff --git a/starstream_ivc_proto/src/lib.rs b/starstream_ivc_proto/src/lib.rs index a65661cd..b0f41e91 100644 --- a/starstream_ivc_proto/src/lib.rs +++ b/starstream_ivc_proto/src/lib.rs @@ -89,11 +89,15 @@ pub enum LedgerOperation { }, NewRef { - val: F, + size: F, ret: F, }, + RefPush { + val: F, + }, Get { reff: F, + offset: F, ret: F, }, InstallHandler { @@ -298,16 +302,24 @@ fn make_interleaved_trace(inst: &InterleavingInstance) -> Vec { + starstream_mock_ledger::WitLedgerEffect::NewRef { size, ret } => { LedgerOperation::NewRef { - val: value_to_field(val), + size: F::from(size as u64), ret: F::from(ret.0), } } - starstream_mock_ledger::WitLedgerEffect::Get { reff, ret } => LedgerOperation::Get { - reff: F::from(reff.0), - ret: value_to_field(ret), - }, + starstream_mock_ledger::WitLedgerEffect::RefPush { val } => { + LedgerOperation::RefPush { + val: value_to_field(val), + } + } + starstream_mock_ledger::WitLedgerEffect::Get { reff, offset, ret } => { + LedgerOperation::Get { + reff: F::from(reff.0), + offset: F::from(offset as u64), + ret: value_to_field(ret), + } + } starstream_mock_ledger::WitLedgerEffect::ProgramHash { target, program_hash, @@ -341,7 +353,7 @@ fn make_interleaved_trace(inst: &InterleavingInstance) -> Vec F { - F::from(val.0[0]) + F::from(val.0) } fn ccs_step_shape() -> Result<(ConstraintSystemRef, TSMemLayouts), SynthesisError> { @@ -387,4 +399,4 @@ fn ccs_step_shape() -> Result<(ConstraintSystemRef, TSMemLayouts), SynthesisE let mem_spec = running_mem.ts_mem_layouts(); Ok((cs, mem_spec)) -} +} \ No newline at end of file diff --git a/starstream_ivc_proto/src/neo.rs b/starstream_ivc_proto/src/neo.rs index adbf4980..8b2134bc 100644 --- a/starstream_ivc_proto/src/neo.rs +++ b/starstream_ivc_proto/src/neo.rs @@ -72,7 +72,7 @@ impl WitnessLayout for CircuitLayout { const M_IN: usize = 1; // instance.len()+witness.len() - const USED_COLS: usize = 332; + const USED_COLS: usize = 350; fn new_layout() -> Self { CircuitLayout {} diff --git a/starstream_mock_ledger/README.md b/starstream_mock_ledger/README.md index 5fc580d1..bba9a1ef 100644 --- a/starstream_mock_ledger/README.md +++ b/starstream_mock_ledger/README.md @@ -506,20 +506,47 @@ Rule: Unbind (owner calls) ## NewRef +Allocates a new reference with a specific size. + ```text Rule: NewRef ============== - op = NewRef(val) -> ref + op = NewRef(size) -> ref 1. let t = CC[id_curr] in c = counters[id_curr] in - t[c] == + t[c] == (Host call lookup condition) ----------------------------------------------------------------------- - 1. ref_store'[ref] <- val + 1. ref_store'[ref] <- [uninitialized; size] (conceptually) 2. counters'[id_curr] += 1 + 3. ref_state[id_curr] <- (ref, 0, size) // storing the ref being built, current offset, and total size +``` + +## RefPush + +Appends data to the currently building reference. + +```text +Rule: RefPush +============== + op = RefPush(val) + + 1. let (ref, offset, size) = ref_state[id_curr] + 2. offset < size + + 3. let + t = CC[id_curr] in + c = counters[id_curr] in + t[c] == + + (Host call lookup condition) +----------------------------------------------------------------------- + 1. ref_store'[ref][offset] <- val + 2. ref_state[id_curr] <- (ref, offset + 1, size) + 3. counters'[id_curr] += 1 ``` ## Get @@ -527,14 +554,14 @@ Rule: NewRef ```text Rule: Get ============== - op = Get(ref) -> val + op = Get(ref, offset) -> val - 1. ref_store[ref] == val + 1. ref_store[ref][offset] == val 2. let t = CC[id_curr] in c = counters[id_curr] in - t[c] == + t[c] == (Host call lookup condition) ----------------------------------------------------------------------- diff --git a/starstream_mock_ledger/src/lib.rs b/starstream_mock_ledger/src/lib.rs index 4e12d79d..71723c5b 100644 --- a/starstream_mock_ledger/src/lib.rs +++ b/starstream_mock_ledger/src/lib.rs @@ -24,21 +24,18 @@ impl Clone for Hash { pub struct WasmModule(Vec); /// Opaque user data. -#[derive(Clone, PartialEq, Eq, Hash)] -pub struct Value(pub Vec); +#[derive(Clone, Copy, PartialEq, Eq, Hash)] +pub struct Value(pub u64); impl std::fmt::Debug for Value { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - match std::str::from_utf8(&self.0) { - Ok(s) => write!(f, "Value(\"{}\")", s), - Err(_) => write!(f, "Value({:?})", self.0), - } + write!(f, "Value({})", self.0) } } impl Value { pub fn nil() -> Self { - Value(vec![]) + Value(0) } } diff --git a/starstream_mock_ledger/src/mocked_verifier.rs b/starstream_mock_ledger/src/mocked_verifier.rs index b06780d5..bd623c44 100644 --- a/starstream_mock_ledger/src/mocked_verifier.rs +++ b/starstream_mock_ledger/src/mocked_verifier.rs @@ -76,8 +76,8 @@ pub enum InterleavingError { #[error("yield claim mismatch: id_prev={id_prev:?} expected={expected:?} got={got:?}")] YieldClaimMismatch { id_prev: Option, - expected: Value, - got: Value, + expected: Vec, + got: Vec, }, #[error("program hash mismatch: target={target} expected={expected:?} got={got:?}")] @@ -169,6 +169,18 @@ pub enum InterleavingError { #[error("ref not found: {0:?}")] RefNotFound(Ref), + #[error("RefPush called but not building ref (pid={0})")] + RefPushNotBuilding(ProcessId), + + #[error("building ref but called other op (pid={0})")] + BuildingRefButCalledOther(ProcessId), + + #[error("RefPush called but full (pid={pid} size={size})")] + RefPushFull { pid: ProcessId, size: usize }, + + #[error("Get offset out of bounds: ref={0:?} offset={1} len={2}")] + GetOutOfBounds(Ref, usize, usize), + #[error("NewRef result mismatch. Got: {0:?}. Expected: {0:?}")] RefInitializationMismatch(Ref, Ref), } @@ -197,7 +209,8 @@ pub struct InterleavingState { counters: Vec, ref_counter: u64, - ref_store: HashMap, + ref_store: HashMap>, + ref_building: HashMap, /// If a new output or coordination script is created, it must be through a /// spawn from a coordinator script @@ -254,6 +267,7 @@ pub fn verify_interleaving_semantics( counters: vec![0; n], ref_counter: 0, ref_store: HashMap::new(), + ref_building: HashMap::new(), handler_stack: HashMap::new(), ownership: inst.ownership_in.clone(), initialized: vec![false; n], @@ -395,6 +409,12 @@ pub fn state_transition( }); } + if state.ref_building.contains_key(&id_curr) { + if !matches!(op, WitLedgerEffect::RefPush { .. }) { + return Err(InterleavingError::BuildingRefButCalledOther(id_curr)); + } + } + state.counters[id_curr.0] += 1; match dbg!(op) { @@ -681,20 +701,51 @@ pub fn state_transition( } } - WitLedgerEffect::NewRef { val, ret } => { - state.ref_counter += 1; + WitLedgerEffect::NewRef { size, ret } => { + if state.ref_building.contains_key(&id_curr) { + return Err(InterleavingError::BuildingRefButCalledOther(id_curr)); + } let new_ref = Ref(state.ref_counter); + state.ref_counter += size as u64; if new_ref != ret { return Err(InterleavingError::RefInitializationMismatch(ret, new_ref)); } - state.ref_store.insert(new_ref, val); + state.ref_store.insert(new_ref, Vec::new()); + state.ref_building.insert(id_curr, (new_ref, 0, size)); } - WitLedgerEffect::Get { reff, ret } => { - let val = state + WitLedgerEffect::RefPush { val } => { + let (reff, offset, size) = state + .ref_building + .remove(&id_curr) + .ok_or(InterleavingError::RefPushNotBuilding(id_curr))?; + + if offset >= size { + return Err(InterleavingError::RefPushFull { pid: id_curr, size }); + } + + let vec = state + .ref_store + .get_mut(&reff) + .ok_or(InterleavingError::RefNotFound(reff))?; + vec.push(val); + + let new_offset = offset + 1; + if new_offset < size { + state + .ref_building + .insert(id_curr, (reff, new_offset, size)); + } + } + + WitLedgerEffect::Get { reff, offset, ret } => { + let vec = state .ref_store .get(&reff) .ok_or(InterleavingError::RefNotFound(reff))?; + let val = vec + .get(offset) + .ok_or(InterleavingError::GetOutOfBounds(reff, offset, vec.len()))?; if val != &ret { return Err(InterleavingError::Shape("Get result mismatch")); } diff --git a/starstream_mock_ledger/src/tests.rs b/starstream_mock_ledger/src/tests.rs index 9b0b964f..77c4254c 100644 --- a/starstream_mock_ledger/src/tests.rs +++ b/starstream_mock_ledger/src/tests.rs @@ -32,7 +32,10 @@ pub fn h(n: u8) -> Hash { } pub fn v(data: &[u8]) -> Value { - Value(data.to_vec()) + let mut bytes = [0u8; 8]; + let len = data.len().min(8); + bytes[..len].copy_from_slice(&data[..len]); + Value(u64::from_le_bytes(bytes)) } fn mock_genesis() -> (Ledger, UtxoId, UtxoId, CoroutineId, CoroutineId) { @@ -303,31 +306,39 @@ fn test_transaction_with_coord_and_utxos() { let coord_trace = vec![ WitLedgerEffect::NewRef { - val: v(b"init_a"), + size: 1, ret: init_a_ref, }, + WitLedgerEffect::RefPush { val: v(b"init_a") }, WitLedgerEffect::NewUtxo { program_hash: utxo_hash_a.clone(), val: init_a_ref, id: ProcessId(2), }, WitLedgerEffect::NewRef { - val: v(b"init_b"), + size: 1, ret: init_b_ref, }, + WitLedgerEffect::RefPush { val: v(b"init_b") }, WitLedgerEffect::NewUtxo { program_hash: utxo_hash_b.clone(), val: init_b_ref, id: ProcessId(3), }, WitLedgerEffect::NewRef { - val: v(b"spend_input_1"), + size: 1, ret: spend_input_1_ref, }, + WitLedgerEffect::RefPush { + val: v(b"spend_input_1"), + }, WitLedgerEffect::NewRef { - val: v(b"continued_1"), + size: 1, ret: continued_1_ref, }, + WitLedgerEffect::RefPush { + val: v(b"continued_1"), + }, WitLedgerEffect::Resume { target: ProcessId(0), val: spend_input_1_ref, @@ -335,13 +346,19 @@ fn test_transaction_with_coord_and_utxos() { id_prev: None, }, WitLedgerEffect::NewRef { - val: v(b"spend_input_2"), + size: 1, ret: spend_input_2_ref, }, + WitLedgerEffect::RefPush { + val: v(b"spend_input_2"), + }, WitLedgerEffect::NewRef { - val: v(b"burned_2"), + size: 1, ret: burned_2_ref, }, + WitLedgerEffect::RefPush { + val: v(b"burned_2"), + }, WitLedgerEffect::Resume { target: ProcessId(1), val: spend_input_2_ref, @@ -349,9 +366,10 @@ fn test_transaction_with_coord_and_utxos() { id_prev: Some(ProcessId(0)), }, WitLedgerEffect::NewRef { - val: v(b"done_a"), + size: 1, ret: done_a_ref, }, + WitLedgerEffect::RefPush { val: v(b"done_a") }, WitLedgerEffect::Resume { target: ProcessId(2), val: init_a_ref, @@ -359,9 +377,10 @@ fn test_transaction_with_coord_and_utxos() { id_prev: Some(ProcessId(1)), }, WitLedgerEffect::NewRef { - val: v(b"done_b"), + size: 1, ret: done_b_ref, }, + WitLedgerEffect::RefPush { val: v(b"done_b") }, WitLedgerEffect::Resume { target: ProcessId(3), val: init_b_ref, @@ -413,72 +432,6 @@ fn test_transaction_with_coord_and_utxos() { #[test] fn test_effect_handlers() { - // Create a transaction with: - // - 1 coordination script (process 1) that acts as an effect handler - // - 1 new UTXO (process 0) that calls the effect handler - // - // Roughly models this: - // - // interface Interface { - // Effect(int): int - // } - // - // utxo Utxo { - // main { - // raise Interface::Effect(42); - // } - // } - // - // script { - // fn main() { - // let utxo = Utxo::new(); - // - // try { - // utxo.resume(utxo); - // } - // with Interface { - // do Effect(x) = { - // resume(43) - // } - // } - // } - // } - // - // This test simulates a coordination script acting as an algebraic effect handler - // for a UTXO. The UTXO "raises" an effect by calling the handler, and the - // handler resumes the UTXO with the result. - // - // P1 (Coord/Handler) P0 (UTXO) - // | | - // (entrypoint) | - // | | - // InstallHandler (interface) | - // | | - // r1 = NewRef("init_utxo") | - // | | - // NewUtxo -----------------------------------------> (P0 created) - // (val=r1) | - // | | - // Resume --------------------------------------------->| - // (val=r1) | - // | Activation (val=r1, caller=P1) - // | ProgramHash(P1) -> (attest caller) - // | GetHandlerFor(interface) -> P1 - // | r2 = NewRef("Interface::Effect(42)") - // |<----------------------------------Resume (Effect call) - // | (val=r2, ret=r3) - // (handles effect) | - // | | - // r3 = NewRef("EffectResponse") | - // r4 = NewRef("utxo_final") | - // | | - // Resume --------------------------------------------->| (Resume with result) - // (val=r3, ret=r4) | - // | | - // |<-------------------------------------------- Yield (val=r4) - // UninstallHandler(interface) | - // | | - // (end) | let coord_hash = h(1); let utxo_hash = h(2); let interface_id = h(42); @@ -499,9 +452,12 @@ fn test_effect_handlers() { handler_id: ProcessId(1), }, WitLedgerEffect::NewRef { - val: v(b"Interface::Effect(42)"), + size: 1, ret: ref_gen.get("effect_request"), }, + WitLedgerEffect::RefPush { + val: v(b"Interface::Effect(42)"), + }, WitLedgerEffect::Resume { target: ProcessId(1), val: ref_gen.get("effect_request"), @@ -520,9 +476,12 @@ fn test_effect_handlers() { interface_id: interface_id.clone(), }, WitLedgerEffect::NewRef { - val: v(b"init_utxo"), + size: 1, ret: ref_gen.get("init_utxo"), }, + WitLedgerEffect::RefPush { + val: v(b"init_utxo"), + }, WitLedgerEffect::NewUtxo { program_hash: h(2), val: ref_gen.get("init_utxo"), @@ -535,13 +494,19 @@ fn test_effect_handlers() { id_prev: None, }, WitLedgerEffect::NewRef { - val: v(b"Interface::EffectResponse(43)"), + size: 1, ret: ref_gen.get("effect_request_response"), }, + WitLedgerEffect::RefPush { + val: v(b"Interface::EffectResponse(43)"), + }, WitLedgerEffect::NewRef { - val: v(b"utxo_final"), + size: 1, ret: ref_gen.get("utxo_final"), }, + WitLedgerEffect::RefPush { + val: v(b"utxo_final"), + }, WitLedgerEffect::Resume { target: ProcessId(0), val: ref_gen.get("effect_request_response"), @@ -591,9 +556,10 @@ fn test_burn_with_continuation_fails() { }), vec![ WitLedgerEffect::NewRef { - val: v(b"burned"), + size: 1, ret: Ref(1), }, + WitLedgerEffect::RefPush { val: v(b"burned") }, WitLedgerEffect::Burn { ret: Ref(1) }, ], ) @@ -617,9 +583,10 @@ fn test_utxo_resumes_utxo_fails() { None, vec![ WitLedgerEffect::NewRef { - val: v(b""), + size: 1, ret: Ref(1), }, + WitLedgerEffect::RefPush { val: v(b"") }, WitLedgerEffect::Resume { target: ProcessId(1), val: Ref(1), @@ -734,9 +701,10 @@ fn test_duplicate_input_utxo_fails() { None, vec![ WitLedgerEffect::NewRef { - val: Value::nil(), + size: 1, ret: Ref(2), }, + WitLedgerEffect::RefPush { val: Value::nil() }, WitLedgerEffect::Burn { ret: Ref(1) }, ], ) @@ -744,9 +712,10 @@ fn test_duplicate_input_utxo_fails() { coord_hash, vec![ WitLedgerEffect::NewRef { - val: Value::nil(), + size: 1, ret: Ref(1), }, + WitLedgerEffect::RefPush { val: Value::nil() }, WitLedgerEffect::Resume { target: 0.into(), val: Ref(1), @@ -759,4 +728,4 @@ fn test_duplicate_input_utxo_fails() { .build(); let _ledger = ledger.apply_transaction(&tx).unwrap(); -} +} \ No newline at end of file diff --git a/starstream_mock_ledger/src/transaction_effects/witness.rs b/starstream_mock_ledger/src/transaction_effects/witness.rs index 880165e3..25ba1f7c 100644 --- a/starstream_mock_ledger/src/transaction_effects/witness.rs +++ b/starstream_mock_ledger/src/transaction_effects/witness.rs @@ -64,11 +64,15 @@ pub enum WitLedgerEffect { }, NewRef { - val: Value, + size: usize, ret: Ref, }, + RefPush { + val: Value, + }, Get { reff: Ref, + offset: usize, ret: Value, }, From d0c6609a13141f335994ce85a70370d38f091c82 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Mon, 12 Jan 2026 17:51:44 -0300 Subject: [PATCH 066/152] cp: instrumented wasm runtime for trace generation Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- Cargo.lock | 90 +- Cargo.toml | 3 +- mock-ledger/old/Cargo.toml | 1 + starstream-runtime/Cargo.toml | 19 + starstream-runtime/src/lib.rs | 860 ++++++++++++++++++ starstream-runtime/tests/integration.rs | 179 ++++ starstream-runtime/tests/integration_test.rs | 65 ++ starstream_ivc_proto/src/circuit.rs | 26 +- starstream_ivc_proto/src/circuit_test.rs | 275 +++--- starstream_ivc_proto/src/lib.rs | 67 +- .../src/{test_utils.rs => logging.rs} | 2 +- starstream_ivc_proto/src/memory/nebula/mod.rs | 8 +- starstream_mock_ledger/Cargo.toml | 9 + starstream_mock_ledger/src/builder.rs | 121 +++ starstream_mock_ledger/src/lib.rs | 132 ++- starstream_mock_ledger/src/mocked_verifier.rs | 26 +- starstream_mock_ledger/src/tests.rs | 153 +--- .../src/transaction_effects/instance.rs | 8 +- .../src/transaction_effects/mod.rs | 2 +- .../src/transaction_effects/witness.rs | 33 + 20 files changed, 1717 insertions(+), 362 deletions(-) create mode 100644 starstream-runtime/Cargo.toml create mode 100644 starstream-runtime/src/lib.rs create mode 100644 starstream-runtime/tests/integration.rs create mode 100644 starstream-runtime/tests/integration_test.rs rename starstream_ivc_proto/src/{test_utils.rs => logging.rs} (95%) create mode 100644 starstream_mock_ledger/src/builder.rs diff --git a/Cargo.lock b/Cargo.lock index 0b77acb9..988e8494 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2121,7 +2121,7 @@ dependencies = [ "p3-matrix", "p3-maybe-rayon", "p3-util", - "spin", + "spin 0.10.0", "tracing", ] @@ -2214,7 +2214,7 @@ dependencies = [ "paste", "rand 0.9.2", "serde", - "spin", + "spin 0.10.0", "tracing", "transpose", ] @@ -2912,6 +2912,12 @@ dependencies = [ "windows-sys 0.60.2", ] +[[package]] +name = "spin" +version = "0.9.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" + [[package]] name = "spin" version = "0.10.0" @@ -3010,6 +3016,19 @@ dependencies = [ "web-sys", ] +[[package]] +name = "starstream-runtime" +version = "0.0.0" +dependencies = [ + "imbl", + "sha2", + "starstream_ivc_proto", + "starstream_mock_ledger", + "thiserror 2.0.17", + "wasmi", + "wat", +] + [[package]] name = "starstream-sandbox-web" version = "0.0.0" @@ -3084,6 +3103,12 @@ version = "0.1.0" dependencies = [ "hex", "imbl", + "neo-ajtai", + "neo-ccs", + "neo-fold", + "neo-math", + "neo-memory", + "p3-field", "thiserror 2.0.17", ] @@ -3099,6 +3124,16 @@ version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fe895eb47f22e2ddd4dabc02bce419d2e643c8e3b585c78158b349195bc24d82" +[[package]] +name = "string-interner" +version = "0.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23de088478b31c349c9ba67816fa55d9355232d63c3afea8bf513e31f0f1d2c0" +dependencies = [ + "hashbrown 0.15.5", + "serde", +] + [[package]] name = "strsim" version = "0.11.1" @@ -3696,6 +3731,57 @@ dependencies = [ "wasmparser 0.240.0", ] +[[package]] +name = "wasmi" +version = "1.0.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22bf475363d09d960b48275c4ea9403051add498a9d80c64dbc91edabab9d1d0" +dependencies = [ + "spin 0.9.8", + "wasmi_collections", + "wasmi_core", + "wasmi_ir", + "wasmparser 0.228.0", + "wat", +] + +[[package]] +name = "wasmi_collections" +version = "1.0.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85851acbdffd675a9b699b3590406a1d37fc1e1fd073743c7c9cf47c59caacba" +dependencies = [ + "string-interner", +] + +[[package]] +name = "wasmi_core" +version = "1.0.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef64cf60195d1f937dbaed592a5afce3e6d86868fb8070c5255bc41539d68f9d" +dependencies = [ + "libm", +] + +[[package]] +name = "wasmi_ir" +version = "1.0.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5dcb572ce4400e06b5475819f3d6b9048513efbca785f0b9ef3a41747f944fd8" +dependencies = [ + "wasmi_core", +] + +[[package]] +name = "wasmparser" +version = "0.228.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4abf1132c1fdf747d56bbc1bb52152400c70f336870f968b85e89ea422198ae3" +dependencies = [ + "bitflags 2.9.4", + "indexmap 2.11.4", +] + [[package]] name = "wasmparser" version = "0.240.0" diff --git a/Cargo.toml b/Cargo.toml index f3ef988b..52a4a58f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,8 @@ members = [ "starstream-to-wasm", "starstream-types", "starstream_ivc_proto", - "starstream_mock_ledger" + "starstream_mock_ledger", + "starstream-runtime" ] exclude = ["old"] diff --git a/mock-ledger/old/Cargo.toml b/mock-ledger/old/Cargo.toml index f6660cf2..b0604d93 100644 --- a/mock-ledger/old/Cargo.toml +++ b/mock-ledger/old/Cargo.toml @@ -4,3 +4,4 @@ version = "0.1.0" edition = "2021" [dependencies] +starstream_ivc_proto = { path = "../starstream_ivc_proto" } diff --git a/starstream-runtime/Cargo.toml b/starstream-runtime/Cargo.toml new file mode 100644 index 00000000..adba95b3 --- /dev/null +++ b/starstream-runtime/Cargo.toml @@ -0,0 +1,19 @@ +[package] +name = "starstream-runtime" +version.workspace = true +authors.workspace = true +edition.workspace = true +rust-version.workspace = true +repository.workspace = true +license.workspace = true + +[dependencies] +starstream_ivc_proto = { path = "../starstream_ivc_proto"} +starstream_mock_ledger = { path = "../starstream_mock_ledger" } +thiserror = "2.0.17" +wasmi = "1.0.7" +sha2 = "0.10" + +[dev-dependencies] +imbl = "6.1.0" +wat = "1.0" diff --git a/starstream-runtime/src/lib.rs b/starstream-runtime/src/lib.rs new file mode 100644 index 00000000..658dc877 --- /dev/null +++ b/starstream-runtime/src/lib.rs @@ -0,0 +1,860 @@ +use sha2::{Digest, Sha256}; +use starstream_mock_ledger::{ + CoroutineState, Hash, InterfaceId, InterleavingInstance, MockedLookupTableCommitment, + NewOutput, OutputRef, ProcessId, ProvenTransaction, Ref, UtxoId, Value, WasmModule, + WitLedgerEffect, builder::TransactionBuilder, InterleavingWitness, +}; +use std::collections::{HashMap, HashSet}; +use wasmi::{ + Caller, Config, Engine, Linker, Memory, Store, TypedResumableCall, TypedResumableCallHostTrap, + Val, errors::HostError, +}; + +#[derive(thiserror::Error, Debug)] +pub enum Error { + #[error("invalid proof: {0}")] + InvalidProof(String), + #[error("runtime error: {0}")] + RuntimeError(String), + #[error("wasmi error: {0}")] + Wasmi(#[from] wasmi::Error), +} + +pub type WasmProgram = Vec; + +#[derive(Debug)] +struct Interrupt {} + +impl std::fmt::Display for Interrupt { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "{:?}", self) + } +} + +impl HostError for Interrupt {} + +// Discriminants for host calls +#[derive(Debug)] +pub enum HostCallDiscriminant { + Resume = 0, + Yield = 1, + NewUtxo = 2, + NewCoord = 3, + InstallHandler = 4, + UninstallHandler = 5, + GetHandlerFor = 6, + Burn = 7, + Activation = 8, + Init = 9, + NewRef = 10, + RefPush = 11, + Get = 12, + Bind = 13, + Unbind = 14, + ProgramHash = 15, +} + +use HostCallDiscriminant::*; + +pub struct UnprovenTransaction { + pub inputs: Vec, + pub programs: Vec, + pub is_utxo: Vec, + pub entrypoint: usize, +} + +pub struct RuntimeState { + pub traces: HashMap>, + pub current_process: ProcessId, + pub prev_id: Option, + pub memories: HashMap, + + pub handler_stack: HashMap>, + pub ref_store: HashMap>, + pub ref_state: HashMap, // (ref, offset, size) + pub next_ref: u64, + + pub pending_activation: HashMap, + pub pending_init: HashMap, + + pub ownership: HashMap>, + pub process_hashes: HashMap>, + pub is_utxo: HashMap, + pub allocated_processes: HashSet, + pub call_stack: Vec, + + pub must_burn: HashSet, + pub n_new: usize, + pub n_coord: usize, +} + +pub struct Runtime { + pub engine: Engine, + pub linker: Linker, + pub store: Store, +} + +impl Runtime { + pub fn new() -> Self { + let config = Config::default(); + let engine = Engine::new(&config); + let mut linker = Linker::new(&engine); + + let state = RuntimeState { + traces: HashMap::new(), + current_process: ProcessId(0), + prev_id: None, + memories: HashMap::new(), + handler_stack: HashMap::new(), + ref_store: HashMap::new(), + ref_state: HashMap::new(), + next_ref: 0, + pending_activation: HashMap::new(), + pending_init: HashMap::new(), + ownership: HashMap::new(), + process_hashes: HashMap::new(), + is_utxo: HashMap::new(), + allocated_processes: HashSet::new(), + call_stack: Vec::new(), + must_burn: HashSet::new(), + n_new: 0, + n_coord: 1, + }; + + let store = Store::new(&engine, state); + + linker + .func_wrap( + "env", + // we don't really need more than one host call in practice, + // since we can just use the first argument as a discriminant. + // + // this also means we don't need to care about the order of + // imports necessarily. + // + // it's probably better to split everything though, but this can be + // done later + "starstream_host_call", + |mut caller: Caller<'_, RuntimeState>, + discriminant: u64, + arg1: u64, + arg2: u64, + arg3: u64, + arg4: u64, + arg5: u64| + -> Result<(u64, u64), wasmi::Error> { + let current_pid = caller.data().current_process; + + let args_to_hash = |a: u64, b: u64, c: u64, d: u64| -> [u8; 32] { + let mut buffer = [0u8; 32]; + buffer[0..8].copy_from_slice(&a.to_le_bytes()); + buffer[8..16].copy_from_slice(&b.to_le_bytes()); + buffer[16..24].copy_from_slice(&c.to_le_bytes()); + buffer[24..32].copy_from_slice(&d.to_le_bytes()); + buffer + }; + + let effect = match HostCallDiscriminant::from(discriminant) { + Resume => { + let target = ProcessId(arg1 as usize); + let val = Ref(arg2); + let ret = Ref(0); // Placeholder, updated on resume + let id_prev = caller.data().prev_id; + + // Update state + caller + .data_mut() + .pending_activation + .insert(target, (val, current_pid)); + + Some(WitLedgerEffect::Resume { + target, + val, + ret, + id_prev, + }) + } + Yield => { + let val = Ref(arg1); + let ret = None; // Placeholder, updated on resume + let id_prev = caller.data().prev_id; + + Some(WitLedgerEffect::Yield { val, ret, id_prev }) + } + NewUtxo => { + let h = Hash( + args_to_hash(arg1, arg2, arg3, arg4), + std::marker::PhantomData, + ); + let val = Ref(arg5); + + let mut found_id = None; + let limit = caller.data().process_hashes.len(); + for i in 0..limit { + let pid = ProcessId(i); + if !caller.data().allocated_processes.contains(&pid) { + if let Some(ph) = caller.data().process_hashes.get(&pid) { + if *ph == h { + if let Some(&is_u) = caller.data().is_utxo.get(&pid) { + if is_u { + found_id = Some(pid); + break; + } + } + } + } + } + } + let id = found_id + .ok_or(wasmi::Error::new("no matching utxo process found"))?; + caller.data_mut().allocated_processes.insert(id); + + caller + .data_mut() + .pending_init + .insert(id, (val, current_pid)); + caller.data_mut().n_new += 1; + + Some(WitLedgerEffect::NewUtxo { + program_hash: h, + val, + id, + }) + } + NewCoord => { + let h = Hash( + args_to_hash(arg1, arg2, arg3, arg4), + std::marker::PhantomData, + ); + let val = Ref(arg5); + + let mut found_id = None; + let limit = caller.data().process_hashes.len(); + for i in 0..limit { + let pid = ProcessId(i); + if !caller.data().allocated_processes.contains(&pid) { + if let Some(ph) = caller.data().process_hashes.get(&pid) { + if *ph == h { + if let Some(&is_u) = caller.data().is_utxo.get(&pid) { + if !is_u { + found_id = Some(pid); + break; + } + } + } + } + } + } + let id = found_id + .ok_or(wasmi::Error::new("no matching coord process found"))?; + caller.data_mut().allocated_processes.insert(id); + + caller + .data_mut() + .pending_init + .insert(id, (val, current_pid)); + caller.data_mut().n_coord += 1; + + Some(WitLedgerEffect::NewCoord { + program_hash: h, + val, + id, + }) + } + InstallHandler => { + let interface_id = Hash( + args_to_hash(arg1, arg2, arg3, arg4), + std::marker::PhantomData, + ); + caller + .data_mut() + .handler_stack + .entry(interface_id.clone()) + .or_default() + .push(current_pid); + Some(WitLedgerEffect::InstallHandler { interface_id }) + } + UninstallHandler => { + let interface_id = Hash( + args_to_hash(arg1, arg2, arg3, arg4), + std::marker::PhantomData, + ); + let stack = caller + .data_mut() + .handler_stack + .get_mut(&interface_id) + .ok_or(wasmi::Error::new("handler stack not found"))?; + if stack.pop() != Some(current_pid) { + return Err(wasmi::Error::new("uninstall handler mismatch")); + } + Some(WitLedgerEffect::UninstallHandler { interface_id }) + } + GetHandlerFor => { + let interface_id = Hash( + args_to_hash(arg1, arg2, arg3, arg4), + std::marker::PhantomData, + ); + + let stack = caller + .data_mut() + .handler_stack + .get(&interface_id) + .ok_or(wasmi::Error::new("handler stack not found"))?; + let handler_id = stack + .last() + .ok_or(wasmi::Error::new("handler stack empty"))?; + + Some(WitLedgerEffect::GetHandlerFor { + interface_id, + handler_id: *handler_id, + }) + } + Activation => { + let (val, caller_id) = caller + .data() + .pending_activation + .get(¤t_pid) + .ok_or(wasmi::Error::new("no pending activation"))?; + Some(WitLedgerEffect::Activation { + val: *val, + caller: *caller_id, + }) + } + Init => { + let (val, caller_id) = caller + .data() + .pending_init + .get(¤t_pid) + .ok_or(wasmi::Error::new("no pending init"))?; + Some(WitLedgerEffect::Init { + val: *val, + caller: *caller_id, + }) + } + NewRef => { + let size = arg1 as usize; + let ref_id = Ref(caller.data().next_ref); + caller.data_mut().next_ref += size as u64; + + caller + .data_mut() + .ref_store + .insert(ref_id, vec![Value(0); size]); + caller + .data_mut() + .ref_state + .insert(current_pid, (ref_id, 0, size)); + + Some(WitLedgerEffect::NewRef { size, ret: ref_id }) + } + RefPush => { + let val = Value(arg1); + let (ref_id, offset, size) = *caller + .data() + .ref_state + .get(¤t_pid) + .ok_or(wasmi::Error::new("no ref state"))?; + + if offset >= size { + return Err(wasmi::Error::new("ref push overflow")); + } + + let store = caller + .data_mut() + .ref_store + .get_mut(&ref_id) + .ok_or(wasmi::Error::new("ref not found"))?; + store[offset] = val; + + caller + .data_mut() + .ref_state + .insert(current_pid, (ref_id, offset + 1, size)); + + Some(WitLedgerEffect::RefPush { val }) + } + Get => { + let ref_id = Ref(arg1); + let offset = arg2 as usize; + + let store = caller + .data() + .ref_store + .get(&ref_id) + .ok_or(wasmi::Error::new("ref not found"))?; + if offset >= store.len() { + return Err(wasmi::Error::new("get out of bounds")); + } + let val = store[offset]; + + Some(WitLedgerEffect::Get { + reff: ref_id, + offset, + ret: val, + }) + } + Bind => { + let owner_id = ProcessId(arg1 as usize); + caller + .data_mut() + .ownership + .insert(current_pid, Some(owner_id)); + Some(WitLedgerEffect::Bind { owner_id }) + } + Unbind => { + let token_id = ProcessId(arg1 as usize); + if caller.data().ownership.get(&token_id) != Some(&Some(current_pid)) {} + caller.data_mut().ownership.insert(token_id, None); + Some(WitLedgerEffect::Unbind { token_id }) + } + Burn => { + caller.data_mut().must_burn.insert(current_pid); + + Some(WitLedgerEffect::Burn { ret: Ref(arg1) }) + } + ProgramHash => { + unreachable!(); + } + }; + + if let Some(e) = effect { + caller + .data_mut() + .traces + .entry(current_pid) + .or_default() + .push(e); + } + + Err(wasmi::Error::host(Interrupt {})) + }, + ) + .unwrap(); + + linker + .func_wrap( + "env", + "starstream_get_program_hash", + |mut caller: Caller<'_, RuntimeState>, + _discriminant: u64, + target_pid: u64| + -> Result<(u64, u64, u64, u64), wasmi::Error> { + let current_pid = caller.data().current_process; + let target = ProcessId(target_pid as usize); + let program_hash = caller + .data() + .process_hashes + .get(&target) + .ok_or(wasmi::Error::new("process hash not found"))? + .clone(); + + let effect = WitLedgerEffect::ProgramHash { + target, + program_hash, + }; + + caller + .data_mut() + .traces + .entry(current_pid) + .or_default() + .push(effect); + + Err(wasmi::Error::host(Interrupt {})) + }, + ) + .unwrap(); + + Self { + engine, + linker, + store, + } + } +} + +impl UnprovenTransaction { + pub fn prove(self) -> Result { + let (instance, state, witness) = self.execute()?; + + // ZkTransactionProof {}.verify(&instance).map_err(|e| Error::InvalidProof(e.to_string()))?; + let proof = starstream_ivc_proto::prove(instance.clone(), witness.clone()) + .map_err(|e| Error::RuntimeError(e.to_string()))?; + + let mut builder = TransactionBuilder::new(); + builder = builder.with_entrypoint(self.entrypoint); + + let n_inputs = instance.n_inputs; + if self.inputs.len() != n_inputs { + return Err(Error::RuntimeError(format!( + "Input count mismatch: expected {}, got {}", + n_inputs, + self.inputs.len() + ))); + } + + let traces = &witness.traces; + + // Inputs + for i in 0..n_inputs { + let trace = traces[i].clone(); + let utxo_id = self.inputs[i].clone(); + + let continuation = if instance.must_burn[i] { + None + } else { + let last_yield = self.get_last_yield(i, &state)?; + Some(CoroutineState { + pc: 0, + last_yield, + }) + }; + + builder = builder.with_input(utxo_id, continuation, trace); + } + + // New Outputs + for i in n_inputs..(n_inputs + instance.n_new) { + let trace = traces[i].clone(); + let last_yield = self.get_last_yield(i, &state)?; + let contract_hash = state.process_hashes[&ProcessId(i)].clone(); + + builder = builder.with_fresh_output( + NewOutput { + state: CoroutineState { + pc: 0, + last_yield, + }, + contract_hash, + }, + trace, + ); + } + + // Coords + for i in (n_inputs + instance.n_new)..(n_inputs + instance.n_new + instance.n_coords) { + let trace = traces[i].clone(); + let contract_hash = state.process_hashes[&ProcessId(i)].clone(); + builder = builder.with_coord_script(contract_hash, trace); + } + + // Ownership + for (token, owner_opt) in state.ownership { + if let Some(owner) = owner_opt { + builder = builder.with_ownership(OutputRef::from(token.0), OutputRef::from(owner.0)); + } + } + + Ok(builder.build(proof)) + } + + fn get_last_yield(&self, pid: usize, state: &RuntimeState) -> Result { + let trace = state + .traces + .get(&ProcessId(pid)) + .ok_or(Error::RuntimeError(format!("No trace for pid {}", pid)))?; + let last_op = trace + .last() + .ok_or(Error::RuntimeError(format!("Empty trace for pid {}", pid)))?; + let val_ref = match last_op { + WitLedgerEffect::Yield { val, .. } => *val, + _ => { + return Err(Error::RuntimeError(format!( + "Process {} did not yield (last op: {:?})", + pid, last_op + ))); + } + }; + + let values = state + .ref_store + .get(&val_ref) + .ok_or(Error::RuntimeError(format!("Ref {:?} not found", val_ref)))?; + values + .first() + .cloned() + .ok_or(Error::RuntimeError("Empty ref content".into())) + } + + pub fn to_instance(&self) -> InterleavingInstance { + self.execute().unwrap().0 + } + + pub fn execute(&self) -> Result<(InterleavingInstance, RuntimeState, InterleavingWitness), Error> { + let mut runtime = Runtime::new(); + + let mut instances = Vec::new(); + let mut process_table = Vec::new(); + + for (pid, program_bytes) in self.programs.iter().enumerate() { + let mut hasher = Sha256::new(); + hasher.update(program_bytes); + let result = hasher.finalize(); + let mut h = [0u8; 32]; + h.copy_from_slice(&result); + let hash = Hash(h, std::marker::PhantomData); + + runtime + .store + .data_mut() + .process_hashes + .insert(ProcessId(pid), hash.clone()); + + // Populate is_utxo map + runtime + .store + .data_mut() + .is_utxo + .insert(ProcessId(pid), self.is_utxo[pid]); + + process_table.push(hash); + + let module = wasmi::Module::new(&runtime.engine, program_bytes)?; + let instance = runtime + .linker + .instantiate_and_start(&mut runtime.store, &module)?; + + // Store memory in RuntimeState for hash reading + if let Some(extern_) = instance.get_export(&runtime.store, "memory") { + if let Some(memory) = extern_.into_memory() { + runtime + .store + .data_mut() + .memories + .insert(ProcessId(pid), memory); + } + } + + instances.push(instance); + } + + // Map of suspended processes + let mut resumables: HashMap> = HashMap::new(); + + // Start entrypoint + let mut current_pid = ProcessId(self.entrypoint); + runtime + .store + .data_mut() + .allocated_processes + .insert(current_pid); + + let mut prev_id = None; + runtime.store.data_mut().current_process = current_pid; + + // Initial argument? 0? + let mut next_args = [0u64; 4]; + + loop { + runtime.store.data_mut().current_process = current_pid; + runtime.store.data_mut().prev_id = prev_id; + + let result = if let Some(continuation) = resumables.remove(¤t_pid) { + let n_results = { + let traces = &runtime.store.data().traces; + let trace = traces.get(¤t_pid).expect("trace exists"); + match trace.last().expect("trace not empty") { + WitLedgerEffect::ProgramHash { .. } => 4, + _ => 2, + } + }; + + // Update previous effect with return value + let traces = &mut runtime.store.data_mut().traces; + if let Some(trace) = traces.get_mut(¤t_pid) { + if let Some(last) = trace.last_mut() { + match last { + WitLedgerEffect::Resume { ret, .. } => { + *ret = Ref(next_args[0]); + } + WitLedgerEffect::Yield { ret, .. } => { + *ret = Some(Ref(next_args[0])); + } + _ => {} + } + } + } + + let vals = [ + Val::I64(next_args[0] as i64), + Val::I64(next_args[1] as i64), + Val::I64(next_args[2] as i64), + Val::I64(next_args[3] as i64), + ]; + + continuation.resume(&mut runtime.store, &vals[..n_results])? + } else { + let instance = instances[current_pid.0]; + // Start with _start, 0 args, 0 results + let func = instance + .get_typed_func::<(), ()>(&runtime.store, "_start")?; + func.call_resumable(&mut runtime.store, ()).unwrap() + }; + + match result { + TypedResumableCall::Finished(_) => { + // Process finished naturally. + break; + } + TypedResumableCall::HostTrap(invocation) => { + // It suspended. + + // Inspect the last effect + let last_effect = { + let traces = &runtime.store.data().traces; + let trace = traces + .get(¤t_pid) + .expect("trace exists after suspend"); + trace.last().expect("trace not empty after suspend").clone() + }; + + resumables.insert(current_pid, invocation); + + match last_effect { + WitLedgerEffect::Resume { target, val, .. } => { + runtime.store.data_mut().call_stack.push(current_pid); + prev_id = Some(current_pid); + next_args = [val.0, current_pid.0 as u64, 0, 0]; + current_pid = target; + } + WitLedgerEffect::Yield { val, .. } => { + let caller = runtime + .store + .data_mut() + .call_stack + .pop() + .expect("yield on empty stack"); + prev_id = Some(current_pid); + next_args = [val.0, current_pid.0 as u64, 0, 0]; + current_pid = caller; + } + WitLedgerEffect::Burn { .. } => { + let caller = runtime + .store + .data_mut() + .call_stack + .pop() + .expect("burn on empty stack"); + prev_id = Some(current_pid); + next_args = [0; 4]; + current_pid = caller; + } + WitLedgerEffect::NewUtxo { id, .. } => { + next_args = [id.0 as u64, 0, 0, 0]; + } + WitLedgerEffect::NewCoord { id, .. } => { + next_args = [id.0 as u64, 0, 0, 0]; + } + WitLedgerEffect::GetHandlerFor { handler_id, .. } => { + next_args = [handler_id.0 as u64, 0, 0, 0]; + } + WitLedgerEffect::Activation { val, caller } => { + next_args = [val.0, caller.0 as u64, 0, 0]; + } + WitLedgerEffect::Init { val, caller } => { + next_args = [val.0, caller.0 as u64, 0, 0]; + } + WitLedgerEffect::NewRef { ret, .. } => { + next_args = [ret.0, 0, 0, 0]; + } + WitLedgerEffect::Get { ret, .. } => { + next_args = [ret.0, 0, 0, 0]; + } + WitLedgerEffect::ProgramHash { program_hash, .. } => { + let limbs = program_hash.0; + next_args = [ + u64::from_le_bytes(limbs[0..8].try_into().unwrap()), + u64::from_le_bytes(limbs[8..16].try_into().unwrap()), + u64::from_le_bytes(limbs[16..24].try_into().unwrap()), + u64::from_le_bytes(limbs[24..32].try_into().unwrap()), + ]; + } + _ => { + next_args = [0; 4]; + } + } + } + TypedResumableCall::OutOfFuel(_) => { + todo!(); + } + } + } + + let mut host_calls_roots = Vec::new(); + let mut host_calls_lens = Vec::new(); + let mut must_burn = Vec::new(); + let mut ownership_in = Vec::new(); + let mut ownership_out = Vec::new(); + let mut traces = Vec::new(); + + let is_utxo = self.is_utxo.clone(); + let n_coords = runtime.store.data().n_coord; + let n_new = runtime.store.data().n_new; + let n_inputs = process_table.len() - n_new - n_coords; + + for pid in 0..self.programs.len() { + let data = runtime.store.data(); + let trace = data + .traces + .get(&ProcessId(pid)) + .cloned() + .unwrap_or_default(); + host_calls_lens.push(trace.len() as u32); + // mocked commitment + host_calls_roots.push(MockedLookupTableCommitment(0)); + traces.push(trace); + + if pid < n_inputs { + must_burn.push(data.must_burn.contains(&ProcessId(pid))); + } + + if self.is_utxo[pid] { + ownership_in.push(None); + ownership_out.push(None); + } + } + + let instance = InterleavingInstance { + host_calls_roots, + host_calls_lens, + process_table, + is_utxo, + must_burn, + n_inputs, + n_new, + n_coords, + ownership_in, + ownership_out, + entrypoint: ProcessId(self.entrypoint), + input_states: vec![], + }; + + let witness = starstream_mock_ledger::InterleavingWitness { traces }; + + Ok((instance, runtime.store.into_data(), witness)) + } +} + +impl From for HostCallDiscriminant { + fn from(value: u64) -> Self { + match value { + 0 => Resume, + 1 => Yield, + 2 => NewUtxo, + 3 => NewCoord, + 4 => InstallHandler, + 5 => UninstallHandler, + 6 => GetHandlerFor, + 7 => Burn, + 8 => Activation, + 9 => Init, + 10 => NewRef, + 11 => RefPush, + 12 => Get, + 13 => Bind, + 14 => Unbind, + 15 => ProgramHash, + _ => todo!(), + } + } +} diff --git a/starstream-runtime/tests/integration.rs b/starstream-runtime/tests/integration.rs new file mode 100644 index 00000000..7497841a --- /dev/null +++ b/starstream-runtime/tests/integration.rs @@ -0,0 +1,179 @@ +use sha2::{Digest, Sha256}; +use starstream_mock_ledger::Ledger; +use starstream_runtime::{HostCallDiscriminant, UnprovenTransaction}; +use wat::parse_str; + +#[test] +fn test_runtime_effect_handlers() { + let utxo_wat = format!( + r#"( +module + (import "env" "starstream_host_call" (func $host_call (param i64 i64 i64 i64 i64 i64) (result i64 i64))) + (import "env" "starstream_get_program_hash" (func $program_hash (param i64 i64) (result i64 i64 i64 i64))) + + (func (export "_start") + (local $val i64) (local $handler_id i64) (local $req i64) (local $resp i64) + + ;; ACTIVATION + (call $host_call (i64.const {ACTIVATION}) (i64.const 0) (i64.const 0) (i64.const 0) (i64.const 0) (i64.const 0)) + drop + local.set $val + + ;; PROGRAM_HASH(target=1) + (call $program_hash (i64.const {PROGRAM_HASH}) (i64.const 1)) + drop + drop + drop + drop + + ;; GET_HANDLER_FOR(interface_id=limbs at 0) + (call $host_call (i64.const {GET_HANDLER_FOR}) + (i64.const 1) (i64.const 0) (i64.const 0) (i64.const 0) (i64.const 0) + ) + drop + local.set $handler_id + + ;; NEW_REF(size=1) + (call $host_call (i64.const {NEW_REF}) (i64.const 1) (i64.const 0) (i64.const 0) (i64.const 0) (i64.const 0)) + drop + local.set $req + + ;; REF_PUSH(val=42) + (call $host_call (i64.const {REF_PUSH}) (i64.const 42) (i64.const 0) (i64.const 0) (i64.const 0) (i64.const 0)) + drop + drop + + ;; RESUME(target=$handler_id, val=$req, ret=2, prev=1) + (call $host_call (i64.const {RESUME}) (local.get $handler_id) (local.get $req) (i64.const 0) (i64.const 1) (i64.const 0)) + drop + local.set $resp + + ;; YIELD(val=$resp, ret=-1, prev=0) + (call $host_call (i64.const {YIELD}) (local.get $resp) (i64.const 0) (i64.const 1) (i64.const 0) (i64.const 0)) + drop + drop + ) +) +"#, + ACTIVATION = HostCallDiscriminant::Activation as u64, + GET_HANDLER_FOR = HostCallDiscriminant::GetHandlerFor as u64, + NEW_REF = HostCallDiscriminant::NewRef as u64, + REF_PUSH = HostCallDiscriminant::RefPush as u64, + RESUME = HostCallDiscriminant::Resume as u64, + YIELD = HostCallDiscriminant::Yield as u64, + PROGRAM_HASH = HostCallDiscriminant::ProgramHash as u64, + ); + let utxo_bin = parse_str(&utxo_wat).unwrap(); + + // TODO: this should be poseidon at some point later + let mut hasher = Sha256::new(); + hasher.update(&utxo_bin); + let utxo_hash_bytes = hasher.finalize(); + + let utxo_hash_limb_a = u64::from_le_bytes(utxo_hash_bytes[0..8].try_into().unwrap()); + let utxo_hash_limb_b = u64::from_le_bytes(utxo_hash_bytes[8..8 * 2].try_into().unwrap()); + let utxo_hash_limb_c = u64::from_le_bytes(utxo_hash_bytes[8 * 2..8 * 3].try_into().unwrap()); + let utxo_hash_limb_d = u64::from_le_bytes(utxo_hash_bytes[8 * 3..8 * 4].try_into().unwrap()); + + // 2. Compile Coord Program + let coord_wat = format!( + r#"( +module + (import "env" "starstream_host_call" (func $host_call (param i64 i64 i64 i64 i64 i64) (result i64 i64))) + + (func (export "_start") + (local $init_val i64) (local $resp i64) (local $final i64) + + ;; INSTALL_HANDLER(interface_id=limbs at 0) + (call $host_call (i64.const {INSTALL_HANDLER}) + (i64.const 1) (i64.const 0) (i64.const 0) (i64.const 0) (i64.const 0) + ) + drop + drop + + ;; NEW_REF(size=1) + (call $host_call (i64.const {NEW_REF}) (i64.const 1) (i64.const 0) (i64.const 0) (i64.const 0) (i64.const 0)) + drop + local.set $init_val + + ;; REF_PUSH(val=11111) + (call $host_call (i64.const {REF_PUSH}) (i64.const 11111) (i64.const 0) (i64.const 0) (i64.const 0) (i64.const 0)) + drop + drop + + ;; NEW_UTXO(program_hash=limbs at 32, val=$init_val, id=0) + (call $host_call (i64.const {NEW_UTXO}) + (i64.const {utxo_hash_limb_a}) + (i64.const {utxo_hash_limb_b}) + (i64.const {utxo_hash_limb_c}) + (i64.const {utxo_hash_limb_d}) + (local.get $init_val) + ) + drop + drop + + ;; RESUME(target=0, val=$init_val, ret=1, prev=-1) + (call $host_call (i64.const {RESUME}) (i64.const 0) (local.get $init_val) (i64.const 0) (i64.const -1) (i64.const 0)) + drop + drop + + ;; NEW_REF(size=1) + (call $host_call (i64.const {NEW_REF}) (i64.const 1) (i64.const 0) (i64.const 0) (i64.const 0) (i64.const 0)) + drop + local.set $resp + + ;; REF_PUSH(val=43) + (call $host_call (i64.const {REF_PUSH}) (i64.const 43) (i64.const 0) (i64.const 0) (i64.const 0) (i64.const 0)) + drop + drop + + ;; NEW_REF(size=1) + (call $host_call (i64.const {NEW_REF}) (i64.const 1) (i64.const 0) (i64.const 0) (i64.const 0) (i64.const 0)) + drop + local.set $final + + ;; REF_PUSH(val=33333) + (call $host_call (i64.const {REF_PUSH}) (i64.const 33333) (i64.const 0) (i64.const 0) (i64.const 0) (i64.const 0)) + drop + drop + + ;; RESUME(target=0, val=$resp, ret=$resp, prev=0) + (call $host_call (i64.const {RESUME}) (i64.const 0) (local.get $resp) (i64.const 0) (i64.const 0) (i64.const 0)) + drop + drop + + ;; UNINSTALL_HANDLER(interface_id=limbs at 0) + (call $host_call (i64.const {UNINSTALL_HANDLER}) + (i64.const 1) (i64.const 0) (i64.const 0) (i64.const 0) (i64.const 0) + ) + drop + drop + ) +) +"#, + INSTALL_HANDLER = HostCallDiscriminant::InstallHandler as u64, + NEW_REF = HostCallDiscriminant::NewRef as u64, + REF_PUSH = HostCallDiscriminant::RefPush as u64, + NEW_UTXO = HostCallDiscriminant::NewUtxo as u64, + RESUME = HostCallDiscriminant::Resume as u64, + UNINSTALL_HANDLER = HostCallDiscriminant::UninstallHandler as u64, + ); + let coord_bin = parse_str(&coord_wat).unwrap(); + + let programs = vec![utxo_bin, coord_bin.clone()]; + + let tx = UnprovenTransaction { + inputs: vec![], + programs, + is_utxo: vec![true, false], + entrypoint: 1, + }; + + let proven_tx = tx.prove().unwrap(); + + let ledger = Ledger::new(); + + let ledger = ledger.apply_transaction(&proven_tx).unwrap(); + + assert_eq!(ledger.utxos.len(), 1); +} diff --git a/starstream-runtime/tests/integration_test.rs b/starstream-runtime/tests/integration_test.rs new file mode 100644 index 00000000..ffea757c --- /dev/null +++ b/starstream-runtime/tests/integration_test.rs @@ -0,0 +1,65 @@ +use starstream_runtime::UnprovenTransaction; + +#[test] +fn test_simple_resume_yield() { + // Modified WAT: _start takes no params and returns nothing. + // Host call still returns i64 (which is the 'next_arg' passed via resume). + + let program0_wat = r#" + (module + (import "env" "starstream_host_call" (func $host_call (param i64 i64 i64 i64 i64) (result i64))) + (memory (export "memory") 1) + (func (export "_start") + ;; Call Resume(target=1, val=100, ret=200, id_prev=MAX) + ;; RESUME = 0 + (call $host_call + (i64.const 0) ;; discriminant + (i64.const 1) ;; target + (i64.const 100) ;; val + (i64.const 200) ;; ret + (i64.const -1) ;; id_prev (MAX) + ) + drop ;; drop the result of host_call (which is the return value from the target's yield) + ) + ) + "#; + + let program1_wat = r#" + (module + (import "env" "starstream_host_call" (func $host_call (param i64 i64 i64 i64 i64) (result i64))) + (memory (export "memory") 1) + (func (export "_start") + ;; Program 1 is resumed. + ;; We don't receive args via function params anymore (since _start is () -> ()). + ;; But we can pretend we did logic. + + ;; Yield(val=101, ret=MAX, id_prev=0) + ;; YIELD = 1 + (call $host_call + (i64.const 1) ;; discriminant + (i64.const 101) ;; val + (i64.const -1) ;; ret (MAX -> None) + (i64.const 0) ;; id_prev + (i64.const 0) ;; unused arg4 + ) + drop + ) + ) + "#; + + let program0 = wat::parse_str(program0_wat).unwrap(); + let program1 = wat::parse_str(program1_wat).unwrap(); + + let tx = UnprovenTransaction { + inputs: vec![], + programs: vec![program0, program1], + entrypoint: 0, + is_utxo: vec![false, false], + }; + + let instance = tx.to_instance(); + + dbg!(instance.host_calls_roots); + + // We could inspect internal state if we exposed it, but for now we just ensure it runs. +} diff --git a/starstream_ivc_proto/src/circuit.rs b/starstream_ivc_proto/src/circuit.rs index 47fcb12a..9dcb9232 100644 --- a/starstream_ivc_proto/src/circuit.rs +++ b/starstream_ivc_proto/src/circuit.rs @@ -622,7 +622,6 @@ pub struct InterRoundWires { ref_building_ptr: F, p_len: F, - _n_finalized: F, } impl ProgramStateWires { @@ -1109,7 +1108,6 @@ impl InterRoundWires { id_prev_is_some: false, id_prev_value: F::ZERO, p_len, - _n_finalized: F::from(0), ref_arena_counter: F::ZERO, handler_stack_counter: F::ZERO, ref_building_remaining: F::ZERO, @@ -1249,6 +1247,8 @@ impl LedgerOperation { } => { config.execution_switches.program_hash = true; + config.rom_switches.read_program_hash_target = true; + config.opcode_var_values.target = *target; config.opcode_var_values.program_hash = *program_hash; } @@ -2519,16 +2519,17 @@ impl> StepCircuitBuilder { is_building.conditional_enforce_equal(&Boolean::TRUE, switch)?; // Update state - // remaining -= 1 - let next_remaining = &wires.ref_building_remaining - &wires.constant_one; - wires.ref_building_remaining = switch.select(&next_remaining, &wires.ref_building_remaining)?; - - // ptr += 1 - let next_ptr = &wires.ref_building_ptr + &wires.constant_one; - wires.ref_building_ptr = switch.select(&next_ptr, &wires.ref_building_ptr)?; - - Ok(wires) - } + // remaining -= 1 + let next_remaining = &wires.ref_building_remaining - &wires.constant_one; + wires.ref_building_remaining = + switch.select(&next_remaining, &wires.ref_building_remaining)?; + + // ptr += 1 + let next_ptr = &wires.ref_building_ptr + &wires.constant_one; + wires.ref_building_ptr = switch.select(&next_ptr, &wires.ref_building_ptr)?; + + Ok(wires) + } #[tracing::instrument(target = "gr1cs", skip_all)] fn visit_get_ref(&self, wires: Wires) -> Result { @@ -2545,7 +2546,6 @@ impl> StepCircuitBuilder { fn visit_program_hash(&self, wires: Wires) -> Result { let switch = &wires.switches.program_hash; - // Check that the program hash from the opcode matches the ROM lookup result wires .program_hash .conditional_enforce_equal(&wires.rom_program_hash, switch)?; diff --git a/starstream_ivc_proto/src/circuit_test.rs b/starstream_ivc_proto/src/circuit_test.rs index eca8e122..5dfabf2b 100644 --- a/starstream_ivc_proto/src/circuit_test.rs +++ b/starstream_ivc_proto/src/circuit_test.rs @@ -1,6 +1,7 @@ -use crate::{prove, test_utils::init_test_logging}; +use crate::{logging::setup_logger, prove}; use starstream_mock_ledger::{ - Hash, InterleavingInstance, MockedLookupTableCommitment, ProcessId, Ref, Value, WitLedgerEffect, + Hash, InterleavingInstance, InterleavingWitness, MockedLookupTableCommitment, ProcessId, Ref, + Value, WitLedgerEffect, }; pub fn h(n: u8) -> Hash { @@ -19,7 +20,7 @@ pub fn v(data: &[u8]) -> Value { #[test] fn test_circuit_many_steps() { - init_test_logging(); + setup_logger(); let utxo_id = 0; let token_id = 1; @@ -37,111 +38,102 @@ fn test_circuit_many_steps() { let ref_1 = Ref(1); let ref_4 = Ref(2); - let utxo_trace = MockedLookupTableCommitment { - trace: vec![ - WitLedgerEffect::Init { - val: ref_4, - caller: p2, - }, - WitLedgerEffect::Get { - reff: ref_4, - offset: 0, - ret: val_4.clone(), - }, - WitLedgerEffect::Activation { - val: ref_0, - caller: p2, - }, - WitLedgerEffect::GetHandlerFor { - interface_id: h(100), - handler_id: p2, - }, - WitLedgerEffect::Yield { - val: ref_1.clone(), // Yielding nothing - ret: None, // Not expecting to be resumed again - id_prev: Some(p2), - }, - ], - }; - - let token_trace = MockedLookupTableCommitment { - trace: vec![ - WitLedgerEffect::Init { - val: ref_1, - caller: p2, - }, - WitLedgerEffect::Get { - reff: ref_1, - offset: 0, - ret: val_1.clone(), - }, - WitLedgerEffect::Activation { - val: ref_0, - caller: p2, - }, - WitLedgerEffect::Bind { owner_id: p0 }, - WitLedgerEffect::Yield { - val: ref_1.clone(), // Yielding nothing - ret: None, // Not expecting to be resumed again - id_prev: Some(p2), - }, - ], - }; - - let coord_trace = MockedLookupTableCommitment { - trace: vec![ - WitLedgerEffect::NewRef { - size: 1, - ret: ref_0, - }, - WitLedgerEffect::RefPush { val: val_0 }, - WitLedgerEffect::NewRef { - size: 1, - ret: ref_1, - }, - WitLedgerEffect::RefPush { val: val_1.clone() }, - WitLedgerEffect::NewRef { - size: 1, - ret: ref_4, - }, - WitLedgerEffect::RefPush { val: val_4.clone() }, - WitLedgerEffect::NewUtxo { - program_hash: h(0), - val: ref_4, - id: p0, - }, - WitLedgerEffect::NewUtxo { - program_hash: h(1), - val: ref_1, - id: p1, - }, - WitLedgerEffect::Resume { - target: p1, - val: ref_0.clone(), - ret: ref_1.clone(), - id_prev: None, - }, - WitLedgerEffect::InstallHandler { - interface_id: h(100), - }, - WitLedgerEffect::Resume { - target: p0, - val: ref_0, - ret: ref_1, - id_prev: Some(p1), - }, - WitLedgerEffect::UninstallHandler { - interface_id: h(100), - }, - ], - }; + let utxo_trace = vec![ + WitLedgerEffect::Init { + val: ref_4, + caller: p2, + }, + WitLedgerEffect::Get { + reff: ref_4, + offset: 0, + ret: val_4.clone(), + }, + WitLedgerEffect::Activation { + val: ref_0, + caller: p2, + }, + WitLedgerEffect::GetHandlerFor { + interface_id: h(100), + handler_id: p2, + }, + WitLedgerEffect::Yield { + val: ref_1.clone(), // Yielding nothing + ret: None, // Not expecting to be resumed again + id_prev: Some(p2), + }, + ]; + + let token_trace = vec![ + WitLedgerEffect::Init { + val: ref_1, + caller: p2, + }, + WitLedgerEffect::Get { + reff: ref_1, + offset: 0, + ret: val_1.clone(), + }, + WitLedgerEffect::Activation { + val: ref_0, + caller: p2, + }, + WitLedgerEffect::Bind { owner_id: p0 }, + WitLedgerEffect::Yield { + val: ref_1.clone(), // Yielding nothing + ret: None, // Not expecting to be resumed again + id_prev: Some(p2), + }, + ]; + + let coord_trace = vec![ + WitLedgerEffect::NewRef { + size: 1, + ret: ref_0, + }, + WitLedgerEffect::RefPush { val: val_0 }, + WitLedgerEffect::NewRef { + size: 1, + ret: ref_1, + }, + WitLedgerEffect::RefPush { val: val_1.clone() }, + WitLedgerEffect::NewRef { + size: 1, + ret: ref_4, + }, + WitLedgerEffect::RefPush { val: val_4.clone() }, + WitLedgerEffect::NewUtxo { + program_hash: h(0), + val: ref_4, + id: p0, + }, + WitLedgerEffect::NewUtxo { + program_hash: h(1), + val: ref_1, + id: p1, + }, + WitLedgerEffect::Resume { + target: p1, + val: ref_0.clone(), + ret: ref_1.clone(), + id_prev: None, + }, + WitLedgerEffect::InstallHandler { + interface_id: h(100), + }, + WitLedgerEffect::Resume { + target: p0, + val: ref_0, + ret: ref_1, + id_prev: Some(p1), + }, + WitLedgerEffect::UninstallHandler { + interface_id: h(100), + }, + ]; let traces = vec![utxo_trace, token_trace, coord_trace]; - let trace_lens = traces - .iter() - .map(|t| t.trace.len() as u32) - .collect::>(); + let trace_lens = traces.iter().map(|t| t.len() as u32).collect::>(); let instance = InterleavingInstance { n_inputs: 0, @@ -153,18 +145,20 @@ fn test_circuit_many_steps() { must_burn: vec![false, false, false], ownership_in: vec![None, None, None], ownership_out: vec![None, Some(ProcessId(0)), None], - host_calls_roots: traces, + host_calls_roots: vec![MockedLookupTableCommitment(0); traces.len()], host_calls_lens: trace_lens, input_states: vec![], }; - let result = prove(instance); + let wit = InterleavingWitness { traces }; + + let result = prove(instance, wit); assert!(result.is_ok()); } #[test] fn test_circuit_small() { - init_test_logging(); + setup_logger(); let utxo_id = 0; let coord_id = 1; @@ -176,41 +170,34 @@ fn test_circuit_small() { let ref_0 = Ref(0); - let utxo_trace = MockedLookupTableCommitment { - trace: vec![WitLedgerEffect::Yield { - val: ref_0.clone(), // Yielding nothing - ret: None, // Not expecting to be resumed again - id_prev: Some(p1), - }], - }; - - let coord_trace = MockedLookupTableCommitment { - trace: vec![ - WitLedgerEffect::NewRef { - size: 1, - ret: ref_0, - }, - WitLedgerEffect::RefPush { val: val_0 }, - WitLedgerEffect::NewUtxo { - program_hash: h(0), - val: ref_0, - id: p0, - }, - WitLedgerEffect::Resume { - target: p0, - val: ref_0.clone(), - ret: ref_0.clone(), - id_prev: None, - }, - ], - }; + let utxo_trace = vec![WitLedgerEffect::Yield { + val: ref_0.clone(), // Yielding nothing + ret: None, // Not expecting to be resumed again + id_prev: Some(p1), + }]; + + let coord_trace = vec![ + WitLedgerEffect::NewRef { + size: 1, + ret: ref_0, + }, + WitLedgerEffect::RefPush { val: val_0 }, + WitLedgerEffect::NewUtxo { + program_hash: h(0), + val: ref_0, + id: p0, + }, + WitLedgerEffect::Resume { + target: p0, + val: ref_0.clone(), + ret: ref_0.clone(), + id_prev: None, + }, + ]; let traces = vec![utxo_trace, coord_trace]; - let trace_lens = traces - .iter() - .map(|t| t.trace.len() as u32) - .collect::>(); + let trace_lens = traces.iter().map(|t| t.len() as u32).collect::>(); let instance = InterleavingInstance { n_inputs: 0, @@ -222,11 +209,13 @@ fn test_circuit_small() { must_burn: vec![false, false], ownership_in: vec![None, None], ownership_out: vec![None, None], - host_calls_roots: traces, + host_calls_roots: vec![MockedLookupTableCommitment(0); traces.len()], host_calls_lens: trace_lens, input_states: vec![], }; - let result = prove(instance); + let wit = InterleavingWitness { traces }; + + let result = prove(instance, wit); assert!(result.is_ok()); -} \ No newline at end of file +} diff --git a/starstream_ivc_proto/src/lib.rs b/starstream_ivc_proto/src/lib.rs index b0f41e91..5bf8dcb9 100644 --- a/starstream_ivc_proto/src/lib.rs +++ b/starstream_ivc_proto/src/lib.rs @@ -4,15 +4,10 @@ mod circuit_test; // #[cfg(test)] // mod e2e; mod goldilocks; +mod logging; mod memory; mod neo; mod poseidon2; -#[cfg(test)] -mod test_utils; - -use std::collections::HashMap; -use std::sync::Arc; -use std::time::Instant; use crate::circuit::InterRoundWires; use crate::memory::IVCMemory; @@ -28,7 +23,12 @@ use neo_fold::session::{FoldingSession, preprocess_shared_bus_r1cs}; use neo_fold::shard::StepLinkingConfig; use neo_params::NeoParams; use rand::SeedableRng as _; -use starstream_mock_ledger::{InterleavingInstance, ProcessId}; +use starstream_mock_ledger::{ + InterleavingInstance, InterleavingWitness, ProcessId, ZkTransactionProof, +}; +use std::collections::HashMap; +use std::sync::Arc; +use std::time::Instant; type F = FpGoldilocks; @@ -117,15 +117,15 @@ pub enum LedgerOperation { Nop {}, } -pub struct ProverOutput { - // pub proof: Proof, - pub proof: (), -} +pub fn prove( + inst: InterleavingInstance, + wit: InterleavingWitness, +) -> Result { + logging::setup_logger(); -pub fn prove(inst: InterleavingInstance) -> Result { // map all the disjoints vectors of traces (one per process) into a single // list, which is simpler to think about for ivc. - let ops = make_interleaved_trace(&inst); + let ops = make_interleaved_trace(&inst, &wit); let max_steps = ops.len(); tracing::info!("making proof, steps {}", ops.len()); @@ -180,14 +180,22 @@ pub fn prove(inst: InterleavingInstance) -> Result let run = session.fold_and_prove(prover.ccs()).unwrap(); tracing::info!("proof generated in {} ms", t_prove.elapsed().as_millis()); - let ok = session - .verify_collected(prover.ccs(), &run) - .expect("verify should run"); + let status = session.verify_collected(prover.ccs(), &run).unwrap(); + + assert!(status, "optimized verification should pass"); - assert!(ok, "optimized verification should pass"); + let mcss_public = session.mcss_public(); + let steps_public = session.steps_public(); + + let prover_output = ZkTransactionProof::NeoProof { + proof: run, + session, + ccs: prover.ccs().clone(), + mcss_public, + steps_public, + }; - // TODO: extract the actual proof - Ok(ProverOutput { proof: () }) + Ok(prover_output) } fn setup_ajtai_committer(m: usize, kappa: usize) -> AjtaiSModule { @@ -196,7 +204,10 @@ fn setup_ajtai_committer(m: usize, kappa: usize) -> AjtaiSModule { AjtaiSModule::new(Arc::new(pp)) } -fn make_interleaved_trace(inst: &InterleavingInstance) -> Vec> { +fn make_interleaved_trace( + inst: &InterleavingInstance, + wit: &InterleavingWitness, +) -> Vec> { let mut ops = vec![]; let mut id_curr = inst.entrypoint.0; let mut id_prev: Option = None; @@ -205,18 +216,18 @@ fn make_interleaved_trace(inst: &InterleavingInstance) -> Vec= trace.trace.len() { + if *c >= trace.len() { // We've reached the end of the current trace. This is the end. break; } - let instr = trace.trace[*c].clone(); + let instr = trace[*c].clone(); *c += 1; let op = match instr { @@ -308,11 +319,9 @@ fn make_interleaved_trace(inst: &InterleavingInstance) -> Vec { - LedgerOperation::RefPush { - val: value_to_field(val), - } - } + starstream_mock_ledger::WitLedgerEffect::RefPush { val } => LedgerOperation::RefPush { + val: value_to_field(val), + }, starstream_mock_ledger::WitLedgerEffect::Get { reff, offset, ret } => { LedgerOperation::Get { reff: F::from(reff.0), @@ -399,4 +408,4 @@ fn ccs_step_shape() -> Result<(ConstraintSystemRef, TSMemLayouts), SynthesisE let mem_spec = running_mem.ts_mem_layouts(); Ok((cs, mem_spec)) -} \ No newline at end of file +} diff --git a/starstream_ivc_proto/src/test_utils.rs b/starstream_ivc_proto/src/logging.rs similarity index 95% rename from starstream_ivc_proto/src/test_utils.rs rename to starstream_ivc_proto/src/logging.rs index 7ac4d193..008ad40f 100644 --- a/starstream_ivc_proto/src/test_utils.rs +++ b/starstream_ivc_proto/src/logging.rs @@ -1,7 +1,7 @@ use ark_relations::gr1cs::{ConstraintLayer, TracingMode}; use tracing_subscriber::{Registry, fmt, layer::SubscriberExt as _}; -pub(crate) fn init_test_logging() { +pub(crate) fn setup_logger() { static INIT: std::sync::Once = std::sync::Once::new(); INIT.call_once(|| { diff --git a/starstream_ivc_proto/src/memory/nebula/mod.rs b/starstream_ivc_proto/src/memory/nebula/mod.rs index c2eb2722..e036ad43 100644 --- a/starstream_ivc_proto/src/memory/nebula/mod.rs +++ b/starstream_ivc_proto/src/memory/nebula/mod.rs @@ -77,12 +77,12 @@ where #[cfg(test)] mod tests { use super::*; + use crate::logging::setup_logger; use crate::memory::IVCMemory; use crate::memory::IVCMemoryAllocated; use crate::memory::MemType; use crate::memory::nebula::tracer::NebulaMemory; use crate::memory::nebula::tracer::NebulaMemoryParams; - use crate::test_utils::init_test_logging; use ark_r1cs_std::alloc::AllocVar; use ark_r1cs_std::fields::fp::FpVar; use ark_r1cs_std::prelude::Boolean; @@ -90,7 +90,7 @@ mod tests { #[test] fn test_nebula_memory_constraints_satisfiability() { - init_test_logging(); + setup_logger(); let mut memory = NebulaMemory::<1>::new(NebulaMemoryParams { unsound_disable_poseidon_commitment: false, @@ -169,7 +169,7 @@ mod tests { // gated, but we still want to keep the same shape across steps #[test] fn test_circuit_shape_consistency_across_conditions() { - init_test_logging(); + setup_logger(); fn create_constraint_system_with_conditions( read_cond: bool, write_cond: bool, @@ -278,7 +278,7 @@ mod tests { #[test] fn test_scan_batch_size_multi_step() { - init_test_logging(); + setup_logger(); const SCAN_BATCH_SIZE: usize = 2; let num_steps = 3; diff --git a/starstream_mock_ledger/Cargo.toml b/starstream_mock_ledger/Cargo.toml index 6504fafb..19929aa8 100644 --- a/starstream_mock_ledger/Cargo.toml +++ b/starstream_mock_ledger/Cargo.toml @@ -7,3 +7,12 @@ edition = "2024" hex = "0.4.3" imbl = "6.1.0" thiserror = "2.0.17" + +# TODO: move to workspace deps +neo-fold = { git = "https://github.com/nicarq/Nightstream.git", rev = "100f3e638e59537ae3f2a109c9a91c2af97479c0" } +neo-ccs = { git = "https://github.com/nicarq/Nightstream.git", rev = "100f3e638e59537ae3f2a109c9a91c2af97479c0" } +neo-math = { git = "https://github.com/nicarq/Nightstream.git", rev = "100f3e638e59537ae3f2a109c9a91c2af97479c0" } +neo-ajtai = { git = "https://github.com/nicarq/Nightstream.git", rev = "100f3e638e59537ae3f2a109c9a91c2af97479c0" } +neo-memory = { git = "https://github.com/nicarq/Nightstream.git", rev = "100f3e638e59537ae3f2a109c9a91c2af97479c0" } + +p3-field = "0.4.1" diff --git a/starstream_mock_ledger/src/builder.rs b/starstream_mock_ledger/src/builder.rs new file mode 100644 index 00000000..caee6671 --- /dev/null +++ b/starstream_mock_ledger/src/builder.rs @@ -0,0 +1,121 @@ +use super::*; +use crate::transaction_effects::witness::WitLedgerEffect; + +pub struct RefGenerator { + counter: u64, + map: HashMap<&'static str, Ref>, +} + +impl RefGenerator { + pub fn new() -> Self { + Self { + counter: 0, + map: HashMap::new(), + } + } + + pub fn get(&mut self, name: &'static str) -> Ref { + let entry = self.map.entry(name).or_insert_with(|| { + let r = Ref(self.counter); + self.counter += 1; + r + }); + *entry + } +} + +pub fn h(n: u8) -> Hash { + // TODO: actual hashing + let mut bytes = [0u8; 32]; + bytes[0] = n; + Hash(bytes, std::marker::PhantomData) +} + +pub fn v(data: &[u8]) -> Value { + let mut bytes = [0u8; 8]; + let len = data.len().min(8); + bytes[..len].copy_from_slice(&data[..len]); + Value(u64::from_le_bytes(bytes)) +} + +pub struct TransactionBuilder { + body: TransactionBody, + spending_proofs: Vec, + new_output_proofs: Vec, + coordination_scripts: Vec, +} + +impl TransactionBuilder { + pub fn new() -> Self { + Self { + body: TransactionBody { + inputs: vec![], + continuations: vec![], + new_outputs: vec![], + ownership_out: HashMap::new(), + coordination_scripts_keys: vec![], + entrypoint: 0, + }, + spending_proofs: vec![], + new_output_proofs: vec![], + coordination_scripts: vec![], + } + } + + pub fn with_input( + mut self, + utxo: UtxoId, + continuation: Option, + trace: Vec, + ) -> Self { + self.body.inputs.push(utxo); + self.body.continuations.push(continuation); + self.spending_proofs.push(ZkWasmProof { + host_calls_root: MockedLookupTableCommitment(0), + trace, + }); + self + } + + pub fn with_fresh_output(mut self, output: NewOutput, trace: Vec) -> Self { + self.body.new_outputs.push(output); + self.new_output_proofs.push(ZkWasmProof { + host_calls_root: MockedLookupTableCommitment(0), + trace, + }); + self + } + + pub fn with_coord_script(mut self, key: Hash, trace: Vec) -> Self { + self.body.coordination_scripts_keys.push(key); + self.coordination_scripts.push(ZkWasmProof { + host_calls_root: MockedLookupTableCommitment(0), + trace, + }); + self + } + + pub fn with_ownership(mut self, token: OutputRef, owner: OutputRef) -> Self { + self.body.ownership_out.insert(token, owner); + self + } + + pub fn with_entrypoint(mut self, entrypoint: usize) -> Self { + self.body.entrypoint = entrypoint; + self + } + + pub fn build(self, interleaving_proof: ZkTransactionProof) -> ProvenTransaction { + let witness = TransactionWitness { + spending_proofs: self.spending_proofs, + new_output_proofs: self.new_output_proofs, + interleaving_proof, + coordination_scripts: self.coordination_scripts, + }; + + ProvenTransaction { + body: self.body, + witness, + } + } +} diff --git a/starstream_mock_ledger/src/lib.rs b/starstream_mock_ledger/src/lib.rs index 71723c5b..a7d0b3bb 100644 --- a/starstream_mock_ledger/src/lib.rs +++ b/starstream_mock_ledger/src/lib.rs @@ -1,13 +1,21 @@ +pub mod builder; mod mocked_verifier; mod transaction_effects; #[cfg(test)] mod tests; -pub use crate::{mocked_verifier::MockedLookupTableCommitment, transaction_effects::ProcessId}; +pub use crate::{ + mocked_verifier::InterleavingWitness, mocked_verifier::MockedLookupTableCommitment, + transaction_effects::ProcessId, +}; use imbl::{HashMap, HashSet}; +use neo_ajtai::Commitment; +use p3_field::PrimeCharacteristicRing; use std::{hash::Hasher, marker::PhantomData}; -pub use transaction_effects::{instance::InterleavingInstance, witness::WitLedgerEffect}; +pub use transaction_effects::{ + InterfaceId, instance::InterleavingInstance, witness::WitLedgerEffect, +}; #[derive(PartialEq, Eq)] pub struct Hash(pub [u8; 32], pub PhantomData); @@ -53,35 +61,102 @@ pub struct CoroutineState { // entry-point, or whether those should actually be different things (in // which case last_yield could be used to persist the storage, and pc could // be instead the call stack). - pc: u64, + pub pc: u64, pub last_yield: Value, } -pub struct ZkTransactionProof {} +// pub struct ZkTransactionProof {} + +pub enum ZkTransactionProof { + NeoProof { + // does the verifier need this? + session: neo_fold::session::FoldingSession, + proof: neo_fold::shard::ShardProof, + mcss_public: Vec>, + steps_public: Vec>, + // TODO: this shouldn't be here I think, the ccs should be known somehow by + // the verifier + ccs: neo_ccs::CcsStructure, + }, + Dummy, +} impl ZkTransactionProof { - pub fn verify(&self, inst: &InterleavingInstance) -> Result<(), VerificationError> { - let traces = inst - .host_calls_roots - .iter() - .map(|lt| lt.trace.clone()) - .collect(); - - let wit = mocked_verifier::InterleavingWitness { traces }; + pub fn verify( + &self, + inst: &InterleavingInstance, + wit: &InterleavingWitness, + ) -> Result<(), VerificationError> { + match self { + ZkTransactionProof::NeoProof { + session, + proof, + mcss_public, + steps_public, + ccs, + } => { + let ok = { session.verify(&ccs, &mcss_public, &proof) }.expect("verify should run"); + + assert!(ok, "optimized verification should pass"); + + // dbg!(&self.steps_public[0].lut_insts[0].table); + + // NOTE: the indices in steps_public match the memory initializations + // ordered by MemoryTag in the circuit + assert!( + inst.process_table + .iter() + .zip(steps_public[0].lut_insts[0].table.iter()) + // TODO: the table should actually contain the full hash, this needs to be updated in the circuit first though + .all( + |(expected, found)| neo_math::F::from_u64(expected.0[0].into()) + == *found + ), + "program hash table mismatch" + ); + + assert!( + inst.must_burn + .iter() + .zip(steps_public[0].lut_insts[1].table.iter()) + .all(|(expected, found)| { + neo_math::F::from_u64(if *expected { 1 } else { 0 }) == *found + }), + "must burn table mismatch" + ); + + assert!( + inst.is_utxo + .iter() + .zip(steps_public[0].lut_insts[2].table.iter()) + .all(|(expected, found)| { + neo_math::F::from_u64(if *expected { 1 } else { 0 }) == *found + }), + "must burn table mismatch" + ); + + // TODO: check interfaces? but I think this can be private + // dbg!(&self.steps_public[0].lut_insts[3].table); + + dbg!(&steps_public[0].mcs_inst.x); + } + ZkTransactionProof::Dummy => {} + } - Ok(mocked_verifier::verify_interleaving_semantics(inst, &wit)?) + Ok(mocked_verifier::verify_interleaving_semantics(inst, wit)?) } } pub struct ZkWasmProof { pub host_calls_root: MockedLookupTableCommitment, + pub trace: Vec, } impl ZkWasmProof { pub fn public_instance(&self) -> WasmInstance { WasmInstance { host_calls_root: self.host_calls_root.clone(), - host_calls_len: self.host_calls_root.trace.len() as u32, + host_calls_len: self.trace.len() as u32, } } @@ -171,6 +246,12 @@ pub struct TransactionBody { #[derive(Clone, Copy, PartialEq, Eq, Hash)] pub struct OutputRef(usize); +impl From for OutputRef { + fn from(v: usize) -> Self { + OutputRef(v) + } +} + #[derive(Clone, PartialEq, Eq, Hash)] pub struct NewOutput { pub state: CoroutineState, @@ -210,6 +291,8 @@ pub struct TransactionWitness { /// /// Note that the circuit for this is fixed in the ledger (just like the /// zkwasm one), so in practice this encodes the transaction rules. + /// + // NOTE: this is optional for now just for testing purposes pub interleaving_proof: ZkTransactionProof, /// Coordination script proofs. @@ -245,6 +328,15 @@ pub struct UtxoEntry { } impl Ledger { + pub fn new() -> Self { + Ledger { + utxos: HashMap::new(), + contract_counters: HashMap::new(), + utxo_to_coroutine: HashMap::new(), + ownership_registry: HashMap::new(), + } + } + pub fn apply_transaction(&self, tx: &ProvenTransaction) -> Result { let mut new_ledger = self.clone(); @@ -593,11 +685,21 @@ impl Ledger { let interleaving_proof: &ZkTransactionProof = &witness.interleaving_proof; + let wit = InterleavingWitness { + traces: witness + .spending_proofs + .iter() + .map(|p| p.trace.clone()) + .chain(witness.new_output_proofs.iter().map(|p| p.trace.clone())) + .chain(witness.coordination_scripts.iter().map(|p| p.trace.clone())) + .collect(), + }; + // note however that this is mocked right now, and it's using a non-zk // verifier. // // but the circuit in theory in theory encode the same machine - interleaving_proof.verify(&inst)?; + interleaving_proof.verify(&inst, &wit)?; Ok(()) } diff --git a/starstream_mock_ledger/src/mocked_verifier.rs b/starstream_mock_ledger/src/mocked_verifier.rs index bd623c44..a4deccf6 100644 --- a/starstream_mock_ledger/src/mocked_verifier.rs +++ b/starstream_mock_ledger/src/mocked_verifier.rs @@ -15,12 +15,8 @@ use crate::{ use std::collections::HashMap; use thiserror; -#[derive(Clone, PartialEq, Eq)] -pub struct MockedLookupTableCommitment { - // obviously the actual commitment shouldn't have this - // but this is used for the mocked circuit - pub trace: Vec, -} +#[derive(Clone, PartialEq, Eq, Debug)] +pub struct MockedLookupTableCommitment(pub u64); /// A “proof input” for tests: provide per-process traces directly. #[derive(Clone, Debug)] @@ -245,8 +241,8 @@ pub fn verify_interleaving_semantics( // initialized with the same data. // // TODO: maybe we also need to assert/prove that it starts with a Yield - let mut claims_memory = vec![Ref(0); n]; - for i in 0..inst.n_inputs { + let claims_memory = vec![Ref(0); n]; + for _ in 0..inst.n_inputs { // TODO: This is not correct, last_yield is a Value, not a Ref // claims_memory[i] = inst.input_states[i].last_yield.clone(); } @@ -417,7 +413,7 @@ pub fn state_transition( state.counters[id_curr.0] += 1; - match dbg!(op) { + match op { WitLedgerEffect::Resume { target, val, @@ -732,9 +728,7 @@ pub fn state_transition( let new_offset = offset + 1; if new_offset < size { - state - .ref_building - .insert(id_curr, (reff, new_offset, size)); + state.ref_building.insert(id_curr, (reff, new_offset, size)); } } @@ -743,9 +737,11 @@ pub fn state_transition( .ref_store .get(&reff) .ok_or(InterleavingError::RefNotFound(reff))?; - let val = vec - .get(offset) - .ok_or(InterleavingError::GetOutOfBounds(reff, offset, vec.len()))?; + let val = vec.get(offset).ok_or(InterleavingError::GetOutOfBounds( + reff, + offset, + vec.len(), + ))?; if val != &ret { return Err(InterleavingError::Shape("Get result mismatch")); } diff --git a/starstream_mock_ledger/src/tests.rs b/starstream_mock_ledger/src/tests.rs index 77c4254c..f0fe8b79 100644 --- a/starstream_mock_ledger/src/tests.rs +++ b/starstream_mock_ledger/src/tests.rs @@ -1,43 +1,7 @@ use super::*; +use crate::builder::{RefGenerator, TransactionBuilder, h, v}; use crate::{mocked_verifier::InterleavingError, transaction_effects::witness::WitLedgerEffect}; -struct RefGenerator { - counter: u64, - map: HashMap<&'static str, Ref>, -} - -impl RefGenerator { - fn new() -> Self { - Self { - counter: 1, - map: HashMap::new(), - } - } - - fn get(&mut self, name: &'static str) -> Ref { - let entry = self.map.entry(name).or_insert_with(|| { - let r = Ref(self.counter); - self.counter += 1; - r - }); - *entry - } -} - -pub fn h(n: u8) -> Hash { - // TODO: actual hashing - let mut bytes = [0u8; 32]; - bytes[0] = n; - Hash(bytes, std::marker::PhantomData) -} - -pub fn v(data: &[u8]) -> Value { - let mut bytes = [0u8; 8]; - let len = data.len().min(8); - bytes[..len].copy_from_slice(&data[..len]); - Value(u64::from_le_bytes(bytes)) -} - fn mock_genesis() -> (Ledger, UtxoId, UtxoId, CoroutineId, CoroutineId) { let input_hash_1 = h(10); let input_hash_2 = h(11); @@ -113,85 +77,6 @@ fn mock_genesis() -> (Ledger, UtxoId, UtxoId, CoroutineId, CoroutineId) { ) } -struct TransactionBuilder { - body: TransactionBody, - spending_proofs: Vec, - new_output_proofs: Vec, - coordination_scripts: Vec, -} - -impl TransactionBuilder { - fn new() -> Self { - Self { - body: TransactionBody { - inputs: vec![], - continuations: vec![], - new_outputs: vec![], - ownership_out: HashMap::new(), - coordination_scripts_keys: vec![], - entrypoint: 0, - }, - spending_proofs: vec![], - new_output_proofs: vec![], - coordination_scripts: vec![], - } - } - - fn with_input( - mut self, - utxo: UtxoId, - continuation: Option, - trace: Vec, - ) -> Self { - self.body.inputs.push(utxo); - self.body.continuations.push(continuation); - self.spending_proofs.push(ZkWasmProof { - host_calls_root: MockedLookupTableCommitment { trace }, - }); - self - } - - fn with_fresh_output(mut self, output: NewOutput, trace: Vec) -> Self { - self.body.new_outputs.push(output); - self.new_output_proofs.push(ZkWasmProof { - host_calls_root: MockedLookupTableCommitment { trace }, - }); - self - } - - fn with_coord_script(mut self, key: Hash, trace: Vec) -> Self { - self.body.coordination_scripts_keys.push(key); - self.coordination_scripts.push(ZkWasmProof { - host_calls_root: MockedLookupTableCommitment { trace }, - }); - self - } - - fn with_ownership(mut self, token: OutputRef, owner: OutputRef) -> Self { - self.body.ownership_out.insert(token, owner); - self - } - - fn with_entrypoint(mut self, entrypoint: usize) -> Self { - self.body.entrypoint = entrypoint; - self - } - - fn build(self) -> ProvenTransaction { - let witness = TransactionWitness { - spending_proofs: self.spending_proofs, - new_output_proofs: self.new_output_proofs, - interleaving_proof: ZkTransactionProof {}, - coordination_scripts: self.coordination_scripts, - }; - - ProvenTransaction { - body: self.body, - witness, - } - } -} - fn mock_genesis_and_apply_tx(proven_tx: ProvenTransaction) -> Result { let (ledger, _, _, _, _) = mock_genesis(); ledger.apply_transaction(&proven_tx) @@ -422,7 +307,7 @@ fn test_transaction_with_coord_and_utxos() { .with_coord_script(coord_hash, coord_trace) .with_ownership(OutputRef(2), OutputRef(3)) .with_entrypoint(4) - .build(); + .build(ZkTransactionProof::Dummy); let ledger = ledger.apply_transaction(&proven_tx).unwrap(); @@ -529,7 +414,7 @@ fn test_effect_handlers() { ) .with_coord_script(coord_hash, coord_trace) .with_entrypoint(1) - .build(); + .build(ZkTransactionProof::Dummy); let ledger = Ledger { utxos: HashMap::new(), @@ -557,14 +442,14 @@ fn test_burn_with_continuation_fails() { vec![ WitLedgerEffect::NewRef { size: 1, - ret: Ref(1), + ret: Ref(0), }, WitLedgerEffect::RefPush { val: v(b"burned") }, - WitLedgerEffect::Burn { ret: Ref(1) }, + WitLedgerEffect::Burn { ret: Ref(0) }, ], ) .with_entrypoint(0) - .build(); + .build(ZkTransactionProof::Dummy); let result = mock_genesis_and_apply_tx(tx); assert!(matches!( result, @@ -584,20 +469,20 @@ fn test_utxo_resumes_utxo_fails() { vec![ WitLedgerEffect::NewRef { size: 1, - ret: Ref(1), + ret: Ref(0), }, WitLedgerEffect::RefPush { val: v(b"") }, WitLedgerEffect::Resume { target: ProcessId(1), - val: Ref(1), - ret: Ref(1), + val: Ref(0), + ret: Ref(0), id_prev: None, }, ], ) .with_input(input_utxo_2, None, vec![]) .with_entrypoint(0) - .build(); + .build(ZkTransactionProof::Dummy); let result = mock_genesis_and_apply_tx(tx); assert!(matches!( result, @@ -620,7 +505,7 @@ fn test_continuation_without_yield_fails() { vec![], ) .with_entrypoint(0) - .build(); + .build(ZkTransactionProof::Dummy); let result = mock_genesis_and_apply_tx(tx); assert!(matches!( result, @@ -643,7 +528,7 @@ fn test_unbind_not_owner_fails() { }], ) .with_entrypoint(1) - .build(); + .build(ZkTransactionProof::Dummy); let result = mock_genesis_and_apply_tx(tx); assert!(matches!( result, @@ -702,10 +587,10 @@ fn test_duplicate_input_utxo_fails() { vec![ WitLedgerEffect::NewRef { size: 1, - ret: Ref(2), + ret: Ref(1), }, WitLedgerEffect::RefPush { val: Value::nil() }, - WitLedgerEffect::Burn { ret: Ref(1) }, + WitLedgerEffect::Burn { ret: Ref(0) }, ], ) .with_coord_script( @@ -713,19 +598,19 @@ fn test_duplicate_input_utxo_fails() { vec![ WitLedgerEffect::NewRef { size: 1, - ret: Ref(1), + ret: Ref(0), }, WitLedgerEffect::RefPush { val: Value::nil() }, WitLedgerEffect::Resume { target: 0.into(), - val: Ref(1), - ret: Ref(1), + val: Ref(0), + ret: Ref(0), id_prev: None, }, ], ) .with_entrypoint(1) - .build(); + .build(ZkTransactionProof::Dummy); let _ledger = ledger.apply_transaction(&tx).unwrap(); -} \ No newline at end of file +} diff --git a/starstream_mock_ledger/src/transaction_effects/instance.rs b/starstream_mock_ledger/src/transaction_effects/instance.rs index e8f8238d..1cbd8da1 100644 --- a/starstream_mock_ledger/src/transaction_effects/instance.rs +++ b/starstream_mock_ledger/src/transaction_effects/instance.rs @@ -1,5 +1,5 @@ use crate::{ - CoroutineState, Hash, MockedLookupTableCommitment, WasmModule, + CoroutineState, Hash, mocked_verifier::MockedLookupTableCommitment, WasmModule, mocked_verifier::InterleavingError, transaction_effects::ProcessId, }; @@ -59,11 +59,11 @@ impl InterleavingInstance { return Err(InterleavingError::Shape("is_utxo len != process_table len")); } - if self.ownership_in.len() != (self.n_inputs + self.n_new) - || self.ownership_out.len() != (self.n_inputs + self.n_new) + if self.ownership_in.len() != dbg!(dbg!(self.n_inputs) + dbg!(self.n_new)) + || self.ownership_out.len() != dbg!(self.n_inputs + self.n_new) { return Err(InterleavingError::Shape( - "ownership_* len != process_table len", + "ownership_* len != self.n_inputs len + self.n_new len", )); } diff --git a/starstream_mock_ledger/src/transaction_effects/mod.rs b/starstream_mock_ledger/src/transaction_effects/mod.rs index 155be711..da61c2cf 100644 --- a/starstream_mock_ledger/src/transaction_effects/mod.rs +++ b/starstream_mock_ledger/src/transaction_effects/mod.rs @@ -8,7 +8,7 @@ pub struct Blob(Vec); pub type InterfaceId = Hash; -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)] pub struct ProcessId(pub usize); impl std::fmt::Display for ProcessId { diff --git a/starstream_mock_ledger/src/transaction_effects/witness.rs b/starstream_mock_ledger/src/transaction_effects/witness.rs index 25ba1f7c..91e37a48 100644 --- a/starstream_mock_ledger/src/transaction_effects/witness.rs +++ b/starstream_mock_ledger/src/transaction_effects/witness.rs @@ -10,77 +10,110 @@ use crate::{ #[derive(Clone, Debug, PartialEq, Eq)] pub enum WitLedgerEffect { Resume { + // in target: ProcessId, val: Ref, + // out ret: Ref, id_prev: Option, }, Yield { + // in val: Ref, + // out ret: Option, id_prev: Option, }, ProgramHash { + // in target: ProcessId, + // out program_hash: Hash, }, NewUtxo { + // in program_hash: Hash, val: Ref, + // out id: ProcessId, }, NewCoord { + // int program_hash: Hash, val: Ref, + + // out id: ProcessId, }, // Scoped handlers for custom effects // // coord only (mainly because utxos can't resume utxos anyway) InstallHandler { + // in interface_id: InterfaceId, }, UninstallHandler { + // in interface_id: InterfaceId, + // out + // + // does not return anything }, GetHandlerFor { + // in interface_id: InterfaceId, + // out handler_id: ProcessId, }, // UTXO-only Burn { + // out ret: Ref, }, Activation { + // in val: Ref, + // out caller: ProcessId, }, Init { + // in val: Ref, + // out caller: ProcessId, }, NewRef { + // in size: usize, + // out ret: Ref, }, RefPush { + // in val: Value, + // out + // does not return anything }, Get { + // in reff: Ref, offset: usize, + + // out ret: Value, }, // Tokens Bind { owner_id: ProcessId, + // does not return anything }, Unbind { token_id: ProcessId, + // does not return anything }, } From dfb5d231abcf230742c977d0d1c5ed85a13869df Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Thu, 15 Jan 2026 14:21:10 -0300 Subject: [PATCH 067/152] cp: trace commitment Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/src/circuit.rs | 129 ++++++++++++++++++ .../src/memory/twist_and_shout/mod.rs | 1 + starstream_ivc_proto/src/neo.rs | 3 +- 3 files changed, 132 insertions(+), 1 deletion(-) diff --git a/starstream_ivc_proto/src/circuit.rs b/starstream_ivc_proto/src/circuit.rs index 9dcb9232..e8117548 100644 --- a/starstream_ivc_proto/src/circuit.rs +++ b/starstream_ivc_proto/src/circuit.rs @@ -1,5 +1,6 @@ use crate::memory::twist_and_shout::Lanes; use crate::memory::{self, Address, IVCMemory, MemType}; +use crate::poseidon2::{self}; use crate::value_to_field; use crate::{F, LedgerOperation, memory::IVCMemoryAllocated}; use ark_ff::{AdditiveGroup, Field as _, PrimeField}; @@ -111,6 +112,7 @@ pub enum MemoryTag { HandlerStackArenaProcess = 14, HandlerStackArenaNextPtr = 15, HandlerStackHeads = 16, + TraceCommitments = 17, } impl From for u64 { @@ -956,6 +958,9 @@ impl Wires { interface_rom_read: interface_rom_read.clone(), }; + // Read current trace commitment (4 field elements) + trace_ic_wires(p_len.clone(), id_curr.clone(), rm, &cs, &target, &val, &ret)?; + Ok(Wires { id_curr, id_prev_is_some, @@ -1618,6 +1623,17 @@ impl> StepCircuitBuilder { }, vec![F::from(0u64)], // None ); + + for offset in 0..4 { + let addr = (pid * 4) + offset; + mb.init( + Address { + addr: addr as u64, + tag: MemoryTag::TraceCommitments.into(), + }, + vec![F::ZERO], + ); + } } for (pid, must_burn) in self.instance.must_burn.iter().enumerate() { @@ -1681,6 +1697,9 @@ impl> StepCircuitBuilder { for instr in &self.ops { let config = instr.get_config(&irw); + dbg!(&instr); + trace_ic(irw.id_curr.into_bigint().0[0] as usize, &mut mb, &config); + let curr_switches = config.mem_switches_curr; let target_switches = config.mem_switches_target; let rom_switches = config.rom_switches; @@ -2730,6 +2749,13 @@ fn register_memory_segments>(mb: &mut M) { MemType::Ram, "RAM_HANDLER_STACK_HEADS", ); + mb.register_mem_with_lanes( + MemoryTag::TraceCommitments.into(), + 1, + MemType::Ram, + Lanes(4), + "RAM_TRACE_COMMITMENTS", + ); } #[tracing::instrument(target = "gr1cs", skip_all)] @@ -2883,3 +2909,106 @@ impl ProgramState { tracing::debug!("ownership={}", self.ownership); } } + +fn trace_ic>(curr_pid: usize, mb: &mut M, config: &OpcodeConfig) { + let mut concat_data = [F::ZERO; 8]; + + for i in 0..4 { + let addr = (curr_pid * 4) + i; + + concat_data[i] = mb.conditional_read( + true, + Address { + tag: MemoryTag::TraceCommitments.into(), + addr: dbg!(addr as u64), + }, + )[0]; + + dbg!(concat_data[i]); + } + + let operation_data = [ + // config.opcode_var_values.target, + // config.opcode_var_values.val, + // config.opcode_var_values.ret, + F::from(1), + F::from(1), + F::from(1), + F::from(1), // placeholder + ]; + + for i in 0..4 { + concat_data[i + 4] = operation_data[i]; + } + + let new_commitment = poseidon2::compress_trace(&concat_data).unwrap(); + + for i in 0..4 { + let addr = (curr_pid * 4) + i; + + mb.conditional_write( + true, + Address { + addr: dbg!(addr as u64), + tag: MemoryTag::TraceCommitments.into(), + }, + vec![dbg!(new_commitment[i])], + ); + } +} + +fn trace_ic_wires>( + p_len: FpVar, + id_curr: FpVar, + rm: &mut M, + cs: &ConstraintSystemRef, + target: &FpVar, + val: &FpVar, + ret: &FpVar, +) -> Result<(), SynthesisError> { + let mut current_commitment = vec![]; + + let mut addresses = vec![]; + + for i in 0..4 { + let offset = FpVar::new_constant(cs.clone(), F::from(i as u64))?; + let addr = &(id_curr.clone() * FpVar::new_constant(cs.clone(), F::from(4))?) + &offset; + dbg!(addr.value().unwrap()); + let address = Address { + tag: MemoryTag::TraceCommitments.allocate(cs.clone())?, + addr, + }; + + addresses.push(address.clone()); + + let rv = rm.conditional_read(&Boolean::TRUE, &address)?[0].clone(); + dbg!(rv.value().unwrap()); + current_commitment.push(rv); + } + + let new_data = vec![target.clone(), val.clone(), ret.clone(), FpVar::zero()]; + + let compress_input = [ + current_commitment[0].clone(), + current_commitment[1].clone(), + current_commitment[2].clone(), + current_commitment[3].clone(), + // new_data[0].clone(), + // new_data[1].clone(), + // new_data[2].clone(), + // new_data[3].clone(), + FpVar::new_witness(cs.clone(), || Ok(F::from(1)))?, + FpVar::new_witness(cs.clone(), || Ok(F::from(1)))?, + FpVar::new_witness(cs.clone(), || Ok(F::from(1)))?, + FpVar::new_witness(cs.clone(), || Ok(F::from(1)))?, + ]; + + let new_commitment = poseidon2::compress(&compress_input)?; + + for i in 0..4 { + dbg!(new_commitment[i].value().unwrap()); + rm.conditional_write(&Boolean::TRUE, &addresses[i], &[new_commitment[i].clone()])?; + } + + Ok(()) +} diff --git a/starstream_ivc_proto/src/memory/twist_and_shout/mod.rs b/starstream_ivc_proto/src/memory/twist_and_shout/mod.rs index 03e7aa16..53d2d141 100644 --- a/starstream_ivc_proto/src/memory/twist_and_shout/mod.rs +++ b/starstream_ivc_proto/src/memory/twist_and_shout/mod.rs @@ -31,6 +31,7 @@ pub const TWIST_DEBUG_FILTER: &[u32] = &[ MemoryTag::HandlerStackArenaProcess as u32, MemoryTag::HandlerStackArenaNextPtr as u32, MemoryTag::HandlerStackHeads as u32, + MemoryTag::TraceCommitments as u32, ]; #[derive(Debug, Clone)] diff --git a/starstream_ivc_proto/src/neo.rs b/starstream_ivc_proto/src/neo.rs index 8b2134bc..f32e7c02 100644 --- a/starstream_ivc_proto/src/neo.rs +++ b/starstream_ivc_proto/src/neo.rs @@ -72,7 +72,8 @@ impl WitnessLayout for CircuitLayout { const M_IN: usize = 1; // instance.len()+witness.len() - const USED_COLS: usize = 350; + // const USED_COLS: usize = 350; + const USED_COLS: usize = 730; fn new_layout() -> Self { CircuitLayout {} From 1df5a66e630a4ca3b8b5564918a03db08cdb526e Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Thu, 15 Jan 2026 15:32:20 -0300 Subject: [PATCH 068/152] remove unused OpcodeVarValues struct Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/src/circuit.rs | 156 ++++------------------------ 1 file changed, 22 insertions(+), 134 deletions(-) diff --git a/starstream_ivc_proto/src/circuit.rs b/starstream_ivc_proto/src/circuit.rs index e8117548..85755aef 100644 --- a/starstream_ivc_proto/src/circuit.rs +++ b/starstream_ivc_proto/src/circuit.rs @@ -173,7 +173,6 @@ struct OpcodeConfig { rom_switches: RomSwitchboard, handler_switches: HandlerSwitchboard, execution_switches: ExecutionSwitches, - opcode_var_values: OpcodeVarValues, } #[derive(Clone)] @@ -404,19 +403,6 @@ impl ExecutionSwitches { } } -struct OpcodeVarValues { - target: F, - val: F, - ret: F, - offset: F, - size: F, - program_hash: F, - caller: F, - ret_is_some: bool, - id_prev_is_some: bool, - id_prev_value: F, -} - impl Default for ExecutionSwitches { fn default() -> Self { Self { @@ -441,23 +427,6 @@ impl Default for ExecutionSwitches { } } -impl Default for OpcodeVarValues { - fn default() -> Self { - Self { - target: F::ZERO, - val: F::ZERO, - ret: F::ZERO, - offset: F::ZERO, - size: F::ZERO, - program_hash: F::ZERO, - caller: F::ZERO, - ret_is_some: false, - id_prev_is_some: false, - id_prev_value: F::ZERO, - } - } -} - #[derive(Clone, Debug, Default)] pub struct RomSwitchboard { pub read_is_utxo_curr: bool, @@ -1172,14 +1141,13 @@ impl InterRoundWires { } impl LedgerOperation { - fn get_config(&self, irw: &InterRoundWires) -> OpcodeConfig { + fn get_config(&self) -> OpcodeConfig { let mut config = OpcodeConfig { mem_switches_curr: MemSwitchboard::default(), mem_switches_target: MemSwitchboard::default(), rom_switches: RomSwitchboard::default(), handler_switches: HandlerSwitchboard::default(), execution_switches: ExecutionSwitches::default(), - opcode_var_values: OpcodeVarValues::default(), }; // All ops increment counter of the current process, except Nop @@ -1189,12 +1157,7 @@ impl LedgerOperation { LedgerOperation::Nop {} => { config.execution_switches.nop = true; } - LedgerOperation::Resume { - target, - val, - ret, - id_prev, - } => { + LedgerOperation::Resume { .. } => { config.execution_switches.resume = true; config.mem_switches_curr.activation = true; @@ -1207,14 +1170,8 @@ impl LedgerOperation { config.rom_switches.read_is_utxo_curr = true; config.rom_switches.read_is_utxo_target = true; - - config.opcode_var_values.target = *target; - config.opcode_var_values.val = *val; - config.opcode_var_values.ret = *ret; - config.opcode_var_values.id_prev_is_some = id_prev.is_some(); - config.opcode_var_values.id_prev_value = id_prev.unwrap_or_default(); } - LedgerOperation::Yield { val, ret, id_prev } => { + LedgerOperation::Yield { ret, .. } => { config.execution_switches.yield_op = true; config.mem_switches_curr.activation = true; @@ -1222,15 +1179,8 @@ impl LedgerOperation { config.mem_switches_curr.expected_input = true; } config.mem_switches_curr.finalized = true; - - config.opcode_var_values.target = irw.id_prev_value; - config.opcode_var_values.val = *val; - config.opcode_var_values.ret = ret.unwrap_or_default(); - config.opcode_var_values.ret_is_some = ret.is_some(); - config.opcode_var_values.id_prev_is_some = id_prev.is_some(); - config.opcode_var_values.id_prev_value = id_prev.unwrap_or_default(); } - LedgerOperation::Burn { ret } => { + LedgerOperation::Burn { .. } => { config.execution_switches.burn = true; config.mem_switches_curr.activation = true; @@ -1240,28 +1190,13 @@ impl LedgerOperation { config.rom_switches.read_is_utxo_curr = true; config.rom_switches.read_must_burn_curr = true; - - config.opcode_var_values.target = irw.id_prev_value; - config.opcode_var_values.ret = *ret; - config.opcode_var_values.id_prev_is_some = irw.id_prev_is_some; - config.opcode_var_values.id_prev_value = irw.id_prev_value; } - LedgerOperation::ProgramHash { - target, - program_hash, - } => { + LedgerOperation::ProgramHash { .. } => { config.execution_switches.program_hash = true; config.rom_switches.read_program_hash_target = true; - - config.opcode_var_values.target = *target; - config.opcode_var_values.program_hash = *program_hash; } - LedgerOperation::NewUtxo { - program_hash, - val, - target, - } => { + LedgerOperation::NewUtxo { .. } => { config.execution_switches.new_utxo = true; config.mem_switches_target.initialized = true; @@ -1271,16 +1206,8 @@ impl LedgerOperation { config.rom_switches.read_is_utxo_curr = true; config.rom_switches.read_is_utxo_target = true; config.rom_switches.read_program_hash_target = true; - - config.opcode_var_values.target = *target; - config.opcode_var_values.val = *val; - config.opcode_var_values.program_hash = *program_hash; } - LedgerOperation::NewCoord { - program_hash, - val, - target, - } => { + LedgerOperation::NewCoord { .. } => { config.execution_switches.new_coord = true; config.mem_switches_target.initialized = true; @@ -1290,28 +1217,18 @@ impl LedgerOperation { config.rom_switches.read_is_utxo_curr = true; config.rom_switches.read_is_utxo_target = true; config.rom_switches.read_program_hash_target = true; - - config.opcode_var_values.target = *target; - config.opcode_var_values.val = *val; - config.opcode_var_values.program_hash = *program_hash; } - LedgerOperation::Activation { val, caller } => { + LedgerOperation::Activation { .. } => { config.execution_switches.activation = true; config.mem_switches_curr.activation = true; - - config.opcode_var_values.val = *val; - config.opcode_var_values.caller = *caller; } - LedgerOperation::Init { val, caller } => { + LedgerOperation::Init { .. } => { config.execution_switches.init = true; config.mem_switches_curr.init = true; - - config.opcode_var_values.val = *val; - config.opcode_var_values.caller = *caller; } - LedgerOperation::Bind { owner_id } => { + LedgerOperation::Bind { .. } => { config.execution_switches.bind = true; config.mem_switches_target.initialized = true; @@ -1319,38 +1236,25 @@ impl LedgerOperation { config.rom_switches.read_is_utxo_curr = true; config.rom_switches.read_is_utxo_target = true; - - config.opcode_var_values.target = *owner_id; } - LedgerOperation::Unbind { token_id } => { + LedgerOperation::Unbind { .. } => { config.execution_switches.unbind = true; config.mem_switches_target.ownership = true; config.rom_switches.read_is_utxo_curr = true; config.rom_switches.read_is_utxo_target = true; - - config.opcode_var_values.target = *token_id; } - LedgerOperation::NewRef { size, ret } => { + LedgerOperation::NewRef { .. } => { config.execution_switches.new_ref = true; - - config.opcode_var_values.size = *size; - config.opcode_var_values.ret = *ret; } - LedgerOperation::RefPush { val } => { + LedgerOperation::RefPush { .. } => { config.execution_switches.ref_push = true; - - config.opcode_var_values.val = *val; } - LedgerOperation::Get { reff, offset, ret } => { + LedgerOperation::Get { .. } => { config.execution_switches.get = true; - - config.opcode_var_values.val = *reff; - config.opcode_var_values.offset = *offset; - config.opcode_var_values.ret = *ret; } - LedgerOperation::InstallHandler { interface_id } => { + LedgerOperation::InstallHandler { .. } => { config.execution_switches.install_handler = true; config.rom_switches.read_is_utxo_curr = true; @@ -1358,10 +1262,8 @@ impl LedgerOperation { config.handler_switches.read_head = true; config.handler_switches.write_node = true; config.handler_switches.write_head = true; - - config.opcode_var_values.val = *interface_id; } - LedgerOperation::UninstallHandler { interface_id } => { + LedgerOperation::UninstallHandler { .. } => { config.execution_switches.uninstall_handler = true; config.rom_switches.read_is_utxo_curr = true; @@ -1369,21 +1271,13 @@ impl LedgerOperation { config.handler_switches.read_head = true; config.handler_switches.read_node = true; config.handler_switches.write_head = true; - - config.opcode_var_values.val = *interface_id; } - LedgerOperation::GetHandlerFor { - interface_id, - handler_id, - } => { + LedgerOperation::GetHandlerFor { .. } => { config.execution_switches.get_handler_for = true; config.handler_switches.read_interface = true; config.handler_switches.read_head = true; config.handler_switches.read_node = true; - - config.opcode_var_values.val = *interface_id; - config.opcode_var_values.ret = *handler_id; } } @@ -1695,9 +1589,8 @@ impl> StepCircuitBuilder { ); for instr in &self.ops { - let config = instr.get_config(&irw); + let config = instr.get_config(); - dbg!(&instr); trace_ic(irw.id_curr.into_bigint().0[0] as usize, &mut mb, &config); let curr_switches = config.mem_switches_curr; @@ -1902,7 +1795,7 @@ impl> StepCircuitBuilder { ); for instr in self.ops.iter() { - let config = instr.get_config(&irw); + let config = instr.get_config(); // Get interface index for handler operations let interface_index = match instr { @@ -2920,11 +2813,9 @@ fn trace_ic>(curr_pid: usize, mb: &mut M, config: &OpcodeConfig) true, Address { tag: MemoryTag::TraceCommitments.into(), - addr: dbg!(addr as u64), + addr: addr as u64, }, )[0]; - - dbg!(concat_data[i]); } let operation_data = [ @@ -2949,10 +2840,10 @@ fn trace_ic>(curr_pid: usize, mb: &mut M, config: &OpcodeConfig) mb.conditional_write( true, Address { - addr: dbg!(addr as u64), + addr: addr as u64, tag: MemoryTag::TraceCommitments.into(), }, - vec![dbg!(new_commitment[i])], + vec![new_commitment[i]], ); } } @@ -2973,7 +2864,6 @@ fn trace_ic_wires>( for i in 0..4 { let offset = FpVar::new_constant(cs.clone(), F::from(i as u64))?; let addr = &(id_curr.clone() * FpVar::new_constant(cs.clone(), F::from(4))?) + &offset; - dbg!(addr.value().unwrap()); let address = Address { tag: MemoryTag::TraceCommitments.allocate(cs.clone())?, addr, @@ -2982,7 +2872,6 @@ fn trace_ic_wires>( addresses.push(address.clone()); let rv = rm.conditional_read(&Boolean::TRUE, &address)?[0].clone(); - dbg!(rv.value().unwrap()); current_commitment.push(rv); } @@ -3006,7 +2895,6 @@ fn trace_ic_wires>( let new_commitment = poseidon2::compress(&compress_input)?; for i in 0..4 { - dbg!(new_commitment[i].value().unwrap()); rm.conditional_write(&Boolean::TRUE, &addresses[i], &[new_commitment[i].clone()])?; } From 72c64bfb3c36d41bb8295da18c735423cd00dde9 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Thu, 15 Jan 2026 15:49:54 -0300 Subject: [PATCH 069/152] cp: arg indexing refactor Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/src/circuit.rs | 395 ++++++++++++++++++---------- starstream_ivc_proto/src/neo.rs | 2 +- 2 files changed, 251 insertions(+), 146 deletions(-) diff --git a/starstream_ivc_proto/src/circuit.rs b/starstream_ivc_proto/src/circuit.rs index 85755aef..f0a4392b 100644 --- a/starstream_ivc_proto/src/circuit.rs +++ b/starstream_ivc_proto/src/circuit.rs @@ -173,6 +173,7 @@ struct OpcodeConfig { rom_switches: RomSwitchboard, handler_switches: HandlerSwitchboard, execution_switches: ExecutionSwitches, + opcode_args: [F; OPCODE_ARG_COUNT], } #[derive(Clone)] @@ -480,6 +481,41 @@ pub struct StepCircuitBuilder { mem: PhantomData, } +const OPCODE_ARG_COUNT: usize = 4; + +#[derive(Copy, Clone, Debug)] +pub enum ArgName { + Target, + Val, + Ret, + IdPrev, + Offset, + Size, + ProgramHash, + Caller, + OwnerId, + TokenId, + InterfaceId, +} + +impl ArgName { + // maps argument names to positional indices + // + // these need to match the order in the ABI used by the wasm/program vm. + const fn idx(self) -> usize { + match self { + ArgName::Target | ArgName::OwnerId | ArgName::TokenId => 0, + ArgName::Val | ArgName::InterfaceId => 1, + ArgName::Ret => 2, + ArgName::IdPrev + | ArgName::Offset + | ArgName::Size + | ArgName::ProgramHash + | ArgName::Caller => 3, + } + } +} + /// common circuit variables to all the opcodes #[derive(Clone)] pub struct Wires { @@ -497,13 +533,7 @@ pub struct Wires { switches: ExecutionSwitches>, - target: FpVar, - val: FpVar, - ret: FpVar, - offset: FpVar, - size: FpVar, - program_hash: FpVar, - caller: FpVar, + opcode_args: [FpVar; OPCODE_ARG_COUNT], ret_is_some: Boolean, curr_read_wires: ProgramStateWires, @@ -541,19 +571,12 @@ pub struct ProgramStateWires { // helper so that we always allocate witnesses in the same order pub struct PreWires { - target: F, - val: F, - ret: F, - offset: F, - size: F, - - program_hash: F, - - caller: F, interface_index: F, switches: ExecutionSwitches, + opcode_args: [F; OPCODE_ARG_COUNT], + curr_mem_switches: MemSwitchboard, target_mem_switches: MemSwitchboard, rom_switches: RomSwitchboard, @@ -707,6 +730,10 @@ define_program_state_operations!( ); impl Wires { + fn arg(&self, kind: ArgName) -> FpVar { + self.opcode_args[kind.idx()].clone() + } + // IMPORTANT: no rust branches in this function, since the purpose of this // is to get the exact same layout for all the opcodes pub fn from_irw>( @@ -736,17 +763,18 @@ impl Wires { // Allocate switches and enforce exactly one is true let switches = vals.switches.allocate_and_constrain(cs.clone())?; - let target = FpVar::::new_witness(ns!(cs.clone(), "target"), || Ok(vals.target))?; + let opcode_args_cs = ns!(cs.clone(), "opcode_args"); + let opcode_args_vec = (0..OPCODE_ARG_COUNT) + .map(|i| FpVar::::new_witness(opcode_args_cs.clone(), || Ok(vals.opcode_args[i]))) + .collect::, _>>()?; + let opcode_args: [FpVar; OPCODE_ARG_COUNT] = + opcode_args_vec.try_into().expect("opcode args length"); - let val = FpVar::::new_witness(ns!(cs.clone(), "val"), || Ok(vals.val))?; - let ret = FpVar::::new_witness(ns!(cs.clone(), "ret"), || Ok(vals.ret))?; - let offset = FpVar::::new_witness(ns!(cs.clone(), "offset"), || Ok(vals.offset))?; - let size = FpVar::::new_witness(ns!(cs.clone(), "size"), || Ok(vals.size))?; + let target = opcode_args[ArgName::Target.idx()].clone(); + let val = opcode_args[ArgName::Val.idx()].clone(); + let offset = opcode_args[ArgName::Offset.idx()].clone(); let ret_is_some = Boolean::new_witness(cs.clone(), || Ok(vals.ret_is_some))?; - let program_hash = FpVar::::new_witness(cs.clone(), || Ok(vals.program_hash))?; - - let caller = FpVar::::new_witness(cs.clone(), || Ok(vals.caller))?; let curr_mem_switches = MemSwitchboardWires::allocate(cs.clone(), &vals.curr_mem_switches)?; let target_mem_switches = @@ -757,7 +785,7 @@ impl Wires { program_state_read_wires(rm, &cs, curr_address.clone(), &curr_mem_switches)?; // TODO: make conditional for opcodes without target - let target_address = FpVar::::new_witness(cs.clone(), || Ok(vals.target))?; + let target_address = target.clone(); let target_read_wires = program_state_read_wires(rm, &cs, target_address.clone(), &target_mem_switches)?; @@ -928,7 +956,7 @@ impl Wires { }; // Read current trace commitment (4 field elements) - trace_ic_wires(p_len.clone(), id_curr.clone(), rm, &cs, &target, &val, &ret)?; + trace_ic_wires(id_curr.clone(), rm, &cs, &opcode_args)?; Ok(Wires { id_curr, @@ -949,13 +977,7 @@ impl Wires { constant_one: FpVar::new_constant(cs.clone(), F::from(1))?, // wit_wires - target, - val, - ret, - offset, - size, - program_hash, - caller, + opcode_args, ret_is_some, curr_read_wires, @@ -1141,13 +1163,14 @@ impl InterRoundWires { } impl LedgerOperation { - fn get_config(&self) -> OpcodeConfig { + fn get_config(&self, irw: &InterRoundWires) -> OpcodeConfig { let mut config = OpcodeConfig { mem_switches_curr: MemSwitchboard::default(), mem_switches_target: MemSwitchboard::default(), rom_switches: RomSwitchboard::default(), handler_switches: HandlerSwitchboard::default(), execution_switches: ExecutionSwitches::default(), + opcode_args: [F::ZERO; OPCODE_ARG_COUNT], }; // All ops increment counter of the current process, except Nop @@ -1281,6 +1304,89 @@ impl LedgerOperation { } } + match self { + LedgerOperation::Nop {} => {} + LedgerOperation::Resume { + target, + val, + ret, + id_prev, + } => { + config.opcode_args[ArgName::Target.idx()] = *target; + config.opcode_args[ArgName::Val.idx()] = *val; + config.opcode_args[ArgName::Ret.idx()] = *ret; + config.opcode_args[ArgName::IdPrev.idx()] = id_prev.unwrap_or_default(); + } + LedgerOperation::Yield { val, ret, id_prev } => { + config.opcode_args[ArgName::Target.idx()] = irw.id_prev_value; + config.opcode_args[ArgName::Val.idx()] = *val; + config.opcode_args[ArgName::Ret.idx()] = ret.unwrap_or_default(); + config.opcode_args[ArgName::IdPrev.idx()] = id_prev.unwrap_or_default(); + } + LedgerOperation::Burn { ret } => { + config.opcode_args[ArgName::Target.idx()] = irw.id_prev_value; + config.opcode_args[ArgName::Ret.idx()] = *ret; + } + LedgerOperation::ProgramHash { + target, + program_hash, + } => { + config.opcode_args[ArgName::Target.idx()] = *target; + config.opcode_args[ArgName::ProgramHash.idx()] = *program_hash; + } + LedgerOperation::NewUtxo { + program_hash, + val, + target, + } + | LedgerOperation::NewCoord { + program_hash, + val, + target, + } => { + config.opcode_args[ArgName::Target.idx()] = *target; + config.opcode_args[ArgName::Val.idx()] = *val; + config.opcode_args[ArgName::ProgramHash.idx()] = *program_hash; + } + LedgerOperation::Activation { val, caller } => { + config.opcode_args[ArgName::Val.idx()] = *val; + config.opcode_args[ArgName::Caller.idx()] = *caller; + } + LedgerOperation::Init { val, caller } => { + config.opcode_args[ArgName::Val.idx()] = *val; + config.opcode_args[ArgName::Caller.idx()] = *caller; + } + LedgerOperation::Bind { owner_id } => { + config.opcode_args[ArgName::OwnerId.idx()] = *owner_id; + } + LedgerOperation::Unbind { token_id } => { + config.opcode_args[ArgName::TokenId.idx()] = *token_id; + } + LedgerOperation::NewRef { size, ret } => { + config.opcode_args[ArgName::Size.idx()] = *size; + config.opcode_args[ArgName::Ret.idx()] = *ret; + } + LedgerOperation::RefPush { val } => { + config.opcode_args[ArgName::Val.idx()] = *val; + } + LedgerOperation::Get { reff, offset, ret } => { + config.opcode_args[ArgName::Val.idx()] = *reff; + config.opcode_args[ArgName::Offset.idx()] = *offset; + config.opcode_args[ArgName::Ret.idx()] = *ret; + } + LedgerOperation::InstallHandler { interface_id } + | LedgerOperation::UninstallHandler { interface_id } => { + config.opcode_args[ArgName::InterfaceId.idx()] = *interface_id; + } + LedgerOperation::GetHandlerFor { + interface_id, + handler_id, + } => { + config.opcode_args[ArgName::InterfaceId.idx()] = *interface_id; + config.opcode_args[ArgName::Ret.idx()] = *handler_id; + } + } + config } @@ -1589,7 +1695,7 @@ impl> StepCircuitBuilder { ); for instr in &self.ops { - let config = instr.get_config(); + let config = instr.get_config(&irw); trace_ic(irw.id_curr.into_bigint().0[0] as usize, &mut mb, &config); @@ -1795,7 +1901,7 @@ impl> StepCircuitBuilder { ); for instr in self.ops.iter() { - let config = instr.get_config(); + let config = instr.get_config(&irw); // Get interface index for handler operations let interface_index = match instr { @@ -1943,41 +2049,43 @@ impl> StepCircuitBuilder { ret, id_prev, } => { - let irw = PreWires { + let mut irw = PreWires { switches: ExecutionSwitches::resume(), - target: *target, - val: *val, - ret: *ret, id_prev_is_some: id_prev.is_some(), id_prev_value: id_prev.unwrap_or_default(), ..default }; + irw.set_arg(ArgName::Target, *target); + irw.set_arg(ArgName::Val, *val); + irw.set_arg(ArgName::Ret, *ret); + irw.set_arg(ArgName::IdPrev, id_prev.unwrap_or_default()); Wires::from_irw(&irw, rm, curr_write, target_write) } LedgerOperation::Yield { val, ret, id_prev } => { - let irw = PreWires { + let mut irw = PreWires { switches: ExecutionSwitches::yield_op(), - target: irw.id_prev_value, - val: *val, - ret: ret.unwrap_or_default(), ret_is_some: ret.is_some(), id_prev_is_some: id_prev.is_some(), id_prev_value: id_prev.unwrap_or_default(), ..default }; + irw.set_arg(ArgName::Target, irw.id_prev_value); + irw.set_arg(ArgName::Val, *val); + irw.set_arg(ArgName::Ret, ret.unwrap_or_default()); + irw.set_arg(ArgName::IdPrev, id_prev.unwrap_or_default()); Wires::from_irw(&irw, rm, curr_write, target_write) } LedgerOperation::Burn { ret } => { - let irw = PreWires { + let mut irw = PreWires { switches: ExecutionSwitches::burn(), - target: irw.id_prev_value, - ret: *ret, id_prev_is_some: irw.id_prev_is_some, id_prev_value: irw.id_prev_value, ..default }; + irw.set_arg(ArgName::Target, irw.id_prev_value); + irw.set_arg(ArgName::Ret, *ret); Wires::from_irw(&irw, rm, curr_write, target_write) } @@ -1985,12 +2093,12 @@ impl> StepCircuitBuilder { target, program_hash, } => { - let irw = PreWires { + let mut irw = PreWires { switches: ExecutionSwitches::program_hash(), - target: *target, - program_hash: *program_hash, ..default }; + irw.set_arg(ArgName::Target, *target); + irw.set_arg(ArgName::ProgramHash, *program_hash); Wires::from_irw(&irw, rm, curr_write, target_write) } LedgerOperation::NewUtxo { @@ -1998,13 +2106,13 @@ impl> StepCircuitBuilder { val, target, } => { - let irw = PreWires { + let mut irw = PreWires { switches: ExecutionSwitches::new_utxo(), - target: *target, - val: *val, - program_hash: *program_hash, ..default }; + irw.set_arg(ArgName::Target, *target); + irw.set_arg(ArgName::Val, *val); + irw.set_arg(ArgName::ProgramHash, *program_hash); Wires::from_irw(&irw, rm, curr_write, target_write) } LedgerOperation::NewCoord { @@ -2012,102 +2120,102 @@ impl> StepCircuitBuilder { val, target, } => { - let irw = PreWires { + let mut irw = PreWires { switches: ExecutionSwitches::new_coord(), - target: *target, - val: *val, - program_hash: *program_hash, ..default }; + irw.set_arg(ArgName::Target, *target); + irw.set_arg(ArgName::Val, *val); + irw.set_arg(ArgName::ProgramHash, *program_hash); Wires::from_irw(&irw, rm, curr_write, target_write) } LedgerOperation::Activation { val, caller } => { - let irw = PreWires { + let mut irw = PreWires { switches: ExecutionSwitches::activation(), - val: *val, - caller: *caller, ..default }; + irw.set_arg(ArgName::Val, *val); + irw.set_arg(ArgName::Caller, *caller); Wires::from_irw(&irw, rm, curr_write, target_write) } LedgerOperation::Init { val, caller } => { - let irw = PreWires { + let mut irw = PreWires { switches: ExecutionSwitches::init(), - val: *val, - caller: *caller, ..default }; + irw.set_arg(ArgName::Val, *val); + irw.set_arg(ArgName::Caller, *caller); Wires::from_irw(&irw, rm, curr_write, target_write) } LedgerOperation::Bind { owner_id } => { - let irw = PreWires { + let mut irw = PreWires { switches: ExecutionSwitches::bind(), - target: *owner_id, ..default }; + irw.set_arg(ArgName::OwnerId, *owner_id); Wires::from_irw(&irw, rm, curr_write, target_write) } LedgerOperation::Unbind { token_id } => { - let irw = PreWires { + let mut irw = PreWires { switches: ExecutionSwitches::unbind(), - target: *token_id, ..default }; + irw.set_arg(ArgName::TokenId, *token_id); Wires::from_irw(&irw, rm, curr_write, target_write) } LedgerOperation::NewRef { size, ret } => { - let irw = PreWires { + let mut irw = PreWires { switches: ExecutionSwitches::new_ref(), - size: *size, - ret: *ret, ..default }; + irw.set_arg(ArgName::Size, *size); + irw.set_arg(ArgName::Ret, *ret); Wires::from_irw(&irw, rm, curr_write, target_write) } LedgerOperation::RefPush { val } => { - let irw = PreWires { + let mut irw = PreWires { switches: ExecutionSwitches::ref_push(), - val: *val, ..default }; + irw.set_arg(ArgName::Val, *val); Wires::from_irw(&irw, rm, curr_write, target_write) } LedgerOperation::Get { reff, offset, ret } => { - let irw = PreWires { + let mut irw = PreWires { switches: ExecutionSwitches::get(), - val: *reff, - offset: *offset, - ret: *ret, ..default }; + irw.set_arg(ArgName::Val, *reff); + irw.set_arg(ArgName::Offset, *offset); + irw.set_arg(ArgName::Ret, *ret); Wires::from_irw(&irw, rm, curr_write, target_write) } LedgerOperation::InstallHandler { interface_id } => { - let irw = PreWires { + let mut irw = PreWires { switches: ExecutionSwitches::install_handler(), - val: *interface_id, ..default }; + irw.set_arg(ArgName::InterfaceId, *interface_id); Wires::from_irw(&irw, rm, curr_write, target_write) } LedgerOperation::UninstallHandler { interface_id } => { - let irw = PreWires { + let mut irw = PreWires { switches: ExecutionSwitches::uninstall_handler(), - val: *interface_id, ..default }; + irw.set_arg(ArgName::InterfaceId, *interface_id); Wires::from_irw(&irw, rm, curr_write, target_write) } LedgerOperation::GetHandlerFor { interface_id, handler_id, } => { - let irw = PreWires { + let mut irw = PreWires { switches: ExecutionSwitches::get_handler_for(), - val: *interface_id, - ret: *handler_id, ..default }; + irw.set_arg(ArgName::InterfaceId, *interface_id); + irw.set_arg(ArgName::Ret, *handler_id); Wires::from_irw(&irw, rm, curr_write, target_write) } } @@ -2119,7 +2227,7 @@ impl> StepCircuitBuilder { // 1. self-resume check wires .id_curr - .conditional_enforce_not_equal(&wires.target, switch)?; + .conditional_enforce_not_equal(&wires.arg(ArgName::Target), switch)?; // 2. UTXO cannot resume UTXO. let is_utxo_curr = wires.is_utxo_curr.is_one()?; @@ -2142,14 +2250,14 @@ impl> StepCircuitBuilder { wires .target_read_wires .expected_input - .conditional_enforce_equal(&wires.val, switch)?; + .conditional_enforce_equal(&wires.arg(ArgName::Val), switch)?; // --- // IVC state updates // --- // On resume, current program becomes the target, and the old current program // becomes the new previous program. - let next_id_curr = switch.select(&wires.target, &wires.id_curr)?; + let next_id_curr = switch.select(&wires.arg(ArgName::Target), &wires.id_curr)?; let next_id_prev_is_some = switch.select(&Boolean::TRUE, &wires.id_prev_is_some)?; let next_id_prev_value = switch.select(&wires.id_curr, &wires.id_prev_value)?; @@ -2190,7 +2298,7 @@ impl> StepCircuitBuilder { wires .target_read_wires .expected_input - .conditional_enforce_equal(&wires.ret, switch)?; + .conditional_enforce_equal(&wires.arg(ArgName::Ret), switch)?; // --- // IVC state updates @@ -2220,7 +2328,10 @@ impl> StepCircuitBuilder { wires .target_read_wires .expected_input - .conditional_enforce_equal(&wires.val, &(switch & (&wires.ret_is_some)))?; + .conditional_enforce_equal( + &wires.arg(ArgName::Val), + &(switch & (&wires.ret_is_some)), + )?; // --- // State update enforcement @@ -2234,7 +2345,9 @@ impl> StepCircuitBuilder { .conditional_enforce_equal(&wires.ret_is_some.clone().not(), switch)?; // The next `expected_input` should be `ret_value` if `ret` is Some, and 0 otherwise. - let new_expected_input = wires.ret_is_some.select(&wires.ret, &FpVar::zero())?; + let new_expected_input = wires + .ret_is_some + .select(&wires.arg(ArgName::Ret), &FpVar::zero())?; wires .curr_write_wires .expected_input @@ -2277,7 +2390,7 @@ impl> StepCircuitBuilder { // 3. Program hash check wires .rom_program_hash - .conditional_enforce_equal(&wires.program_hash, &switch)?; + .conditional_enforce_equal(&wires.arg(ArgName::ProgramHash), &switch)?; // 4. Target counter must be 0. wires @@ -2296,7 +2409,8 @@ impl> StepCircuitBuilder { wires.target_write_wires.initialized = switch.select(&wires.constant_true, &wires.target_read_wires.initialized)?; - wires.target_write_wires.init = switch.select(&wires.val, &wires.target_read_wires.init)?; + wires.target_write_wires.init = + switch.select(&wires.arg(ArgName::Val), &wires.target_read_wires.init)?; Ok(wires) } @@ -2312,12 +2426,12 @@ impl> StepCircuitBuilder { wires .curr_read_wires .activation - .conditional_enforce_equal(&wires.val, switch)?; + .conditional_enforce_equal(&wires.arg(ArgName::Val), switch)?; // 2. Check that the caller from the opcode matches the `id_prev` IVC variable. wires .id_prev_value - .conditional_enforce_equal(&wires.caller, switch)?; + .conditional_enforce_equal(&wires.arg(ArgName::Caller), switch)?; Ok(wires) } @@ -2333,12 +2447,12 @@ impl> StepCircuitBuilder { wires .curr_read_wires .init - .conditional_enforce_equal(&wires.val, switch)?; + .conditional_enforce_equal(&wires.arg(ArgName::Val), switch)?; // 2. Check that the caller from the opcode matches the `id_prev` IVC variable. wires .id_prev_value - .conditional_enforce_equal(&wires.caller, switch)?; + .conditional_enforce_equal(&wires.arg(ArgName::Caller), switch)?; Ok(wires) } @@ -2364,8 +2478,10 @@ impl> StepCircuitBuilder { .conditional_enforce_equal(&wires.p_len, switch)?; // TODO: no need to have this assignment, probably - wires.curr_write_wires.ownership = - switch.select(&wires.target, &wires.curr_read_wires.ownership)?; + wires.curr_write_wires.ownership = switch.select( + &wires.arg(ArgName::OwnerId), + &wires.curr_read_wires.ownership, + )?; Ok(wires) } @@ -2405,18 +2521,20 @@ impl> StepCircuitBuilder { // 2. Ret must be fresh ID wires - .ret + .arg(ArgName::Ret) .conditional_enforce_equal(&wires.ref_arena_stack_ptr, switch)?; // 3. Init building state // remaining = size - wires.ref_building_remaining = switch.select(&wires.size, &wires.ref_building_remaining)?; + wires.ref_building_remaining = + switch.select(&wires.arg(ArgName::Size), &wires.ref_building_remaining)?; // ptr = ret - wires.ref_building_ptr = switch.select(&wires.ret, &wires.ref_building_ptr)?; + wires.ref_building_ptr = + switch.select(&wires.arg(ArgName::Ret), &wires.ref_building_ptr)?; // 4. Increment stack ptr by size wires.ref_arena_stack_ptr = switch.select( - &(&wires.ref_arena_stack_ptr + &wires.size), + &(&wires.ref_arena_stack_ptr + &wires.arg(ArgName::Size)), &wires.ref_arena_stack_ptr, )?; @@ -2448,7 +2566,7 @@ impl> StepCircuitBuilder { let switch = &wires.switches.get; wires - .ret + .arg(ArgName::Ret) .conditional_enforce_equal(&wires.ref_arena_read, switch)?; Ok(wires) @@ -2459,7 +2577,7 @@ impl> StepCircuitBuilder { let switch = &wires.switches.program_hash; wires - .program_hash + .arg(ArgName::ProgramHash) .conditional_enforce_equal(&wires.rom_program_hash, switch)?; Ok(wires) @@ -2480,7 +2598,7 @@ impl> StepCircuitBuilder { wires .handler_state .interface_rom_read - .conditional_enforce_equal(&wires.val, switch)?; + .conditional_enforce_equal(&wires.arg(ArgName::InterfaceId), switch)?; // Update handler stack counter (allocate new node) wires.handler_stack_ptr = switch.select( @@ -2506,7 +2624,7 @@ impl> StepCircuitBuilder { wires .handler_state .interface_rom_read - .conditional_enforce_equal(&wires.val, switch)?; + .conditional_enforce_equal(&wires.arg(ArgName::InterfaceId), switch)?; // Read the node at current head: should contain (process_id, next_ptr) let node_process = &wires.handler_state.handler_stack_node_process; @@ -2528,13 +2646,15 @@ impl> StepCircuitBuilder { wires .handler_state .interface_rom_read - .conditional_enforce_equal(&wires.val, switch)?; + .conditional_enforce_equal(&wires.arg(ArgName::InterfaceId), switch)?; // Read the node at current head: should contain (process_id, next_ptr) let node_process = &wires.handler_state.handler_stack_node_process; // The process_id in the node IS the handler_id we want to return - wires.ret.conditional_enforce_equal(node_process, switch)?; + wires + .arg(ArgName::Ret) + .conditional_enforce_equal(node_process, switch)?; Ok(wires) } @@ -2698,29 +2818,32 @@ impl PreWires { Self { switches: ExecutionSwitches::default(), irw, - target: F::ZERO, - val: F::ZERO, - ret: F::ZERO, - offset: F::ZERO, - size: F::ZERO, - program_hash: F::ZERO, - caller: F::ZERO, interface_index, ret_is_some: false, id_prev_is_some: false, id_prev_value: F::ZERO, + opcode_args: [F::ZERO; OPCODE_ARG_COUNT], curr_mem_switches, target_mem_switches, rom_switches, handler_switches, } } + + pub fn set_arg(&mut self, kind: ArgName, value: F) { + self.opcode_args[kind.idx()] = value; + } + + pub fn arg(&self, kind: ArgName) -> F { + self.opcode_args[kind.idx()] + } + pub fn debug_print(&self) { let _guard = debug_span!("witness assignments").entered(); - tracing::debug!("target={}", self.target); - tracing::debug!("val={}", self.val); - tracing::debug!("ret={}", self.ret); + tracing::debug!("target={}", self.arg(ArgName::Target)); + tracing::debug!("val={}", self.arg(ArgName::Val)); + tracing::debug!("ret={}", self.arg(ArgName::Ret)); tracing::debug!("id_prev=({}, {})", self.id_prev_is_some, self.id_prev_value); } } @@ -2816,20 +2939,8 @@ fn trace_ic>(curr_pid: usize, mb: &mut M, config: &OpcodeConfig) addr: addr as u64, }, )[0]; - } - let operation_data = [ - // config.opcode_var_values.target, - // config.opcode_var_values.val, - // config.opcode_var_values.ret, - F::from(1), - F::from(1), - F::from(1), - F::from(1), // placeholder - ]; - - for i in 0..4 { - concat_data[i + 4] = operation_data[i]; + concat_data[i + 4] = config.opcode_args[i]; } let new_commitment = poseidon2::compress_trace(&concat_data).unwrap(); @@ -2849,13 +2960,10 @@ fn trace_ic>(curr_pid: usize, mb: &mut M, config: &OpcodeConfig) } fn trace_ic_wires>( - p_len: FpVar, id_curr: FpVar, rm: &mut M, cs: &ConstraintSystemRef, - target: &FpVar, - val: &FpVar, - ret: &FpVar, + opcode_args: &[FpVar; OPCODE_ARG_COUNT], ) -> Result<(), SynthesisError> { let mut current_commitment = vec![]; @@ -2875,21 +2983,18 @@ fn trace_ic_wires>( current_commitment.push(rv); } - let new_data = vec![target.clone(), val.clone(), ret.clone(), FpVar::zero()]; - let compress_input = [ current_commitment[0].clone(), current_commitment[1].clone(), current_commitment[2].clone(), current_commitment[3].clone(), - // new_data[0].clone(), - // new_data[1].clone(), - // new_data[2].clone(), - // new_data[3].clone(), - FpVar::new_witness(cs.clone(), || Ok(F::from(1)))?, - FpVar::new_witness(cs.clone(), || Ok(F::from(1)))?, - FpVar::new_witness(cs.clone(), || Ok(F::from(1)))?, - FpVar::new_witness(cs.clone(), || Ok(F::from(1)))?, + opcode_args[0].clone(), + opcode_args[1].clone(), + opcode_args[2].clone(), + opcode_args[3].clone(), + // TODO: + // this is either missing one arg (in which case I need to increase the permutation size) + // or it we need a better encoding for the id_prev conditional. ]; let new_commitment = poseidon2::compress(&compress_input)?; diff --git a/starstream_ivc_proto/src/neo.rs b/starstream_ivc_proto/src/neo.rs index f32e7c02..8fffb13b 100644 --- a/starstream_ivc_proto/src/neo.rs +++ b/starstream_ivc_proto/src/neo.rs @@ -73,7 +73,7 @@ impl WitnessLayout for CircuitLayout { // instance.len()+witness.len() // const USED_COLS: usize = 350; - const USED_COLS: usize = 730; + const USED_COLS: usize = 726; fn new_layout() -> Self { CircuitLayout {} From a8479bbcf18324a9d06157e86c251f7350bc3f2e Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Thu, 15 Jan 2026 17:06:27 -0300 Subject: [PATCH 070/152] rework prev_id optional encoding Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/src/circuit.rs | 230 ++++++++++++++++------------ starstream_ivc_proto/src/lib.rs | 44 +++++- starstream_ivc_proto/src/neo.rs | 2 +- 3 files changed, 174 insertions(+), 102 deletions(-) diff --git a/starstream_ivc_proto/src/circuit.rs b/starstream_ivc_proto/src/circuit.rs index f0a4392b..1df1dc95 100644 --- a/starstream_ivc_proto/src/circuit.rs +++ b/starstream_ivc_proto/src/circuit.rs @@ -1,7 +1,7 @@ use crate::memory::twist_and_shout::Lanes; use crate::memory::{self, Address, IVCMemory, MemType}; use crate::poseidon2::{self}; -use crate::value_to_field; +use crate::{ArgName, OPCODE_ARG_COUNT, value_to_field}; use crate::{F, LedgerOperation, memory::IVCMemoryAllocated}; use ark_ff::{AdditiveGroup, Field as _, PrimeField}; use ark_r1cs_std::fields::FieldVar; @@ -481,39 +481,73 @@ pub struct StepCircuitBuilder { mem: PhantomData, } -const OPCODE_ARG_COUNT: usize = 4; - -#[derive(Copy, Clone, Debug)] -pub enum ArgName { - Target, - Val, - Ret, - IdPrev, - Offset, - Size, - ProgramHash, - Caller, - OwnerId, - TokenId, - InterfaceId, -} +#[derive(Copy, Clone, Debug, Default)] +pub struct OptionalF(F); -impl ArgName { - // maps argument names to positional indices - // - // these need to match the order in the ABI used by the wasm/program vm. - const fn idx(self) -> usize { - match self { - ArgName::Target | ArgName::OwnerId | ArgName::TokenId => 0, - ArgName::Val | ArgName::InterfaceId => 1, - ArgName::Ret => 2, - ArgName::IdPrev - | ArgName::Offset - | ArgName::Size - | ArgName::ProgramHash - | ArgName::Caller => 3, +impl OptionalF { + pub fn none() -> Self { + Self(F::ZERO) + } + + pub fn from_pid(value: F) -> Self { + Self(value + F::ONE) + } + + pub fn from_option(value: Option) -> Self { + value.map(Self::from_pid).unwrap_or_else(Self::none) + } + + pub fn encoded(self) -> F { + self.0 + } + + pub fn to_option(self) -> Option { + if self.0 == F::ZERO { + None + } else { + Some(self.0 - F::ONE) } } + + pub fn decode_or_zero(self) -> F { + self.to_option().unwrap_or(F::ZERO) + } +} + +#[derive(Clone)] +struct OptionalFpVar(FpVar); + +impl OptionalFpVar { + fn new(value: FpVar) -> Self { + Self(value) + } + + fn encoded(&self) -> FpVar { + self.0.clone() + } + + fn is_some(&self) -> Result, SynthesisError> { + Ok(self.0.is_zero()?.not()) + } + + fn decode_or_zero(&self, one: &FpVar) -> Result, SynthesisError> { + let is_zero = self.0.is_zero()?; + let value = &self.0 - one; + is_zero.select(&FpVar::zero(), &value) + } + + fn select_encoded( + switch: &Boolean, + when_true: &FpVar, + when_false: &OptionalFpVar, + ) -> Result { + let selected = switch.select(when_true, &when_false.encoded())?; + Ok(OptionalFpVar::new(selected)) + } + + fn value(&self) -> Result { + self.0.value() + } } /// common circuit variables to all the opcodes @@ -521,8 +555,7 @@ impl ArgName { pub struct Wires { // irw id_curr: FpVar, - id_prev_is_some: Boolean, - id_prev_value: FpVar, + id_prev: OptionalFpVar, ref_arena_stack_ptr: FpVar, handler_stack_ptr: FpVar, @@ -583,9 +616,6 @@ pub struct PreWires { handler_switches: HandlerSwitchboard, irw: InterRoundWires, - - id_prev_is_some: bool, - id_prev_value: F, ret_is_some: bool, } @@ -607,8 +637,7 @@ pub struct ProgramState { #[derive(Clone)] pub struct InterRoundWires { id_curr: F, - id_prev_is_some: bool, - id_prev_value: F, + id_prev: OptionalF, ref_arena_counter: F, handler_stack_counter: F, @@ -734,6 +763,14 @@ impl Wires { self.opcode_args[kind.idx()].clone() } + fn id_prev_is_some(&self) -> Result, SynthesisError> { + self.id_prev.is_some() + } + + fn id_prev_value(&self) -> Result, SynthesisError> { + self.id_prev.decode_or_zero(&self.constant_one) + } + // IMPORTANT: no rust branches in this function, since the purpose of this // is to get the exact same layout for all the opcodes pub fn from_irw>( @@ -749,8 +786,9 @@ impl Wires { // io vars let id_curr = FpVar::::new_witness(cs.clone(), || Ok(vals.irw.id_curr))?; let p_len = FpVar::::new_witness(cs.clone(), || Ok(vals.irw.p_len))?; - let id_prev_is_some = Boolean::new_witness(cs.clone(), || Ok(vals.irw.id_prev_is_some))?; - let id_prev_value = FpVar::new_witness(cs.clone(), || Ok(vals.irw.id_prev_value))?; + let id_prev = OptionalFpVar::new(FpVar::new_witness(cs.clone(), || { + Ok(vals.irw.id_prev.encoded()) + })?); let ref_arena_stack_ptr = FpVar::new_witness(cs.clone(), || Ok(vals.irw.ref_arena_counter))?; let handler_stack_counter = @@ -960,8 +998,7 @@ impl Wires { Ok(Wires { id_curr, - id_prev_is_some, - id_prev_value, + id_prev, ref_arena_stack_ptr, handler_stack_ptr: handler_stack_counter, @@ -1101,8 +1138,7 @@ impl InterRoundWires { pub fn new(p_len: F, entrypoint: u64) -> Self { InterRoundWires { id_curr: F::from(entrypoint), - id_prev_is_some: false, - id_prev_value: F::ZERO, + id_prev: OptionalF::none(), p_len, ref_arena_counter: F::ZERO, handler_stack_counter: F::ZERO, @@ -1122,16 +1158,14 @@ impl InterRoundWires { self.id_curr = res.id_curr.value().unwrap(); + let res_id_prev = res.id_prev.value().unwrap(); tracing::debug!( - "prev_program from ({}, {}) to ({}, {})", - self.id_prev_is_some, - self.id_prev_value, - res.id_prev_is_some.value().unwrap(), - res.id_prev_value.value().unwrap(), + "prev_program from {} to {}", + self.id_prev.encoded(), + res_id_prev ); - self.id_prev_is_some = res.id_prev_is_some.value().unwrap(); - self.id_prev_value = res.id_prev_value.value().unwrap(); + self.id_prev = OptionalF(res_id_prev); tracing::debug!( "utxos_len from {} to {}", @@ -1315,16 +1349,16 @@ impl LedgerOperation { config.opcode_args[ArgName::Target.idx()] = *target; config.opcode_args[ArgName::Val.idx()] = *val; config.opcode_args[ArgName::Ret.idx()] = *ret; - config.opcode_args[ArgName::IdPrev.idx()] = id_prev.unwrap_or_default(); + config.opcode_args[ArgName::IdPrev.idx()] = id_prev.encoded(); } LedgerOperation::Yield { val, ret, id_prev } => { - config.opcode_args[ArgName::Target.idx()] = irw.id_prev_value; + config.opcode_args[ArgName::Target.idx()] = irw.id_prev.decode_or_zero(); config.opcode_args[ArgName::Val.idx()] = *val; config.opcode_args[ArgName::Ret.idx()] = ret.unwrap_or_default(); - config.opcode_args[ArgName::IdPrev.idx()] = id_prev.unwrap_or_default(); + config.opcode_args[ArgName::IdPrev.idx()] = id_prev.encoded(); } LedgerOperation::Burn { ret } => { - config.opcode_args[ArgName::Target.idx()] = irw.id_prev_value; + config.opcode_args[ArgName::Target.idx()] = irw.id_prev.decode_or_zero(); config.opcode_args[ArgName::Ret.idx()] = *ret; } LedgerOperation::ProgramHash { @@ -1712,8 +1746,8 @@ impl> StepCircuitBuilder { let target_addr = match instr { LedgerOperation::Resume { target, .. } => Some(*target), - LedgerOperation::Yield { .. } => irw.id_prev_is_some.then_some(irw.id_prev_value), - LedgerOperation::Burn { .. } => irw.id_prev_is_some.then_some(irw.id_prev_value), + LedgerOperation::Yield { .. } => irw.id_prev.to_option(), + LedgerOperation::Burn { .. } => irw.id_prev.to_option(), LedgerOperation::NewUtxo { target: id, .. } => Some(*id), LedgerOperation::NewCoord { target: id, .. } => Some(*id), LedgerOperation::ProgramHash { target, .. } => Some(*target), @@ -1779,14 +1813,13 @@ impl> StepCircuitBuilder { // update pids for next iteration match instr { LedgerOperation::Resume { target, .. } => { - irw.id_prev_is_some = true; - irw.id_prev_value = irw.id_curr; + irw.id_prev = OptionalF::from_pid(irw.id_curr); irw.id_curr = *target; } LedgerOperation::Yield { .. } | LedgerOperation::Burn { .. } => { - irw.id_curr = irw.id_prev_value; - irw.id_prev_is_some = true; - irw.id_prev_value = irw.id_curr; + let old_curr = irw.id_curr; + irw.id_curr = irw.id_prev.decode_or_zero(); + irw.id_prev = OptionalF::from_pid(old_curr); } _ => {} } @@ -2051,14 +2084,12 @@ impl> StepCircuitBuilder { } => { let mut irw = PreWires { switches: ExecutionSwitches::resume(), - id_prev_is_some: id_prev.is_some(), - id_prev_value: id_prev.unwrap_or_default(), ..default }; irw.set_arg(ArgName::Target, *target); irw.set_arg(ArgName::Val, *val); irw.set_arg(ArgName::Ret, *ret); - irw.set_arg(ArgName::IdPrev, id_prev.unwrap_or_default()); + irw.set_arg(ArgName::IdPrev, id_prev.encoded()); Wires::from_irw(&irw, rm, curr_write, target_write) } @@ -2066,25 +2097,21 @@ impl> StepCircuitBuilder { let mut irw = PreWires { switches: ExecutionSwitches::yield_op(), ret_is_some: ret.is_some(), - id_prev_is_some: id_prev.is_some(), - id_prev_value: id_prev.unwrap_or_default(), ..default }; - irw.set_arg(ArgName::Target, irw.id_prev_value); + irw.set_arg(ArgName::Target, irw.irw.id_prev.decode_or_zero()); irw.set_arg(ArgName::Val, *val); irw.set_arg(ArgName::Ret, ret.unwrap_or_default()); - irw.set_arg(ArgName::IdPrev, id_prev.unwrap_or_default()); + irw.set_arg(ArgName::IdPrev, id_prev.encoded()); Wires::from_irw(&irw, rm, curr_write, target_write) } LedgerOperation::Burn { ret } => { let mut irw = PreWires { switches: ExecutionSwitches::burn(), - id_prev_is_some: irw.id_prev_is_some, - id_prev_value: irw.id_prev_value, ..default }; - irw.set_arg(ArgName::Target, irw.id_prev_value); + irw.set_arg(ArgName::Target, irw.irw.id_prev.decode_or_zero()); irw.set_arg(ArgName::Ret, *ret); Wires::from_irw(&irw, rm, curr_write, target_write) @@ -2228,6 +2255,9 @@ impl> StepCircuitBuilder { wires .id_curr .conditional_enforce_not_equal(&wires.arg(ArgName::Target), switch)?; + wires + .arg(ArgName::IdPrev) + .conditional_enforce_equal(&wires.id_prev.encoded(), switch)?; // 2. UTXO cannot resume UTXO. let is_utxo_curr = wires.is_utxo_curr.is_one()?; @@ -2258,12 +2288,14 @@ impl> StepCircuitBuilder { // On resume, current program becomes the target, and the old current program // becomes the new previous program. let next_id_curr = switch.select(&wires.arg(ArgName::Target), &wires.id_curr)?; - let next_id_prev_is_some = switch.select(&Boolean::TRUE, &wires.id_prev_is_some)?; - let next_id_prev_value = switch.select(&wires.id_curr, &wires.id_prev_value)?; + let next_id_prev = OptionalFpVar::select_encoded( + switch, + &(&wires.id_curr + &wires.constant_one), + &wires.id_prev, + )?; wires.id_curr = next_id_curr; - wires.id_prev_is_some = next_id_prev_is_some; - wires.id_prev_value = next_id_prev_value; + wires.id_prev = next_id_prev; Ok(wires) } @@ -2290,7 +2322,7 @@ impl> StepCircuitBuilder { // 3. Parent must exist. wires - .id_prev_is_some + .id_prev_is_some()? .conditional_enforce_equal(&Boolean::TRUE, switch)?; // 2. Claim check: burned value `ret` must match parent's `expected_input`. @@ -2304,12 +2336,15 @@ impl> StepCircuitBuilder { // IVC state updates // --- // Like yield, current program becomes the parent, and new prev is the one that burned. - let next_id_curr = switch.select(&wires.id_prev_value, &wires.id_curr)?; - let next_id_prev_is_some = switch.select(&Boolean::TRUE, &wires.id_prev_is_some)?; - let next_id_prev_value = switch.select(&wires.id_curr, &wires.id_prev_value)?; + let prev_value = wires.id_prev_value()?; + let next_id_curr = switch.select(&prev_value, &wires.id_curr)?; + let next_id_prev = OptionalFpVar::select_encoded( + switch, + &(&wires.id_curr + &wires.constant_one), + &wires.id_prev, + )?; wires.id_curr = next_id_curr; - wires.id_prev_is_some = next_id_prev_is_some; - wires.id_prev_value = next_id_prev_value; + wires.id_prev = next_id_prev; Ok(wires) } @@ -2320,11 +2355,14 @@ impl> StepCircuitBuilder { // 1. Must have a parent. wires - .id_prev_is_some + .id_prev_is_some()? .conditional_enforce_equal(&Boolean::TRUE, switch)?; + wires + .arg(ArgName::IdPrev) + .conditional_enforce_equal(&wires.id_prev.encoded(), switch)?; // 2. Claim check: yielded value `val` must match parent's `expected_input`. - // The parent's state is in `target_read_wires` because we set `target = irw.id_prev_value`. + // The parent's state is in `target_read_wires` because we set `target = irw.id_prev`. wires .target_read_wires .expected_input @@ -2358,12 +2396,15 @@ impl> StepCircuitBuilder { // --- // On yield, the current program becomes the parent (old id_prev), // and the new prev program is the one that just yielded. - let next_id_curr = switch.select(&wires.id_prev_value, &wires.id_curr)?; - let next_id_prev_is_some = switch.select(&Boolean::TRUE, &wires.id_prev_is_some)?; - let next_id_prev_value = switch.select(&wires.id_curr, &wires.id_prev_value)?; + let prev_value = wires.id_prev_value()?; + let next_id_curr = switch.select(&prev_value, &wires.id_curr)?; + let next_id_prev = OptionalFpVar::select_encoded( + switch, + &(&wires.id_curr + &wires.constant_one), + &wires.id_prev, + )?; wires.id_curr = next_id_curr; - wires.id_prev_is_some = next_id_prev_is_some; - wires.id_prev_value = next_id_prev_value; + wires.id_prev = next_id_prev; Ok(wires) } @@ -2430,7 +2471,7 @@ impl> StepCircuitBuilder { // 2. Check that the caller from the opcode matches the `id_prev` IVC variable. wires - .id_prev_value + .id_prev_value()? .conditional_enforce_equal(&wires.arg(ArgName::Caller), switch)?; Ok(wires) @@ -2451,7 +2492,7 @@ impl> StepCircuitBuilder { // 2. Check that the caller from the opcode matches the `id_prev` IVC variable. wires - .id_prev_value + .id_prev_value()? .conditional_enforce_equal(&wires.arg(ArgName::Caller), switch)?; Ok(wires) @@ -2820,8 +2861,6 @@ impl PreWires { irw, interface_index, ret_is_some: false, - id_prev_is_some: false, - id_prev_value: F::ZERO, opcode_args: [F::ZERO; OPCODE_ARG_COUNT], curr_mem_switches, target_mem_switches, @@ -2844,7 +2883,7 @@ impl PreWires { tracing::debug!("target={}", self.arg(ArgName::Target)); tracing::debug!("val={}", self.arg(ArgName::Val)); tracing::debug!("ret={}", self.arg(ArgName::Ret)); - tracing::debug!("id_prev=({}, {})", self.id_prev_is_some, self.id_prev_value); + tracing::debug!("id_prev={}", self.irw.id_prev.encoded()); } } @@ -2992,9 +3031,6 @@ fn trace_ic_wires>( opcode_args[1].clone(), opcode_args[2].clone(), opcode_args[3].clone(), - // TODO: - // this is either missing one arg (in which case I need to increase the permutation size) - // or it we need a better encoding for the id_prev conditional. ]; let new_commitment = poseidon2::compress(&compress_input)?; diff --git a/starstream_ivc_proto/src/lib.rs b/starstream_ivc_proto/src/lib.rs index 5bf8dcb9..c03a0ccd 100644 --- a/starstream_ivc_proto/src/lib.rs +++ b/starstream_ivc_proto/src/lib.rs @@ -10,6 +10,7 @@ mod neo; mod poseidon2; use crate::circuit::InterRoundWires; +pub use crate::circuit::OptionalF; use crate::memory::IVCMemory; use crate::memory::twist_and_shout::{TSMemLayouts, TSMemory}; use crate::neo::{StarstreamVm, StepCircuitNeo}; @@ -47,14 +48,14 @@ pub enum LedgerOperation { target: F, val: F, ret: F, - id_prev: Option, + id_prev: OptionalF, }, /// Called by utxo to yield. /// Yield { val: F, ret: Option, - id_prev: Option, + id_prev: OptionalF, }, ProgramHash { target: F, @@ -117,6 +118,41 @@ pub enum LedgerOperation { Nop {}, } +pub const OPCODE_ARG_COUNT: usize = 4; + +#[derive(Copy, Clone, Debug)] +pub enum ArgName { + Target, + Val, + Ret, + IdPrev, + Offset, + Size, + ProgramHash, + Caller, + OwnerId, + TokenId, + InterfaceId, +} + +impl ArgName { + // maps argument names to positional indices + // + // these need to match the order in the ABI used by the wasm/program vm. + pub const fn idx(self) -> usize { + match self { + ArgName::Target | ArgName::OwnerId | ArgName::TokenId => 0, + ArgName::Val | ArgName::InterfaceId => 1, + ArgName::Ret => 2, + ArgName::IdPrev + | ArgName::Offset + | ArgName::Size + | ArgName::ProgramHash + | ArgName::Caller => 3, + } + } +} + pub fn prove( inst: InterleavingInstance, wit: InterleavingWitness, @@ -246,7 +282,7 @@ fn make_interleaved_trace( // maybe for now just assume that these are short/fixed size val: F::from(val.0), ret: F::from(ret.0), - id_prev: op_id_prev.map(|p| (p.0 as u64).into()), + id_prev: OptionalF::from_option(op_id_prev.map(|p| (p.0 as u64).into())), } } starstream_mock_ledger::WitLedgerEffect::Yield { @@ -262,7 +298,7 @@ fn make_interleaved_trace( LedgerOperation::Yield { val: F::from(val.0), ret: ret.map(|ret| F::from(ret.0)), - id_prev: op_id_prev.map(|p| (p.0 as u64).into()), + id_prev: OptionalF::from_option(op_id_prev.map(|p| (p.0 as u64).into())), } } starstream_mock_ledger::WitLedgerEffect::Burn { ret } => { diff --git a/starstream_ivc_proto/src/neo.rs b/starstream_ivc_proto/src/neo.rs index 8fffb13b..d49da730 100644 --- a/starstream_ivc_proto/src/neo.rs +++ b/starstream_ivc_proto/src/neo.rs @@ -73,7 +73,7 @@ impl WitnessLayout for CircuitLayout { // instance.len()+witness.len() // const USED_COLS: usize = 350; - const USED_COLS: usize = 726; + const USED_COLS: usize = 734; fn new_layout() -> Self { CircuitLayout {} From c725a6cf1753aad0f9ec377598859b772434309e Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Thu, 15 Jan 2026 17:38:49 -0300 Subject: [PATCH 071/152] chore: extract ark-poseidon2 to a new crate Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- Cargo.toml | 2 +- ark-goldilocks/Cargo.toml | 11 + .../src/lib.rs | 0 ark-poseidon2/Cargo.toml | 18 + .../src}/constants.rs | 0 .../poseidon2 => ark-poseidon2/src}/gadget.rs | 2 +- .../src}/goldilocks.rs | 2 +- .../mod.rs => ark-poseidon2/src/lib.rs | 17 +- .../src}/linear_layers.rs | 5 +- .../poseidon2 => ark-poseidon2/src}/math.rs | 0 starstream_ivc_proto/Cargo.toml | 3 + starstream_ivc_proto/src/circuit.rs | 5 +- starstream_ivc_proto/src/e2e.rs | 709 ------------------ starstream_ivc_proto/src/lib.rs | 5 +- .../src/memory/nebula/gadget.rs | 3 +- starstream_ivc_proto/src/memory/nebula/ic.rs | 9 +- starstream_ivc_proto/src/neo.rs | 2 +- 17 files changed, 52 insertions(+), 741 deletions(-) create mode 100644 ark-goldilocks/Cargo.toml rename starstream_ivc_proto/src/goldilocks.rs => ark-goldilocks/src/lib.rs (100%) create mode 100644 ark-poseidon2/Cargo.toml rename {starstream_ivc_proto/src/poseidon2 => ark-poseidon2/src}/constants.rs (100%) rename {starstream_ivc_proto/src/poseidon2 => ark-poseidon2/src}/gadget.rs (98%) rename {starstream_ivc_proto/src/poseidon2 => ark-poseidon2/src}/goldilocks.rs (99%) rename starstream_ivc_proto/src/poseidon2/mod.rs => ark-poseidon2/src/lib.rs (95%) rename {starstream_ivc_proto/src/poseidon2 => ark-poseidon2/src}/linear_layers.rs (92%) rename {starstream_ivc_proto/src/poseidon2 => ark-poseidon2/src}/math.rs (100%) delete mode 100644 starstream_ivc_proto/src/e2e.rs diff --git a/Cargo.toml b/Cargo.toml index 52a4a58f..e873fc30 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ members = [ "starstream_ivc_proto", "starstream_mock_ledger", "starstream-runtime" -] +, "ark-poseidon2", "ark-goldilocks"] exclude = ["old"] [workspace.package] diff --git a/ark-goldilocks/Cargo.toml b/ark-goldilocks/Cargo.toml new file mode 100644 index 00000000..04380e36 --- /dev/null +++ b/ark-goldilocks/Cargo.toml @@ -0,0 +1,11 @@ +[package] +name = "ark-goldilocks" +version.workspace = true +authors.workspace = true +edition.workspace = true +rust-version.workspace = true +repository.workspace = true +license.workspace = true + +[dependencies] +ark-ff = { version = "0.5.0", default-features = false } diff --git a/starstream_ivc_proto/src/goldilocks.rs b/ark-goldilocks/src/lib.rs similarity index 100% rename from starstream_ivc_proto/src/goldilocks.rs rename to ark-goldilocks/src/lib.rs diff --git a/ark-poseidon2/Cargo.toml b/ark-poseidon2/Cargo.toml new file mode 100644 index 00000000..94ace0c3 --- /dev/null +++ b/ark-poseidon2/Cargo.toml @@ -0,0 +1,18 @@ +[package] +name = "ark-poseidon2" +version.workspace = true +authors.workspace = true +edition.workspace = true +rust-version.workspace = true +repository.workspace = true +license.workspace = true + +[dependencies] +ark-ff = { version = "0.5.0", default-features = false } +ark-relations = { version = "0.5.0", features = ["std"] } +ark-r1cs-std = { version = "0.5.0", default-features = false } +ark-bn254 = { version = "0.5.0", features = ["scalar_field"] } +ark-poly = "0.5.0" +ark-poly-commit = "0.5.0" + +ark-goldilocks = { path = "../ark-goldilocks" } diff --git a/starstream_ivc_proto/src/poseidon2/constants.rs b/ark-poseidon2/src/constants.rs similarity index 100% rename from starstream_ivc_proto/src/poseidon2/constants.rs rename to ark-poseidon2/src/constants.rs diff --git a/starstream_ivc_proto/src/poseidon2/gadget.rs b/ark-poseidon2/src/gadget.rs similarity index 98% rename from starstream_ivc_proto/src/poseidon2/gadget.rs rename to ark-poseidon2/src/gadget.rs index 1ceb8bca..facd96e8 100644 --- a/starstream_ivc_proto/src/poseidon2/gadget.rs +++ b/ark-poseidon2/src/gadget.rs @@ -1,6 +1,6 @@ use super::constants::RoundConstants; use super::linear_layers::{ExternalLinearLayer, InternalLinearLayer}; -use crate::poseidon2::constants::{GOLDILOCKS_S_BOX_DEGREE, HALF_FULL_ROUNDS, PARTIAL_ROUNDS}; +use crate::constants::{GOLDILOCKS_S_BOX_DEGREE, HALF_FULL_ROUNDS, PARTIAL_ROUNDS}; use ark_ff::PrimeField; use ark_r1cs_std::fields::fp::FpVar; use ark_r1cs_std::prelude::*; diff --git a/starstream_ivc_proto/src/poseidon2/goldilocks.rs b/ark-poseidon2/src/goldilocks.rs similarity index 99% rename from starstream_ivc_proto/src/poseidon2/goldilocks.rs rename to ark-poseidon2/src/goldilocks.rs index 62ebe452..c41b5c20 100644 --- a/starstream_ivc_proto/src/poseidon2/goldilocks.rs +++ b/ark-poseidon2/src/goldilocks.rs @@ -1,4 +1,4 @@ -use crate::goldilocks::FpGoldilocks; +use ark_goldilocks::FpGoldilocks; use std::sync::OnceLock; pub static MATRIX_DIAG_8_GOLDILOCKS: OnceLock<[FpGoldilocks; 8]> = OnceLock::new(); diff --git a/starstream_ivc_proto/src/poseidon2/mod.rs b/ark-poseidon2/src/lib.rs similarity index 95% rename from starstream_ivc_proto/src/poseidon2/mod.rs rename to ark-poseidon2/src/lib.rs index 7888f796..985dec1e 100644 --- a/starstream_ivc_proto/src/poseidon2/mod.rs +++ b/ark-poseidon2/src/lib.rs @@ -6,12 +6,11 @@ pub mod goldilocks; pub mod linear_layers; pub mod math; +pub type F = ark_goldilocks::FpGoldilocks; + use crate::{ - F, - poseidon2::{ - gadget::poseidon2_compress_8_to_4, - linear_layers::{GoldilocksExternalLinearLayer, GoldilocksInternalLinearLayer8}, - }, + gadget::poseidon2_compress_8_to_4, + linear_layers::{GoldilocksExternalLinearLayer, GoldilocksInternalLinearLayer8}, }; use ark_r1cs_std::{GR1CSVar as _, alloc::AllocVar as _, fields::fp::FpVar}; use ark_relations::gr1cs::{ConstraintSystem, SynthesisError}; @@ -56,11 +55,9 @@ mod tests { use super::*; use crate::{ F, - poseidon2::{ - constants::GOLDILOCKS_S_BOX_DEGREE, - gadget::poseidon2_hash, - linear_layers::{GoldilocksExternalLinearLayer, GoldilocksInternalLinearLayer8}, - }, + constants::GOLDILOCKS_S_BOX_DEGREE, + gadget::poseidon2_hash, + linear_layers::{GoldilocksExternalLinearLayer, GoldilocksInternalLinearLayer8}, }; use ark_r1cs_std::{GR1CSVar, alloc::AllocVar, fields::fp::FpVar}; use ark_relations::gr1cs::{ConstraintSystem, SynthesisError}; diff --git a/starstream_ivc_proto/src/poseidon2/linear_layers.rs b/ark-poseidon2/src/linear_layers.rs similarity index 92% rename from starstream_ivc_proto/src/poseidon2/linear_layers.rs rename to ark-poseidon2/src/linear_layers.rs index 009f3c80..3ece99cf 100644 --- a/starstream_ivc_proto/src/poseidon2/linear_layers.rs +++ b/ark-poseidon2/src/linear_layers.rs @@ -1,9 +1,6 @@ //! Linear layer implementations for Poseidon2 R1CS gadget -use crate::{ - F, - poseidon2::{goldilocks::matrix_diag_8_goldilocks, math::mds_light_permutation}, -}; +use crate::{F, goldilocks::matrix_diag_8_goldilocks, math::mds_light_permutation}; use ark_ff::PrimeField; use ark_r1cs_std::fields::fp::FpVar; use ark_relations::gr1cs::SynthesisError; diff --git a/starstream_ivc_proto/src/poseidon2/math.rs b/ark-poseidon2/src/math.rs similarity index 100% rename from starstream_ivc_proto/src/poseidon2/math.rs rename to ark-poseidon2/src/math.rs diff --git a/starstream_ivc_proto/Cargo.toml b/starstream_ivc_proto/Cargo.toml index 66fda293..988302db 100644 --- a/starstream_ivc_proto/Cargo.toml +++ b/starstream_ivc_proto/Cargo.toml @@ -29,3 +29,6 @@ p3-symmetric = "0.4.1" p3-poseidon2 = "0.4.1" rand_chacha = "0.9.0" rand = "0.9" + +ark-goldilocks = { path = "../ark-goldilocks" } +ark-poseidon2 = { path = "../ark-poseidon2" } diff --git a/starstream_ivc_proto/src/circuit.rs b/starstream_ivc_proto/src/circuit.rs index 1df1dc95..b388cbc4 100644 --- a/starstream_ivc_proto/src/circuit.rs +++ b/starstream_ivc_proto/src/circuit.rs @@ -1,6 +1,5 @@ use crate::memory::twist_and_shout::Lanes; use crate::memory::{self, Address, IVCMemory, MemType}; -use crate::poseidon2::{self}; use crate::{ArgName, OPCODE_ARG_COUNT, value_to_field}; use crate::{F, LedgerOperation, memory::IVCMemoryAllocated}; use ark_ff::{AdditiveGroup, Field as _, PrimeField}; @@ -2982,7 +2981,7 @@ fn trace_ic>(curr_pid: usize, mb: &mut M, config: &OpcodeConfig) concat_data[i + 4] = config.opcode_args[i]; } - let new_commitment = poseidon2::compress_trace(&concat_data).unwrap(); + let new_commitment = ark_poseidon2::compress_trace(&concat_data).unwrap(); for i in 0..4 { let addr = (curr_pid * 4) + i; @@ -3033,7 +3032,7 @@ fn trace_ic_wires>( opcode_args[3].clone(), ]; - let new_commitment = poseidon2::compress(&compress_input)?; + let new_commitment = ark_poseidon2::compress(&compress_input)?; for i in 0..4 { rm.conditional_write(&Boolean::TRUE, &addresses[i], &[new_commitment[i].clone()])?; diff --git a/starstream_ivc_proto/src/e2e.rs b/starstream_ivc_proto/src/e2e.rs deleted file mode 100644 index d5e576af..00000000 --- a/starstream_ivc_proto/src/e2e.rs +++ /dev/null @@ -1,709 +0,0 @@ -//* Dummy UTXO VM **just** for testing and to illustrate the data flow. It's not -//* trying to be a zkvm, nor a wasm-like vm. - -use crate::{LedgerOperation, ProgramId, Transaction, UtxoChange, neo::ark_field_to_p3_goldilocks}; -use ark_ff::PrimeField; -use neo_ajtai::{Commitment, PP, commit, decomp_b, setup}; -use neo_ccs::crypto::poseidon2_goldilocks::poseidon2_hash; -use neo_math::ring::Rq as RqEl; -use p3_field::PrimeCharacteristicRing; -use p3_goldilocks::Goldilocks; -use rand::rng; -use std::sync::OnceLock; -use std::{ - cell::RefCell, - collections::{BTreeMap, HashMap, HashSet}, - rc::Rc, -}; - -// TODO: this should be a parameter -static AJTAI_PP: OnceLock> = OnceLock::new(); - -fn get_ajtai_pp() -> &'static PP { - AJTAI_PP.get_or_init(|| { - let mut rng = rng(); - let d = neo_math::ring::D; // ring dimension - let kappa = 128; // security parameter - let m = 4; // vector length - setup(&mut rng, d, kappa, m).expect("Failed to setup Ajtai commitment") - }) -} - -fn incremental_commit(value1: [Goldilocks; 4], value2: [Goldilocks; 4]) -> [Goldilocks; 4] { - let input = [value1, value2].concat(); - - poseidon2_hash(&input) -} - -// TODO: review this, there may be a more efficient conversion -// this is 864 hashes per step -// the important part is that it would have to be done in the circuit too, so review this -fn ajtai_commitment_to_goldilocks(commitment: &Commitment) -> [Goldilocks; 4] { - let mut result = [Goldilocks::ZERO; 4]; - - for chunk in commitment.data.chunks(4) { - let input = [ - result[0], result[1], result[2], result[3], chunk[0], chunk[1], chunk[2], chunk[3], - ]; - - result = poseidon2_hash(&input); - } - - result -} - -fn block_commitment( - op_tag: u64, - utxo_id: crate::F, - input: crate::F, - output: crate::F, -) -> [Goldilocks; 4] { - let z = vec![ - ark_field_to_p3_goldilocks(&crate::F::from(op_tag)), - ark_field_to_p3_goldilocks(&utxo_id), - ark_field_to_p3_goldilocks(&input), - ark_field_to_p3_goldilocks(&output), - ]; - - let b = 2; - let decomp_b = decomp_b(&z, b, neo_math::ring::D, neo_ajtai::DecompStyle::Balanced); - - let commitment = commit(get_ajtai_pp(), &decomp_b); - - ajtai_commitment_to_goldilocks(&commitment) -} - -#[derive(Debug, Clone)] -pub struct IncrementalCommitment { - commitment: [Goldilocks; 4], -} - -impl IncrementalCommitment { - pub fn new() -> Self { - Self { - commitment: [Goldilocks::ZERO; 4], - } - } - - pub fn add_operation(&mut self, op: &LedgerOperation) { - let (tag, utxo_id, input, output) = match op { - LedgerOperation::Resume { - utxo_id, - input, - output, - } => (1, *utxo_id, *input, *output), - LedgerOperation::Yield { utxo_id, input } => (2, *utxo_id, *input, crate::F::from(0)), - LedgerOperation::YieldResume { utxo_id, output } => { - (3, *utxo_id, crate::F::from(0), *output) - } - LedgerOperation::DropUtxo { utxo_id } => { - (4, *utxo_id, crate::F::from(0), crate::F::from(0)) - } - // these are just auxiliary instructions for the proof, not real - // ledger operations - // they don't show up in the wasm execution trace - LedgerOperation::Nop {} => return, - LedgerOperation::CheckUtxoOutput { utxo_id: _ } => return, - }; - - let op_commitment = block_commitment(tag, utxo_id, input, output); - - self.commitment = incremental_commit(op_commitment, self.commitment); - } - - pub fn as_field_elements(&self) -> [Goldilocks; 4] { - self.commitment - } -} - -#[derive(Debug, Clone)] -pub struct ProgramTraceCommitments { - commitments: HashMap, -} - -impl ProgramTraceCommitments { - pub fn new() -> Self { - Self { - commitments: HashMap::new(), - } - } - - fn add_operation(&mut self, op: &LedgerOperation) { - let program_id = match op { - LedgerOperation::Resume { - utxo_id, - input: _, - output: _, - } => utxo_id, - LedgerOperation::Yield { utxo_id, input: _ } => utxo_id, - LedgerOperation::YieldResume { utxo_id, output: _ } => utxo_id, - LedgerOperation::DropUtxo { utxo_id } => utxo_id, - LedgerOperation::Nop {} => return, - LedgerOperation::CheckUtxoOutput { utxo_id: _ } => return, - }; - - self.commitments - .entry(*program_id) - .or_insert_with(IncrementalCommitment::new) - .add_operation(op); - } - - fn get_all_commitments(&self) -> &HashMap { - &self.commitments - } -} - -#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] -pub struct Variable(usize); - -type Value = crate::F; - -trait BlackBox { - fn run(&self, state: &mut HashMap) -> Option; - fn box_clone(&self) -> Box; -} - -impl Clone for Box { - fn clone(&self) -> Self { - self.box_clone() - } -} - -impl BlackBox for F -where - F: Fn(&mut HashMap) -> Option + Clone + 'static, -{ - fn run(&self, state: &mut HashMap) -> Option { - self(state) - } - - fn box_clone(&self) -> Box { - Box::new(self.clone()) - } -} - -#[derive(Clone)] -enum Op { - // pure compuation in the sense that it doesn't interact with the ledger - // this represents the native operations of the wasm vm. - Pure { - f: Box, - }, - New { - initial_state: Value, - output_var: Variable, - }, - Yield { - val: Variable, - }, - Resume { - utxo: Variable, - val: Variable, - }, - Burn {}, -} - -impl std::fmt::Debug for Op { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - match self { - Self::Pure { .. } => f.debug_struct("Pure").finish(), - Self::New { - initial_state, - output_var, - } => f - .debug_struct("New") - .field("utxo", initial_state) - .field("output_var", output_var) - .finish(), - Self::Yield { val } => f.debug_struct("Yield").field("val", val).finish(), - Self::Resume { utxo, val } => f - .debug_struct("Resume") - .field("utxo", utxo) - .field("val", val) - .finish(), - Op::Burn {} => f.debug_struct("Burn").finish(), - } - } -} - -pub struct MockedProgram { - code: Vec, - state: MockedProgramState, -} - -pub struct MockedProgramState { - pc: usize, - yield_skip: bool, - thunk: Option, - vars: HashMap, - // output: Option, - input: Option, -} - -impl MockedProgram { - fn new(code: Vec, yielded: bool) -> Rc> { - Rc::new(RefCell::new(MockedProgram { - code, - state: MockedProgramState { - pc: 0, - yield_skip: yielded, - thunk: None, - vars: HashMap::new(), - // output: None, - input: None, - }, - })) - } -} - -#[derive(Clone, Debug)] -pub struct UtxoState { - output: crate::F, - #[allow(dead_code)] - memory: crate::F, -} - -pub struct MockedLedger { - utxos: BTreeMap, -} - -#[derive(Clone, Debug)] -pub enum Thunk { - Resolved(crate::F), - Unresolved(Rc>>), -} - -impl From for Thunk { - fn from(f: crate::F) -> Self { - Thunk::Resolved(f) - } -} - -impl From<&crate::F> for Thunk -where - crate::F: Clone, -{ - fn from(f: &crate::F) -> Self { - Thunk::Resolved(*f) - } -} - -impl From for crate::F { - fn from(thunk: Thunk) -> Self { - match thunk { - Thunk::Resolved(f) => f, - Thunk::Unresolved(maybe_f) => maybe_f.borrow().unwrap(), - } - } -} - -impl Thunk { - fn unresolved() -> Self { - Self::Unresolved(Rc::new(RefCell::new(None))) - } - - fn resolve(&self, f: crate::F) { - match self { - Thunk::Resolved(_fp) => unreachable!("already resolved value"), - Thunk::Unresolved(unresolved) => (*unresolved.borrow_mut()) = Some(f), - } - } -} - -impl MockedLedger { - pub(crate) fn run_mocked_vm( - &mut self, - entry_point: Value, - programs: HashMap>>, - ) -> ( - Transaction>>, - ProgramTraceCommitments, - ) { - let state_pre = self.utxos.clone(); - - let mut instructions: Vec> = vec![]; - let mut commitments = ProgramTraceCommitments::new(); - - let mut current_program = entry_point; - let mut in_coord = true; - let mut prev_program: Option = None; - - let mut consumed = HashSet::new(); - - loop { - let program_state = Rc::clone(programs.get(¤t_program).unwrap()); - - let opcode = program_state - .borrow() - .code - .get(program_state.borrow().state.pc) - .cloned(); - - if let Some(opcode) = opcode { - match opcode { - Op::Pure { f } => { - let new_pc = f.run(&mut program_state.borrow_mut().state.vars); - - if let Some(new_pc) = new_pc { - program_state.borrow_mut().state.pc = new_pc; - } else { - program_state.borrow_mut().state.pc += 1; - } - } - Op::Yield { val } => { - let yield_to = *prev_program.as_ref().unwrap(); - - let yield_val = *program_state.borrow().state.vars.get(&val).unwrap(); - - self.utxos.entry(current_program).and_modify(|state| { - state.output = yield_val; - }); - - let yield_to_program = programs.get(&yield_to).unwrap(); - - let yield_resume_op = LedgerOperation::YieldResume { - utxo_id: current_program.into(), - output: yield_to_program.borrow().state.input.unwrap().into(), - }; - let yield_op = LedgerOperation::Yield { - utxo_id: current_program.into(), - input: program_state.borrow().state.vars.get(&val).unwrap().into(), - }; - - instructions.push(yield_resume_op); - instructions.push(yield_op); - - program_state.borrow_mut().state.pc += 1; - program_state.borrow_mut().state.yield_skip = false; - - prev_program.replace(current_program); - current_program = yield_to; - - in_coord = true; - } - Op::Resume { utxo, val } => { - let utxo_id = *(program_state.borrow().state.vars.get(&utxo).unwrap()); - if !dbg!(program_state.borrow().state.yield_skip) { - let input = *(program_state.borrow().state.vars.get(&val).unwrap()); - - program_state.borrow_mut().state.input.replace(input); - - prev_program.replace(current_program); - - in_coord = false; - current_program = dbg!(utxo_id); - - program_state.borrow_mut().state.yield_skip = true; - - let output_thunk = Thunk::unresolved(); - program_state.borrow_mut().state.thunk = Some(output_thunk.clone()); - - let resume_op = LedgerOperation::Resume { - utxo_id: program_state - .borrow() - .state - .vars - .get(&utxo) - .unwrap() - .into(), - input: program_state.borrow().state.vars.get(&val).unwrap().into(), - output: output_thunk, - }; - - instructions.push(resume_op); - } else { - let output_val = self.utxos.get(&utxo_id).unwrap().output; - - program_state - .borrow() - .state - .thunk - .as_ref() - .unwrap() - .resolve(output_val); - - program_state.borrow_mut().state.pc += 1; - program_state.borrow_mut().state.yield_skip = false; - in_coord = true; - } - } - Op::New { - initial_state, - output_var, - } => { - let utxo_id = 2 + self.utxos.len(); - - program_state - .borrow_mut() - .state - .vars - .insert(output_var, crate::F::from(utxo_id as u64)); - - self.utxos.insert( - ProgramId::from(utxo_id as u64), - UtxoState { - output: crate::F::from(0), - memory: initial_state, - }, - ); - - program_state.borrow_mut().state.pc += 1; - - assert!(in_coord); - } - Op::Burn {} => { - consumed.insert(current_program); - program_state.borrow_mut().state.pc += 1; - - let drop_op = LedgerOperation::DropUtxo { - utxo_id: current_program.into(), - }; - - instructions.push(drop_op); - - let yield_to = *prev_program.as_ref().unwrap(); - - prev_program.replace(current_program); - - in_coord = true; - self.utxos.entry(current_program).and_modify(|state| { - state.output = crate::F::from(0); - }); - - current_program = yield_to; - } - } - } else { - assert!(in_coord); - break; - } - } - - let mut utxo_deltas: BTreeMap = Default::default(); - - for (utxo_id, state_pos) in &self.utxos { - let output_before = state_pre - .get(utxo_id) - .map(|st| st.output) - .unwrap_or_default(); - - utxo_deltas.insert( - *utxo_id, - UtxoChange { - output_before, - output_after: state_pos.output, - consumed: consumed.contains(utxo_id), - }, - ); - } - - for utxo in consumed { - self.utxos.remove(&utxo); - } - - let resolved_instructions: Vec> = instructions - .into_iter() - .map(|instr| match instr { - LedgerOperation::Resume { - utxo_id, - input, - output, - } => LedgerOperation::Resume { - utxo_id: utxo_id.into(), - input: input.into(), - output: output.into(), - }, - LedgerOperation::Yield { utxo_id, input } => LedgerOperation::Yield { - utxo_id: utxo_id.into(), - input: input.into(), - }, - LedgerOperation::YieldResume { utxo_id, output } => LedgerOperation::YieldResume { - utxo_id: utxo_id.into(), - output: output.into(), - }, - LedgerOperation::DropUtxo { utxo_id } => LedgerOperation::DropUtxo { - utxo_id: utxo_id.into(), - }, - LedgerOperation::Nop {} => LedgerOperation::Nop {}, - LedgerOperation::CheckUtxoOutput { utxo_id } => LedgerOperation::CheckUtxoOutput { - utxo_id: utxo_id.into(), - }, - }) - .collect(); - - for op in resolved_instructions.iter() { - commitments.add_operation(op); - } - - ( - Transaction::new_unproven(utxo_deltas, resolved_instructions), - commitments, - ) - } -} - -pub struct ProgramBuilder { - ops: Vec, - yielded: bool, - next_var_id: usize, -} - -impl ProgramBuilder { - pub fn new() -> Self { - Self { - ops: Vec::new(), - yielded: false, - next_var_id: 0, - } - } - - pub fn alloc_var(&mut self) -> Variable { - let var = Variable(self.next_var_id); - self.next_var_id += 1; - var - } - - pub fn set_var(mut self, var: Variable, value: Value) -> Self { - self.ops.push(Op::Pure { - f: Box::new(move |state: &mut HashMap| { - state.insert(var, value); - None - }), - }); - self - } - - pub fn increment_var(mut self, var: Variable, amount: Value) -> Self { - self.ops.push(Op::Pure { - f: Box::new(move |state: &mut HashMap| { - state.entry(var).and_modify(|v| *v += amount); - None - }), - }); - self - } - - pub fn jump_to(mut self, pc: usize) -> Self { - self.ops.push(Op::Pure { - f: Box::new(move |_state: &mut HashMap| Some(pc)), - }); - self - } - - pub fn new_utxo(mut self, initial_state: Value, output_var: Variable) -> Self { - self.ops.push(Op::New { - initial_state, - output_var, - }); - self - } - - pub fn yield_val(mut self, val: Variable) -> Self { - self.ops.push(Op::Yield { val }); - self - } - - pub fn resume(mut self, utxo: Variable, val: Variable) -> Self { - self.ops.push(Op::Resume { utxo, val }); - self - } - - pub fn burn(mut self) -> Self { - self.ops.push(Op::Burn {}); - self - } - - pub fn build(self) -> Rc> { - MockedProgram::new(self.ops, self.yielded) - } -} - -pub struct ProgramContext { - programs: HashMap>>, - next_id: u64, -} - -impl ProgramContext { - pub fn new() -> Self { - Self { - programs: HashMap::new(), - next_id: 1, - } - } - - pub fn add_program_with_id(&mut self, id: Value, builder: ProgramBuilder) { - self.programs.insert(id, builder.build()); - if id >= crate::F::from(self.next_id) { - self.next_id = id.into_bigint().as_ref()[0] + 1; - } - } - - pub fn into_programs(self) -> HashMap>> { - self.programs - } -} - -#[cfg(test)] -mod tests { - use crate::{ - F, - e2e::{MockedLedger, ProgramBuilder, ProgramContext}, - test_utils::init_test_logging, - }; - use std::collections::BTreeMap; - - #[test] - fn test_trace_mocked_vm() { - init_test_logging(); - let mut ctx = ProgramContext::new(); - - let mut coord_builder = ProgramBuilder::new(); - let utxo1 = coord_builder.alloc_var(); - let val1 = coord_builder.alloc_var(); - let utxo2 = coord_builder.alloc_var(); - let val2 = coord_builder.alloc_var(); - - let coordination_script = coord_builder - .new_utxo(F::from(77), utxo1) - .set_var(val1, F::from(42)) - .resume(utxo1, val1) - .increment_var(val1, F::from(1)) - .resume(utxo1, val1) - .new_utxo(F::from(120), utxo2) - .set_var(val2, F::from(0)) - .resume(utxo2, val2) - .resume(utxo2, val2); - - let mut utxo1_builder = ProgramBuilder::new(); - let utxo1_val = utxo1_builder.alloc_var(); - let utxo1 = utxo1_builder - .set_var(utxo1_val, F::from(45)) - .yield_val(utxo1_val) - .jump_to(1); // loop - - let mut utxo2_builder = ProgramBuilder::new(); - let utxo2_val = utxo2_builder.alloc_var(); - let utxo2 = utxo2_builder - .set_var(utxo2_val, F::from(111)) - .yield_val(utxo2_val) - .burn(); - - ctx.add_program_with_id(F::from(1), coordination_script); - ctx.add_program_with_id(F::from(2), utxo1); - ctx.add_program_with_id(F::from(3), utxo2); - - let mut ledger = MockedLedger { - utxos: BTreeMap::default(), - }; - - let (tx, commitments) = ledger.run_mocked_vm(F::from(1), ctx.into_programs()); - - dbg!(&tx); - for (program_id, commitment) in commitments.get_all_commitments() { - let comm = commitment.as_field_elements(); - dbg!(program_id, comm[0], comm[1], comm[2], comm[3]); - } - - tx.prove().unwrap(); - } -} diff --git a/starstream_ivc_proto/src/lib.rs b/starstream_ivc_proto/src/lib.rs index c03a0ccd..f12f1ebf 100644 --- a/starstream_ivc_proto/src/lib.rs +++ b/starstream_ivc_proto/src/lib.rs @@ -3,11 +3,9 @@ mod circuit; mod circuit_test; // #[cfg(test)] // mod e2e; -mod goldilocks; mod logging; mod memory; mod neo; -mod poseidon2; use crate::circuit::InterRoundWires; pub use crate::circuit::OptionalF; @@ -16,7 +14,6 @@ use crate::memory::twist_and_shout::{TSMemLayouts, TSMemory}; use crate::neo::{StarstreamVm, StepCircuitNeo}; use ark_relations::gr1cs::{ConstraintSystem, ConstraintSystemRef, SynthesisError}; use circuit::StepCircuitBuilder; -use goldilocks::FpGoldilocks; pub use memory::nebula; use neo_ajtai::AjtaiSModule; use neo_fold::pi_ccs::FoldingMode; @@ -31,7 +28,7 @@ use std::collections::HashMap; use std::sync::Arc; use std::time::Instant; -type F = FpGoldilocks; +pub type F = ark_goldilocks::FpGoldilocks; pub type ProgramId = F; diff --git a/starstream_ivc_proto/src/memory/nebula/gadget.rs b/starstream_ivc_proto/src/memory/nebula/gadget.rs index f8491cbc..42ff7e36 100644 --- a/starstream_ivc_proto/src/memory/nebula/gadget.rs +++ b/starstream_ivc_proto/src/memory/nebula/gadget.rs @@ -2,7 +2,6 @@ use super::Address; use super::ic::{IC, ICPlain}; use super::{MemOp, MemOpAllocated}; use crate::F; -use crate::goldilocks::FpGoldilocks; use crate::memory::nebula::tracer::NebulaMemoryParams; use crate::memory::{AllocatedAddress, IVCMemoryAllocated}; use ark_ff::Field; @@ -532,7 +531,7 @@ impl NebulaMemoryConstraints { } fn enforce_monotonic_commitment( - cs: &ConstraintSystemRef, + cs: &ConstraintSystemRef, address: &Address, FpVar>, last_addr: &mut Address, FpVar>, ) -> Result<(), SynthesisError> { diff --git a/starstream_ivc_proto/src/memory/nebula/ic.rs b/starstream_ivc_proto/src/memory/nebula/ic.rs index de37862b..0f04a9b9 100644 --- a/starstream_ivc_proto/src/memory/nebula/ic.rs +++ b/starstream_ivc_proto/src/memory/nebula/ic.rs @@ -3,7 +3,6 @@ use super::MemOp; use crate::F; use crate::memory::AllocatedAddress; use crate::nebula::MemOpAllocated; -use crate::poseidon2::compress; use ark_ff::AdditiveGroup as _; use ark_r1cs_std::GR1CSVar as _; use ark_r1cs_std::alloc::AllocVar as _; @@ -40,7 +39,7 @@ impl ICPlain { } }); - let hash_to_field = crate::poseidon2::compress_trace(&hash_input)?; + let hash_to_field = ark_poseidon2::compress_trace(&hash_input)?; let concat = array::from_fn(|i| { if i < 4 { @@ -50,7 +49,7 @@ impl ICPlain { } }); - self.comm = crate::poseidon2::compress_trace(&concat)?; + self.comm = ark_poseidon2::compress_trace(&concat)?; } Ok(()) @@ -93,7 +92,7 @@ impl IC { if !unsound_make_nop { let cs = self.comm.cs(); - let hash_to_field = compress(&array::from_fn(|i| { + let hash_to_field = ark_poseidon2::compress(&array::from_fn(|i| { if i == 0 { a.addr.clone() } else if i == 1 { @@ -116,7 +115,7 @@ impl IC { } }); - self.comm = compress(&concat)?; + self.comm = ark_poseidon2::compress(&concat)?; } Ok(()) diff --git a/starstream_ivc_proto/src/neo.rs b/starstream_ivc_proto/src/neo.rs index d49da730..5e7a30cf 100644 --- a/starstream_ivc_proto/src/neo.rs +++ b/starstream_ivc_proto/src/neo.rs @@ -1,12 +1,12 @@ use crate::{ ccs_step_shape, circuit::{InterRoundWires, StepCircuitBuilder}, - goldilocks::FpGoldilocks, memory::twist_and_shout::{ TSMemInitTables, TSMemLayouts, TSMemory, TSMemoryConstraints, TWIST_DEBUG_FILTER, }, }; use ark_ff::PrimeField; +use ark_goldilocks::FpGoldilocks; use ark_relations::gr1cs::{ConstraintSystem, OptimizationGoal, SynthesisError}; use neo_fold::session::{NeoCircuit, WitnessLayout}; use neo_memory::{ShoutCpuBinding, TwistCpuBinding}; From 637f6c4722f7104f6719e1fd5a10a759ead331a4 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Thu, 15 Jan 2026 17:39:47 -0300 Subject: [PATCH 072/152] update Cargo.lock (poseidon2 split) Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- Cargo.lock | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 988e8494..536daad1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -232,6 +232,13 @@ dependencies = [ "syn 2.0.106", ] +[[package]] +name = "ark-goldilocks" +version = "0.0.0" +dependencies = [ + "ark-ff", +] + [[package]] name = "ark-poly" version = "0.5.0" @@ -272,6 +279,19 @@ dependencies = [ "rayon", ] +[[package]] +name = "ark-poseidon2" +version = "0.0.0" +dependencies = [ + "ark-bn254", + "ark-ff", + "ark-goldilocks", + "ark-poly", + "ark-poly-commit", + "ark-r1cs-std", + "ark-relations", +] + [[package]] name = "ark-r1cs-std" version = "0.5.0" @@ -3075,8 +3095,10 @@ version = "0.1.0" dependencies = [ "ark-bn254", "ark-ff", + "ark-goldilocks", "ark-poly", "ark-poly-commit", + "ark-poseidon2", "ark-r1cs-std", "ark-relations", "neo-ajtai", From 22112fa7e5c3419c662d241f5bd6954967b8c2a3 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Thu, 15 Jan 2026 17:55:14 -0300 Subject: [PATCH 073/152] ark-poseidon2: a few synthesis micro-optimizations (small gains) Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- Cargo.lock | 171 +++++++++++++++++++++- ark-poseidon2/Cargo.toml | 7 + ark-poseidon2/benches/poseidon2_gadget.rs | 61 ++++++++ ark-poseidon2/src/math.rs | 106 +++++++++++--- 4 files changed, 323 insertions(+), 22 deletions(-) create mode 100644 ark-poseidon2/benches/poseidon2_gadget.rs diff --git a/Cargo.lock b/Cargo.lock index 536daad1..90482d1e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -53,6 +53,12 @@ dependencies = [ "libc", ] +[[package]] +name = "anes" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4b46cbb362ab8752921c97e041f5e366ee6297bd428a31275b9fcf1e380f7299" + [[package]] name = "anstream" version = "0.6.21" @@ -290,6 +296,7 @@ dependencies = [ "ark-poly-commit", "ark-r1cs-std", "ark-relations", + "criterion", ] [[package]] @@ -681,6 +688,12 @@ version = "1.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d71b6127be86fdcfddb610f7182ac57211d4b18a3e9c82eb2d17662f2227ad6a" +[[package]] +name = "cast" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5" + [[package]] name = "cc" version = "1.2.41" @@ -725,6 +738,33 @@ dependencies = [ "unicode-segmentation", ] +[[package]] +name = "ciborium" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42e69ffd6f0917f5c029256a24d0161db17cea3997d185db0d35926308770f0e" +dependencies = [ + "ciborium-io", + "ciborium-ll", + "serde", +] + +[[package]] +name = "ciborium-io" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05afea1e0a06c9be33d539b876f1ce3692f4afea2cb41f740e7743225ed1c757" + +[[package]] +name = "ciborium-ll" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57663b653d948a338bfb3eeba9bb2fd5fcfaecb9e199e87e1eda4d9e8b240fd9" +dependencies = [ + "ciborium-io", + "half 2.7.1", +] + [[package]] name = "clap" version = "4.5.49" @@ -991,6 +1031,42 @@ dependencies = [ "cfg-if", ] +[[package]] +name = "criterion" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2b12d017a929603d80db1831cd3a24082f8137ce19c69e6447f54f5fc8d692f" +dependencies = [ + "anes", + "cast", + "ciborium", + "clap", + "criterion-plot", + "is-terminal", + "itertools 0.10.5", + "num-traits", + "once_cell", + "oorandom", + "plotters", + "rayon", + "regex", + "serde", + "serde_derive", + "serde_json", + "tinytemplate", + "walkdir", +] + +[[package]] +name = "criterion-plot" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b50826342786a51a89e2da3a28f1c32b06e387201bc2d19791f622c673706b1" +dependencies = [ + "cast", + "itertools 0.10.5", +] + [[package]] name = "crossbeam-deque" version = "0.8.6" @@ -1016,6 +1092,12 @@ version = "0.8.21" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28" +[[package]] +name = "crunchy" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5" + [[package]] name = "crypto-common" version = "0.1.7" @@ -1440,6 +1522,17 @@ version = "1.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1b43ede17f21864e81be2fa654110bf1e793774238d86ef8555c37e6519c0403" +[[package]] +name = "half" +version = "2.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ea2d84b969582b4b1864a92dc5d27cd2b77b622a8d79306834f1be5ba20d84b" +dependencies = [ + "cfg-if", + "crunchy", + "zerocopy", +] + [[package]] name = "hashbrown" version = "0.12.3" @@ -1625,6 +1718,17 @@ dependencies = [ "walkdir", ] +[[package]] +name = "is-terminal" +version = "0.4.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3640c1c38b8e4e43584d8df18be5fc6b0aa314ce6ebf51b53313d4306cca8e46" +dependencies = [ + "hermit-abi", + "libc", + "windows-sys 0.61.2", +] + [[package]] name = "is_ci" version = "1.2.0" @@ -1637,6 +1741,15 @@ version = "1.70.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf" +[[package]] +name = "itertools" +version = "0.10.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473" +dependencies = [ + "either", +] + [[package]] name = "itertools" version = "0.13.0" @@ -2110,6 +2223,12 @@ version = "1.70.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a4895175b425cb1f87721b59f0f286c2092bd4af812243672510e1ac53e2e0ad" +[[package]] +name = "oorandom" +version = "11.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6790f58c7ff633d8771f42965289203411a5e5c68388703c06e14f24770b41e" + [[package]] name = "owo-colors" version = "4.2.3" @@ -2352,6 +2471,34 @@ version = "0.3.32" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c" +[[package]] +name = "plotters" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5aeb6f403d7a4911efb1e33402027fc44f29b5bf6def3effcc22d7bb75f2b747" +dependencies = [ + "num-traits", + "plotters-backend", + "plotters-svg", + "wasm-bindgen", + "web-sys", +] + +[[package]] +name = "plotters-backend" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df42e13c12958a16b3f7f4386b9ab1f3e7933914ecea48da7139435263a4172a" + +[[package]] +name = "plotters-svg" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "51bae2ac328883f7acdfea3d66a7c35751187f870bc81f94563733a154d7a670" +dependencies = [ + "plotters-backend", +] + [[package]] name = "polling" version = "3.11.0" @@ -2611,6 +2758,18 @@ dependencies = [ "smallvec", ] +[[package]] +name = "regex" +version = "1.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e10754a14b9137dd7b1e3e5b0493cc9171fdd105e0ab477f51b72e7f3ac0e276" +dependencies = [ + "aho-corasick", + "memchr", + "regex-automata 0.4.13", + "regex-syntax 0.8.8", +] + [[package]] name = "regex-automata" version = "0.3.9" @@ -2768,7 +2927,7 @@ version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2bef2ebfde456fb76bbcf9f59315333decc4fda0b2b44b420243c11e0f5ec1f5" dependencies = [ - "half", + "half 1.8.3", "serde", ] @@ -3345,6 +3504,16 @@ dependencies = [ "time-core", ] +[[package]] +name = "tinytemplate" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be4d6b5f19ff7664e8c98d03e2139cb510db9b0a60b55f8e8709b689d939b6bc" +dependencies = [ + "serde", + "serde_json", +] + [[package]] name = "tokio" version = "1.48.0" diff --git a/ark-poseidon2/Cargo.toml b/ark-poseidon2/Cargo.toml index 94ace0c3..42ce92b0 100644 --- a/ark-poseidon2/Cargo.toml +++ b/ark-poseidon2/Cargo.toml @@ -16,3 +16,10 @@ ark-poly = "0.5.0" ark-poly-commit = "0.5.0" ark-goldilocks = { path = "../ark-goldilocks" } + +[dev-dependencies] +criterion = "0.5" + +[[bench]] +name = "poseidon2_gadget" +harness = false diff --git a/ark-poseidon2/benches/poseidon2_gadget.rs b/ark-poseidon2/benches/poseidon2_gadget.rs new file mode 100644 index 00000000..a47ce884 --- /dev/null +++ b/ark-poseidon2/benches/poseidon2_gadget.rs @@ -0,0 +1,61 @@ +use ark_poseidon2::{ + F, RoundConstants, + constants::GOLDILOCKS_S_BOX_DEGREE, + gadget::Poseidon2Gadget, + linear_layers::{GoldilocksExternalLinearLayer, GoldilocksInternalLinearLayer8}, +}; +use ark_r1cs_std::{GR1CSVar as _, alloc::AllocVar as _, fields::fp::FpVar}; +use ark_relations::gr1cs::ConstraintSystem; +use criterion::{Criterion, black_box, criterion_group, criterion_main}; + +const WIDTH: usize = 8; +const HALF_FULL_ROUNDS: usize = 4; +const PARTIAL_ROUNDS: usize = 22; + +fn bench_poseidon2_gadget_inc(c: &mut Criterion) { + c.bench_function("poseidon2_gadget_inc", |b| { + b.iter(|| { + let cs = ConstraintSystem::::new_ref(); + + let constants = RoundConstants::new_goldilocks_8_constants(); + + let input_values = [ + F::from(1), + F::from(2), + F::from(3), + F::from(4), + F::from(5), + F::from(6), + F::from(7), + F::from(8), + ]; + + let input_vars = input_values + .iter() + .map(|&val| FpVar::new_witness(cs.clone(), || Ok(val))) + .collect::, _>>() + .unwrap(); + let input_array: [FpVar; WIDTH] = input_vars.try_into().unwrap(); + + let gadget = Poseidon2Gadget::< + F, + GoldilocksExternalLinearLayer<8>, + GoldilocksInternalLinearLayer8, + WIDTH, + GOLDILOCKS_S_BOX_DEGREE, + HALF_FULL_ROUNDS, + PARTIAL_ROUNDS, + >::new(constants); + let result = gadget.permute(&input_array).unwrap(); + + let output_values: Vec = result + .iter() + .map(|var: &FpVar| var.value().unwrap()) + .collect(); + black_box(output_values); + }); + }); +} + +criterion_group!(benches, bench_poseidon2_gadget_inc); +criterion_main!(benches); diff --git a/ark-poseidon2/src/math.rs b/ark-poseidon2/src/math.rs index 62d7ece7..f97a23d1 100644 --- a/ark-poseidon2/src/math.rs +++ b/ark-poseidon2/src/math.rs @@ -1,6 +1,50 @@ use ark_ff::PrimeField; -use ark_r1cs_std::fields::{FieldVar as _, fp::FpVar}; -use ark_relations::gr1cs::SynthesisError; +use ark_r1cs_std::fields::{FieldVar as _, fp::{AllocatedFp, FpVar}}; +use ark_relations::gr1cs::{ConstraintSystemRef, LinearCombination, SynthesisError}; + +#[inline(always)] +fn linear_combination_4( + coeffs: [F; 4], + vars: [&FpVar; 4], +) -> Result, SynthesisError> { + let mut sum_constants = F::zero(); + let mut has_value = true; + let mut value = F::zero(); + let mut cs = ConstraintSystemRef::None; + let mut lc_terms = Vec::with_capacity(4); + + for (coeff, var) in coeffs.iter().zip(vars.iter()) { + match var { + FpVar::Constant(c) => { + sum_constants += *coeff * *c; + } + FpVar::Var(v) => { + cs = cs.or(v.cs.clone()); + lc_terms.push((*coeff, v.variable)); + if let Ok(v) = v.value() { + value += *coeff * v; + } else { + has_value = false; + } + } + } + } + + if lc_terms.is_empty() { + return Ok(FpVar::Constant(sum_constants)); + } + + let variable = cs + .new_lc(|| { + let mut lc = LinearCombination(lc_terms); + lc.compactify(); + lc + }) + .unwrap(); + let value = if has_value { Some(value) } else { None }; + + Ok(FpVar::Var(AllocatedFp::new(value, variable, cs)) + FpVar::Constant(sum_constants)) +} /// Multiply a 4-element vector x by: /// [ 2 3 1 1 ] @@ -9,17 +53,29 @@ use ark_relations::gr1cs::SynthesisError; /// [ 3 1 1 2 ]. #[inline(always)] fn apply_mat4(x: &mut [FpVar]) -> Result<(), SynthesisError> { - let t01 = x[0].clone() + &x[1]; - let t23 = x[2].clone() + &x[3]; - let t0123 = t01.clone() + &t23; - let t01123 = t0123.clone() + &x[1]; - let t01233 = t0123 + &x[3]; - - // The order here is important. Need to overwrite x[0] and x[2] after x[1] and x[3]. - x[3] = t01233.clone() + &x[0].double()?; // 3*x[0] + x[1] + x[2] + 2*x[3] - x[1] = t01123.clone() + &x[2].double()?; // x[0] + 2*x[1] + 3*x[2] + x[3] - x[0] = t01123 + &t01; // 2*x[0] + 3*x[1] + x[2] + x[3] - x[2] = t01233 + &t23; // x[0] + x[1] + 2*x[2] + 3*x[3] + let vars = [&x[0], &x[1], &x[2], &x[3]]; + + let y0 = linear_combination_4( + [F::from(2u64), F::from(3u64), F::ONE, F::ONE], + vars, + )?; + let y1 = linear_combination_4( + [F::ONE, F::from(2u64), F::from(3u64), F::ONE], + vars, + )?; + let y2 = linear_combination_4( + [F::ONE, F::ONE, F::from(2u64), F::from(3u64)], + vars, + )?; + let y3 = linear_combination_4( + [F::from(3u64), F::ONE, F::ONE, F::from(2u64)], + vars, + )?; + + x[0] = y0; + x[1] = y1; + x[2] = y2; + x[3] = y3; Ok(()) } @@ -38,15 +94,18 @@ pub fn mds_light_permutation( ) -> Result<(), SynthesisError> { match WIDTH { 2 => { - let sum = state[0].clone() + state[1].clone(); - state[0] += sum.clone(); + let mut sum = state[0].clone(); + sum += &state[1]; + state[0] += ∑ state[1] += sum; } 3 => { - let sum = state[0].clone() + state[1].clone() + state[2].clone(); - state[0] += sum.clone(); - state[1] += sum.clone(); + let mut sum = state[0].clone(); + sum += &state[1]; + sum += &state[2]; + state[0] += ∑ + state[1] += ∑ state[2] += sum; } @@ -60,15 +119,20 @@ pub fn mds_light_permutation( // Now, we apply the outer circulant matrix (to compute the y_i values). // We first precompute the four sums of every four elements. - let sums: [FpVar; 4] = - core::array::from_fn(|k| (0..WIDTH).step_by(4).map(|j| state[j + k].clone()).sum()); + let mut sums: [FpVar; 4] = core::array::from_fn(|_| FpVar::zero()); + for j in (0..WIDTH).step_by(4) { + sums[0] += &state[j]; + sums[1] += &state[j + 1]; + sums[2] += &state[j + 2]; + sums[3] += &state[j + 3]; + } // The formula for each y_i involves 2x_i' term and x_j' terms for each j that equals i mod 4. // In other words, we can add a single copy of x_i' to the appropriate one of our precomputed sums state .iter_mut() .enumerate() - .for_each(|(i, elem)| *elem += sums[i % 4].clone()); + .for_each(|(i, elem)| *elem += &sums[i % 4]); } _ => { From 6ea0cd05e1c92127ff8c9de7b97eea9bf411fee0 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Fri, 16 Jan 2026 02:41:02 -0300 Subject: [PATCH 074/152] add WitEffectOutput type for thunks in interleaving tracer Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream-runtime/src/lib.rs | 81 ++++++------ starstream_ivc_proto/src/circuit_test.rs | 60 ++++----- starstream_ivc_proto/src/lib.rs | 30 +++-- starstream_mock_ledger/src/lib.rs | 4 +- starstream_mock_ledger/src/mocked_verifier.rs | 38 +++--- starstream_mock_ledger/src/tests.rs | 116 +++++++++--------- .../src/transaction_effects/witness.rs | 69 +++++++++-- 7 files changed, 230 insertions(+), 168 deletions(-) diff --git a/starstream-runtime/src/lib.rs b/starstream-runtime/src/lib.rs index 658dc877..ea4fcb72 100644 --- a/starstream-runtime/src/lib.rs +++ b/starstream-runtime/src/lib.rs @@ -1,8 +1,8 @@ use sha2::{Digest, Sha256}; use starstream_mock_ledger::{ - CoroutineState, Hash, InterfaceId, InterleavingInstance, MockedLookupTableCommitment, - NewOutput, OutputRef, ProcessId, ProvenTransaction, Ref, UtxoId, Value, WasmModule, - WitLedgerEffect, builder::TransactionBuilder, InterleavingWitness, + CoroutineState, Hash, InterfaceId, InterleavingInstance, InterleavingWitness, + MockedLookupTableCommitment, NewOutput, OutputRef, ProcessId, ProvenTransaction, Ref, UtxoId, + Value, WasmModule, WitEffectOutput, WitLedgerEffect, builder::TransactionBuilder, }; use std::collections::{HashMap, HashSet}; use wasmi::{ @@ -158,7 +158,7 @@ impl Runtime { Resume => { let target = ProcessId(arg1 as usize); let val = Ref(arg2); - let ret = Ref(0); // Placeholder, updated on resume + let ret = WitEffectOutput::Thunk; let id_prev = caller.data().prev_id; // Update state @@ -171,15 +171,19 @@ impl Runtime { target, val, ret, - id_prev, + id_prev: WitEffectOutput::Resolved(id_prev), }) } Yield => { let val = Ref(arg1); - let ret = None; // Placeholder, updated on resume + let ret = WitEffectOutput::Thunk; let id_prev = caller.data().prev_id; - Some(WitLedgerEffect::Yield { val, ret, id_prev }) + Some(WitLedgerEffect::Yield { + val, + ret, + id_prev: WitEffectOutput::Resolved(id_prev), + }) } NewUtxo => { let h = Hash( @@ -218,7 +222,7 @@ impl Runtime { Some(WitLedgerEffect::NewUtxo { program_hash: h, val, - id, + id: WitEffectOutput::Resolved(id), }) } NewCoord => { @@ -258,7 +262,7 @@ impl Runtime { Some(WitLedgerEffect::NewCoord { program_hash: h, val, - id, + id: WitEffectOutput::Resolved(id), }) } InstallHandler => { @@ -306,7 +310,7 @@ impl Runtime { Some(WitLedgerEffect::GetHandlerFor { interface_id, - handler_id: *handler_id, + handler_id: WitEffectOutput::Resolved(*handler_id), }) } Activation => { @@ -317,7 +321,7 @@ impl Runtime { .ok_or(wasmi::Error::new("no pending activation"))?; Some(WitLedgerEffect::Activation { val: *val, - caller: *caller_id, + caller: WitEffectOutput::Resolved(*caller_id), }) } Init => { @@ -328,7 +332,7 @@ impl Runtime { .ok_or(wasmi::Error::new("no pending init"))?; Some(WitLedgerEffect::Init { val: *val, - caller: *caller_id, + caller: WitEffectOutput::Resolved(*caller_id), }) } NewRef => { @@ -345,7 +349,10 @@ impl Runtime { .ref_state .insert(current_pid, (ref_id, 0, size)); - Some(WitLedgerEffect::NewRef { size, ret: ref_id }) + Some(WitLedgerEffect::NewRef { + size, + ret: WitEffectOutput::Resolved(ref_id), + }) } RefPush => { let val = Value(arg1); @@ -390,7 +397,7 @@ impl Runtime { Some(WitLedgerEffect::Get { reff: ref_id, offset, - ret: val, + ret: WitEffectOutput::Resolved(val), }) } Bind => { @@ -410,7 +417,9 @@ impl Runtime { Burn => { caller.data_mut().must_burn.insert(current_pid); - Some(WitLedgerEffect::Burn { ret: Ref(arg1) }) + Some(WitLedgerEffect::Burn { + ret: WitEffectOutput::Resolved(Ref(arg1)), + }) } ProgramHash => { unreachable!(); @@ -450,7 +459,7 @@ impl Runtime { let effect = WitLedgerEffect::ProgramHash { target, - program_hash, + program_hash: WitEffectOutput::Resolved(program_hash), }; caller @@ -504,10 +513,7 @@ impl UnprovenTransaction { None } else { let last_yield = self.get_last_yield(i, &state)?; - Some(CoroutineState { - pc: 0, - last_yield, - }) + Some(CoroutineState { pc: 0, last_yield }) }; builder = builder.with_input(utxo_id, continuation, trace); @@ -521,10 +527,7 @@ impl UnprovenTransaction { builder = builder.with_fresh_output( NewOutput { - state: CoroutineState { - pc: 0, - last_yield, - }, + state: CoroutineState { pc: 0, last_yield }, contract_hash, }, trace, @@ -541,7 +544,8 @@ impl UnprovenTransaction { // Ownership for (token, owner_opt) in state.ownership { if let Some(owner) = owner_opt { - builder = builder.with_ownership(OutputRef::from(token.0), OutputRef::from(owner.0)); + builder = + builder.with_ownership(OutputRef::from(token.0), OutputRef::from(owner.0)); } } @@ -580,7 +584,9 @@ impl UnprovenTransaction { self.execute().unwrap().0 } - pub fn execute(&self) -> Result<(InterleavingInstance, RuntimeState, InterleavingWitness), Error> { + pub fn execute( + &self, + ) -> Result<(InterleavingInstance, RuntimeState, InterleavingWitness), Error> { let mut runtime = Runtime::new(); let mut instances = Vec::new(); @@ -665,10 +671,10 @@ impl UnprovenTransaction { if let Some(last) = trace.last_mut() { match last { WitLedgerEffect::Resume { ret, .. } => { - *ret = Ref(next_args[0]); + *ret = WitEffectOutput::Resolved(Ref(next_args[0])); } WitLedgerEffect::Yield { ret, .. } => { - *ret = Some(Ref(next_args[0])); + *ret = WitEffectOutput::Resolved(Ref(next_args[0])); } _ => {} } @@ -686,8 +692,7 @@ impl UnprovenTransaction { } else { let instance = instances[current_pid.0]; // Start with _start, 0 args, 0 results - let func = instance - .get_typed_func::<(), ()>(&runtime.store, "_start")?; + let func = instance.get_typed_func::<(), ()>(&runtime.store, "_start")?; func.call_resumable(&mut runtime.store, ()).unwrap() }; @@ -740,28 +745,28 @@ impl UnprovenTransaction { current_pid = caller; } WitLedgerEffect::NewUtxo { id, .. } => { - next_args = [id.0 as u64, 0, 0, 0]; + next_args = [id.unwrap().0 as u64, 0, 0, 0]; } WitLedgerEffect::NewCoord { id, .. } => { - next_args = [id.0 as u64, 0, 0, 0]; + next_args = [id.unwrap().0 as u64, 0, 0, 0]; } WitLedgerEffect::GetHandlerFor { handler_id, .. } => { - next_args = [handler_id.0 as u64, 0, 0, 0]; + next_args = [handler_id.unwrap().0 as u64, 0, 0, 0]; } WitLedgerEffect::Activation { val, caller } => { - next_args = [val.0, caller.0 as u64, 0, 0]; + next_args = [val.0, caller.unwrap().0 as u64, 0, 0]; } WitLedgerEffect::Init { val, caller } => { - next_args = [val.0, caller.0 as u64, 0, 0]; + next_args = [val.0, caller.unwrap().0 as u64, 0, 0]; } WitLedgerEffect::NewRef { ret, .. } => { - next_args = [ret.0, 0, 0, 0]; + next_args = [ret.unwrap().0, 0, 0, 0]; } WitLedgerEffect::Get { ret, .. } => { - next_args = [ret.0, 0, 0, 0]; + next_args = [ret.unwrap().0, 0, 0, 0]; } WitLedgerEffect::ProgramHash { program_hash, .. } => { - let limbs = program_hash.0; + let limbs = program_hash.unwrap().0; next_args = [ u64::from_le_bytes(limbs[0..8].try_into().unwrap()), u64::from_le_bytes(limbs[8..16].try_into().unwrap()), diff --git a/starstream_ivc_proto/src/circuit_test.rs b/starstream_ivc_proto/src/circuit_test.rs index 5dfabf2b..50ac51eb 100644 --- a/starstream_ivc_proto/src/circuit_test.rs +++ b/starstream_ivc_proto/src/circuit_test.rs @@ -1,7 +1,7 @@ use crate::{logging::setup_logger, prove}; use starstream_mock_ledger::{ Hash, InterleavingInstance, InterleavingWitness, MockedLookupTableCommitment, ProcessId, Ref, - Value, WitLedgerEffect, + Value, WitEffectOutput, WitLedgerEffect, }; pub fn h(n: u8) -> Hash { @@ -41,81 +41,81 @@ fn test_circuit_many_steps() { let utxo_trace = vec![ WitLedgerEffect::Init { val: ref_4, - caller: p2, + caller: p2.into(), }, WitLedgerEffect::Get { reff: ref_4, offset: 0, - ret: val_4.clone(), + ret: val_4.clone().into(), }, WitLedgerEffect::Activation { val: ref_0, - caller: p2, + caller: p2.into(), }, WitLedgerEffect::GetHandlerFor { interface_id: h(100), - handler_id: p2, + handler_id: p2.into(), }, WitLedgerEffect::Yield { - val: ref_1.clone(), // Yielding nothing - ret: None, // Not expecting to be resumed again - id_prev: Some(p2), + val: ref_1.clone(), // Yielding nothing + ret: WitEffectOutput::Thunk, // Not expecting to be resumed again + id_prev: Some(p2).into(), }, ]; let token_trace = vec![ WitLedgerEffect::Init { val: ref_1, - caller: p2, + caller: p2.into(), }, WitLedgerEffect::Get { reff: ref_1, offset: 0, - ret: val_1.clone(), + ret: val_1.clone().into(), }, WitLedgerEffect::Activation { val: ref_0, - caller: p2, + caller: p2.into(), }, WitLedgerEffect::Bind { owner_id: p0 }, WitLedgerEffect::Yield { - val: ref_1.clone(), // Yielding nothing - ret: None, // Not expecting to be resumed again - id_prev: Some(p2), + val: ref_1.clone(), // Yielding nothing + ret: WitEffectOutput::Thunk, // Not expecting to be resumed again + id_prev: Some(p2).into(), }, ]; let coord_trace = vec![ WitLedgerEffect::NewRef { size: 1, - ret: ref_0, + ret: ref_0.into(), }, WitLedgerEffect::RefPush { val: val_0 }, WitLedgerEffect::NewRef { size: 1, - ret: ref_1, + ret: ref_1.into(), }, WitLedgerEffect::RefPush { val: val_1.clone() }, WitLedgerEffect::NewRef { size: 1, - ret: ref_4, + ret: ref_4.into(), }, WitLedgerEffect::RefPush { val: val_4.clone() }, WitLedgerEffect::NewUtxo { program_hash: h(0), val: ref_4, - id: p0, + id: p0.into(), }, WitLedgerEffect::NewUtxo { program_hash: h(1), val: ref_1, - id: p1, + id: p1.into(), }, WitLedgerEffect::Resume { target: p1, val: ref_0.clone(), - ret: ref_1.clone(), - id_prev: None, + ret: ref_1.clone().into(), + id_prev: None.into(), }, WitLedgerEffect::InstallHandler { interface_id: h(100), @@ -123,8 +123,8 @@ fn test_circuit_many_steps() { WitLedgerEffect::Resume { target: p0, val: ref_0, - ret: ref_1, - id_prev: Some(p1), + ret: ref_1.into(), + id_prev: Some(p1).into(), }, WitLedgerEffect::UninstallHandler { interface_id: h(100), @@ -171,27 +171,27 @@ fn test_circuit_small() { let ref_0 = Ref(0); let utxo_trace = vec![WitLedgerEffect::Yield { - val: ref_0.clone(), // Yielding nothing - ret: None, // Not expecting to be resumed again - id_prev: Some(p1), + val: ref_0.clone(), // Yielding nothing + ret: WitEffectOutput::Thunk, // Not expecting to be resumed again + id_prev: Some(p1).into(), // This should be None actually? }]; let coord_trace = vec![ WitLedgerEffect::NewRef { size: 1, - ret: ref_0, + ret: ref_0.into(), }, WitLedgerEffect::RefPush { val: val_0 }, WitLedgerEffect::NewUtxo { program_hash: h(0), val: ref_0, - id: p0, + id: p0.into(), }, WitLedgerEffect::Resume { target: p0, val: ref_0.clone(), - ret: ref_0.clone(), - id_prev: None, + ret: ref_0.clone().into(), + id_prev: None.into(), }, ]; diff --git a/starstream_ivc_proto/src/lib.rs b/starstream_ivc_proto/src/lib.rs index f12f1ebf..89a0ea7a 100644 --- a/starstream_ivc_proto/src/lib.rs +++ b/starstream_ivc_proto/src/lib.rs @@ -278,8 +278,10 @@ fn make_interleaved_trace( // TODO: figure out how to manage these // maybe for now just assume that these are short/fixed size val: F::from(val.0), - ret: F::from(ret.0), - id_prev: OptionalF::from_option(op_id_prev.map(|p| (p.0 as u64).into())), + ret: F::from(ret.unwrap().0), + id_prev: OptionalF::from_option( + op_id_prev.unwrap().map(|p| (p.0 as u64).into()), + ), } } starstream_mock_ledger::WitLedgerEffect::Yield { @@ -294,8 +296,10 @@ fn make_interleaved_trace( LedgerOperation::Yield { val: F::from(val.0), - ret: ret.map(|ret| F::from(ret.0)), - id_prev: OptionalF::from_option(op_id_prev.map(|p| (p.0 as u64).into())), + ret: ret.to_option().map(|ret| F::from(ret.0)), + id_prev: OptionalF::from_option( + op_id_prev.unwrap().map(|p| (p.0 as u64).into()), + ), } } starstream_mock_ledger::WitLedgerEffect::Burn { ret } => { @@ -305,7 +309,7 @@ fn make_interleaved_trace( id_prev = Some(old_id_curr); LedgerOperation::Burn { - ret: F::from(ret.0), + ret: F::from(ret.unwrap().0), } } starstream_mock_ledger::WitLedgerEffect::NewUtxo { @@ -315,7 +319,7 @@ fn make_interleaved_trace( } => LedgerOperation::NewUtxo { program_hash: F::from(program_hash.0[0] as u64), val: F::from(val.0), - target: (id.0 as u64).into(), + target: (id.unwrap().0 as u64).into(), }, starstream_mock_ledger::WitLedgerEffect::NewCoord { program_hash, @@ -324,18 +328,18 @@ fn make_interleaved_trace( } => LedgerOperation::NewCoord { program_hash: F::from(program_hash.0[0] as u64), val: F::from(val.0), - target: (id.0 as u64).into(), + target: (id.unwrap().0 as u64).into(), }, starstream_mock_ledger::WitLedgerEffect::Activation { val, caller } => { LedgerOperation::Activation { val: F::from(val.0), - caller: (caller.0 as u64).into(), + caller: (caller.unwrap().0 as u64).into(), } } starstream_mock_ledger::WitLedgerEffect::Init { val, caller } => { LedgerOperation::Init { val: F::from(val.0), - caller: (caller.0 as u64).into(), + caller: (caller.unwrap().0 as u64).into(), } } starstream_mock_ledger::WitLedgerEffect::Bind { owner_id } => LedgerOperation::Bind { @@ -349,7 +353,7 @@ fn make_interleaved_trace( starstream_mock_ledger::WitLedgerEffect::NewRef { size, ret } => { LedgerOperation::NewRef { size: F::from(size as u64), - ret: F::from(ret.0), + ret: F::from(ret.unwrap().0), } } starstream_mock_ledger::WitLedgerEffect::RefPush { val } => LedgerOperation::RefPush { @@ -359,7 +363,7 @@ fn make_interleaved_trace( LedgerOperation::Get { reff: F::from(reff.0), offset: F::from(offset as u64), - ret: value_to_field(ret), + ret: value_to_field(ret.unwrap()), } } starstream_mock_ledger::WitLedgerEffect::ProgramHash { @@ -367,7 +371,7 @@ fn make_interleaved_trace( program_hash, } => LedgerOperation::ProgramHash { target: (target.0 as u64).into(), - program_hash: F::from(program_hash.0[0]), + program_hash: F::from(program_hash.unwrap().0[0]), }, starstream_mock_ledger::WitLedgerEffect::InstallHandler { interface_id } => { LedgerOperation::InstallHandler { @@ -384,7 +388,7 @@ fn make_interleaved_trace( handler_id, } => LedgerOperation::GetHandlerFor { interface_id: F::from(interface_id.0[0]), - handler_id: (handler_id.0 as u64).into(), + handler_id: (handler_id.unwrap().0 as u64).into(), }, }; diff --git a/starstream_mock_ledger/src/lib.rs b/starstream_mock_ledger/src/lib.rs index a7d0b3bb..2dd2b74e 100644 --- a/starstream_mock_ledger/src/lib.rs +++ b/starstream_mock_ledger/src/lib.rs @@ -14,7 +14,9 @@ use neo_ajtai::Commitment; use p3_field::PrimeCharacteristicRing; use std::{hash::Hasher, marker::PhantomData}; pub use transaction_effects::{ - InterfaceId, instance::InterleavingInstance, witness::WitLedgerEffect, + InterfaceId, + instance::InterleavingInstance, + witness::{WitEffectOutput, WitLedgerEffect}, }; #[derive(PartialEq, Eq)] diff --git a/starstream_mock_ledger/src/mocked_verifier.rs b/starstream_mock_ledger/src/mocked_verifier.rs index a4deccf6..ac40aded 100644 --- a/starstream_mock_ledger/src/mocked_verifier.rs +++ b/starstream_mock_ledger/src/mocked_verifier.rs @@ -9,7 +9,7 @@ //! It's mainly a direct translation of the algorithm in the README use crate::{ - Hash, InterleavingInstance, Ref, Value, WasmModule, + Hash, InterleavingInstance, Ref, Value, WasmModule, WitEffectOutput, transaction_effects::{InterfaceId, ProcessId, witness::WitLedgerEffect}, }; use std::collections::HashMap; @@ -464,9 +464,9 @@ pub fn state_transition( state.activation[target.0] = Some((val, id_curr)); - state.expected_input[id_curr.0] = ret; + state.expected_input[id_curr.0] = ret.unwrap(); - if id_prev != state.id_prev { + if id_prev.unwrap() != state.id_prev { return Err(InterleavingError::HostCallMismatch { pid: id_curr, counter: c, @@ -474,7 +474,7 @@ pub fn state_transition( target, val, ret, - id_prev: state.id_prev, + id_prev: WitEffectOutput::Resolved(state.id_prev), }, got: WitLedgerEffect::Resume { target, @@ -493,14 +493,14 @@ pub fn state_transition( } WitLedgerEffect::Yield { val, ret, id_prev } => { - if id_prev != state.id_prev { + if id_prev.unwrap() != state.id_prev { return Err(InterleavingError::HostCallMismatch { pid: id_curr, counter: c, expected: WitLedgerEffect::Yield { val, ret, - id_prev: state.id_prev, + id_prev: WitEffectOutput::Resolved(state.id_prev), }, got: WitLedgerEffect::Yield { val, ret, id_prev }, }); @@ -515,7 +515,7 @@ pub fn state_transition( .get(&val) .ok_or(InterleavingError::RefNotFound(val))?; - match ret { + match ret.to_option() { Some(retv) => { state.expected_input[id_curr.0] = retv; @@ -556,11 +556,11 @@ pub fn state_transition( } => { // check lookup against process_table let expected = rom.process_table[target.0].clone(); - if expected != program_hash { + if expected != program_hash.unwrap() { return Err(InterleavingError::ProgramHashMismatch { target, expected, - got: program_hash, + got: program_hash.unwrap(), }); } } @@ -570,6 +570,7 @@ pub fn state_transition( val, id, } => { + let id = id.unwrap(); if rom.is_utxo[id_curr.0] { return Err(InterleavingError::CoordOnly(id_curr)); } @@ -602,6 +603,7 @@ pub fn state_transition( val, id, } => { + let id = id.unwrap(); if rom.is_utxo[id_curr.0] { return Err(InterleavingError::CoordOnly(id_curr)); } @@ -662,11 +664,11 @@ pub fn state_transition( } => { let stack = state.handler_stack.entry(interface_id.clone()).or_default(); let expected = stack.last().copied(); - if expected != Some(handler_id) { + if expected != Some(handler_id.unwrap()) { return Err(InterleavingError::HandlerGetMismatch { interface_id, expected, - got: handler_id, + got: handler_id.unwrap(), }); } } @@ -680,7 +682,7 @@ pub fn state_transition( )); }; - if v != &val || c != &caller { + if v != &val || c != &caller.unwrap() { return Err(InterleavingError::Shape("Activation result mismatch")); } } @@ -692,7 +694,7 @@ pub fn state_transition( return Err(InterleavingError::Shape("Init called with no arg set")); }; - if v != val || c != caller { + if v != val || c != caller.unwrap() { return Err(InterleavingError::Shape("Init result mismatch")); } } @@ -703,8 +705,11 @@ pub fn state_transition( } let new_ref = Ref(state.ref_counter); state.ref_counter += size as u64; - if new_ref != ret { - return Err(InterleavingError::RefInitializationMismatch(ret, new_ref)); + if new_ref != ret.unwrap() { + return Err(InterleavingError::RefInitializationMismatch( + ret.unwrap(), + new_ref, + )); } state.ref_store.insert(new_ref, Vec::new()); state.ref_building.insert(id_curr, (new_ref, 0, size)); @@ -742,12 +747,13 @@ pub fn state_transition( offset, vec.len(), ))?; - if val != &ret { + if val != &ret.unwrap() { return Err(InterleavingError::Shape("Get result mismatch")); } } WitLedgerEffect::Burn { ret } => { + let ret = ret.unwrap(); if !rom.is_utxo[id_curr.0] { return Err(InterleavingError::UtxoOnly(id_curr)); } diff --git a/starstream_mock_ledger/src/tests.rs b/starstream_mock_ledger/src/tests.rs index f0fe8b79..a27dcc53 100644 --- a/starstream_mock_ledger/src/tests.rs +++ b/starstream_mock_ledger/src/tests.rs @@ -137,89 +137,91 @@ fn test_transaction_with_coord_and_utxos() { let input_1_trace = vec![ WitLedgerEffect::Activation { val: spend_input_1_ref, - caller: ProcessId(4), + caller: ProcessId(4).into(), }, WitLedgerEffect::Yield { val: continued_1_ref, - ret: None, - id_prev: Some(ProcessId(4)), + ret: None.into(), + id_prev: Some(ProcessId(4)).into(), }, ]; let input_2_trace = vec![ WitLedgerEffect::Activation { val: spend_input_2_ref, - caller: ProcessId(4), + caller: ProcessId(4).into(), + }, + WitLedgerEffect::Burn { + ret: burned_2_ref.into(), }, - WitLedgerEffect::Burn { ret: burned_2_ref }, ]; let utxo_a_trace = vec![ WitLedgerEffect::Init { val: init_a_ref, - caller: ProcessId(4), + caller: ProcessId(4).into(), }, WitLedgerEffect::Activation { val: init_a_ref, - caller: ProcessId(4), + caller: ProcessId(4).into(), }, WitLedgerEffect::Bind { owner_id: ProcessId(3), }, WitLedgerEffect::Yield { val: done_a_ref, - ret: None, - id_prev: Some(ProcessId(4)), + ret: None.into(), + id_prev: Some(ProcessId(4)).into(), }, ]; let utxo_b_trace = vec![ WitLedgerEffect::Init { val: init_b_ref, - caller: ProcessId(4), + caller: ProcessId(4).into(), }, WitLedgerEffect::Activation { val: init_b_ref, - caller: ProcessId(4), + caller: ProcessId(4).into(), }, WitLedgerEffect::Yield { val: done_b_ref, - ret: None, - id_prev: Some(ProcessId(4)), + ret: None.into(), + id_prev: Some(ProcessId(4)).into(), }, ]; let coord_trace = vec![ WitLedgerEffect::NewRef { size: 1, - ret: init_a_ref, + ret: init_a_ref.into(), }, WitLedgerEffect::RefPush { val: v(b"init_a") }, WitLedgerEffect::NewUtxo { program_hash: utxo_hash_a.clone(), val: init_a_ref, - id: ProcessId(2), + id: ProcessId(2).into(), }, WitLedgerEffect::NewRef { size: 1, - ret: init_b_ref, + ret: init_b_ref.into(), }, WitLedgerEffect::RefPush { val: v(b"init_b") }, WitLedgerEffect::NewUtxo { program_hash: utxo_hash_b.clone(), val: init_b_ref, - id: ProcessId(3), + id: ProcessId(3).into(), }, WitLedgerEffect::NewRef { size: 1, - ret: spend_input_1_ref, + ret: spend_input_1_ref.into(), }, WitLedgerEffect::RefPush { val: v(b"spend_input_1"), }, WitLedgerEffect::NewRef { size: 1, - ret: continued_1_ref, + ret: continued_1_ref.into(), }, WitLedgerEffect::RefPush { val: v(b"continued_1"), @@ -227,19 +229,19 @@ fn test_transaction_with_coord_and_utxos() { WitLedgerEffect::Resume { target: ProcessId(0), val: spend_input_1_ref, - ret: continued_1_ref, - id_prev: None, + ret: continued_1_ref.into(), + id_prev: WitEffectOutput::Resolved(None), }, WitLedgerEffect::NewRef { size: 1, - ret: spend_input_2_ref, + ret: spend_input_2_ref.into(), }, WitLedgerEffect::RefPush { val: v(b"spend_input_2"), }, WitLedgerEffect::NewRef { size: 1, - ret: burned_2_ref, + ret: burned_2_ref.into(), }, WitLedgerEffect::RefPush { val: v(b"burned_2"), @@ -247,30 +249,30 @@ fn test_transaction_with_coord_and_utxos() { WitLedgerEffect::Resume { target: ProcessId(1), val: spend_input_2_ref, - ret: burned_2_ref, - id_prev: Some(ProcessId(0)), + ret: burned_2_ref.into(), + id_prev: Some(ProcessId(0)).into(), }, WitLedgerEffect::NewRef { size: 1, - ret: done_a_ref, + ret: done_a_ref.into(), }, WitLedgerEffect::RefPush { val: v(b"done_a") }, WitLedgerEffect::Resume { target: ProcessId(2), val: init_a_ref, - ret: done_a_ref, - id_prev: Some(ProcessId(1)), + ret: done_a_ref.into(), + id_prev: Some(ProcessId(1)).into(), }, WitLedgerEffect::NewRef { size: 1, - ret: done_b_ref, + ret: done_b_ref.into(), }, WitLedgerEffect::RefPush { val: v(b"done_b") }, WitLedgerEffect::Resume { target: ProcessId(3), val: init_b_ref, - ret: done_b_ref, - id_prev: Some(ProcessId(2)), + ret: done_b_ref.into(), + id_prev: Some(ProcessId(2)).into(), }, ]; @@ -326,19 +328,19 @@ fn test_effect_handlers() { let utxo_trace = vec![ WitLedgerEffect::Activation { val: ref_gen.get("init_utxo"), - caller: ProcessId(1), + caller: ProcessId(1).into(), }, WitLedgerEffect::ProgramHash { target: ProcessId(1), - program_hash: coord_hash.clone(), + program_hash: coord_hash.clone().into(), }, WitLedgerEffect::GetHandlerFor { interface_id: interface_id.clone(), - handler_id: ProcessId(1), + handler_id: ProcessId(1).into(), }, WitLedgerEffect::NewRef { size: 1, - ret: ref_gen.get("effect_request"), + ret: ref_gen.get("effect_request").into(), }, WitLedgerEffect::RefPush { val: v(b"Interface::Effect(42)"), @@ -346,13 +348,13 @@ fn test_effect_handlers() { WitLedgerEffect::Resume { target: ProcessId(1), val: ref_gen.get("effect_request"), - ret: ref_gen.get("effect_request_response"), - id_prev: Some(ProcessId(1)), + ret: ref_gen.get("effect_request_response").into(), + id_prev: Some(ProcessId(1)).into(), }, WitLedgerEffect::Yield { val: ref_gen.get("utxo_final"), - ret: None, - id_prev: Some(ProcessId(1)), + ret: None.into(), + id_prev: Some(ProcessId(1)).into(), }, ]; @@ -362,7 +364,7 @@ fn test_effect_handlers() { }, WitLedgerEffect::NewRef { size: 1, - ret: ref_gen.get("init_utxo"), + ret: ref_gen.get("init_utxo").into(), }, WitLedgerEffect::RefPush { val: v(b"init_utxo"), @@ -370,24 +372,24 @@ fn test_effect_handlers() { WitLedgerEffect::NewUtxo { program_hash: h(2), val: ref_gen.get("init_utxo"), - id: ProcessId(0), + id: ProcessId(0).into(), }, WitLedgerEffect::Resume { target: ProcessId(0), val: ref_gen.get("init_utxo"), - ret: ref_gen.get("effect_request"), - id_prev: None, + ret: ref_gen.get("effect_request").into(), + id_prev: WitEffectOutput::Resolved(None), }, WitLedgerEffect::NewRef { size: 1, - ret: ref_gen.get("effect_request_response"), + ret: ref_gen.get("effect_request_response").into(), }, WitLedgerEffect::RefPush { val: v(b"Interface::EffectResponse(43)"), }, WitLedgerEffect::NewRef { size: 1, - ret: ref_gen.get("utxo_final"), + ret: ref_gen.get("utxo_final").into(), }, WitLedgerEffect::RefPush { val: v(b"utxo_final"), @@ -395,8 +397,8 @@ fn test_effect_handlers() { WitLedgerEffect::Resume { target: ProcessId(0), val: ref_gen.get("effect_request_response"), - ret: ref_gen.get("utxo_final"), - id_prev: Some(ProcessId(0)), + ret: ref_gen.get("utxo_final").into(), + id_prev: Some(ProcessId(0)).into(), }, WitLedgerEffect::UninstallHandler { interface_id }, ]; @@ -442,10 +444,10 @@ fn test_burn_with_continuation_fails() { vec![ WitLedgerEffect::NewRef { size: 1, - ret: Ref(0), + ret: Ref(0).into(), }, WitLedgerEffect::RefPush { val: v(b"burned") }, - WitLedgerEffect::Burn { ret: Ref(0) }, + WitLedgerEffect::Burn { ret: Ref(0).into() }, ], ) .with_entrypoint(0) @@ -469,14 +471,14 @@ fn test_utxo_resumes_utxo_fails() { vec![ WitLedgerEffect::NewRef { size: 1, - ret: Ref(0), + ret: Ref(0).into(), }, WitLedgerEffect::RefPush { val: v(b"") }, WitLedgerEffect::Resume { target: ProcessId(1), val: Ref(0), - ret: Ref(0), - id_prev: None, + ret: Ref(0).into(), + id_prev: WitEffectOutput::Resolved(None), }, ], ) @@ -587,10 +589,10 @@ fn test_duplicate_input_utxo_fails() { vec![ WitLedgerEffect::NewRef { size: 1, - ret: Ref(1), + ret: Ref(1).into(), }, WitLedgerEffect::RefPush { val: Value::nil() }, - WitLedgerEffect::Burn { ret: Ref(0) }, + WitLedgerEffect::Burn { ret: Ref(0).into() }, ], ) .with_coord_script( @@ -598,14 +600,14 @@ fn test_duplicate_input_utxo_fails() { vec![ WitLedgerEffect::NewRef { size: 1, - ret: Ref(0), + ret: Ref(0).into(), }, WitLedgerEffect::RefPush { val: Value::nil() }, WitLedgerEffect::Resume { target: 0.into(), val: Ref(0), - ret: Ref(0), - id_prev: None, + ret: Ref(0).into(), + id_prev: WitEffectOutput::Resolved(None), }, ], ) diff --git a/starstream_mock_ledger/src/transaction_effects/witness.rs b/starstream_mock_ledger/src/transaction_effects/witness.rs index 91e37a48..1b57ba92 100644 --- a/starstream_mock_ledger/src/transaction_effects/witness.rs +++ b/starstream_mock_ledger/src/transaction_effects/witness.rs @@ -3,6 +3,14 @@ use crate::{ transaction_effects::{InterfaceId, ProcessId}, }; +// Both used to indicate which fields are outputs, and to have a placeholder +// value for the runtime executor (trace generator) +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] +pub enum WitEffectOutput { + Resolved(T), + Thunk, +} + /// One entry in the per-process trace. // // Note that since these are witnesses, they include the inputs and the outputs @@ -14,28 +22,28 @@ pub enum WitLedgerEffect { target: ProcessId, val: Ref, // out - ret: Ref, - id_prev: Option, + ret: WitEffectOutput, + id_prev: WitEffectOutput>, }, Yield { // in val: Ref, // out - ret: Option, - id_prev: Option, + ret: WitEffectOutput, + id_prev: WitEffectOutput>, }, ProgramHash { // in target: ProcessId, // out - program_hash: Hash, + program_hash: WitEffectOutput>, }, NewUtxo { // in program_hash: Hash, val: Ref, // out - id: ProcessId, + id: WitEffectOutput, }, NewCoord { // int @@ -43,7 +51,7 @@ pub enum WitLedgerEffect { val: Ref, // out - id: ProcessId, + id: WitEffectOutput, }, // Scoped handlers for custom effects // @@ -63,34 +71,34 @@ pub enum WitLedgerEffect { // in interface_id: InterfaceId, // out - handler_id: ProcessId, + handler_id: WitEffectOutput, }, // UTXO-only Burn { // out - ret: Ref, + ret: WitEffectOutput, }, Activation { // in val: Ref, // out - caller: ProcessId, + caller: WitEffectOutput, }, Init { // in val: Ref, // out - caller: ProcessId, + caller: WitEffectOutput, }, NewRef { // in size: usize, // out - ret: Ref, + ret: WitEffectOutput, }, RefPush { // in @@ -104,7 +112,7 @@ pub enum WitLedgerEffect { offset: usize, // out - ret: Value, + ret: WitEffectOutput, }, // Tokens @@ -117,3 +125,38 @@ pub enum WitLedgerEffect { // does not return anything }, } + +impl WitEffectOutput { + pub fn unwrap(self) -> T { + match self { + WitEffectOutput::Resolved(v) => v, + WitEffectOutput::Thunk => panic!("Called unwrap on a Thunk"), + } + } + + pub fn is_resolved(&self) -> bool { + matches!(self, WitEffectOutput::Resolved(_)) + } + + pub fn to_option(self) -> Option { + match self { + WitEffectOutput::Resolved(t) => Some(t), + WitEffectOutput::Thunk => None, + } + } +} + +impl From for WitEffectOutput { + fn from(value: T) -> WitEffectOutput { + WitEffectOutput::Resolved(value) + } +} + +impl From> for WitEffectOutput { + fn from(value: Option) -> WitEffectOutput { + match value { + Some(t) => WitEffectOutput::Resolved(t), + None => WitEffectOutput::Thunk, + } + } +} From 7a6df5d0b9b2c40ce199adfa2f5708f00062dda1 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Fri, 16 Jan 2026 15:01:06 -0300 Subject: [PATCH 075/152] include the opcode id in the ledger trace commitment Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- ark-poseidon2/Cargo.toml | 2 + ark-poseidon2/src/constants.rs | 21 ++- ark-poseidon2/src/gadget.rs | 57 +++++++- ark-poseidon2/src/lib.rs | 137 ++++++++++++++++-- ark-poseidon2/src/linear_layers.rs | 15 +- starstream-runtime/src/lib.rs | 88 +++-------- starstream-runtime/tests/integration.rs | 30 ++-- starstream_ivc_proto/src/circuit.rs | 136 +++++++++++++++-- starstream_ivc_proto/src/circuit_test.rs | 4 +- starstream_ivc_proto/src/memory/nebula/ic.rs | 8 +- starstream_ivc_proto/src/neo.rs | 3 +- starstream_mock_ledger/src/lib.rs | 2 +- .../src/transaction_effects/instance.rs | 8 +- .../src/transaction_effects/witness.rs | 45 ++++++ 14 files changed, 428 insertions(+), 128 deletions(-) diff --git a/ark-poseidon2/Cargo.toml b/ark-poseidon2/Cargo.toml index 42ce92b0..3569243a 100644 --- a/ark-poseidon2/Cargo.toml +++ b/ark-poseidon2/Cargo.toml @@ -14,6 +14,8 @@ ark-r1cs-std = { version = "0.5.0", default-features = false } ark-bn254 = { version = "0.5.0", features = ["scalar_field"] } ark-poly = "0.5.0" ark-poly-commit = "0.5.0" +rand = "0.8.5" +rand_chacha = "0.3.1" ark-goldilocks = { path = "../ark-goldilocks" } diff --git a/ark-poseidon2/src/constants.rs b/ark-poseidon2/src/constants.rs index 9afb20e1..2bcdbe6b 100644 --- a/ark-poseidon2/src/constants.rs +++ b/ark-poseidon2/src/constants.rs @@ -1,5 +1,7 @@ use crate::F; -use ark_ff::PrimeField; +use ark_ff::{PrimeField, UniformRand}; +use rand::SeedableRng; +use rand_chacha::ChaCha20Rng; /// Degree of the chosen permutation polynomial for Goldilocks, used as the Poseidon2 S-Box. /// @@ -152,6 +154,23 @@ impl RoundConstants { } } +impl RoundConstants { + pub fn new_goldilocks_12_constants() -> Self { + // TODO: hardcoded seed + let mut rng = ChaCha20Rng::seed_from_u64(77); + + Self { + beginning_full_round_constants: std::array::from_fn(|_| { + std::array::from_fn(|_| F::rand(&mut rng)) + }), + partial_round_constants: std::array::from_fn(|_| F::rand(&mut rng)), + ending_full_round_constants: std::array::from_fn(|_| { + std::array::from_fn(|_| F::rand(&mut rng)) + }), + } + } +} + fn constants_to_ark_arrays(beginning_full_round_constants: [[u64; 8]; 4]) -> [[F; 8]; 4] { beginning_full_round_constants .into_iter() diff --git a/ark-poseidon2/src/gadget.rs b/ark-poseidon2/src/gadget.rs index facd96e8..1da1044a 100644 --- a/ark-poseidon2/src/gadget.rs +++ b/ark-poseidon2/src/gadget.rs @@ -149,19 +149,21 @@ pub fn poseidon2_hash< gadget.permute(inputs) } -pub fn poseidon2_compress_8_to_4< +pub fn poseidon2_compress< + const WIDTH: usize, + const TARGET: usize, F: PrimeField, - ExtLinear: ExternalLinearLayer, - IntLinear: InternalLinearLayer, + ExtLinear: ExternalLinearLayer, + IntLinear: InternalLinearLayer, >( - inputs: &[FpVar; 8], - constants: &RoundConstants, -) -> Result<[FpVar; 4], SynthesisError> { + inputs: &[FpVar; WIDTH], + constants: &RoundConstants, +) -> Result<[FpVar; TARGET], SynthesisError> { let gadget = Poseidon2Gadget::< F, ExtLinear, IntLinear, - 8, + WIDTH, GOLDILOCKS_S_BOX_DEGREE, HALF_FULL_ROUNDS, PARTIAL_ROUNDS, @@ -169,7 +171,7 @@ pub fn poseidon2_compress_8_to_4< let p_x = gadget.permute(inputs)?; // truncation - let mut p_x: [FpVar; 4] = std::array::from_fn(|i| p_x[i].clone()); + let mut p_x: [FpVar; TARGET] = std::array::from_fn(|i| p_x[i].clone()); for (p_x, x) in p_x.iter_mut().zip(inputs) { // feed-forward operation @@ -178,3 +180,42 @@ pub fn poseidon2_compress_8_to_4< Ok(p_x) } + +pub fn poseidon2_sponge_absorb< + F: PrimeField, + ExtLinear: ExternalLinearLayer, + IntLinear: InternalLinearLayer, + const WIDTH: usize, + const RATE: usize, + const SBOX_DEGREE: u64, + const HALF_FULL_ROUNDS: usize, + const PARTIAL_ROUNDS: usize, +>( + inputs: &[FpVar], + constants: &RoundConstants, +) -> Result<[FpVar; WIDTH], SynthesisError> { + if RATE >= WIDTH { + return Err(SynthesisError::Unsatisfiable); + } + + let gadget = Poseidon2Gadget::< + F, + ExtLinear, + IntLinear, + WIDTH, + SBOX_DEGREE, + HALF_FULL_ROUNDS, + PARTIAL_ROUNDS, + >::new(constants.clone()); + + let mut state = std::array::from_fn(|_| FpVar::zero()); + + for chunk in inputs.chunks(RATE) { + for (i, value) in chunk.iter().enumerate() { + state[i] += value.clone(); + } + state = gadget.permute(&state)?; + } + + Ok(state) +} diff --git a/ark-poseidon2/src/lib.rs b/ark-poseidon2/src/lib.rs index 985dec1e..e2e28121 100644 --- a/ark-poseidon2/src/lib.rs +++ b/ark-poseidon2/src/lib.rs @@ -9,23 +9,75 @@ pub mod math; pub type F = ark_goldilocks::FpGoldilocks; use crate::{ - gadget::poseidon2_compress_8_to_4, - linear_layers::{GoldilocksExternalLinearLayer, GoldilocksInternalLinearLayer8}, + gadget::{poseidon2_compress, poseidon2_sponge_absorb}, + linear_layers::{ + GoldilocksExternalLinearLayer, GoldilocksInternalLinearLayer8, + GoldilocksInternalLinearLayer12, + }, }; use ark_r1cs_std::{GR1CSVar as _, alloc::AllocVar as _, fields::fp::FpVar}; use ark_relations::gr1cs::{ConstraintSystem, SynthesisError}; pub use constants::RoundConstants; +use constants::{GOLDILOCKS_S_BOX_DEGREE, HALF_FULL_ROUNDS, PARTIAL_ROUNDS}; -pub fn compress(inputs: &[FpVar; 8]) -> Result<[FpVar; 4], SynthesisError> { +pub fn compress_8(inputs: &[FpVar; 8]) -> Result<[FpVar; 4], SynthesisError> { let constants = RoundConstants::new_goldilocks_8_constants(); - poseidon2_compress_8_to_4::, GoldilocksInternalLinearLayer8>( + poseidon2_compress::<8, 4, F, GoldilocksExternalLinearLayer<8>, GoldilocksInternalLinearLayer8>( inputs, &constants, ) } -#[allow(unused)] -pub fn compress_trace(inputs: &[F; 8]) -> Result<[F; 4], SynthesisError> { +pub fn compress_12(inputs: &[FpVar; 12]) -> Result<[FpVar; 4], SynthesisError> { + let constants = RoundConstants::new_goldilocks_12_constants(); + + poseidon2_compress::<12, 4, F, GoldilocksExternalLinearLayer<12>, GoldilocksInternalLinearLayer12>( + inputs, &constants, + ) +} + +pub fn sponge_8(inputs: &[FpVar]) -> Result<[FpVar; 4], SynthesisError> { + let constants = RoundConstants::new_goldilocks_8_constants(); + + let state = poseidon2_sponge_absorb::< + F, + GoldilocksExternalLinearLayer<8>, + GoldilocksInternalLinearLayer8, + 8, + 4, + GOLDILOCKS_S_BOX_DEGREE, + HALF_FULL_ROUNDS, + PARTIAL_ROUNDS, + >(inputs, &constants)?; + + Ok(std::array::from_fn(|i| state[i].clone())) +} + +pub fn sponge_12(inputs: &[FpVar]) -> Result<[FpVar; 4], SynthesisError> { + let constants = RoundConstants::new_goldilocks_12_constants(); + + let state = poseidon2_sponge_absorb::< + F, + GoldilocksExternalLinearLayer<12>, + GoldilocksInternalLinearLayer12, + 12, + 8, + GOLDILOCKS_S_BOX_DEGREE, + HALF_FULL_ROUNDS, + PARTIAL_ROUNDS, + >(inputs, &constants)?; + + Ok(std::array::from_fn(|i| state[i].clone())) +} + +fn compress_trace_generic< + const WIDTH: usize, + ExtLinear: crate::linear_layers::ExternalLinearLayer, + IntLinear: crate::linear_layers::InternalLinearLayer, +>( + inputs: &[F; WIDTH], + constants: &RoundConstants, +) -> Result<[F; 4], SynthesisError> { // TODO: obviously this is not a good way of implementing this, but the // implementation is currently not general enough to be used over both FpVar and // just plain field elements @@ -39,15 +91,76 @@ pub fn compress_trace(inputs: &[F; 8]) -> Result<[F; 4], SynthesisError> { .map(|input| FpVar::new_witness(cs.clone(), || Ok(input))) .collect::, _>>()?; + let compressed = poseidon2_compress::( + inputs[..].try_into().unwrap(), + &constants, + )?; + + Ok(std::array::from_fn(|i| compressed[i].value().unwrap())) +} + +pub fn compress_8_trace(inputs: &[F; 8]) -> Result<[F; 4], SynthesisError> { let constants = RoundConstants::new_goldilocks_8_constants(); + compress_trace_generic::<8, GoldilocksExternalLinearLayer<8>, GoldilocksInternalLinearLayer8>( + inputs, &constants, + ) +} - let compressed = poseidon2_compress_8_to_4::< - F, - GoldilocksExternalLinearLayer<8>, - GoldilocksInternalLinearLayer8, - >(inputs[..].try_into().unwrap(), &constants)?; +pub fn compress_12_trace(inputs: &[F; 12]) -> Result<[F; 4], SynthesisError> { + let constants = RoundConstants::new_goldilocks_12_constants(); + compress_trace_generic::<12, GoldilocksExternalLinearLayer<12>, GoldilocksInternalLinearLayer12>( + inputs, &constants, + ) +} - Ok(std::array::from_fn(|i| compressed[i].value().unwrap())) +pub fn sponge_8_trace(inputs: &[F; 8]) -> Result<[F; 4], SynthesisError> { + let constants = RoundConstants::new_goldilocks_8_constants(); + sponge_trace_generic::<8, 4, GoldilocksExternalLinearLayer<8>, GoldilocksInternalLinearLayer8>( + inputs, &constants, + ) +} + +pub fn sponge_12_trace(inputs: &[F; 12]) -> Result<[F; 4], SynthesisError> { + let constants = RoundConstants::new_goldilocks_12_constants(); + sponge_trace_generic::<12, 8, GoldilocksExternalLinearLayer<12>, GoldilocksInternalLinearLayer12>( + inputs, &constants, + ) +} + +fn sponge_trace_generic< + const WIDTH: usize, + const RATE: usize, + ExtLinear: crate::linear_layers::ExternalLinearLayer, + IntLinear: crate::linear_layers::InternalLinearLayer, +>( + inputs: &[F; WIDTH], + constants: &RoundConstants, +) -> Result<[F; 4], SynthesisError> { + // TODO: obviously this is not a good way of implementing this, but the + // implementation is currently not general enough to be used over both FpVar and + // just plain field elements + // + // for now, we just create a throw-away constraint system and get the values + // from that computation + let cs = ConstraintSystem::::new_ref(); + + let inputs = inputs + .iter() + .map(|input| FpVar::new_witness(cs.clone(), || Ok(input))) + .collect::, _>>()?; + + let state = poseidon2_sponge_absorb::< + F, + ExtLinear, + IntLinear, + WIDTH, + RATE, + GOLDILOCKS_S_BOX_DEGREE, + HALF_FULL_ROUNDS, + PARTIAL_ROUNDS, + >(&inputs, constants)?; + + Ok(std::array::from_fn(|i| state[i].value().unwrap())) } #[cfg(test)] diff --git a/ark-poseidon2/src/linear_layers.rs b/ark-poseidon2/src/linear_layers.rs index 3ece99cf..a3df9a94 100644 --- a/ark-poseidon2/src/linear_layers.rs +++ b/ark-poseidon2/src/linear_layers.rs @@ -1,6 +1,10 @@ //! Linear layer implementations for Poseidon2 R1CS gadget -use crate::{F, goldilocks::matrix_diag_8_goldilocks, math::mds_light_permutation}; +use crate::{ + F, + goldilocks::{matrix_diag_12_goldilocks, matrix_diag_8_goldilocks}, + math::mds_light_permutation, +}; use ark_ff::PrimeField; use ark_r1cs_std::fields::fp::FpVar; use ark_relations::gr1cs::SynthesisError; @@ -24,6 +28,7 @@ impl ExternalLinearLayer for GoldilocksExternalLin } pub enum GoldilocksInternalLinearLayer8 {} +pub enum GoldilocksInternalLinearLayer12 {} pub fn matmul_internal( state: &mut [FpVar; WIDTH], @@ -43,3 +48,11 @@ impl InternalLinearLayer for GoldilocksInternalLinearLayer8 { Ok(()) } } + +impl InternalLinearLayer for GoldilocksInternalLinearLayer12 { + fn apply(state: &mut [FpVar; 12]) -> Result<(), SynthesisError> { + matmul_internal(state, matrix_diag_12_goldilocks()); + + Ok(()) + } +} diff --git a/starstream-runtime/src/lib.rs b/starstream-runtime/src/lib.rs index ea4fcb72..66a54578 100644 --- a/starstream-runtime/src/lib.rs +++ b/starstream-runtime/src/lib.rs @@ -1,8 +1,9 @@ use sha2::{Digest, Sha256}; use starstream_mock_ledger::{ - CoroutineState, Hash, InterfaceId, InterleavingInstance, InterleavingWitness, - MockedLookupTableCommitment, NewOutput, OutputRef, ProcessId, ProvenTransaction, Ref, UtxoId, - Value, WasmModule, WitEffectOutput, WitLedgerEffect, builder::TransactionBuilder, + CoroutineState, EffectDiscriminant, Hash, InterfaceId, InterleavingInstance, + InterleavingWitness, MockedLookupTableCommitment, NewOutput, OutputRef, ProcessId, + ProvenTransaction, Ref, UtxoId, Value, WasmModule, WitEffectOutput, WitLedgerEffect, + builder::TransactionBuilder, }; use std::collections::{HashMap, HashSet}; use wasmi::{ @@ -33,29 +34,6 @@ impl std::fmt::Display for Interrupt { impl HostError for Interrupt {} -// Discriminants for host calls -#[derive(Debug)] -pub enum HostCallDiscriminant { - Resume = 0, - Yield = 1, - NewUtxo = 2, - NewCoord = 3, - InstallHandler = 4, - UninstallHandler = 5, - GetHandlerFor = 6, - Burn = 7, - Activation = 8, - Init = 9, - NewRef = 10, - RefPush = 11, - Get = 12, - Bind = 13, - Unbind = 14, - ProgramHash = 15, -} - -use HostCallDiscriminant::*; - pub struct UnprovenTransaction { pub inputs: Vec, pub programs: Vec, @@ -154,8 +132,8 @@ impl Runtime { buffer }; - let effect = match HostCallDiscriminant::from(discriminant) { - Resume => { + let effect = match EffectDiscriminant::from(discriminant) { + EffectDiscriminant::Resume => { let target = ProcessId(arg1 as usize); let val = Ref(arg2); let ret = WitEffectOutput::Thunk; @@ -174,7 +152,7 @@ impl Runtime { id_prev: WitEffectOutput::Resolved(id_prev), }) } - Yield => { + EffectDiscriminant::Yield => { let val = Ref(arg1); let ret = WitEffectOutput::Thunk; let id_prev = caller.data().prev_id; @@ -185,7 +163,7 @@ impl Runtime { id_prev: WitEffectOutput::Resolved(id_prev), }) } - NewUtxo => { + EffectDiscriminant::NewUtxo => { let h = Hash( args_to_hash(arg1, arg2, arg3, arg4), std::marker::PhantomData, @@ -225,7 +203,7 @@ impl Runtime { id: WitEffectOutput::Resolved(id), }) } - NewCoord => { + EffectDiscriminant::NewCoord => { let h = Hash( args_to_hash(arg1, arg2, arg3, arg4), std::marker::PhantomData, @@ -265,7 +243,7 @@ impl Runtime { id: WitEffectOutput::Resolved(id), }) } - InstallHandler => { + EffectDiscriminant::InstallHandler => { let interface_id = Hash( args_to_hash(arg1, arg2, arg3, arg4), std::marker::PhantomData, @@ -278,7 +256,7 @@ impl Runtime { .push(current_pid); Some(WitLedgerEffect::InstallHandler { interface_id }) } - UninstallHandler => { + EffectDiscriminant::UninstallHandler => { let interface_id = Hash( args_to_hash(arg1, arg2, arg3, arg4), std::marker::PhantomData, @@ -293,7 +271,7 @@ impl Runtime { } Some(WitLedgerEffect::UninstallHandler { interface_id }) } - GetHandlerFor => { + EffectDiscriminant::GetHandlerFor => { let interface_id = Hash( args_to_hash(arg1, arg2, arg3, arg4), std::marker::PhantomData, @@ -313,7 +291,7 @@ impl Runtime { handler_id: WitEffectOutput::Resolved(*handler_id), }) } - Activation => { + EffectDiscriminant::Activation => { let (val, caller_id) = caller .data() .pending_activation @@ -324,7 +302,7 @@ impl Runtime { caller: WitEffectOutput::Resolved(*caller_id), }) } - Init => { + EffectDiscriminant::Init => { let (val, caller_id) = caller .data() .pending_init @@ -335,7 +313,7 @@ impl Runtime { caller: WitEffectOutput::Resolved(*caller_id), }) } - NewRef => { + EffectDiscriminant::NewRef => { let size = arg1 as usize; let ref_id = Ref(caller.data().next_ref); caller.data_mut().next_ref += size as u64; @@ -354,7 +332,7 @@ impl Runtime { ret: WitEffectOutput::Resolved(ref_id), }) } - RefPush => { + EffectDiscriminant::RefPush => { let val = Value(arg1); let (ref_id, offset, size) = *caller .data() @@ -380,7 +358,7 @@ impl Runtime { Some(WitLedgerEffect::RefPush { val }) } - Get => { + EffectDiscriminant::Get => { let ref_id = Ref(arg1); let offset = arg2 as usize; @@ -400,7 +378,7 @@ impl Runtime { ret: WitEffectOutput::Resolved(val), }) } - Bind => { + EffectDiscriminant::Bind => { let owner_id = ProcessId(arg1 as usize); caller .data_mut() @@ -408,20 +386,20 @@ impl Runtime { .insert(current_pid, Some(owner_id)); Some(WitLedgerEffect::Bind { owner_id }) } - Unbind => { + EffectDiscriminant::Unbind => { let token_id = ProcessId(arg1 as usize); if caller.data().ownership.get(&token_id) != Some(&Some(current_pid)) {} caller.data_mut().ownership.insert(token_id, None); Some(WitLedgerEffect::Unbind { token_id }) } - Burn => { + EffectDiscriminant::Burn => { caller.data_mut().must_burn.insert(current_pid); Some(WitLedgerEffect::Burn { ret: WitEffectOutput::Resolved(Ref(arg1)), }) } - ProgramHash => { + EffectDiscriminant::ProgramHash => { unreachable!(); } }; @@ -839,27 +817,3 @@ impl UnprovenTransaction { Ok((instance, runtime.store.into_data(), witness)) } } - -impl From for HostCallDiscriminant { - fn from(value: u64) -> Self { - match value { - 0 => Resume, - 1 => Yield, - 2 => NewUtxo, - 3 => NewCoord, - 4 => InstallHandler, - 5 => UninstallHandler, - 6 => GetHandlerFor, - 7 => Burn, - 8 => Activation, - 9 => Init, - 10 => NewRef, - 11 => RefPush, - 12 => Get, - 13 => Bind, - 14 => Unbind, - 15 => ProgramHash, - _ => todo!(), - } - } -} diff --git a/starstream-runtime/tests/integration.rs b/starstream-runtime/tests/integration.rs index 7497841a..7ec3293a 100644 --- a/starstream-runtime/tests/integration.rs +++ b/starstream-runtime/tests/integration.rs @@ -1,6 +1,6 @@ use sha2::{Digest, Sha256}; -use starstream_mock_ledger::Ledger; -use starstream_runtime::{HostCallDiscriminant, UnprovenTransaction}; +use starstream_mock_ledger::{EffectDiscriminant, Ledger}; +use starstream_runtime::UnprovenTransaction; use wat::parse_str; #[test] @@ -55,13 +55,13 @@ module ) ) "#, - ACTIVATION = HostCallDiscriminant::Activation as u64, - GET_HANDLER_FOR = HostCallDiscriminant::GetHandlerFor as u64, - NEW_REF = HostCallDiscriminant::NewRef as u64, - REF_PUSH = HostCallDiscriminant::RefPush as u64, - RESUME = HostCallDiscriminant::Resume as u64, - YIELD = HostCallDiscriminant::Yield as u64, - PROGRAM_HASH = HostCallDiscriminant::ProgramHash as u64, + ACTIVATION = EffectDiscriminant::Activation as u64, + GET_HANDLER_FOR = EffectDiscriminant::GetHandlerFor as u64, + NEW_REF = EffectDiscriminant::NewRef as u64, + REF_PUSH = EffectDiscriminant::RefPush as u64, + RESUME = EffectDiscriminant::Resume as u64, + YIELD = EffectDiscriminant::Yield as u64, + PROGRAM_HASH = EffectDiscriminant::ProgramHash as u64, ); let utxo_bin = parse_str(&utxo_wat).unwrap(); @@ -151,12 +151,12 @@ module ) ) "#, - INSTALL_HANDLER = HostCallDiscriminant::InstallHandler as u64, - NEW_REF = HostCallDiscriminant::NewRef as u64, - REF_PUSH = HostCallDiscriminant::RefPush as u64, - NEW_UTXO = HostCallDiscriminant::NewUtxo as u64, - RESUME = HostCallDiscriminant::Resume as u64, - UNINSTALL_HANDLER = HostCallDiscriminant::UninstallHandler as u64, + INSTALL_HANDLER = EffectDiscriminant::InstallHandler as u64, + NEW_REF = EffectDiscriminant::NewRef as u64, + REF_PUSH = EffectDiscriminant::RefPush as u64, + NEW_UTXO = EffectDiscriminant::NewUtxo as u64, + RESUME = EffectDiscriminant::Resume as u64, + UNINSTALL_HANDLER = EffectDiscriminant::UninstallHandler as u64, ); let coord_bin = parse_str(&coord_wat).unwrap(); diff --git a/starstream_ivc_proto/src/circuit.rs b/starstream_ivc_proto/src/circuit.rs index b388cbc4..6d35a010 100644 --- a/starstream_ivc_proto/src/circuit.rs +++ b/starstream_ivc_proto/src/circuit.rs @@ -11,7 +11,7 @@ use ark_relations::{ gr1cs::{ConstraintSystemRef, LinearCombination, SynthesisError, Variable}, ns, }; -use starstream_mock_ledger::InterleavingInstance; +use starstream_mock_ledger::{EffectDiscriminant, InterleavingInstance}; use std::collections::{BTreeMap, BTreeSet}; use std::marker::PhantomData; use std::ops::Not; @@ -173,6 +173,7 @@ struct OpcodeConfig { handler_switches: HandlerSwitchboard, execution_switches: ExecutionSwitches, opcode_args: [F; OPCODE_ARG_COUNT], + opcode_discriminant: F, } #[derive(Clone)] @@ -319,6 +320,7 @@ impl ExecutionSwitches { fn allocate_and_constrain( &self, cs: ConstraintSystemRef, + opcode_discriminant: &FpVar, ) -> Result>, SynthesisError> { let switches = [ self.resume, @@ -381,6 +383,34 @@ impl ExecutionSwitches { unreachable!() }; + let terms = [ + (resume, EffectDiscriminant::Resume as u64), + (yield_op, EffectDiscriminant::Yield as u64), + (burn, EffectDiscriminant::Burn as u64), + (program_hash, EffectDiscriminant::ProgramHash as u64), + (new_utxo, EffectDiscriminant::NewUtxo as u64), + (new_coord, EffectDiscriminant::NewCoord as u64), + (activation, EffectDiscriminant::Activation as u64), + (init, EffectDiscriminant::Init as u64), + (bind, EffectDiscriminant::Bind as u64), + (unbind, EffectDiscriminant::Unbind as u64), + (new_ref, EffectDiscriminant::NewRef as u64), + (ref_push, EffectDiscriminant::RefPush as u64), + (get, EffectDiscriminant::Get as u64), + (install_handler, EffectDiscriminant::InstallHandler as u64), + ( + uninstall_handler, + EffectDiscriminant::UninstallHandler as u64, + ), + (get_handler_for, EffectDiscriminant::GetHandlerFor as u64), + ]; + + let expected_opcode = terms.iter().fold(FpVar::zero(), |acc, (switch, disc)| { + acc + FpVar::from((*switch).clone()) * F::from(*disc) + }); + + expected_opcode.enforce_equal(opcode_discriminant)?; + Ok(ExecutionSwitches { resume: resume.clone(), yield_op: yield_op.clone(), @@ -608,6 +638,7 @@ pub struct PreWires { switches: ExecutionSwitches, opcode_args: [F; OPCODE_ARG_COUNT], + opcode_discriminant: F, curr_mem_switches: MemSwitchboard, target_mem_switches: MemSwitchboard, @@ -797,15 +828,19 @@ impl Wires { FpVar::new_witness(cs.clone(), || Ok(vals.irw.ref_building_remaining))?; let ref_building_ptr = FpVar::new_witness(cs.clone(), || Ok(vals.irw.ref_building_ptr))?; - // Allocate switches and enforce exactly one is true - let switches = vals.switches.allocate_and_constrain(cs.clone())?; - let opcode_args_cs = ns!(cs.clone(), "opcode_args"); let opcode_args_vec = (0..OPCODE_ARG_COUNT) .map(|i| FpVar::::new_witness(opcode_args_cs.clone(), || Ok(vals.opcode_args[i]))) .collect::, _>>()?; let opcode_args: [FpVar; OPCODE_ARG_COUNT] = opcode_args_vec.try_into().expect("opcode args length"); + let opcode_discriminant = + FpVar::::new_witness(cs.clone(), || Ok(vals.opcode_discriminant))?; + + // Allocate switches and enforce exactly one is true + let switches = vals + .switches + .allocate_and_constrain(cs.clone(), &opcode_discriminant)?; let target = opcode_args[ArgName::Target.idx()].clone(); let val = opcode_args[ArgName::Val.idx()].clone(); @@ -993,7 +1028,15 @@ impl Wires { }; // Read current trace commitment (4 field elements) - trace_ic_wires(id_curr.clone(), rm, &cs, &opcode_args)?; + let should_trace = switches.nop.clone().not(); + trace_ic_wires( + id_curr.clone(), + rm, + &cs, + &should_trace, + &opcode_discriminant, + &opcode_args, + )?; Ok(Wires { id_curr, @@ -1204,11 +1247,38 @@ impl LedgerOperation { handler_switches: HandlerSwitchboard::default(), execution_switches: ExecutionSwitches::default(), opcode_args: [F::ZERO; OPCODE_ARG_COUNT], + opcode_discriminant: F::ZERO, }; // All ops increment counter of the current process, except Nop config.mem_switches_curr.counters = !matches!(self, LedgerOperation::Nop {}); + config.opcode_discriminant = match self { + LedgerOperation::Nop {} => F::ZERO, + LedgerOperation::Resume { .. } => F::from(EffectDiscriminant::Resume as u64), + LedgerOperation::Yield { .. } => F::from(EffectDiscriminant::Yield as u64), + LedgerOperation::Burn { .. } => F::from(EffectDiscriminant::Burn as u64), + LedgerOperation::ProgramHash { .. } => F::from(EffectDiscriminant::ProgramHash as u64), + LedgerOperation::NewUtxo { .. } => F::from(EffectDiscriminant::NewUtxo as u64), + LedgerOperation::NewCoord { .. } => F::from(EffectDiscriminant::NewCoord as u64), + LedgerOperation::Activation { .. } => F::from(EffectDiscriminant::Activation as u64), + LedgerOperation::Init { .. } => F::from(EffectDiscriminant::Init as u64), + LedgerOperation::Bind { .. } => F::from(EffectDiscriminant::Bind as u64), + LedgerOperation::Unbind { .. } => F::from(EffectDiscriminant::Unbind as u64), + LedgerOperation::NewRef { .. } => F::from(EffectDiscriminant::NewRef as u64), + LedgerOperation::RefPush { .. } => F::from(EffectDiscriminant::RefPush as u64), + LedgerOperation::Get { .. } => F::from(EffectDiscriminant::Get as u64), + LedgerOperation::InstallHandler { .. } => { + F::from(EffectDiscriminant::InstallHandler as u64) + } + LedgerOperation::UninstallHandler { .. } => { + F::from(EffectDiscriminant::UninstallHandler as u64) + } + LedgerOperation::GetHandlerFor { .. } => { + F::from(EffectDiscriminant::GetHandlerFor as u64) + } + }; + match self { LedgerOperation::Nop {} => { config.execution_switches.nop = true; @@ -2064,6 +2134,35 @@ impl> StepCircuitBuilder { rom_switches.clone(), handler_switches.clone(), interface_index, + match instruction { + LedgerOperation::Nop {} => F::ZERO, + LedgerOperation::Resume { .. } => F::from(EffectDiscriminant::Resume as u64), + LedgerOperation::Yield { .. } => F::from(EffectDiscriminant::Yield as u64), + LedgerOperation::Burn { .. } => F::from(EffectDiscriminant::Burn as u64), + LedgerOperation::ProgramHash { .. } => { + F::from(EffectDiscriminant::ProgramHash as u64) + } + LedgerOperation::NewUtxo { .. } => F::from(EffectDiscriminant::NewUtxo as u64), + LedgerOperation::NewCoord { .. } => F::from(EffectDiscriminant::NewCoord as u64), + LedgerOperation::Activation { .. } => { + F::from(EffectDiscriminant::Activation as u64) + } + LedgerOperation::Init { .. } => F::from(EffectDiscriminant::Init as u64), + LedgerOperation::Bind { .. } => F::from(EffectDiscriminant::Bind as u64), + LedgerOperation::Unbind { .. } => F::from(EffectDiscriminant::Unbind as u64), + LedgerOperation::NewRef { .. } => F::from(EffectDiscriminant::NewRef as u64), + LedgerOperation::RefPush { .. } => F::from(EffectDiscriminant::RefPush as u64), + LedgerOperation::Get { .. } => F::from(EffectDiscriminant::Get as u64), + LedgerOperation::InstallHandler { .. } => { + F::from(EffectDiscriminant::InstallHandler as u64) + } + LedgerOperation::UninstallHandler { .. } => { + F::from(EffectDiscriminant::UninstallHandler as u64) + } + LedgerOperation::GetHandlerFor { .. } => { + F::from(EffectDiscriminant::GetHandlerFor as u64) + } + }, ); match instruction { @@ -2854,6 +2953,7 @@ impl PreWires { rom_switches: RomSwitchboard, handler_switches: HandlerSwitchboard, interface_index: F, + opcode_discriminant: F, ) -> Self { Self { switches: ExecutionSwitches::default(), @@ -2861,6 +2961,7 @@ impl PreWires { interface_index, ret_is_some: false, opcode_args: [F::ZERO; OPCODE_ARG_COUNT], + opcode_discriminant, curr_mem_switches, target_mem_switches, rom_switches, @@ -2965,7 +3066,11 @@ impl ProgramState { } fn trace_ic>(curr_pid: usize, mb: &mut M, config: &OpcodeConfig) { - let mut concat_data = [F::ZERO; 8]; + if config.execution_switches.nop { + return; + } + + let mut concat_data = [F::ZERO; 12]; for i in 0..4 { let addr = (curr_pid * 4) + i; @@ -2977,11 +3082,14 @@ fn trace_ic>(curr_pid: usize, mb: &mut M, config: &OpcodeConfig) addr: addr as u64, }, )[0]; + } - concat_data[i + 4] = config.opcode_args[i]; + concat_data[4] = config.opcode_discriminant; + for i in 0..4 { + concat_data[i + 5] = config.opcode_args[i]; } - let new_commitment = ark_poseidon2::compress_trace(&concat_data).unwrap(); + let new_commitment = ark_poseidon2::compress_12_trace(&concat_data).unwrap(); for i in 0..4 { let addr = (curr_pid * 4) + i; @@ -3001,6 +3109,8 @@ fn trace_ic_wires>( id_curr: FpVar, rm: &mut M, cs: &ConstraintSystemRef, + should_trace: &Boolean, + opcode_discriminant: &FpVar, opcode_args: &[FpVar; OPCODE_ARG_COUNT], ) -> Result<(), SynthesisError> { let mut current_commitment = vec![]; @@ -3017,7 +3127,7 @@ fn trace_ic_wires>( addresses.push(address.clone()); - let rv = rm.conditional_read(&Boolean::TRUE, &address)?[0].clone(); + let rv = rm.conditional_read(should_trace, &address)?[0].clone(); current_commitment.push(rv); } @@ -3026,16 +3136,20 @@ fn trace_ic_wires>( current_commitment[1].clone(), current_commitment[2].clone(), current_commitment[3].clone(), + opcode_discriminant.clone(), opcode_args[0].clone(), opcode_args[1].clone(), opcode_args[2].clone(), opcode_args[3].clone(), + FpVar::new_witness(cs.clone(), || Ok(F::from(0)))?, + FpVar::new_witness(cs.clone(), || Ok(F::from(0)))?, + FpVar::new_witness(cs.clone(), || Ok(F::from(0)))?, ]; - let new_commitment = ark_poseidon2::compress(&compress_input)?; + let new_commitment = ark_poseidon2::compress_12(&compress_input)?; for i in 0..4 { - rm.conditional_write(&Boolean::TRUE, &addresses[i], &[new_commitment[i].clone()])?; + rm.conditional_write(should_trace, &addresses[i], &[new_commitment[i].clone()])?; } Ok(()) diff --git a/starstream_ivc_proto/src/circuit_test.rs b/starstream_ivc_proto/src/circuit_test.rs index 50ac51eb..61c5d402 100644 --- a/starstream_ivc_proto/src/circuit_test.rs +++ b/starstream_ivc_proto/src/circuit_test.rs @@ -115,7 +115,7 @@ fn test_circuit_many_steps() { target: p1, val: ref_0.clone(), ret: ref_1.clone().into(), - id_prev: None.into(), + id_prev: WitEffectOutput::Resolved(None), }, WitLedgerEffect::InstallHandler { interface_id: h(100), @@ -191,7 +191,7 @@ fn test_circuit_small() { target: p0, val: ref_0.clone(), ret: ref_0.clone().into(), - id_prev: None.into(), + id_prev: WitEffectOutput::Resolved(None.into()), }, ]; diff --git a/starstream_ivc_proto/src/memory/nebula/ic.rs b/starstream_ivc_proto/src/memory/nebula/ic.rs index 0f04a9b9..a7539457 100644 --- a/starstream_ivc_proto/src/memory/nebula/ic.rs +++ b/starstream_ivc_proto/src/memory/nebula/ic.rs @@ -39,7 +39,7 @@ impl ICPlain { } }); - let hash_to_field = ark_poseidon2::compress_trace(&hash_input)?; + let hash_to_field = ark_poseidon2::compress_8_trace(&hash_input)?; let concat = array::from_fn(|i| { if i < 4 { @@ -49,7 +49,7 @@ impl ICPlain { } }); - self.comm = ark_poseidon2::compress_trace(&concat)?; + self.comm = ark_poseidon2::compress_8_trace(&concat)?; } Ok(()) @@ -92,7 +92,7 @@ impl IC { if !unsound_make_nop { let cs = self.comm.cs(); - let hash_to_field = ark_poseidon2::compress(&array::from_fn(|i| { + let hash_to_field = ark_poseidon2::compress_8(&array::from_fn(|i| { if i == 0 { a.addr.clone() } else if i == 1 { @@ -115,7 +115,7 @@ impl IC { } }); - self.comm = ark_poseidon2::compress(&concat)?; + self.comm = ark_poseidon2::compress_8(&concat)?; } Ok(()) diff --git a/starstream_ivc_proto/src/neo.rs b/starstream_ivc_proto/src/neo.rs index 5e7a30cf..a80901ed 100644 --- a/starstream_ivc_proto/src/neo.rs +++ b/starstream_ivc_proto/src/neo.rs @@ -72,8 +72,7 @@ impl WitnessLayout for CircuitLayout { const M_IN: usize = 1; // instance.len()+witness.len() - // const USED_COLS: usize = 350; - const USED_COLS: usize = 734; + const USED_COLS: usize = 870; fn new_layout() -> Self { CircuitLayout {} diff --git a/starstream_mock_ledger/src/lib.rs b/starstream_mock_ledger/src/lib.rs index 2dd2b74e..e8c1eb3f 100644 --- a/starstream_mock_ledger/src/lib.rs +++ b/starstream_mock_ledger/src/lib.rs @@ -16,7 +16,7 @@ use std::{hash::Hasher, marker::PhantomData}; pub use transaction_effects::{ InterfaceId, instance::InterleavingInstance, - witness::{WitEffectOutput, WitLedgerEffect}, + witness::{EffectDiscriminant, WitEffectOutput, WitLedgerEffect}, }; #[derive(PartialEq, Eq)] diff --git a/starstream_mock_ledger/src/transaction_effects/instance.rs b/starstream_mock_ledger/src/transaction_effects/instance.rs index 1cbd8da1..ad7d3a18 100644 --- a/starstream_mock_ledger/src/transaction_effects/instance.rs +++ b/starstream_mock_ledger/src/transaction_effects/instance.rs @@ -1,6 +1,6 @@ use crate::{ - CoroutineState, Hash, mocked_verifier::MockedLookupTableCommitment, WasmModule, - mocked_verifier::InterleavingError, transaction_effects::ProcessId, + CoroutineState, Hash, WasmModule, mocked_verifier::InterleavingError, + mocked_verifier::MockedLookupTableCommitment, transaction_effects::ProcessId, }; // this mirrors the configuration described in SEMANTICS.md @@ -59,8 +59,8 @@ impl InterleavingInstance { return Err(InterleavingError::Shape("is_utxo len != process_table len")); } - if self.ownership_in.len() != dbg!(dbg!(self.n_inputs) + dbg!(self.n_new)) - || self.ownership_out.len() != dbg!(self.n_inputs + self.n_new) + if self.ownership_in.len() != self.n_inputs + self.n_new + || self.ownership_out.len() != self.n_inputs + self.n_new { return Err(InterleavingError::Shape( "ownership_* len != self.n_inputs len + self.n_new len", diff --git a/starstream_mock_ledger/src/transaction_effects/witness.rs b/starstream_mock_ledger/src/transaction_effects/witness.rs index 1b57ba92..007c3d29 100644 --- a/starstream_mock_ledger/src/transaction_effects/witness.rs +++ b/starstream_mock_ledger/src/transaction_effects/witness.rs @@ -3,6 +3,27 @@ use crate::{ transaction_effects::{InterfaceId, ProcessId}, }; +// Discriminants for host calls +#[derive(Debug)] +pub enum EffectDiscriminant { + Resume = 0, + Yield = 1, + NewUtxo = 2, + NewCoord = 3, + InstallHandler = 4, + UninstallHandler = 5, + GetHandlerFor = 6, + Burn = 7, + Activation = 8, + Init = 9, + NewRef = 10, + RefPush = 11, + Get = 12, + Bind = 13, + Unbind = 14, + ProgramHash = 15, +} + // Both used to indicate which fields are outputs, and to have a placeholder // value for the runtime executor (trace generator) #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] @@ -160,3 +181,27 @@ impl From> for WitEffectOutput { } } } + +impl From for EffectDiscriminant { + fn from(value: u64) -> Self { + match value { + 0 => EffectDiscriminant::Resume, + 1 => EffectDiscriminant::Yield, + 2 => EffectDiscriminant::NewUtxo, + 3 => EffectDiscriminant::NewCoord, + 4 => EffectDiscriminant::InstallHandler, + 5 => EffectDiscriminant::UninstallHandler, + 6 => EffectDiscriminant::GetHandlerFor, + 7 => EffectDiscriminant::Burn, + 8 => EffectDiscriminant::Activation, + 9 => EffectDiscriminant::Init, + 10 => EffectDiscriminant::NewRef, + 11 => EffectDiscriminant::RefPush, + 12 => EffectDiscriminant::Get, + 13 => EffectDiscriminant::Bind, + 14 => EffectDiscriminant::Unbind, + 15 => EffectDiscriminant::ProgramHash, + _ => todo!(), + } + } +} From a1ace132b063a79dea113f586a4c77f78f024f65 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Fri, 16 Jan 2026 15:01:45 -0300 Subject: [PATCH 076/152] update Cargo.lock Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- Cargo.lock | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 90482d1e..0aeffdf2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -297,6 +297,8 @@ dependencies = [ "ark-r1cs-std", "ark-relations", "criterion", + "rand 0.8.5", + "rand_chacha 0.3.1", ] [[package]] @@ -3282,6 +3284,8 @@ dependencies = [ name = "starstream_mock_ledger" version = "0.1.0" dependencies = [ + "ark-ff", + "ark-goldilocks", "hex", "imbl", "neo-ajtai", From 4e8496f0027fe5bd5a011fdba542173f607733a8 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Fri, 16 Jan 2026 16:54:50 -0300 Subject: [PATCH 077/152] add per coroutine trace binding to interleaving proof with poseidon2 ic Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream-runtime/src/lib.rs | 29 +- starstream_ivc_proto/src/circuit.rs | 406 ++++-------------- starstream_ivc_proto/src/circuit_test.rs | 22 +- starstream_ivc_proto/src/lib.rs | 141 +----- starstream_mock_ledger/Cargo.toml | 2 + starstream_mock_ledger/README.md | 13 +- starstream_mock_ledger/src/builder.rs | 43 +- starstream_mock_ledger/src/lib.rs | 17 +- starstream_mock_ledger/src/mocked_verifier.rs | 16 +- .../src/transaction_effects/instance.rs | 31 +- 10 files changed, 247 insertions(+), 473 deletions(-) diff --git a/starstream-runtime/src/lib.rs b/starstream-runtime/src/lib.rs index 66a54578..ad56975a 100644 --- a/starstream-runtime/src/lib.rs +++ b/starstream-runtime/src/lib.rs @@ -1,7 +1,8 @@ use sha2::{Digest, Sha256}; +use starstream_ivc_proto::commit; use starstream_mock_ledger::{ CoroutineState, EffectDiscriminant, Hash, InterfaceId, InterleavingInstance, - InterleavingWitness, MockedLookupTableCommitment, NewOutput, OutputRef, ProcessId, + InterleavingWitness, LedgerEffectsCommitment, NewOutput, OutputRef, ProcessId, ProvenTransaction, Ref, UtxoId, Value, WasmModule, WitEffectOutput, WitLedgerEffect, builder::TransactionBuilder, }; @@ -486,6 +487,7 @@ impl UnprovenTransaction { for i in 0..n_inputs { let trace = traces[i].clone(); let utxo_id = self.inputs[i].clone(); + let host_calls_root = instance.host_calls_roots[i].clone(); let continuation = if instance.must_burn[i] { None @@ -494,7 +496,12 @@ impl UnprovenTransaction { Some(CoroutineState { pc: 0, last_yield }) }; - builder = builder.with_input(utxo_id, continuation, trace); + builder = builder.with_input_and_trace_commitment( + utxo_id, + continuation, + trace, + host_calls_root, + ); } // New Outputs @@ -502,13 +509,15 @@ impl UnprovenTransaction { let trace = traces[i].clone(); let last_yield = self.get_last_yield(i, &state)?; let contract_hash = state.process_hashes[&ProcessId(i)].clone(); + let host_calls_root = instance.host_calls_roots[i].clone(); - builder = builder.with_fresh_output( + builder = builder.with_fresh_output_and_trace_commitment( NewOutput { state: CoroutineState { pc: 0, last_yield }, contract_hash, }, trace, + host_calls_root, ); } @@ -516,7 +525,12 @@ impl UnprovenTransaction { for i in (n_inputs + instance.n_new)..(n_inputs + instance.n_new + instance.n_coords) { let trace = traces[i].clone(); let contract_hash = state.process_hashes[&ProcessId(i)].clone(); - builder = builder.with_coord_script(contract_hash, trace); + let host_calls_root = instance.host_calls_roots[i].clone(); + builder = builder.with_coord_script_and_trace_commitment( + contract_hash, + trace, + host_calls_root, + ); } // Ownership @@ -783,8 +797,11 @@ impl UnprovenTransaction { .cloned() .unwrap_or_default(); host_calls_lens.push(trace.len() as u32); - // mocked commitment - host_calls_roots.push(MockedLookupTableCommitment(0)); + let mut commitment = LedgerEffectsCommitment::zero(); + for op in &trace { + commitment = commit(commitment, op.clone()); + } + host_calls_roots.push(commitment); traces.push(trace); if pid < n_inputs { diff --git a/starstream_ivc_proto/src/circuit.rs b/starstream_ivc_proto/src/circuit.rs index 6d35a010..96b02c15 100644 --- a/starstream_ivc_proto/src/circuit.rs +++ b/starstream_ivc_proto/src/circuit.rs @@ -1,6 +1,6 @@ use crate::memory::twist_and_shout::Lanes; use crate::memory::{self, Address, IVCMemory, MemType}; -use crate::{ArgName, OPCODE_ARG_COUNT, value_to_field}; +use crate::{ArgName, OPCODE_ARG_COUNT, abi}; use crate::{F, LedgerOperation, memory::IVCMemoryAllocated}; use ark_ff::{AdditiveGroup, Field as _, PrimeField}; use ark_r1cs_std::fields::FieldVar; @@ -1239,7 +1239,7 @@ impl InterRoundWires { } impl LedgerOperation { - fn get_config(&self, irw: &InterRoundWires) -> OpcodeConfig { + fn get_config(&self) -> OpcodeConfig { let mut config = OpcodeConfig { mem_switches_curr: MemSwitchboard::default(), mem_switches_target: MemSwitchboard::default(), @@ -1253,31 +1253,7 @@ impl LedgerOperation { // All ops increment counter of the current process, except Nop config.mem_switches_curr.counters = !matches!(self, LedgerOperation::Nop {}); - config.opcode_discriminant = match self { - LedgerOperation::Nop {} => F::ZERO, - LedgerOperation::Resume { .. } => F::from(EffectDiscriminant::Resume as u64), - LedgerOperation::Yield { .. } => F::from(EffectDiscriminant::Yield as u64), - LedgerOperation::Burn { .. } => F::from(EffectDiscriminant::Burn as u64), - LedgerOperation::ProgramHash { .. } => F::from(EffectDiscriminant::ProgramHash as u64), - LedgerOperation::NewUtxo { .. } => F::from(EffectDiscriminant::NewUtxo as u64), - LedgerOperation::NewCoord { .. } => F::from(EffectDiscriminant::NewCoord as u64), - LedgerOperation::Activation { .. } => F::from(EffectDiscriminant::Activation as u64), - LedgerOperation::Init { .. } => F::from(EffectDiscriminant::Init as u64), - LedgerOperation::Bind { .. } => F::from(EffectDiscriminant::Bind as u64), - LedgerOperation::Unbind { .. } => F::from(EffectDiscriminant::Unbind as u64), - LedgerOperation::NewRef { .. } => F::from(EffectDiscriminant::NewRef as u64), - LedgerOperation::RefPush { .. } => F::from(EffectDiscriminant::RefPush as u64), - LedgerOperation::Get { .. } => F::from(EffectDiscriminant::Get as u64), - LedgerOperation::InstallHandler { .. } => { - F::from(EffectDiscriminant::InstallHandler as u64) - } - LedgerOperation::UninstallHandler { .. } => { - F::from(EffectDiscriminant::UninstallHandler as u64) - } - LedgerOperation::GetHandlerFor { .. } => { - F::from(EffectDiscriminant::GetHandlerFor as u64) - } - }; + config.opcode_discriminant = abi::opcode_discriminant(self); match self { LedgerOperation::Nop {} => { @@ -1407,88 +1383,7 @@ impl LedgerOperation { } } - match self { - LedgerOperation::Nop {} => {} - LedgerOperation::Resume { - target, - val, - ret, - id_prev, - } => { - config.opcode_args[ArgName::Target.idx()] = *target; - config.opcode_args[ArgName::Val.idx()] = *val; - config.opcode_args[ArgName::Ret.idx()] = *ret; - config.opcode_args[ArgName::IdPrev.idx()] = id_prev.encoded(); - } - LedgerOperation::Yield { val, ret, id_prev } => { - config.opcode_args[ArgName::Target.idx()] = irw.id_prev.decode_or_zero(); - config.opcode_args[ArgName::Val.idx()] = *val; - config.opcode_args[ArgName::Ret.idx()] = ret.unwrap_or_default(); - config.opcode_args[ArgName::IdPrev.idx()] = id_prev.encoded(); - } - LedgerOperation::Burn { ret } => { - config.opcode_args[ArgName::Target.idx()] = irw.id_prev.decode_or_zero(); - config.opcode_args[ArgName::Ret.idx()] = *ret; - } - LedgerOperation::ProgramHash { - target, - program_hash, - } => { - config.opcode_args[ArgName::Target.idx()] = *target; - config.opcode_args[ArgName::ProgramHash.idx()] = *program_hash; - } - LedgerOperation::NewUtxo { - program_hash, - val, - target, - } - | LedgerOperation::NewCoord { - program_hash, - val, - target, - } => { - config.opcode_args[ArgName::Target.idx()] = *target; - config.opcode_args[ArgName::Val.idx()] = *val; - config.opcode_args[ArgName::ProgramHash.idx()] = *program_hash; - } - LedgerOperation::Activation { val, caller } => { - config.opcode_args[ArgName::Val.idx()] = *val; - config.opcode_args[ArgName::Caller.idx()] = *caller; - } - LedgerOperation::Init { val, caller } => { - config.opcode_args[ArgName::Val.idx()] = *val; - config.opcode_args[ArgName::Caller.idx()] = *caller; - } - LedgerOperation::Bind { owner_id } => { - config.opcode_args[ArgName::OwnerId.idx()] = *owner_id; - } - LedgerOperation::Unbind { token_id } => { - config.opcode_args[ArgName::TokenId.idx()] = *token_id; - } - LedgerOperation::NewRef { size, ret } => { - config.opcode_args[ArgName::Size.idx()] = *size; - config.opcode_args[ArgName::Ret.idx()] = *ret; - } - LedgerOperation::RefPush { val } => { - config.opcode_args[ArgName::Val.idx()] = *val; - } - LedgerOperation::Get { reff, offset, ret } => { - config.opcode_args[ArgName::Val.idx()] = *reff; - config.opcode_args[ArgName::Offset.idx()] = *offset; - config.opcode_args[ArgName::Ret.idx()] = *ret; - } - LedgerOperation::InstallHandler { interface_id } - | LedgerOperation::UninstallHandler { interface_id } => { - config.opcode_args[ArgName::InterfaceId.idx()] = *interface_id; - } - LedgerOperation::GetHandlerFor { - interface_id, - handler_id, - } => { - config.opcode_args[ArgName::InterfaceId.idx()] = *interface_id; - config.opcode_args[ArgName::Ret.idx()] = *handler_id; - } - } + config.opcode_args = abi::opcode_args(self); config } @@ -1573,7 +1468,7 @@ impl> StepCircuitBuilder { let last_yield = instance .input_states .iter() - .map(|v| value_to_field(v.last_yield.clone())) + .map(|v| abi::value_to_field(v.last_yield.clone())) .collect(); let interface_resolver = InterfaceResolver::new(&ops); @@ -1798,7 +1693,7 @@ impl> StepCircuitBuilder { ); for instr in &self.ops { - let config = instr.get_config(&irw); + let config = instr.get_config(); trace_ic(irw.id_curr.into_bigint().0[0] as usize, &mut mb, &config); @@ -2003,7 +1898,7 @@ impl> StepCircuitBuilder { ); for instr in self.ops.iter() { - let config = instr.get_config(&irw); + let config = instr.get_config(); // Get interface index for handler operations let interface_index = match instr { @@ -2127,223 +2022,90 @@ impl> StepCircuitBuilder { _ => F::ZERO, }; - let default = PreWires::new( + let mut default = PreWires::new( irw.clone(), curr_mem_switches.clone(), target_mem_switches.clone(), rom_switches.clone(), handler_switches.clone(), interface_index, - match instruction { - LedgerOperation::Nop {} => F::ZERO, - LedgerOperation::Resume { .. } => F::from(EffectDiscriminant::Resume as u64), - LedgerOperation::Yield { .. } => F::from(EffectDiscriminant::Yield as u64), - LedgerOperation::Burn { .. } => F::from(EffectDiscriminant::Burn as u64), - LedgerOperation::ProgramHash { .. } => { - F::from(EffectDiscriminant::ProgramHash as u64) - } - LedgerOperation::NewUtxo { .. } => F::from(EffectDiscriminant::NewUtxo as u64), - LedgerOperation::NewCoord { .. } => F::from(EffectDiscriminant::NewCoord as u64), - LedgerOperation::Activation { .. } => { - F::from(EffectDiscriminant::Activation as u64) - } - LedgerOperation::Init { .. } => F::from(EffectDiscriminant::Init as u64), - LedgerOperation::Bind { .. } => F::from(EffectDiscriminant::Bind as u64), - LedgerOperation::Unbind { .. } => F::from(EffectDiscriminant::Unbind as u64), - LedgerOperation::NewRef { .. } => F::from(EffectDiscriminant::NewRef as u64), - LedgerOperation::RefPush { .. } => F::from(EffectDiscriminant::RefPush as u64), - LedgerOperation::Get { .. } => F::from(EffectDiscriminant::Get as u64), - LedgerOperation::InstallHandler { .. } => { - F::from(EffectDiscriminant::InstallHandler as u64) - } - LedgerOperation::UninstallHandler { .. } => { - F::from(EffectDiscriminant::UninstallHandler as u64) - } - LedgerOperation::GetHandlerFor { .. } => { - F::from(EffectDiscriminant::GetHandlerFor as u64) - } - }, + abi::opcode_discriminant(instruction), ); + default.opcode_args = abi::opcode_args(instruction); - match instruction { - LedgerOperation::Nop {} => { - let irw = PreWires { - switches: ExecutionSwitches::nop(), - ..default - }; + let prewires = match instruction { + LedgerOperation::Nop {} => PreWires { + switches: ExecutionSwitches::nop(), + ..default + }, + LedgerOperation::Resume { .. } => PreWires { + switches: ExecutionSwitches::resume(), + ..default + }, + LedgerOperation::Yield { ret, .. } => PreWires { + switches: ExecutionSwitches::yield_op(), + ret_is_some: ret.is_some(), + ..default + }, + LedgerOperation::Burn { .. } => PreWires { + switches: ExecutionSwitches::burn(), + ..default + }, + LedgerOperation::ProgramHash { .. } => PreWires { + switches: ExecutionSwitches::program_hash(), + ..default + }, + LedgerOperation::NewUtxo { .. } => PreWires { + switches: ExecutionSwitches::new_utxo(), + ..default + }, + LedgerOperation::NewCoord { .. } => PreWires { + switches: ExecutionSwitches::new_coord(), + ..default + }, + LedgerOperation::Activation { .. } => PreWires { + switches: ExecutionSwitches::activation(), + ..default + }, + LedgerOperation::Init { .. } => PreWires { + switches: ExecutionSwitches::init(), + ..default + }, + LedgerOperation::Bind { .. } => PreWires { + switches: ExecutionSwitches::bind(), + ..default + }, + LedgerOperation::Unbind { .. } => PreWires { + switches: ExecutionSwitches::unbind(), + ..default + }, + LedgerOperation::NewRef { .. } => PreWires { + switches: ExecutionSwitches::new_ref(), + ..default + }, + LedgerOperation::RefPush { .. } => PreWires { + switches: ExecutionSwitches::ref_push(), + ..default + }, + LedgerOperation::Get { .. } => PreWires { + switches: ExecutionSwitches::get(), + ..default + }, + LedgerOperation::InstallHandler { .. } => PreWires { + switches: ExecutionSwitches::install_handler(), + ..default + }, + LedgerOperation::UninstallHandler { .. } => PreWires { + switches: ExecutionSwitches::uninstall_handler(), + ..default + }, + LedgerOperation::GetHandlerFor { .. } => PreWires { + switches: ExecutionSwitches::get_handler_for(), + ..default + }, + }; - Wires::from_irw(&irw, rm, curr_write, target_write) - } - LedgerOperation::Resume { - target, - val, - ret, - id_prev, - } => { - let mut irw = PreWires { - switches: ExecutionSwitches::resume(), - ..default - }; - irw.set_arg(ArgName::Target, *target); - irw.set_arg(ArgName::Val, *val); - irw.set_arg(ArgName::Ret, *ret); - irw.set_arg(ArgName::IdPrev, id_prev.encoded()); - - Wires::from_irw(&irw, rm, curr_write, target_write) - } - LedgerOperation::Yield { val, ret, id_prev } => { - let mut irw = PreWires { - switches: ExecutionSwitches::yield_op(), - ret_is_some: ret.is_some(), - ..default - }; - irw.set_arg(ArgName::Target, irw.irw.id_prev.decode_or_zero()); - irw.set_arg(ArgName::Val, *val); - irw.set_arg(ArgName::Ret, ret.unwrap_or_default()); - irw.set_arg(ArgName::IdPrev, id_prev.encoded()); - - Wires::from_irw(&irw, rm, curr_write, target_write) - } - LedgerOperation::Burn { ret } => { - let mut irw = PreWires { - switches: ExecutionSwitches::burn(), - ..default - }; - irw.set_arg(ArgName::Target, irw.irw.id_prev.decode_or_zero()); - irw.set_arg(ArgName::Ret, *ret); - - Wires::from_irw(&irw, rm, curr_write, target_write) - } - LedgerOperation::ProgramHash { - target, - program_hash, - } => { - let mut irw = PreWires { - switches: ExecutionSwitches::program_hash(), - ..default - }; - irw.set_arg(ArgName::Target, *target); - irw.set_arg(ArgName::ProgramHash, *program_hash); - Wires::from_irw(&irw, rm, curr_write, target_write) - } - LedgerOperation::NewUtxo { - program_hash, - val, - target, - } => { - let mut irw = PreWires { - switches: ExecutionSwitches::new_utxo(), - ..default - }; - irw.set_arg(ArgName::Target, *target); - irw.set_arg(ArgName::Val, *val); - irw.set_arg(ArgName::ProgramHash, *program_hash); - Wires::from_irw(&irw, rm, curr_write, target_write) - } - LedgerOperation::NewCoord { - program_hash, - val, - target, - } => { - let mut irw = PreWires { - switches: ExecutionSwitches::new_coord(), - ..default - }; - irw.set_arg(ArgName::Target, *target); - irw.set_arg(ArgName::Val, *val); - irw.set_arg(ArgName::ProgramHash, *program_hash); - Wires::from_irw(&irw, rm, curr_write, target_write) - } - LedgerOperation::Activation { val, caller } => { - let mut irw = PreWires { - switches: ExecutionSwitches::activation(), - ..default - }; - irw.set_arg(ArgName::Val, *val); - irw.set_arg(ArgName::Caller, *caller); - Wires::from_irw(&irw, rm, curr_write, target_write) - } - LedgerOperation::Init { val, caller } => { - let mut irw = PreWires { - switches: ExecutionSwitches::init(), - ..default - }; - irw.set_arg(ArgName::Val, *val); - irw.set_arg(ArgName::Caller, *caller); - Wires::from_irw(&irw, rm, curr_write, target_write) - } - LedgerOperation::Bind { owner_id } => { - let mut irw = PreWires { - switches: ExecutionSwitches::bind(), - ..default - }; - irw.set_arg(ArgName::OwnerId, *owner_id); - Wires::from_irw(&irw, rm, curr_write, target_write) - } - LedgerOperation::Unbind { token_id } => { - let mut irw = PreWires { - switches: ExecutionSwitches::unbind(), - ..default - }; - irw.set_arg(ArgName::TokenId, *token_id); - Wires::from_irw(&irw, rm, curr_write, target_write) - } - LedgerOperation::NewRef { size, ret } => { - let mut irw = PreWires { - switches: ExecutionSwitches::new_ref(), - ..default - }; - irw.set_arg(ArgName::Size, *size); - irw.set_arg(ArgName::Ret, *ret); - Wires::from_irw(&irw, rm, curr_write, target_write) - } - LedgerOperation::RefPush { val } => { - let mut irw = PreWires { - switches: ExecutionSwitches::ref_push(), - ..default - }; - irw.set_arg(ArgName::Val, *val); - Wires::from_irw(&irw, rm, curr_write, target_write) - } - LedgerOperation::Get { reff, offset, ret } => { - let mut irw = PreWires { - switches: ExecutionSwitches::get(), - ..default - }; - irw.set_arg(ArgName::Val, *reff); - irw.set_arg(ArgName::Offset, *offset); - irw.set_arg(ArgName::Ret, *ret); - Wires::from_irw(&irw, rm, curr_write, target_write) - } - LedgerOperation::InstallHandler { interface_id } => { - let mut irw = PreWires { - switches: ExecutionSwitches::install_handler(), - ..default - }; - irw.set_arg(ArgName::InterfaceId, *interface_id); - Wires::from_irw(&irw, rm, curr_write, target_write) - } - LedgerOperation::UninstallHandler { interface_id } => { - let mut irw = PreWires { - switches: ExecutionSwitches::uninstall_handler(), - ..default - }; - irw.set_arg(ArgName::InterfaceId, *interface_id); - Wires::from_irw(&irw, rm, curr_write, target_write) - } - LedgerOperation::GetHandlerFor { - interface_id, - handler_id, - } => { - let mut irw = PreWires { - switches: ExecutionSwitches::get_handler_for(), - ..default - }; - irw.set_arg(ArgName::InterfaceId, *interface_id); - irw.set_arg(ArgName::Ret, *handler_id); - Wires::from_irw(&irw, rm, curr_write, target_write) - } - } + Wires::from_irw(&prewires, rm, curr_write, target_write) } #[tracing::instrument(target = "gr1cs", skip(self, wires))] fn visit_resume(&self, mut wires: Wires) -> Result { @@ -2969,10 +2731,6 @@ impl PreWires { } } - pub fn set_arg(&mut self, kind: ArgName, value: F) { - self.opcode_args[kind.idx()] = value; - } - pub fn arg(&self, kind: ArgName) -> F { self.opcode_args[kind.idx()] } diff --git a/starstream_ivc_proto/src/circuit_test.rs b/starstream_ivc_proto/src/circuit_test.rs index 61c5d402..7066d17f 100644 --- a/starstream_ivc_proto/src/circuit_test.rs +++ b/starstream_ivc_proto/src/circuit_test.rs @@ -1,6 +1,6 @@ use crate::{logging::setup_logger, prove}; use starstream_mock_ledger::{ - Hash, InterleavingInstance, InterleavingWitness, MockedLookupTableCommitment, ProcessId, Ref, + Hash, InterleavingInstance, InterleavingWitness, LedgerEffectsCommitment, ProcessId, Ref, Value, WitEffectOutput, WitLedgerEffect, }; @@ -18,6 +18,18 @@ pub fn v(data: &[u8]) -> Value { Value(u64::from_le_bytes(bytes)) } +fn host_calls_roots(traces: &[Vec]) -> Vec { + traces + .iter() + .map(|trace| { + trace.iter().cloned().fold( + LedgerEffectsCommitment::zero(), + |acc, op| crate::commit(acc, op), + ) + }) + .collect() +} + #[test] fn test_circuit_many_steps() { setup_logger(); @@ -135,6 +147,8 @@ fn test_circuit_many_steps() { let trace_lens = traces.iter().map(|t| t.len() as u32).collect::>(); + let host_calls_roots = host_calls_roots(&traces); + let instance = InterleavingInstance { n_inputs: 0, n_new: 2, @@ -145,7 +159,7 @@ fn test_circuit_many_steps() { must_burn: vec![false, false, false], ownership_in: vec![None, None, None], ownership_out: vec![None, Some(ProcessId(0)), None], - host_calls_roots: vec![MockedLookupTableCommitment(0); traces.len()], + host_calls_roots, host_calls_lens: trace_lens, input_states: vec![], }; @@ -199,6 +213,8 @@ fn test_circuit_small() { let trace_lens = traces.iter().map(|t| t.len() as u32).collect::>(); + let host_calls_roots = host_calls_roots(&traces); + let instance = InterleavingInstance { n_inputs: 0, n_new: 1, @@ -209,7 +225,7 @@ fn test_circuit_small() { must_burn: vec![false, false], ownership_in: vec![None, None], ownership_out: vec![None, None], - host_calls_roots: vec![MockedLookupTableCommitment(0); traces.len()], + host_calls_roots, host_calls_lens: trace_lens, input_states: vec![], }; diff --git a/starstream_ivc_proto/src/lib.rs b/starstream_ivc_proto/src/lib.rs index 89a0ea7a..808cb3a7 100644 --- a/starstream_ivc_proto/src/lib.rs +++ b/starstream_ivc_proto/src/lib.rs @@ -3,6 +3,7 @@ mod circuit; mod circuit_test; // #[cfg(test)] // mod e2e; +mod abi; mod logging; mod memory; mod neo; @@ -12,6 +13,7 @@ pub use crate::circuit::OptionalF; use crate::memory::IVCMemory; use crate::memory::twist_and_shout::{TSMemLayouts, TSMemory}; use crate::neo::{StarstreamVm, StepCircuitNeo}; +use abi::ledger_operation_from_wit; use ark_relations::gr1cs::{ConstraintSystem, ConstraintSystemRef, SynthesisError}; use circuit::StepCircuitBuilder; pub use memory::nebula; @@ -32,6 +34,8 @@ pub type F = ark_goldilocks::FpGoldilocks; pub type ProgramId = F; +pub use abi::commit; + #[derive(Debug, Clone)] pub enum LedgerOperation { /// A call to starstream_resume. @@ -156,6 +160,8 @@ pub fn prove( ) -> Result { logging::setup_logger(); + let output_binding_config = inst.output_binding_config(); + // map all the disjoints vectors of traces (one per process) into a single // list, which is simpler to think about for ivc. let ops = make_interleaved_trace(&inst, &wit); @@ -210,10 +216,14 @@ pub fn prove( .expect("execute_into_session should succeed"); let t_prove = Instant::now(); - let run = session.fold_and_prove(prover.ccs()).unwrap(); + let run = session + .fold_and_prove_with_output_binding_auto_simple(prover.ccs(), &output_binding_config) + .unwrap(); tracing::info!("proof generated in {} ms", t_prove.elapsed().as_millis()); - let status = session.verify_collected(prover.ccs(), &run).unwrap(); + let status = session + .verify_with_output_binding_collected_simple(prover.ccs(), &run, &output_binding_config) + .unwrap(); assert!(status, "optimized verification should pass"); @@ -263,134 +273,27 @@ fn make_interleaved_trace( let instr = trace[*c].clone(); *c += 1; - let op = match instr { - starstream_mock_ledger::WitLedgerEffect::Resume { - target, - val, - ret, - id_prev: op_id_prev, - } => { + match instr { + starstream_mock_ledger::WitLedgerEffect::Resume { target, .. } => { id_prev = Some(id_curr); id_curr = target.0; - - LedgerOperation::Resume { - target: (target.0 as u64).into(), - // TODO: figure out how to manage these - // maybe for now just assume that these are short/fixed size - val: F::from(val.0), - ret: F::from(ret.unwrap().0), - id_prev: OptionalF::from_option( - op_id_prev.unwrap().map(|p| (p.0 as u64).into()), - ), - } } - starstream_mock_ledger::WitLedgerEffect::Yield { - val, - ret, - id_prev: op_id_prev, - } => { + starstream_mock_ledger::WitLedgerEffect::Yield { .. } => { let parent = id_prev.expect("Yield called without a parent process"); let old_id_curr = id_curr; id_curr = parent; id_prev = Some(old_id_curr); - - LedgerOperation::Yield { - val: F::from(val.0), - ret: ret.to_option().map(|ret| F::from(ret.0)), - id_prev: OptionalF::from_option( - op_id_prev.unwrap().map(|p| (p.0 as u64).into()), - ), - } } - starstream_mock_ledger::WitLedgerEffect::Burn { ret } => { + starstream_mock_ledger::WitLedgerEffect::Burn { .. } => { let parent = id_prev.expect("Burn called without a parent process"); let old_id_curr = id_curr; id_curr = parent; id_prev = Some(old_id_curr); - - LedgerOperation::Burn { - ret: F::from(ret.unwrap().0), - } - } - starstream_mock_ledger::WitLedgerEffect::NewUtxo { - program_hash, - val, - id, - } => LedgerOperation::NewUtxo { - program_hash: F::from(program_hash.0[0] as u64), - val: F::from(val.0), - target: (id.unwrap().0 as u64).into(), - }, - starstream_mock_ledger::WitLedgerEffect::NewCoord { - program_hash, - val, - id, - } => LedgerOperation::NewCoord { - program_hash: F::from(program_hash.0[0] as u64), - val: F::from(val.0), - target: (id.unwrap().0 as u64).into(), - }, - starstream_mock_ledger::WitLedgerEffect::Activation { val, caller } => { - LedgerOperation::Activation { - val: F::from(val.0), - caller: (caller.unwrap().0 as u64).into(), - } - } - starstream_mock_ledger::WitLedgerEffect::Init { val, caller } => { - LedgerOperation::Init { - val: F::from(val.0), - caller: (caller.unwrap().0 as u64).into(), - } - } - starstream_mock_ledger::WitLedgerEffect::Bind { owner_id } => LedgerOperation::Bind { - owner_id: (owner_id.0 as u64).into(), - }, - starstream_mock_ledger::WitLedgerEffect::Unbind { token_id } => { - LedgerOperation::Unbind { - token_id: (token_id.0 as u64).into(), - } - } - starstream_mock_ledger::WitLedgerEffect::NewRef { size, ret } => { - LedgerOperation::NewRef { - size: F::from(size as u64), - ret: F::from(ret.unwrap().0), - } } - starstream_mock_ledger::WitLedgerEffect::RefPush { val } => LedgerOperation::RefPush { - val: value_to_field(val), - }, - starstream_mock_ledger::WitLedgerEffect::Get { reff, offset, ret } => { - LedgerOperation::Get { - reff: F::from(reff.0), - offset: F::from(offset as u64), - ret: value_to_field(ret.unwrap()), - } - } - starstream_mock_ledger::WitLedgerEffect::ProgramHash { - target, - program_hash, - } => LedgerOperation::ProgramHash { - target: (target.0 as u64).into(), - program_hash: F::from(program_hash.unwrap().0[0]), - }, - starstream_mock_ledger::WitLedgerEffect::InstallHandler { interface_id } => { - LedgerOperation::InstallHandler { - interface_id: F::from(interface_id.0[0]), - } - } - starstream_mock_ledger::WitLedgerEffect::UninstallHandler { interface_id } => { - LedgerOperation::UninstallHandler { - interface_id: F::from(interface_id.0[0]), - } - } - starstream_mock_ledger::WitLedgerEffect::GetHandlerFor { - interface_id, - handler_id, - } => LedgerOperation::GetHandlerFor { - interface_id: F::from(interface_id.0[0]), - handler_id: (handler_id.unwrap().0 as u64).into(), - }, - }; + _ => {} + } + + let op = ledger_operation_from_wit(&instr); ops.push(op); } @@ -398,10 +301,6 @@ fn make_interleaved_trace( ops } -fn value_to_field(val: starstream_mock_ledger::Value) -> F { - F::from(val.0) -} - fn ccs_step_shape() -> Result<(ConstraintSystemRef, TSMemLayouts), SynthesisError> { let _span = tracing::debug_span!("dummy circuit").entered(); diff --git a/starstream_mock_ledger/Cargo.toml b/starstream_mock_ledger/Cargo.toml index 19929aa8..e82aaec2 100644 --- a/starstream_mock_ledger/Cargo.toml +++ b/starstream_mock_ledger/Cargo.toml @@ -7,6 +7,8 @@ edition = "2024" hex = "0.4.3" imbl = "6.1.0" thiserror = "2.0.17" +ark-ff = { version = "0.5.0", default-features = false } +ark-goldilocks = { path = "../ark-goldilocks" } # TODO: move to workspace deps neo-fold = { git = "https://github.com/nicarq/Nightstream.git", rev = "100f3e638e59537ae3f2a109c9a91c2af97479c0" } diff --git a/starstream_mock_ledger/README.md b/starstream_mock_ledger/README.md index bba9a1ef..a874371f 100644 --- a/starstream_mock_ledger/README.md +++ b/starstream_mock_ledger/README.md @@ -412,21 +412,20 @@ Rule: Burn ========== Destroys the UTXO state. - op = Burn(val_ref) + op = Burn(ret) 1. is_utxo[id_curr] 2. is_initialized[id_curr] 3. is_burned[id_curr] - 4. let val = ref_store[val_ref] in - M[id_prev] == val + 4. expected_input[id_prev] == ret - (Resume receives val) + (Resume receives ret) - 4. let + 5. let t = CC[id_curr] in c = counters[id_curr] in - t[c] == + t[c] == (Host call lookup condition) ----------------------------------------------------------------------- @@ -590,4 +589,4 @@ for (process, proof, host_calls) in transaction.proofs: assert_not(is_utxo[id_curr]) // we finish in a coordination script -``` \ No newline at end of file +``` diff --git a/starstream_mock_ledger/src/builder.rs b/starstream_mock_ledger/src/builder.rs index caee6671..d6e8a6e8 100644 --- a/starstream_mock_ledger/src/builder.rs +++ b/starstream_mock_ledger/src/builder.rs @@ -63,33 +63,66 @@ impl TransactionBuilder { } pub fn with_input( + self, + utxo: UtxoId, + continuation: Option, + trace: Vec, + ) -> Self { + self.with_input_and_trace_commitment( + utxo, + continuation, + trace, + LedgerEffectsCommitment::zero(), + ) + } + + pub fn with_input_and_trace_commitment( mut self, utxo: UtxoId, continuation: Option, trace: Vec, + host_calls_root: LedgerEffectsCommitment, ) -> Self { self.body.inputs.push(utxo); self.body.continuations.push(continuation); self.spending_proofs.push(ZkWasmProof { - host_calls_root: MockedLookupTableCommitment(0), + host_calls_root, trace, }); self } - pub fn with_fresh_output(mut self, output: NewOutput, trace: Vec) -> Self { + pub fn with_fresh_output(self, output: NewOutput, trace: Vec) -> Self { + self.with_fresh_output_and_trace_commitment(output, trace, LedgerEffectsCommitment::zero()) + } + + pub fn with_fresh_output_and_trace_commitment( + mut self, + output: NewOutput, + trace: Vec, + host_calls_root: LedgerEffectsCommitment, + ) -> Self { self.body.new_outputs.push(output); self.new_output_proofs.push(ZkWasmProof { - host_calls_root: MockedLookupTableCommitment(0), + host_calls_root, trace, }); self } - pub fn with_coord_script(mut self, key: Hash, trace: Vec) -> Self { + pub fn with_coord_script(self, key: Hash, trace: Vec) -> Self { + self.with_coord_script_and_trace_commitment(key, trace, LedgerEffectsCommitment::zero()) + } + + pub fn with_coord_script_and_trace_commitment( + mut self, + key: Hash, + trace: Vec, + host_calls_root: LedgerEffectsCommitment, + ) -> Self { self.body.coordination_scripts_keys.push(key); self.coordination_scripts.push(ZkWasmProof { - host_calls_root: MockedLookupTableCommitment(0), + host_calls_root, trace, }); self diff --git a/starstream_mock_ledger/src/lib.rs b/starstream_mock_ledger/src/lib.rs index e8c1eb3f..67621cbc 100644 --- a/starstream_mock_ledger/src/lib.rs +++ b/starstream_mock_ledger/src/lib.rs @@ -6,7 +6,7 @@ mod transaction_effects; mod tests; pub use crate::{ - mocked_verifier::InterleavingWitness, mocked_verifier::MockedLookupTableCommitment, + mocked_verifier::InterleavingWitness, mocked_verifier::LedgerEffectsCommitment, transaction_effects::ProcessId, }; use imbl::{HashMap, HashSet}; @@ -97,7 +97,16 @@ impl ZkTransactionProof { steps_public, ccs, } => { - let ok = { session.verify(&ccs, &mcss_public, &proof) }.expect("verify should run"); + let output_binding_config = inst.output_binding_config(); + + let ok = session + .verify_with_output_binding_simple( + &ccs, + &mcss_public, + &proof, + &output_binding_config, + ) + .expect("verify should run"); assert!(ok, "optimized verification should pass"); @@ -150,7 +159,7 @@ impl ZkTransactionProof { } pub struct ZkWasmProof { - pub host_calls_root: MockedLookupTableCommitment, + pub host_calls_root: LedgerEffectsCommitment, pub trace: Vec, } @@ -264,7 +273,7 @@ pub struct NewOutput { pub struct WasmInstance { /// Commitment to the ordered list of host calls performed by this vm. Each /// entry encodes opcode + args + return. - pub host_calls_root: MockedLookupTableCommitment, + pub host_calls_root: LedgerEffectsCommitment, /// Number of host calls (length of the list committed by host_calls_root). pub host_calls_len: u32, diff --git a/starstream_mock_ledger/src/mocked_verifier.rs b/starstream_mock_ledger/src/mocked_verifier.rs index ac40aded..32d217b9 100644 --- a/starstream_mock_ledger/src/mocked_verifier.rs +++ b/starstream_mock_ledger/src/mocked_verifier.rs @@ -12,11 +12,25 @@ use crate::{ Hash, InterleavingInstance, Ref, Value, WasmModule, WitEffectOutput, transaction_effects::{InterfaceId, ProcessId, witness::WitLedgerEffect}, }; +use ark_ff::Zero; +use ark_goldilocks::FpGoldilocks; use std::collections::HashMap; use thiserror; #[derive(Clone, PartialEq, Eq, Debug)] -pub struct MockedLookupTableCommitment(pub u64); +pub struct LedgerEffectsCommitment(pub [FpGoldilocks; 4]); + +impl Default for LedgerEffectsCommitment { + fn default() -> Self { + Self([FpGoldilocks::zero(); 4]) + } +} + +impl LedgerEffectsCommitment { + pub fn zero() -> Self { + Self::default() + } +} /// A “proof input” for tests: provide per-process traces directly. #[derive(Clone, Debug)] diff --git a/starstream_mock_ledger/src/transaction_effects/instance.rs b/starstream_mock_ledger/src/transaction_effects/instance.rs index ad7d3a18..24cf7775 100644 --- a/starstream_mock_ledger/src/transaction_effects/instance.rs +++ b/starstream_mock_ledger/src/transaction_effects/instance.rs @@ -1,6 +1,11 @@ +use ark_ff::PrimeField as _; +use neo_fold::output_binding::OutputBindingConfig; +use neo_memory::ProgramIO; +use p3_field::PrimeCharacteristicRing; + use crate::{ CoroutineState, Hash, WasmModule, mocked_verifier::InterleavingError, - mocked_verifier::MockedLookupTableCommitment, transaction_effects::ProcessId, + mocked_verifier::LedgerEffectsCommitment, transaction_effects::ProcessId, }; // this mirrors the configuration described in SEMANTICS.md @@ -8,7 +13,7 @@ use crate::{ pub struct InterleavingInstance { /// Digest of all per-process host call tables the circuit is wired to. /// One per wasm proof. - pub host_calls_roots: Vec, + pub host_calls_roots: Vec, #[allow(dead_code)] pub host_calls_lens: Vec, @@ -77,4 +82,26 @@ impl InterleavingInstance { Ok(()) } + + pub fn output_binding_config(&self) -> OutputBindingConfig { + let mut program_io = ProgramIO::new(); + + let mut addr = 0; + for comm in self.host_calls_roots.iter() { + for v in comm.0 { + program_io = + program_io.with_output(addr, neo_math::F::from_u64(v.into_bigint().0[0])); + addr += 1; + } + } + + let num_bits = 6; + // currently the twist tables have a size of 64, so 2**6 == 6 + // + // need to figure out if that can be generalized, or if we need a bound or not + + let output_binding_config = OutputBindingConfig::new(num_bits, program_io).with_mem_idx(12); + + output_binding_config + } } From ed36ef31aa467ecc31a1c33bee4ec054a85d21e8 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Fri, 16 Jan 2026 21:45:34 -0300 Subject: [PATCH 078/152] fix: git add missing abi.rs file Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream_ivc_proto/src/abi.rs | 227 ++++++++++++++++++++++++++++++++ 1 file changed, 227 insertions(+) create mode 100644 starstream_ivc_proto/src/abi.rs diff --git a/starstream_ivc_proto/src/abi.rs b/starstream_ivc_proto/src/abi.rs new file mode 100644 index 00000000..6fc73964 --- /dev/null +++ b/starstream_ivc_proto/src/abi.rs @@ -0,0 +1,227 @@ +use crate::{ArgName, F, LedgerOperation, OPCODE_ARG_COUNT, OptionalF}; +use ark_ff::Zero; +use starstream_mock_ledger::{EffectDiscriminant, LedgerEffectsCommitment, WitLedgerEffect}; + +pub fn commit(prev: LedgerEffectsCommitment, op: WitLedgerEffect) -> LedgerEffectsCommitment { + let ledger_op = ledger_operation_from_wit(&op); + let opcode_discriminant = opcode_discriminant(&ledger_op); + let opcode_args = opcode_args(&ledger_op); + + let mut concat = [F::zero(); 12]; + concat[..4].copy_from_slice(&prev.0); + concat[4] = opcode_discriminant; + concat[5..9].copy_from_slice(&opcode_args); + + let compressed = + ark_poseidon2::compress_12_trace(&concat).expect("poseidon2 compress_12_trace"); + LedgerEffectsCommitment(compressed) +} + +pub(crate) fn ledger_operation_from_wit(op: &WitLedgerEffect) -> LedgerOperation { + match op { + WitLedgerEffect::Resume { + target, + val, + ret, + id_prev, + } => LedgerOperation::Resume { + target: F::from(target.0 as u64), + val: F::from(val.0), + ret: ret.to_option().map(|r| F::from(r.0)).unwrap_or_default(), + id_prev: OptionalF::from_option( + id_prev.to_option().flatten().map(|p| F::from(p.0 as u64)), + ), + }, + WitLedgerEffect::Yield { val, ret, id_prev } => LedgerOperation::Yield { + val: F::from(val.0), + ret: ret.to_option().map(|r| F::from(r.0)), + id_prev: OptionalF::from_option( + id_prev.to_option().flatten().map(|p| F::from(p.0 as u64)), + ), + }, + WitLedgerEffect::Burn { ret } => LedgerOperation::Burn { + ret: F::from(ret.unwrap().0), + }, + WitLedgerEffect::ProgramHash { + target, + program_hash, + } => LedgerOperation::ProgramHash { + target: F::from(target.0 as u64), + program_hash: F::from(program_hash.unwrap().0[0] as u64), + }, + WitLedgerEffect::NewUtxo { + program_hash, + val, + id, + } => LedgerOperation::NewUtxo { + program_hash: F::from(program_hash.0[0] as u64), + val: F::from(val.0), + target: F::from(id.unwrap().0 as u64), + }, + WitLedgerEffect::NewCoord { + program_hash, + val, + id, + } => LedgerOperation::NewCoord { + program_hash: F::from(program_hash.0[0] as u64), + val: F::from(val.0), + target: F::from(id.unwrap().0 as u64), + }, + WitLedgerEffect::Activation { val, caller } => LedgerOperation::Activation { + val: F::from(val.0), + caller: F::from(caller.unwrap().0 as u64), + }, + WitLedgerEffect::Init { val, caller } => LedgerOperation::Init { + val: F::from(val.0), + caller: F::from(caller.unwrap().0 as u64), + }, + WitLedgerEffect::Bind { owner_id } => LedgerOperation::Bind { + owner_id: F::from(owner_id.0 as u64), + }, + WitLedgerEffect::Unbind { token_id } => LedgerOperation::Unbind { + token_id: F::from(token_id.0 as u64), + }, + WitLedgerEffect::NewRef { size, ret } => LedgerOperation::NewRef { + size: F::from(*size as u64), + ret: F::from(ret.unwrap().0), + }, + WitLedgerEffect::RefPush { val } => LedgerOperation::RefPush { + val: value_to_field(*val), + }, + WitLedgerEffect::Get { reff, offset, ret } => LedgerOperation::Get { + reff: F::from(reff.0), + offset: F::from(*offset as u64), + ret: value_to_field(ret.unwrap()), + }, + WitLedgerEffect::InstallHandler { interface_id } => LedgerOperation::InstallHandler { + interface_id: F::from(interface_id.0[0] as u64), + }, + WitLedgerEffect::UninstallHandler { interface_id } => LedgerOperation::UninstallHandler { + interface_id: F::from(interface_id.0[0] as u64), + }, + WitLedgerEffect::GetHandlerFor { + interface_id, + handler_id, + } => LedgerOperation::GetHandlerFor { + interface_id: F::from(interface_id.0[0] as u64), + handler_id: F::from(handler_id.unwrap().0 as u64), + }, + } +} + +pub(crate) fn opcode_discriminant(op: &LedgerOperation) -> F { + match op { + LedgerOperation::Nop {} => F::zero(), + LedgerOperation::Resume { .. } => F::from(EffectDiscriminant::Resume as u64), + LedgerOperation::Yield { .. } => F::from(EffectDiscriminant::Yield as u64), + LedgerOperation::Burn { .. } => F::from(EffectDiscriminant::Burn as u64), + LedgerOperation::ProgramHash { .. } => F::from(EffectDiscriminant::ProgramHash as u64), + LedgerOperation::NewUtxo { .. } => F::from(EffectDiscriminant::NewUtxo as u64), + LedgerOperation::NewCoord { .. } => F::from(EffectDiscriminant::NewCoord as u64), + LedgerOperation::Activation { .. } => F::from(EffectDiscriminant::Activation as u64), + LedgerOperation::Init { .. } => F::from(EffectDiscriminant::Init as u64), + LedgerOperation::Bind { .. } => F::from(EffectDiscriminant::Bind as u64), + LedgerOperation::Unbind { .. } => F::from(EffectDiscriminant::Unbind as u64), + LedgerOperation::NewRef { .. } => F::from(EffectDiscriminant::NewRef as u64), + LedgerOperation::RefPush { .. } => F::from(EffectDiscriminant::RefPush as u64), + LedgerOperation::Get { .. } => F::from(EffectDiscriminant::Get as u64), + LedgerOperation::InstallHandler { .. } => { + F::from(EffectDiscriminant::InstallHandler as u64) + } + LedgerOperation::UninstallHandler { .. } => { + F::from(EffectDiscriminant::UninstallHandler as u64) + } + LedgerOperation::GetHandlerFor { .. } => F::from(EffectDiscriminant::GetHandlerFor as u64), + } +} + +pub(crate) fn opcode_args(op: &LedgerOperation) -> [F; OPCODE_ARG_COUNT] { + let mut args = [F::zero(); OPCODE_ARG_COUNT]; + match op { + LedgerOperation::Nop {} => {} + LedgerOperation::Resume { + target, + val, + ret, + id_prev, + } => { + args[ArgName::Target.idx()] = *target; + args[ArgName::Val.idx()] = *val; + args[ArgName::Ret.idx()] = *ret; + args[ArgName::IdPrev.idx()] = id_prev.encoded(); + } + LedgerOperation::Yield { val, ret, id_prev } => { + args[ArgName::Target.idx()] = id_prev.decode_or_zero(); + args[ArgName::Val.idx()] = *val; + args[ArgName::Ret.idx()] = ret.unwrap_or_default(); + args[ArgName::IdPrev.idx()] = id_prev.encoded(); + } + LedgerOperation::Burn { ret } => { + args[ArgName::Target.idx()] = F::zero(); + args[ArgName::Ret.idx()] = *ret; + } + LedgerOperation::ProgramHash { + target, + program_hash, + } => { + args[ArgName::Target.idx()] = *target; + args[ArgName::ProgramHash.idx()] = *program_hash; + } + LedgerOperation::NewUtxo { + program_hash, + val, + target, + } + | LedgerOperation::NewCoord { + program_hash, + val, + target, + } => { + args[ArgName::Target.idx()] = *target; + args[ArgName::Val.idx()] = *val; + args[ArgName::ProgramHash.idx()] = *program_hash; + } + LedgerOperation::Activation { val, caller } => { + args[ArgName::Val.idx()] = *val; + args[ArgName::Caller.idx()] = *caller; + } + LedgerOperation::Init { val, caller } => { + args[ArgName::Val.idx()] = *val; + args[ArgName::Caller.idx()] = *caller; + } + LedgerOperation::Bind { owner_id } => { + args[ArgName::OwnerId.idx()] = *owner_id; + } + LedgerOperation::Unbind { token_id } => { + args[ArgName::TokenId.idx()] = *token_id; + } + LedgerOperation::NewRef { size, ret } => { + args[ArgName::Size.idx()] = *size; + args[ArgName::Ret.idx()] = *ret; + } + LedgerOperation::RefPush { val } => { + args[ArgName::Val.idx()] = *val; + } + LedgerOperation::Get { reff, offset, ret } => { + args[ArgName::Val.idx()] = *reff; + args[ArgName::Offset.idx()] = *offset; + args[ArgName::Ret.idx()] = *ret; + } + LedgerOperation::InstallHandler { interface_id } + | LedgerOperation::UninstallHandler { interface_id } => { + args[ArgName::InterfaceId.idx()] = *interface_id; + } + LedgerOperation::GetHandlerFor { + interface_id, + handler_id, + } => { + args[ArgName::InterfaceId.idx()] = *interface_id; + args[ArgName::Ret.idx()] = *handler_id; + } + } + args +} + +pub(crate) fn value_to_field(val: starstream_mock_ledger::Value) -> F { + F::from(val.0) +} From d66e1dd6110d250c97f52823712d7ddec1d830f7 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Fri, 16 Jan 2026 22:33:48 -0300 Subject: [PATCH 079/152] rename starstream_ivc_proto to starstream-interleaving-proof Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- Cargo.toml | 8 +++++--- .../Cargo.toml | 2 +- .../README.md | 0 .../effect-handlers-codegen-script-non-tail.png | Bin .../effect-handlers-codegen-simple.png | Bin .../graph.png | Bin .../src/abi.rs | 0 .../src/circuit.rs | 0 .../src/circuit_test.rs | 0 .../src/lib.rs | 4 +--- .../src/logging.rs | 0 .../src/memory/dummy.rs | 0 .../src/memory/mod.rs | 0 .../src/memory/nebula/gadget.rs | 0 .../src/memory/nebula/ic.rs | 0 .../src/memory/nebula/mod.rs | 0 .../src/memory/nebula/tracer.rs | 0 .../src/memory/twist_and_shout/mod.rs | 0 .../src/neo.rs | 0 starstream-runtime/Cargo.toml | 2 +- starstream-runtime/src/lib.rs | 5 ++--- 21 files changed, 10 insertions(+), 11 deletions(-) rename {starstream_ivc_proto => starstream-interleaving-proof}/Cargo.toml (97%) rename {starstream_ivc_proto => starstream-interleaving-proof}/README.md (100%) rename {starstream_ivc_proto => starstream-interleaving-proof}/effect-handlers-codegen-script-non-tail.png (100%) rename {starstream_ivc_proto => starstream-interleaving-proof}/effect-handlers-codegen-simple.png (100%) rename {starstream_ivc_proto => starstream-interleaving-proof}/graph.png (100%) rename {starstream_ivc_proto => starstream-interleaving-proof}/src/abi.rs (100%) rename {starstream_ivc_proto => starstream-interleaving-proof}/src/circuit.rs (100%) rename {starstream_ivc_proto => starstream-interleaving-proof}/src/circuit_test.rs (100%) rename {starstream_ivc_proto => starstream-interleaving-proof}/src/lib.rs (99%) rename {starstream_ivc_proto => starstream-interleaving-proof}/src/logging.rs (100%) rename {starstream_ivc_proto => starstream-interleaving-proof}/src/memory/dummy.rs (100%) rename {starstream_ivc_proto => starstream-interleaving-proof}/src/memory/mod.rs (100%) rename {starstream_ivc_proto => starstream-interleaving-proof}/src/memory/nebula/gadget.rs (100%) rename {starstream_ivc_proto => starstream-interleaving-proof}/src/memory/nebula/ic.rs (100%) rename {starstream_ivc_proto => starstream-interleaving-proof}/src/memory/nebula/mod.rs (100%) rename {starstream_ivc_proto => starstream-interleaving-proof}/src/memory/nebula/tracer.rs (100%) rename {starstream_ivc_proto => starstream-interleaving-proof}/src/memory/twist_and_shout/mod.rs (100%) rename {starstream_ivc_proto => starstream-interleaving-proof}/src/neo.rs (100%) diff --git a/Cargo.toml b/Cargo.toml index e873fc30..3418386b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,10 +9,12 @@ members = [ "starstream-sandbox-web", "starstream-to-wasm", "starstream-types", - "starstream_ivc_proto", + "starstream-interleaving-proof", "starstream_mock_ledger", - "starstream-runtime" -, "ark-poseidon2", "ark-goldilocks"] + "starstream-runtime", + "ark-poseidon2", + "ark-goldilocks" +] exclude = ["old"] [workspace.package] diff --git a/starstream_ivc_proto/Cargo.toml b/starstream-interleaving-proof/Cargo.toml similarity index 97% rename from starstream_ivc_proto/Cargo.toml rename to starstream-interleaving-proof/Cargo.toml index 988302db..0f1f1bcc 100644 --- a/starstream_ivc_proto/Cargo.toml +++ b/starstream-interleaving-proof/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "starstream_ivc_proto" +name = "starstream-interleaving-proof" version = "0.1.0" edition = "2024" diff --git a/starstream_ivc_proto/README.md b/starstream-interleaving-proof/README.md similarity index 100% rename from starstream_ivc_proto/README.md rename to starstream-interleaving-proof/README.md diff --git a/starstream_ivc_proto/effect-handlers-codegen-script-non-tail.png b/starstream-interleaving-proof/effect-handlers-codegen-script-non-tail.png similarity index 100% rename from starstream_ivc_proto/effect-handlers-codegen-script-non-tail.png rename to starstream-interleaving-proof/effect-handlers-codegen-script-non-tail.png diff --git a/starstream_ivc_proto/effect-handlers-codegen-simple.png b/starstream-interleaving-proof/effect-handlers-codegen-simple.png similarity index 100% rename from starstream_ivc_proto/effect-handlers-codegen-simple.png rename to starstream-interleaving-proof/effect-handlers-codegen-simple.png diff --git a/starstream_ivc_proto/graph.png b/starstream-interleaving-proof/graph.png similarity index 100% rename from starstream_ivc_proto/graph.png rename to starstream-interleaving-proof/graph.png diff --git a/starstream_ivc_proto/src/abi.rs b/starstream-interleaving-proof/src/abi.rs similarity index 100% rename from starstream_ivc_proto/src/abi.rs rename to starstream-interleaving-proof/src/abi.rs diff --git a/starstream_ivc_proto/src/circuit.rs b/starstream-interleaving-proof/src/circuit.rs similarity index 100% rename from starstream_ivc_proto/src/circuit.rs rename to starstream-interleaving-proof/src/circuit.rs diff --git a/starstream_ivc_proto/src/circuit_test.rs b/starstream-interleaving-proof/src/circuit_test.rs similarity index 100% rename from starstream_ivc_proto/src/circuit_test.rs rename to starstream-interleaving-proof/src/circuit_test.rs diff --git a/starstream_ivc_proto/src/lib.rs b/starstream-interleaving-proof/src/lib.rs similarity index 99% rename from starstream_ivc_proto/src/lib.rs rename to starstream-interleaving-proof/src/lib.rs index 808cb3a7..887dd469 100644 --- a/starstream_ivc_proto/src/lib.rs +++ b/starstream-interleaving-proof/src/lib.rs @@ -1,9 +1,7 @@ +mod abi; mod circuit; #[cfg(test)] mod circuit_test; -// #[cfg(test)] -// mod e2e; -mod abi; mod logging; mod memory; mod neo; diff --git a/starstream_ivc_proto/src/logging.rs b/starstream-interleaving-proof/src/logging.rs similarity index 100% rename from starstream_ivc_proto/src/logging.rs rename to starstream-interleaving-proof/src/logging.rs diff --git a/starstream_ivc_proto/src/memory/dummy.rs b/starstream-interleaving-proof/src/memory/dummy.rs similarity index 100% rename from starstream_ivc_proto/src/memory/dummy.rs rename to starstream-interleaving-proof/src/memory/dummy.rs diff --git a/starstream_ivc_proto/src/memory/mod.rs b/starstream-interleaving-proof/src/memory/mod.rs similarity index 100% rename from starstream_ivc_proto/src/memory/mod.rs rename to starstream-interleaving-proof/src/memory/mod.rs diff --git a/starstream_ivc_proto/src/memory/nebula/gadget.rs b/starstream-interleaving-proof/src/memory/nebula/gadget.rs similarity index 100% rename from starstream_ivc_proto/src/memory/nebula/gadget.rs rename to starstream-interleaving-proof/src/memory/nebula/gadget.rs diff --git a/starstream_ivc_proto/src/memory/nebula/ic.rs b/starstream-interleaving-proof/src/memory/nebula/ic.rs similarity index 100% rename from starstream_ivc_proto/src/memory/nebula/ic.rs rename to starstream-interleaving-proof/src/memory/nebula/ic.rs diff --git a/starstream_ivc_proto/src/memory/nebula/mod.rs b/starstream-interleaving-proof/src/memory/nebula/mod.rs similarity index 100% rename from starstream_ivc_proto/src/memory/nebula/mod.rs rename to starstream-interleaving-proof/src/memory/nebula/mod.rs diff --git a/starstream_ivc_proto/src/memory/nebula/tracer.rs b/starstream-interleaving-proof/src/memory/nebula/tracer.rs similarity index 100% rename from starstream_ivc_proto/src/memory/nebula/tracer.rs rename to starstream-interleaving-proof/src/memory/nebula/tracer.rs diff --git a/starstream_ivc_proto/src/memory/twist_and_shout/mod.rs b/starstream-interleaving-proof/src/memory/twist_and_shout/mod.rs similarity index 100% rename from starstream_ivc_proto/src/memory/twist_and_shout/mod.rs rename to starstream-interleaving-proof/src/memory/twist_and_shout/mod.rs diff --git a/starstream_ivc_proto/src/neo.rs b/starstream-interleaving-proof/src/neo.rs similarity index 100% rename from starstream_ivc_proto/src/neo.rs rename to starstream-interleaving-proof/src/neo.rs diff --git a/starstream-runtime/Cargo.toml b/starstream-runtime/Cargo.toml index adba95b3..08329fc7 100644 --- a/starstream-runtime/Cargo.toml +++ b/starstream-runtime/Cargo.toml @@ -8,7 +8,7 @@ repository.workspace = true license.workspace = true [dependencies] -starstream_ivc_proto = { path = "../starstream_ivc_proto"} +starstream-interleaving-proof = { path = "../starstream-interleaving-proof"} starstream_mock_ledger = { path = "../starstream_mock_ledger" } thiserror = "2.0.17" wasmi = "1.0.7" diff --git a/starstream-runtime/src/lib.rs b/starstream-runtime/src/lib.rs index ad56975a..cb4f80dd 100644 --- a/starstream-runtime/src/lib.rs +++ b/starstream-runtime/src/lib.rs @@ -1,5 +1,5 @@ use sha2::{Digest, Sha256}; -use starstream_ivc_proto::commit; +use starstream_interleaving_proof::commit; use starstream_mock_ledger::{ CoroutineState, EffectDiscriminant, Hash, InterfaceId, InterleavingInstance, InterleavingWitness, LedgerEffectsCommitment, NewOutput, OutputRef, ProcessId, @@ -465,8 +465,7 @@ impl UnprovenTransaction { pub fn prove(self) -> Result { let (instance, state, witness) = self.execute()?; - // ZkTransactionProof {}.verify(&instance).map_err(|e| Error::InvalidProof(e.to_string()))?; - let proof = starstream_ivc_proto::prove(instance.clone(), witness.clone()) + let proof = starstream_interleaving_proof::prove(instance.clone(), witness.clone()) .map_err(|e| Error::RuntimeError(e.to_string()))?; let mut builder = TransactionBuilder::new(); From 914bb6b901a5ad90bd2ff230f63632ce2443c9b4 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Sat, 17 Jan 2026 01:22:15 -0300 Subject: [PATCH 080/152] update Cargo.lock Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- Cargo.lock | 62 +++++++++++++++++++++++++++--------------------------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 0aeffdf2..9216cbf0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3162,6 +3162,36 @@ dependencies = [ "thiserror 2.0.17", ] +[[package]] +name = "starstream-interleaving-proof" +version = "0.1.0" +dependencies = [ + "ark-bn254", + "ark-ff", + "ark-goldilocks", + "ark-poly", + "ark-poly-commit", + "ark-poseidon2", + "ark-r1cs-std", + "ark-relations", + "neo-ajtai", + "neo-ccs", + "neo-fold", + "neo-math", + "neo-memory", + "neo-params", + "neo-vm-trace", + "p3-field", + "p3-goldilocks", + "p3-poseidon2", + "p3-symmetric", + "rand 0.9.2", + "rand_chacha 0.9.0", + "starstream_mock_ledger", + "tracing", + "tracing-subscriber", +] + [[package]] name = "starstream-interpreter" version = "0.0.0" @@ -3203,7 +3233,7 @@ version = "0.0.0" dependencies = [ "imbl", "sha2", - "starstream_ivc_proto", + "starstream-interleaving-proof", "starstream_mock_ledger", "thiserror 2.0.17", "wasmi", @@ -3250,36 +3280,6 @@ dependencies = [ "thiserror 2.0.17", ] -[[package]] -name = "starstream_ivc_proto" -version = "0.1.0" -dependencies = [ - "ark-bn254", - "ark-ff", - "ark-goldilocks", - "ark-poly", - "ark-poly-commit", - "ark-poseidon2", - "ark-r1cs-std", - "ark-relations", - "neo-ajtai", - "neo-ccs", - "neo-fold", - "neo-math", - "neo-memory", - "neo-params", - "neo-vm-trace", - "p3-field", - "p3-goldilocks", - "p3-poseidon2", - "p3-symmetric", - "rand 0.9.2", - "rand_chacha 0.9.0", - "starstream_mock_ledger", - "tracing", - "tracing-subscriber", -] - [[package]] name = "starstream_mock_ledger" version = "0.1.0" From fc573b80cdcb3ffcd1f2e7603aef86c565f35f3c Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Sat, 17 Jan 2026 12:22:37 -0300 Subject: [PATCH 081/152] interleaving circuit: use the full module hash for the relevant opcodes Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream-interleaving-proof/src/abi.rs | 69 ++++++++++-- starstream-interleaving-proof/src/circuit.rs | 112 ++++++++++++------- starstream-interleaving-proof/src/lib.rs | 43 +------ starstream-interleaving-proof/src/logging.rs | 5 - starstream-interleaving-proof/src/neo.rs | 2 +- starstream_mock_ledger/src/lib.rs | 28 +++-- 6 files changed, 155 insertions(+), 104 deletions(-) diff --git a/starstream-interleaving-proof/src/abi.rs b/starstream-interleaving-proof/src/abi.rs index 6fc73964..d8b111f3 100644 --- a/starstream-interleaving-proof/src/abi.rs +++ b/starstream-interleaving-proof/src/abi.rs @@ -1,6 +1,8 @@ -use crate::{ArgName, F, LedgerOperation, OPCODE_ARG_COUNT, OptionalF}; +use crate::{F, LedgerOperation, OptionalF}; use ark_ff::Zero; -use starstream_mock_ledger::{EffectDiscriminant, LedgerEffectsCommitment, WitLedgerEffect}; +use starstream_mock_ledger::{EffectDiscriminant, Hash, LedgerEffectsCommitment, WitLedgerEffect}; + +pub const OPCODE_ARG_COUNT: usize = 7; pub fn commit(prev: LedgerEffectsCommitment, op: WitLedgerEffect) -> LedgerEffectsCommitment { let ledger_op = ledger_operation_from_wit(&op); @@ -10,13 +12,49 @@ pub fn commit(prev: LedgerEffectsCommitment, op: WitLedgerEffect) -> LedgerEffec let mut concat = [F::zero(); 12]; concat[..4].copy_from_slice(&prev.0); concat[4] = opcode_discriminant; - concat[5..9].copy_from_slice(&opcode_args); + concat[5..].copy_from_slice(&opcode_args); let compressed = ark_poseidon2::compress_12_trace(&concat).expect("poseidon2 compress_12_trace"); LedgerEffectsCommitment(compressed) } +#[derive(Copy, Clone, Debug)] +pub enum ArgName { + Target, + Val, + Ret, + IdPrev, + Offset, + Size, + ProgramHash0, + ProgramHash1, + ProgramHash2, + ProgramHash3, + Caller, + OwnerId, + TokenId, + InterfaceId, +} + +impl ArgName { + // maps argument names to positional indices + // + // these need to match the order in the ABI used by the wasm/program vm. + pub const fn idx(self) -> usize { + match self { + ArgName::Target | ArgName::OwnerId | ArgName::TokenId => 0, + ArgName::Val | ArgName::InterfaceId => 1, + ArgName::Ret => 2, + ArgName::IdPrev | ArgName::Offset | ArgName::Size | ArgName::Caller => 3, + ArgName::ProgramHash0 => 3, + ArgName::ProgramHash1 => 4, + ArgName::ProgramHash2 => 5, + ArgName::ProgramHash3 => 6, + } + } +} + pub(crate) fn ledger_operation_from_wit(op: &WitLedgerEffect) -> LedgerOperation { match op { WitLedgerEffect::Resume { @@ -47,14 +85,14 @@ pub(crate) fn ledger_operation_from_wit(op: &WitLedgerEffect) -> LedgerOperation program_hash, } => LedgerOperation::ProgramHash { target: F::from(target.0 as u64), - program_hash: F::from(program_hash.unwrap().0[0] as u64), + program_hash: encode_hash_as_fields(program_hash.unwrap()), }, WitLedgerEffect::NewUtxo { program_hash, val, id, } => LedgerOperation::NewUtxo { - program_hash: F::from(program_hash.0[0] as u64), + program_hash: encode_hash_as_fields(*program_hash), val: F::from(val.0), target: F::from(id.unwrap().0 as u64), }, @@ -63,7 +101,7 @@ pub(crate) fn ledger_operation_from_wit(op: &WitLedgerEffect) -> LedgerOperation val, id, } => LedgerOperation::NewCoord { - program_hash: F::from(program_hash.0[0] as u64), + program_hash: encode_hash_as_fields(*program_hash), val: F::from(val.0), target: F::from(id.unwrap().0 as u64), }, @@ -165,7 +203,10 @@ pub(crate) fn opcode_args(op: &LedgerOperation) -> [F; OPCODE_ARG_COUNT] { program_hash, } => { args[ArgName::Target.idx()] = *target; - args[ArgName::ProgramHash.idx()] = *program_hash; + args[ArgName::ProgramHash0.idx()] = program_hash[0]; + args[ArgName::ProgramHash1.idx()] = program_hash[1]; + args[ArgName::ProgramHash2.idx()] = program_hash[2]; + args[ArgName::ProgramHash3.idx()] = program_hash[3]; } LedgerOperation::NewUtxo { program_hash, @@ -179,7 +220,10 @@ pub(crate) fn opcode_args(op: &LedgerOperation) -> [F; OPCODE_ARG_COUNT] { } => { args[ArgName::Target.idx()] = *target; args[ArgName::Val.idx()] = *val; - args[ArgName::ProgramHash.idx()] = *program_hash; + args[ArgName::ProgramHash0.idx()] = program_hash[0]; + args[ArgName::ProgramHash1.idx()] = program_hash[1]; + args[ArgName::ProgramHash2.idx()] = program_hash[2]; + args[ArgName::ProgramHash3.idx()] = program_hash[3]; } LedgerOperation::Activation { val, caller } => { args[ArgName::Val.idx()] = *val; @@ -222,6 +266,15 @@ pub(crate) fn opcode_args(op: &LedgerOperation) -> [F; OPCODE_ARG_COUNT] { args } +pub(crate) fn encode_hash_as_fields(hash: Hash) -> [F; 4] { + let mut out = [F::zero(); 4]; + for (i, chunk) in hash.0.chunks_exact(8).take(4).enumerate() { + let bytes: [u8; 8] = chunk.try_into().expect("hash chunk size"); + out[i] = F::from(u64::from_le_bytes(bytes)); + } + out +} + pub(crate) fn value_to_field(val: starstream_mock_ledger::Value) -> F { F::from(val.0) } diff --git a/starstream-interleaving-proof/src/circuit.rs b/starstream-interleaving-proof/src/circuit.rs index 96b02c15..f3f13df7 100644 --- a/starstream-interleaving-proof/src/circuit.rs +++ b/starstream-interleaving-proof/src/circuit.rs @@ -1,6 +1,6 @@ +use crate::abi::{self, ArgName, OPCODE_ARG_COUNT}; use crate::memory::twist_and_shout::Lanes; use crate::memory::{self, Address, IVCMemory, MemType}; -use crate::{ArgName, OPCODE_ARG_COUNT, abi}; use crate::{F, LedgerOperation, memory::IVCMemoryAllocated}; use ark_ff::{AdditiveGroup, Field as _, PrimeField}; use ark_r1cs_std::fields::FieldVar; @@ -611,7 +611,7 @@ pub struct Wires { is_utxo_curr: FpVar, is_utxo_target: FpVar, must_burn_curr: FpVar, - rom_program_hash: FpVar, + rom_program_hash: [FpVar; 4], constant_false: Boolean, constant_true: Boolean, @@ -912,14 +912,24 @@ impl Wires { )?[0] .clone(); - let rom_program_hash = rm.conditional_read( - &rom_switches.read_program_hash_target, - &Address { - addr: target_address.clone(), - tag: MemoryTag::ProcessTable.allocate(cs.clone())?, - }, - )?[0] - .clone(); + let mut rom_program_hash_vec = Vec::with_capacity(4); + let process_table_stride = FpVar::new_constant(cs.clone(), F::from(4))?; + for i in 0..4 { + let offset = FpVar::new_constant(cs.clone(), F::from(i as u64))?; + let addr = &target_address * &process_table_stride + offset; + let value = rm.conditional_read( + &rom_switches.read_program_hash_target, + &Address { + addr, + tag: MemoryTag::ProcessTable.allocate(cs.clone())?, + }, + )?[0] + .clone(); + rom_program_hash_vec.push(value); + } + let rom_program_hash: [FpVar; 4] = rom_program_hash_vec + .try_into() + .expect("rom program hash length"); // addr = ref + offset let get_addr = &val + &offset; @@ -1027,7 +1037,6 @@ impl Wires { interface_rom_read: interface_rom_read.clone(), }; - // Read current trace commitment (4 field elements) let should_trace = switches.nop.clone().not(); trace_ic_wires( id_curr.clone(), @@ -1547,14 +1556,17 @@ impl> StepCircuitBuilder { register_memory_segments(&mut mb); for (pid, mod_hash) in self.instance.process_table.iter().enumerate() { - mb.init( - Address { - addr: pid as u64, - tag: MemoryTag::ProcessTable.into(), - }, - // TODO: use a proper conversion from hash to val, this is just a placeholder - vec![F::from(mod_hash.0[0] as u64)], - ); + let hash_fields = abi::encode_hash_as_fields(*mod_hash); + for (lane, field) in hash_fields.iter().enumerate() { + let addr = (pid * 4) + lane; + mb.init( + Address { + addr: addr as u64, + tag: MemoryTag::ProcessTable.into(), + }, + vec![*field], + ); + } mb.init( Address { @@ -1747,13 +1759,17 @@ impl> StepCircuitBuilder { tag: MemoryTag::MustBurn.into(), }, ); - mb.conditional_read( - rom_switches.read_program_hash_target, - Address { - addr: target_pid.unwrap_or(0), - tag: MemoryTag::ProcessTable.into(), - }, - ); + let target_pid_value = target_pid.unwrap_or(0); + for lane in 0..4 { + let addr = (target_pid_value * 4) + lane; + mb.conditional_read( + rom_switches.read_program_hash_target, + Address { + addr: addr as u64, + tag: MemoryTag::ProcessTable.into(), + }, + ); + } let (curr_write, target_write) = instr.program_state_transitions(curr_read, target_read); @@ -1767,12 +1783,7 @@ impl> StepCircuitBuilder { &curr_write, &curr_switches, ); - trace_program_state_writes( - &mut mb, - target_pid.unwrap_or(0), - &target_write, - &target_switches, - ); + trace_program_state_writes(&mut mb, target_pid_value, &target_write, &target_switches); // update pids for next iteration match instr { @@ -2289,9 +2300,15 @@ impl> StepCircuitBuilder { target_is_utxo.conditional_enforce_equal(&wires.switches.new_utxo, &switch)?; // 3. Program hash check - wires - .rom_program_hash - .conditional_enforce_equal(&wires.arg(ArgName::ProgramHash), &switch)?; + let program_hash_args = [ + ArgName::ProgramHash0, + ArgName::ProgramHash1, + ArgName::ProgramHash2, + ArgName::ProgramHash3, + ]; + for (i, arg) in program_hash_args.iter().enumerate() { + wires.rom_program_hash[i].conditional_enforce_equal(&wires.arg(*arg), &switch)?; + } // 4. Target counter must be 0. wires @@ -2477,9 +2494,17 @@ impl> StepCircuitBuilder { fn visit_program_hash(&self, wires: Wires) -> Result { let switch = &wires.switches.program_hash; - wires - .arg(ArgName::ProgramHash) - .conditional_enforce_equal(&wires.rom_program_hash, switch)?; + let program_hash_args = [ + ArgName::ProgramHash0, + ArgName::ProgramHash1, + ArgName::ProgramHash2, + ArgName::ProgramHash3, + ]; + for (i, arg) in program_hash_args.iter().enumerate() { + wires + .arg(*arg) + .conditional_enforce_equal(&wires.rom_program_hash[i], switch)?; + } Ok(wires) } @@ -2566,10 +2591,11 @@ impl> StepCircuitBuilder { } fn register_memory_segments>(mb: &mut M) { - mb.register_mem( + mb.register_mem_with_lanes( MemoryTag::ProcessTable.into(), 1, MemType::Rom, + Lanes(4), "ROM_PROCESS_TABLE", ); mb.register_mem(MemoryTag::MustBurn.into(), 1, MemType::Rom, "ROM_MUST_BURN"); @@ -2843,7 +2869,7 @@ fn trace_ic>(curr_pid: usize, mb: &mut M, config: &OpcodeConfig) } concat_data[4] = config.opcode_discriminant; - for i in 0..4 { + for i in 0..OPCODE_ARG_COUNT { concat_data[i + 5] = config.opcode_args[i]; } @@ -2899,9 +2925,9 @@ fn trace_ic_wires>( opcode_args[1].clone(), opcode_args[2].clone(), opcode_args[3].clone(), - FpVar::new_witness(cs.clone(), || Ok(F::from(0)))?, - FpVar::new_witness(cs.clone(), || Ok(F::from(0)))?, - FpVar::new_witness(cs.clone(), || Ok(F::from(0)))?, + opcode_args[4].clone(), + opcode_args[5].clone(), + opcode_args[6].clone(), ]; let new_commitment = ark_poseidon2::compress_12(&compress_input)?; diff --git a/starstream-interleaving-proof/src/lib.rs b/starstream-interleaving-proof/src/lib.rs index 887dd469..63f47f84 100644 --- a/starstream-interleaving-proof/src/lib.rs +++ b/starstream-interleaving-proof/src/lib.rs @@ -58,15 +58,15 @@ pub enum LedgerOperation { }, ProgramHash { target: F, - program_hash: F, + program_hash: [F; 4], }, NewUtxo { - program_hash: F, - val: F, target: F, + val: F, + program_hash: [F; 4], }, NewCoord { - program_hash: F, + program_hash: [F; 4], val: F, target: F, }, @@ -117,41 +117,6 @@ pub enum LedgerOperation { Nop {}, } -pub const OPCODE_ARG_COUNT: usize = 4; - -#[derive(Copy, Clone, Debug)] -pub enum ArgName { - Target, - Val, - Ret, - IdPrev, - Offset, - Size, - ProgramHash, - Caller, - OwnerId, - TokenId, - InterfaceId, -} - -impl ArgName { - // maps argument names to positional indices - // - // these need to match the order in the ABI used by the wasm/program vm. - pub const fn idx(self) -> usize { - match self { - ArgName::Target | ArgName::OwnerId | ArgName::TokenId => 0, - ArgName::Val | ArgName::InterfaceId => 1, - ArgName::Ret => 2, - ArgName::IdPrev - | ArgName::Offset - | ArgName::Size - | ArgName::ProgramHash - | ArgName::Caller => 3, - } - } -} - pub fn prove( inst: InterleavingInstance, wit: InterleavingWitness, diff --git a/starstream-interleaving-proof/src/logging.rs b/starstream-interleaving-proof/src/logging.rs index 008ad40f..0dc40105 100644 --- a/starstream-interleaving-proof/src/logging.rs +++ b/starstream-interleaving-proof/src/logging.rs @@ -9,11 +9,6 @@ pub(crate) fn setup_logger() { let subscriber = Registry::default() .with(fmt::layer().with_test_writer()) - // .with( - // EnvFilter::from_default_env() - // .add_directive("starstream_ivc_proto=debug".parse().unwrap()) - // .add_directive("warn".parse().unwrap()), // Default to warn for everything else - // ) .with(constraint_layer); tracing::subscriber::set_global_default(subscriber) diff --git a/starstream-interleaving-proof/src/neo.rs b/starstream-interleaving-proof/src/neo.rs index a80901ed..1bb62b50 100644 --- a/starstream-interleaving-proof/src/neo.rs +++ b/starstream-interleaving-proof/src/neo.rs @@ -72,7 +72,7 @@ impl WitnessLayout for CircuitLayout { const M_IN: usize = 1; // instance.len()+witness.len() - const USED_COLS: usize = 870; + const USED_COLS: usize = 882; fn new_layout() -> Self { CircuitLayout {} diff --git a/starstream_mock_ledger/src/lib.rs b/starstream_mock_ledger/src/lib.rs index 67621cbc..6b4e573a 100644 --- a/starstream_mock_ledger/src/lib.rs +++ b/starstream_mock_ledger/src/lib.rs @@ -49,6 +49,15 @@ impl Value { } } +fn encode_hash_to_fields(hash: Hash) -> [neo_math::F; 4] { + let mut out = [neo_math::F::from_u64(0); 4]; + for (i, chunk) in hash.0.chunks_exact(8).take(4).enumerate() { + let bytes: [u8; 8] = chunk.try_into().expect("hash chunk size"); + out[i] = neo_math::F::from_u64(u64::from_le_bytes(bytes)); + } + out +} + #[derive(Clone, Copy, PartialEq, Eq, Hash, Debug)] pub struct Ref(pub u64); @@ -114,15 +123,18 @@ impl ZkTransactionProof { // NOTE: the indices in steps_public match the memory initializations // ordered by MemoryTag in the circuit + let process_table = &steps_public[0].lut_insts[0].table; + let mut expected_fields = Vec::with_capacity(inst.process_table.len() * 4); + for hash in &inst.process_table { + let hash_fields = encode_hash_to_fields(*hash); + expected_fields.extend(hash_fields.iter().copied()); + } assert!( - inst.process_table - .iter() - .zip(steps_public[0].lut_insts[0].table.iter()) - // TODO: the table should actually contain the full hash, this needs to be updated in the circuit first though - .all( - |(expected, found)| neo_math::F::from_u64(expected.0[0].into()) - == *found - ), + expected_fields.len() == process_table.len() + && expected_fields + .iter() + .zip(process_table.iter()) + .all(|(expected, found)| *expected == *found), "program hash table mismatch" ); From 8743995e3283fca8a19b4bc7488dcc7a8ed650b2 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Sat, 17 Jan 2026 19:03:04 -0300 Subject: [PATCH 082/152] chore: simplify memory lane configuration by tracking current step in mem tracing loop Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- starstream-interleaving-proof/src/circuit.rs | 340 ++++++++---------- .../src/memory/dummy.rs | 2 + .../src/memory/mod.rs | 2 + .../src/memory/nebula/tracer.rs | 2 + .../src/memory/twist_and_shout/mod.rs | 50 ++- 5 files changed, 200 insertions(+), 196 deletions(-) diff --git a/starstream-interleaving-proof/src/circuit.rs b/starstream-interleaving-proof/src/circuit.rs index f3f13df7..2864777b 100644 --- a/starstream-interleaving-proof/src/circuit.rs +++ b/starstream-interleaving-proof/src/circuit.rs @@ -1,5 +1,4 @@ use crate::abi::{self, ArgName, OPCODE_ARG_COUNT}; -use crate::memory::twist_and_shout::Lanes; use crate::memory::{self, Address, IVCMemory, MemType}; use crate::{F, LedgerOperation, memory::IVCMemoryAllocated}; use ark_ff::{AdditiveGroup, Field as _, PrimeField}; @@ -1704,6 +1703,9 @@ impl> StepCircuitBuilder { self.instance.entrypoint.0 as u64, ); + let mut ref_building_id = F::ZERO; + let mut ref_building_offset = F::ZERO; + for instr in &self.ops { let config = instr.get_config(); @@ -1720,6 +1722,134 @@ impl> StepCircuitBuilder { self.rom_switches.push(rom_switches.clone()); self.handler_switches.push(handler_switches.clone()); + // Get interface index for handler operations + let interface_index = match instr { + LedgerOperation::InstallHandler { interface_id } => self + .interface_resolver + .get_interface_index_field(*interface_id), + LedgerOperation::UninstallHandler { interface_id } => self + .interface_resolver + .get_interface_index_field(*interface_id), + LedgerOperation::GetHandlerFor { interface_id, .. } => self + .interface_resolver + .get_interface_index_field(*interface_id), + _ => F::ZERO, + }; + + mb.conditional_read( + handler_switches.read_interface, + Address { + tag: MemoryTag::Interfaces.into(), + addr: interface_index.into_bigint().0[0], + }, + ); + + let current_head = mb.conditional_read( + handler_switches.read_head, + Address { + tag: MemoryTag::HandlerStackHeads.into(), + addr: interface_index.into_bigint().0[0], + }, + )[0]; + + let _node_process = mb.conditional_read( + handler_switches.read_node, + Address { + tag: MemoryTag::HandlerStackArenaProcess.into(), + addr: current_head.into_bigint().0[0], + }, + )[0]; + + let node_next = mb.conditional_read( + handler_switches.read_node, + Address { + tag: MemoryTag::HandlerStackArenaNextPtr.into(), + addr: current_head.into_bigint().0[0], + }, + )[0]; + + mb.conditional_write( + handler_switches.write_node, + Address { + tag: MemoryTag::HandlerStackArenaProcess.into(), + addr: irw.handler_stack_counter.into_bigint().0[0], + }, + if handler_switches.write_node { + vec![irw.id_curr] + } else { + vec![F::ZERO] + }, + ); + + mb.conditional_write( + handler_switches.write_node, + Address { + tag: MemoryTag::HandlerStackArenaNextPtr.into(), + addr: irw.handler_stack_counter.into_bigint().0[0], + }, + if handler_switches.write_node { + vec![current_head] + } else { + vec![F::ZERO] + }, + ); + + mb.conditional_write( + handler_switches.write_head, + Address { + tag: MemoryTag::HandlerStackHeads.into(), + addr: interface_index.into_bigint().0[0], + }, + vec![if handler_switches.write_node { + irw.handler_stack_counter + } else if handler_switches.write_head { + node_next + } else { + F::ZERO + }], + ); + + if config.execution_switches.install_handler { + irw.handler_stack_counter += F::ONE; + } + + match instr { + LedgerOperation::NewRef { size: _, ret } => { + ref_building_id = *ret; + ref_building_offset = F::ZERO; + } + LedgerOperation::RefPush { val } => { + let addr = + ref_building_id.into_bigint().0[0] + ref_building_offset.into_bigint().0[0]; + + mb.conditional_write( + true, + Address { + tag: MemoryTag::RefArena.into(), + addr, + }, + vec![*val], + ); + + ref_building_offset += F::ONE; + } + LedgerOperation::Get { + reff, + offset, + ret: _, + } => { + let addr = reff.into_bigint().0[0] + offset.into_bigint().0[0]; + mb.conditional_read( + true, + Address { + tag: MemoryTag::RefArena.into(), + addr, + }, + ); + } + _ => {} + } + let target_addr = match instr { LedgerOperation::Resume { target, .. } => Some(*target), LedgerOperation::Yield { .. } => irw.id_prev.to_option(), @@ -1737,7 +1867,6 @@ impl> StepCircuitBuilder { let target_read = trace_program_state_reads(&mut mb, target_pid.unwrap_or(0), &target_switches); - // Trace ROM reads mb.conditional_read( rom_switches.read_is_utxo_curr, Address { @@ -1798,58 +1927,20 @@ impl> StepCircuitBuilder { } _ => {} } - } - - let mut ref_building_id = F::ZERO; - let mut ref_building_offset = F::ZERO; - - for instr in &self.ops { - match instr { - LedgerOperation::NewRef { size: _, ret } => { - ref_building_id = *ret; - ref_building_offset = F::ZERO; - } - LedgerOperation::RefPush { val } => { - let addr = - ref_building_id.into_bigint().0[0] + ref_building_offset.into_bigint().0[0]; - - mb.conditional_write( - true, - Address { - tag: MemoryTag::RefArena.into(), - addr, - }, - vec![*val], - ); - ref_building_offset += F::ONE; - } - LedgerOperation::Get { - reff, - offset, - ret: _, - } => { - let addr = reff.into_bigint().0[0] + offset.into_bigint().0[0]; - mb.conditional_read( - true, - Address { - tag: MemoryTag::RefArena.into(), - addr, - }, - ); - } - _ => {} - } + mb.finish_step(); } - // Handler stack memory operations - always perform for uniform circuit - self.trace_handler_stack_mem_opcodes(&mut mb); - let current_steps = self.ops.len(); if let Some(missing) = mb.required_steps().checked_sub(current_steps) { tracing::debug!("padding with {missing} Nop operations for scan"); self.ops .extend(std::iter::repeat_n(LedgerOperation::Nop {}, missing)); + + // TODO: we probably want to do this before the main loop + for _ in 0..missing { + mb.finish_step(); + } } mb @@ -1902,110 +1993,6 @@ impl> StepCircuitBuilder { } } - fn trace_handler_stack_mem_opcodes(&mut self, mb: &mut M) { - let mut irw = InterRoundWires::new( - F::from(self.p_len() as u64), - self.instance.entrypoint.0 as u64, - ); - - for instr in self.ops.iter() { - let config = instr.get_config(); - - // Get interface index for handler operations - let interface_index = match instr { - LedgerOperation::InstallHandler { interface_id } => self - .interface_resolver - .get_interface_index_field(*interface_id), - LedgerOperation::UninstallHandler { interface_id } => self - .interface_resolver - .get_interface_index_field(*interface_id), - LedgerOperation::GetHandlerFor { interface_id, .. } => self - .interface_resolver - .get_interface_index_field(*interface_id), - _ => F::ZERO, - }; - - // Trace handler memory operations directly - mb.conditional_read( - config.handler_switches.read_interface, - Address { - tag: MemoryTag::Interfaces.into(), - addr: interface_index.into_bigint().0[0], - }, - ); - - let current_head = mb.conditional_read( - config.handler_switches.read_head, - Address { - tag: MemoryTag::HandlerStackHeads.into(), - addr: interface_index.into_bigint().0[0], - }, - )[0]; - - let _node_process = mb.conditional_read( - config.handler_switches.read_node, - Address { - tag: MemoryTag::HandlerStackArenaProcess.into(), - addr: current_head.into_bigint().0[0], - }, - )[0]; - - let node_next = mb.conditional_read( - config.handler_switches.read_node, - Address { - tag: MemoryTag::HandlerStackArenaNextPtr.into(), - addr: current_head.into_bigint().0[0], - }, - )[0]; - - mb.conditional_write( - config.handler_switches.write_node, - Address { - tag: MemoryTag::HandlerStackArenaProcess.into(), - addr: irw.handler_stack_counter.into_bigint().0[0], - }, - if config.handler_switches.write_node { - vec![irw.id_curr] - } else { - vec![F::ZERO] - }, - ); - - mb.conditional_write( - config.handler_switches.write_node, - Address { - tag: MemoryTag::HandlerStackArenaNextPtr.into(), - addr: irw.handler_stack_counter.into_bigint().0[0], - }, - if config.handler_switches.write_node { - vec![current_head] - } else { - vec![F::ZERO] - }, - ); - - mb.conditional_write( - config.handler_switches.write_head, - Address { - tag: MemoryTag::HandlerStackHeads.into(), - addr: interface_index.into_bigint().0[0], - }, - vec![if config.handler_switches.write_node { - irw.handler_stack_counter - } else if config.handler_switches.write_head { - node_next - } else { - F::ZERO - }], - ); - - // Update IRW for next iteration if this is install_handler - if config.execution_switches.install_handler { - irw.handler_stack_counter += F::ONE; - } - } - } - #[tracing::instrument(target = "gr1cs", skip_all)] fn allocate_vars( &self, @@ -2591,21 +2578,14 @@ impl> StepCircuitBuilder { } fn register_memory_segments>(mb: &mut M) { - mb.register_mem_with_lanes( + mb.register_mem( MemoryTag::ProcessTable.into(), 1, MemType::Rom, - Lanes(4), "ROM_PROCESS_TABLE", ); mb.register_mem(MemoryTag::MustBurn.into(), 1, MemType::Rom, "ROM_MUST_BURN"); - mb.register_mem_with_lanes( - MemoryTag::IsUtxo.into(), - 1, - MemType::Rom, - Lanes(2), - "ROM_IS_UTXO", - ); + mb.register_mem(MemoryTag::IsUtxo.into(), 1, MemType::Rom, "ROM_IS_UTXO"); mb.register_mem( MemoryTag::Interfaces.into(), 1, @@ -2615,60 +2595,37 @@ fn register_memory_segments>(mb: &mut M) { mb.register_mem(MemoryTag::RefArena.into(), 1, MemType::Ram, "RAM_REF_ARENA"); - mb.register_mem_with_lanes( + mb.register_mem( MemoryTag::ExpectedInput.into(), 1, MemType::Ram, - Lanes(2), "RAM_EXPECTED_INPUT", ); - mb.register_mem_with_lanes( + mb.register_mem( MemoryTag::Activation.into(), 1, MemType::Ram, - Lanes(2), "RAM_ACTIVATION", ); - mb.register_mem_with_lanes( - MemoryTag::Init.into(), - 1, - MemType::Ram, - Lanes(2), - "RAM_INIT", - ); - mb.register_mem_with_lanes( - MemoryTag::Counters.into(), - 1, - MemType::Ram, - Lanes(2), - "RAM_COUNTERS", - ); - mb.register_mem_with_lanes( + mb.register_mem(MemoryTag::Init.into(), 1, MemType::Ram, "RAM_INIT"); + mb.register_mem(MemoryTag::Counters.into(), 1, MemType::Ram, "RAM_COUNTERS"); + mb.register_mem( MemoryTag::Initialized.into(), 1, MemType::Ram, - Lanes(2), "RAM_INITIALIZED", ); - mb.register_mem_with_lanes( + mb.register_mem( MemoryTag::Finalized.into(), 1, MemType::Ram, - Lanes(2), "RAM_FINALIZED", ); - mb.register_mem_with_lanes( - MemoryTag::DidBurn.into(), - 1, - MemType::Ram, - Lanes(2), - "RAM_DID_BURN", - ); - mb.register_mem_with_lanes( + mb.register_mem(MemoryTag::DidBurn.into(), 1, MemType::Ram, "RAM_DID_BURN"); + mb.register_mem( MemoryTag::Ownership.into(), 1, MemType::Ram, - Lanes(2), "RAM_OWNERSHIP", ); mb.register_mem( @@ -2689,11 +2646,10 @@ fn register_memory_segments>(mb: &mut M) { MemType::Ram, "RAM_HANDLER_STACK_HEADS", ); - mb.register_mem_with_lanes( + mb.register_mem( MemoryTag::TraceCommitments.into(), 1, MemType::Ram, - Lanes(4), "RAM_TRACE_COMMITMENTS", ); } diff --git a/starstream-interleaving-proof/src/memory/dummy.rs b/starstream-interleaving-proof/src/memory/dummy.rs index 0e3a477a..96bc3ba7 100644 --- a/starstream-interleaving-proof/src/memory/dummy.rs +++ b/starstream-interleaving-proof/src/memory/dummy.rs @@ -85,6 +85,8 @@ impl IVCMemory for DummyMemory { } } + fn finish_step(&mut self) {} + fn required_steps(&self) -> usize { 0 } diff --git a/starstream-interleaving-proof/src/memory/mod.rs b/starstream-interleaving-proof/src/memory/mod.rs index bb820c93..083121a8 100644 --- a/starstream-interleaving-proof/src/memory/mod.rs +++ b/starstream-interleaving-proof/src/memory/mod.rs @@ -85,6 +85,8 @@ pub trait IVCMemory { fn conditional_write(&mut self, cond: bool, address: Address, value: Vec); + fn finish_step(&mut self); + fn required_steps(&self) -> usize; fn constraints(self) -> Self::Allocator; diff --git a/starstream-interleaving-proof/src/memory/nebula/tracer.rs b/starstream-interleaving-proof/src/memory/nebula/tracer.rs index 538e5413..8df17b62 100644 --- a/starstream-interleaving-proof/src/memory/nebula/tracer.rs +++ b/starstream-interleaving-proof/src/memory/nebula/tracer.rs @@ -165,6 +165,8 @@ impl IVCMemory for NebulaMemory usize { self.is.len() / SCAN_BATCH_SIZE } diff --git a/starstream-interleaving-proof/src/memory/twist_and_shout/mod.rs b/starstream-interleaving-proof/src/memory/twist_and_shout/mod.rs index 53d2d141..3a475d59 100644 --- a/starstream-interleaving-proof/src/memory/twist_and_shout/mod.rs +++ b/starstream-interleaving-proof/src/memory/twist_and_shout/mod.rs @@ -16,7 +16,6 @@ use ark_relations::gr1cs::SynthesisError; use neo_vm_trace::{Shout, Twist, TwistId, TwistOpKind}; use std::collections::BTreeMap; use std::collections::VecDeque; -use std::marker::PhantomData; pub const TWIST_DEBUG_FILTER: &[u32] = &[ MemoryTag::ExpectedInput as u32, @@ -95,7 +94,6 @@ pub struct TwistEvent { #[derive(Clone)] pub struct TSMemory { - pub(crate) phantom: PhantomData, pub(crate) reads: BTreeMap, VecDeque>>, pub(crate) writes: BTreeMap, VecDeque>>, pub(crate) init: BTreeMap, Vec>, @@ -106,6 +104,9 @@ pub struct TSMemory { pub(crate) shout_events: BTreeMap, VecDeque>, /// Captured twist events for witness generation, organized by address pub(crate) twist_events: BTreeMap, VecDeque>, + + pub(crate) current_step_read_lanes: BTreeMap, + pub(crate) current_step_write_lanes: BTreeMap, } /// Initial ROM tables computed by TSMemory @@ -136,13 +137,14 @@ impl IVCMemory for TSMemory { fn new(_params: Self::Params) -> Self { TSMemory { - phantom: PhantomData, reads: BTreeMap::default(), writes: BTreeMap::default(), init: BTreeMap::default(), mems: BTreeMap::default(), shout_events: BTreeMap::default(), twist_events: BTreeMap::default(), + current_step_read_lanes: BTreeMap::default(), + current_step_write_lanes: BTreeMap::default(), } } @@ -162,6 +164,8 @@ impl IVCMemory for TSMemory { } fn conditional_read(&mut self, cond: bool, address: Address) -> Vec { + *self.current_step_read_lanes.entry(address.tag).or_default() += 1; + if let Some(&(_, _, MemType::Rom, _)) = self.mems.get(&address.tag) { if cond { let value = self.init.get(&address).unwrap().clone(); @@ -210,6 +214,11 @@ impl IVCMemory for TSMemory { } fn conditional_write(&mut self, cond: bool, address: Address, values: Vec) { + *self + .current_step_write_lanes + .entry(address.tag) + .or_default() += 1; + assert_eq!( self.mems.get(&address.tag).unwrap().0 as usize, values.len(), @@ -237,6 +246,37 @@ impl IVCMemory for TSMemory { } } + fn finish_step(&mut self) { + let mut current_step_read_lanes = BTreeMap::new(); + let mut current_step_write_lanes = BTreeMap::new(); + + std::mem::swap( + &mut current_step_read_lanes, + &mut self.current_step_read_lanes, + ); + + std::mem::swap( + &mut current_step_write_lanes, + &mut self.current_step_write_lanes, + ); + + for (tag, reads) in current_step_read_lanes { + if let Some(writes) = current_step_write_lanes.get(&tag) { + assert_eq!( + reads, *writes, + "each step must have the same number of (conditional) reads and writes per memory" + ); + } + + if let Some(entry) = self.mems.get_mut(&tag) { + entry.1 = Lanes(reads); + } + } + + self.current_step_read_lanes.clear(); + self.current_step_write_lanes.clear(); + } + fn required_steps(&self) -> usize { 0 } @@ -287,7 +327,9 @@ impl TSMemory { } pub fn split(self) -> (TSMemoryConstraints, TracedShout, TracedTwist) { - let (init, twist_events, mems, shout_events) = + let mems = self.mems.clone(); + + let (init, twist_events, _mems, shout_events) = (self.init, self.twist_events, self.mems, self.shout_events); let traced_shout = TracedShout { init }; From 37e6df7211239fe35fba0fd85e0321fb02e7397c Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Mon, 19 Jan 2026 12:48:45 -0300 Subject: [PATCH 083/152] code/crate re-org Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- Cargo.toml | 6 +++--- .../starstream-interleaving-proof}/Cargo.toml | 6 +++--- .../starstream-interleaving-proof}/README.md | 0 .../effect-handlers-codegen-script-non-tail.png | Bin .../effect-handlers-codegen-simple.png | Bin .../starstream-interleaving-proof}/graph.png | Bin .../starstream-interleaving-proof}/src/abi.rs | 4 ++-- .../starstream-interleaving-proof}/src/circuit.rs | 2 +- .../src/circuit_test.rs | 2 +- .../starstream-interleaving-proof}/src/lib.rs | 10 +++++----- .../starstream-interleaving-proof}/src/logging.rs | 0 .../src/memory/dummy.rs | 0 .../src/memory/mod.rs | 0 .../src/memory/nebula/gadget.rs | 0 .../src/memory/nebula/ic.rs | 0 .../src/memory/nebula/mod.rs | 0 .../src/memory/nebula/tracer.rs | 0 .../src/memory/twist_and_shout/mod.rs | 0 .../starstream-interleaving-proof}/src/neo.rs | 0 .../starstream-interleaving-spec}/Cargo.toml | 4 ++-- .../starstream-interleaving-spec}/README.md | 0 .../starstream-interleaving-spec}/src/builder.rs | 0 .../starstream-interleaving-spec}/src/lib.rs | 0 .../src/mocked_verifier.rs | 0 .../starstream-interleaving-spec}/src/tests.rs | 0 .../src/transaction_effects/instance.rs | 0 .../src/transaction_effects/mod.rs | 0 .../src/transaction_effects/witness.rs | 0 .../starstream-runtime}/Cargo.toml | 4 ++-- .../starstream-runtime}/src/lib.rs | 4 ++-- .../starstream-runtime}/tests/integration.rs | 2 +- .../starstream-runtime}/tests/integration_test.rs | 0 32 files changed, 22 insertions(+), 22 deletions(-) rename {starstream-interleaving-proof => interleaving/starstream-interleaving-proof}/Cargo.toml (89%) rename {starstream-interleaving-proof => interleaving/starstream-interleaving-proof}/README.md (100%) rename {starstream-interleaving-proof => interleaving/starstream-interleaving-proof}/effect-handlers-codegen-script-non-tail.png (100%) rename {starstream-interleaving-proof => interleaving/starstream-interleaving-proof}/effect-handlers-codegen-simple.png (100%) rename {starstream-interleaving-proof => interleaving/starstream-interleaving-proof}/graph.png (100%) rename {starstream-interleaving-proof => interleaving/starstream-interleaving-proof}/src/abi.rs (98%) rename {starstream-interleaving-proof => interleaving/starstream-interleaving-proof}/src/circuit.rs (99%) rename {starstream-interleaving-proof => interleaving/starstream-interleaving-proof}/src/circuit_test.rs (99%) rename {starstream-interleaving-proof => interleaving/starstream-interleaving-proof}/src/lib.rs (95%) rename {starstream-interleaving-proof => interleaving/starstream-interleaving-proof}/src/logging.rs (100%) rename {starstream-interleaving-proof => interleaving/starstream-interleaving-proof}/src/memory/dummy.rs (100%) rename {starstream-interleaving-proof => interleaving/starstream-interleaving-proof}/src/memory/mod.rs (100%) rename {starstream-interleaving-proof => interleaving/starstream-interleaving-proof}/src/memory/nebula/gadget.rs (100%) rename {starstream-interleaving-proof => interleaving/starstream-interleaving-proof}/src/memory/nebula/ic.rs (100%) rename {starstream-interleaving-proof => interleaving/starstream-interleaving-proof}/src/memory/nebula/mod.rs (100%) rename {starstream-interleaving-proof => interleaving/starstream-interleaving-proof}/src/memory/nebula/tracer.rs (100%) rename {starstream-interleaving-proof => interleaving/starstream-interleaving-proof}/src/memory/twist_and_shout/mod.rs (100%) rename {starstream-interleaving-proof => interleaving/starstream-interleaving-proof}/src/neo.rs (100%) rename {starstream_mock_ledger => interleaving/starstream-interleaving-spec}/Cargo.toml (89%) rename {starstream_mock_ledger => interleaving/starstream-interleaving-spec}/README.md (100%) rename {starstream_mock_ledger => interleaving/starstream-interleaving-spec}/src/builder.rs (100%) rename {starstream_mock_ledger => interleaving/starstream-interleaving-spec}/src/lib.rs (100%) rename {starstream_mock_ledger => interleaving/starstream-interleaving-spec}/src/mocked_verifier.rs (100%) rename {starstream_mock_ledger => interleaving/starstream-interleaving-spec}/src/tests.rs (100%) rename {starstream_mock_ledger => interleaving/starstream-interleaving-spec}/src/transaction_effects/instance.rs (100%) rename {starstream_mock_ledger => interleaving/starstream-interleaving-spec}/src/transaction_effects/mod.rs (100%) rename {starstream_mock_ledger => interleaving/starstream-interleaving-spec}/src/transaction_effects/witness.rs (100%) rename {starstream-runtime => interleaving/starstream-runtime}/Cargo.toml (80%) rename {starstream-runtime => interleaving/starstream-runtime}/src/lib.rs (99%) rename {starstream-runtime => interleaving/starstream-runtime}/tests/integration.rs (99%) rename {starstream-runtime => interleaving/starstream-runtime}/tests/integration_test.rs (100%) diff --git a/Cargo.toml b/Cargo.toml index 3418386b..8090b003 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,9 +9,9 @@ members = [ "starstream-sandbox-web", "starstream-to-wasm", "starstream-types", - "starstream-interleaving-proof", - "starstream_mock_ledger", - "starstream-runtime", + "interleaving/starstream-interleaving-proof", + "interleaving/starstream-interleaving-spec", + "interleaving/starstream-runtime", "ark-poseidon2", "ark-goldilocks" ] diff --git a/starstream-interleaving-proof/Cargo.toml b/interleaving/starstream-interleaving-proof/Cargo.toml similarity index 89% rename from starstream-interleaving-proof/Cargo.toml rename to interleaving/starstream-interleaving-proof/Cargo.toml index 0f1f1bcc..3309c86e 100644 --- a/starstream-interleaving-proof/Cargo.toml +++ b/interleaving/starstream-interleaving-proof/Cargo.toml @@ -21,7 +21,7 @@ neo-params = { git = "https://github.com/nicarq/Nightstream.git", rev = "100f3e6 neo-vm-trace = { git = "https://github.com/nicarq/Nightstream.git", rev = "100f3e638e59537ae3f2a109c9a91c2af97479c0" } neo-memory = { git = "https://github.com/nicarq/Nightstream.git", rev = "100f3e638e59537ae3f2a109c9a91c2af97479c0" } -starstream_mock_ledger = { path = "../starstream_mock_ledger" } +starstream-interleaving-spec = { path = "../starstream-interleaving-spec" } p3-goldilocks = { version = "0.4.1", default-features = false } p3-field = "0.4.1" @@ -30,5 +30,5 @@ p3-poseidon2 = "0.4.1" rand_chacha = "0.9.0" rand = "0.9" -ark-goldilocks = { path = "../ark-goldilocks" } -ark-poseidon2 = { path = "../ark-poseidon2" } +ark-goldilocks = { path = "../../ark-goldilocks" } +ark-poseidon2 = { path = "../../ark-poseidon2" } diff --git a/starstream-interleaving-proof/README.md b/interleaving/starstream-interleaving-proof/README.md similarity index 100% rename from starstream-interleaving-proof/README.md rename to interleaving/starstream-interleaving-proof/README.md diff --git a/starstream-interleaving-proof/effect-handlers-codegen-script-non-tail.png b/interleaving/starstream-interleaving-proof/effect-handlers-codegen-script-non-tail.png similarity index 100% rename from starstream-interleaving-proof/effect-handlers-codegen-script-non-tail.png rename to interleaving/starstream-interleaving-proof/effect-handlers-codegen-script-non-tail.png diff --git a/starstream-interleaving-proof/effect-handlers-codegen-simple.png b/interleaving/starstream-interleaving-proof/effect-handlers-codegen-simple.png similarity index 100% rename from starstream-interleaving-proof/effect-handlers-codegen-simple.png rename to interleaving/starstream-interleaving-proof/effect-handlers-codegen-simple.png diff --git a/starstream-interleaving-proof/graph.png b/interleaving/starstream-interleaving-proof/graph.png similarity index 100% rename from starstream-interleaving-proof/graph.png rename to interleaving/starstream-interleaving-proof/graph.png diff --git a/starstream-interleaving-proof/src/abi.rs b/interleaving/starstream-interleaving-proof/src/abi.rs similarity index 98% rename from starstream-interleaving-proof/src/abi.rs rename to interleaving/starstream-interleaving-proof/src/abi.rs index d8b111f3..735a1d03 100644 --- a/starstream-interleaving-proof/src/abi.rs +++ b/interleaving/starstream-interleaving-proof/src/abi.rs @@ -1,6 +1,6 @@ use crate::{F, LedgerOperation, OptionalF}; use ark_ff::Zero; -use starstream_mock_ledger::{EffectDiscriminant, Hash, LedgerEffectsCommitment, WitLedgerEffect}; +use starstream_interleaving_spec::{EffectDiscriminant, Hash, LedgerEffectsCommitment, WitLedgerEffect}; pub const OPCODE_ARG_COUNT: usize = 7; @@ -275,6 +275,6 @@ pub(crate) fn encode_hash_as_fields(hash: Hash) -> [F; 4] { out } -pub(crate) fn value_to_field(val: starstream_mock_ledger::Value) -> F { +pub(crate) fn value_to_field(val: starstream_interleaving_spec::Value) -> F { F::from(val.0) } diff --git a/starstream-interleaving-proof/src/circuit.rs b/interleaving/starstream-interleaving-proof/src/circuit.rs similarity index 99% rename from starstream-interleaving-proof/src/circuit.rs rename to interleaving/starstream-interleaving-proof/src/circuit.rs index 2864777b..e0a797ba 100644 --- a/starstream-interleaving-proof/src/circuit.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit.rs @@ -10,7 +10,7 @@ use ark_relations::{ gr1cs::{ConstraintSystemRef, LinearCombination, SynthesisError, Variable}, ns, }; -use starstream_mock_ledger::{EffectDiscriminant, InterleavingInstance}; +use starstream_interleaving_spec::{EffectDiscriminant, InterleavingInstance}; use std::collections::{BTreeMap, BTreeSet}; use std::marker::PhantomData; use std::ops::Not; diff --git a/starstream-interleaving-proof/src/circuit_test.rs b/interleaving/starstream-interleaving-proof/src/circuit_test.rs similarity index 99% rename from starstream-interleaving-proof/src/circuit_test.rs rename to interleaving/starstream-interleaving-proof/src/circuit_test.rs index 7066d17f..da695e27 100644 --- a/starstream-interleaving-proof/src/circuit_test.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit_test.rs @@ -1,5 +1,5 @@ use crate::{logging::setup_logger, prove}; -use starstream_mock_ledger::{ +use starstream_interleaving_spec::{ Hash, InterleavingInstance, InterleavingWitness, LedgerEffectsCommitment, ProcessId, Ref, Value, WitEffectOutput, WitLedgerEffect, }; diff --git a/starstream-interleaving-proof/src/lib.rs b/interleaving/starstream-interleaving-proof/src/lib.rs similarity index 95% rename from starstream-interleaving-proof/src/lib.rs rename to interleaving/starstream-interleaving-proof/src/lib.rs index 63f47f84..bca588c0 100644 --- a/starstream-interleaving-proof/src/lib.rs +++ b/interleaving/starstream-interleaving-proof/src/lib.rs @@ -21,7 +21,7 @@ use neo_fold::session::{FoldingSession, preprocess_shared_bus_r1cs}; use neo_fold::shard::StepLinkingConfig; use neo_params::NeoParams; use rand::SeedableRng as _; -use starstream_mock_ledger::{ +use starstream_interleaving_spec::{ InterleavingInstance, InterleavingWitness, ProcessId, ZkTransactionProof, }; use std::collections::HashMap; @@ -237,17 +237,17 @@ fn make_interleaved_trace( *c += 1; match instr { - starstream_mock_ledger::WitLedgerEffect::Resume { target, .. } => { + starstream_interleaving_spec::WitLedgerEffect::Resume { target, .. } => { id_prev = Some(id_curr); id_curr = target.0; } - starstream_mock_ledger::WitLedgerEffect::Yield { .. } => { + starstream_interleaving_spec::WitLedgerEffect::Yield { .. } => { let parent = id_prev.expect("Yield called without a parent process"); let old_id_curr = id_curr; id_curr = parent; id_prev = Some(old_id_curr); } - starstream_mock_ledger::WitLedgerEffect::Burn { .. } => { + starstream_interleaving_spec::WitLedgerEffect::Burn { .. } => { let parent = id_prev.expect("Burn called without a parent process"); let old_id_curr = id_curr; id_curr = parent; @@ -272,7 +272,7 @@ fn ccs_step_shape() -> Result<(ConstraintSystemRef, TSMemLayouts), SynthesisE let cs = ConstraintSystem::new_ref(); cs.set_optimization_goal(ark_relations::gr1cs::OptimizationGoal::Constraints); - let hash = starstream_mock_ledger::Hash([0u8; 32], std::marker::PhantomData); + let hash = starstream_interleaving_spec::Hash([0u8; 32], std::marker::PhantomData); let inst = InterleavingInstance { host_calls_roots: vec![], diff --git a/starstream-interleaving-proof/src/logging.rs b/interleaving/starstream-interleaving-proof/src/logging.rs similarity index 100% rename from starstream-interleaving-proof/src/logging.rs rename to interleaving/starstream-interleaving-proof/src/logging.rs diff --git a/starstream-interleaving-proof/src/memory/dummy.rs b/interleaving/starstream-interleaving-proof/src/memory/dummy.rs similarity index 100% rename from starstream-interleaving-proof/src/memory/dummy.rs rename to interleaving/starstream-interleaving-proof/src/memory/dummy.rs diff --git a/starstream-interleaving-proof/src/memory/mod.rs b/interleaving/starstream-interleaving-proof/src/memory/mod.rs similarity index 100% rename from starstream-interleaving-proof/src/memory/mod.rs rename to interleaving/starstream-interleaving-proof/src/memory/mod.rs diff --git a/starstream-interleaving-proof/src/memory/nebula/gadget.rs b/interleaving/starstream-interleaving-proof/src/memory/nebula/gadget.rs similarity index 100% rename from starstream-interleaving-proof/src/memory/nebula/gadget.rs rename to interleaving/starstream-interleaving-proof/src/memory/nebula/gadget.rs diff --git a/starstream-interleaving-proof/src/memory/nebula/ic.rs b/interleaving/starstream-interleaving-proof/src/memory/nebula/ic.rs similarity index 100% rename from starstream-interleaving-proof/src/memory/nebula/ic.rs rename to interleaving/starstream-interleaving-proof/src/memory/nebula/ic.rs diff --git a/starstream-interleaving-proof/src/memory/nebula/mod.rs b/interleaving/starstream-interleaving-proof/src/memory/nebula/mod.rs similarity index 100% rename from starstream-interleaving-proof/src/memory/nebula/mod.rs rename to interleaving/starstream-interleaving-proof/src/memory/nebula/mod.rs diff --git a/starstream-interleaving-proof/src/memory/nebula/tracer.rs b/interleaving/starstream-interleaving-proof/src/memory/nebula/tracer.rs similarity index 100% rename from starstream-interleaving-proof/src/memory/nebula/tracer.rs rename to interleaving/starstream-interleaving-proof/src/memory/nebula/tracer.rs diff --git a/starstream-interleaving-proof/src/memory/twist_and_shout/mod.rs b/interleaving/starstream-interleaving-proof/src/memory/twist_and_shout/mod.rs similarity index 100% rename from starstream-interleaving-proof/src/memory/twist_and_shout/mod.rs rename to interleaving/starstream-interleaving-proof/src/memory/twist_and_shout/mod.rs diff --git a/starstream-interleaving-proof/src/neo.rs b/interleaving/starstream-interleaving-proof/src/neo.rs similarity index 100% rename from starstream-interleaving-proof/src/neo.rs rename to interleaving/starstream-interleaving-proof/src/neo.rs diff --git a/starstream_mock_ledger/Cargo.toml b/interleaving/starstream-interleaving-spec/Cargo.toml similarity index 89% rename from starstream_mock_ledger/Cargo.toml rename to interleaving/starstream-interleaving-spec/Cargo.toml index e82aaec2..624ca5df 100644 --- a/starstream_mock_ledger/Cargo.toml +++ b/interleaving/starstream-interleaving-spec/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "starstream_mock_ledger" +name = "starstream-interleaving-spec" version = "0.1.0" edition = "2024" @@ -8,7 +8,7 @@ hex = "0.4.3" imbl = "6.1.0" thiserror = "2.0.17" ark-ff = { version = "0.5.0", default-features = false } -ark-goldilocks = { path = "../ark-goldilocks" } +ark-goldilocks = { path = "../../ark-goldilocks" } # TODO: move to workspace deps neo-fold = { git = "https://github.com/nicarq/Nightstream.git", rev = "100f3e638e59537ae3f2a109c9a91c2af97479c0" } diff --git a/starstream_mock_ledger/README.md b/interleaving/starstream-interleaving-spec/README.md similarity index 100% rename from starstream_mock_ledger/README.md rename to interleaving/starstream-interleaving-spec/README.md diff --git a/starstream_mock_ledger/src/builder.rs b/interleaving/starstream-interleaving-spec/src/builder.rs similarity index 100% rename from starstream_mock_ledger/src/builder.rs rename to interleaving/starstream-interleaving-spec/src/builder.rs diff --git a/starstream_mock_ledger/src/lib.rs b/interleaving/starstream-interleaving-spec/src/lib.rs similarity index 100% rename from starstream_mock_ledger/src/lib.rs rename to interleaving/starstream-interleaving-spec/src/lib.rs diff --git a/starstream_mock_ledger/src/mocked_verifier.rs b/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs similarity index 100% rename from starstream_mock_ledger/src/mocked_verifier.rs rename to interleaving/starstream-interleaving-spec/src/mocked_verifier.rs diff --git a/starstream_mock_ledger/src/tests.rs b/interleaving/starstream-interleaving-spec/src/tests.rs similarity index 100% rename from starstream_mock_ledger/src/tests.rs rename to interleaving/starstream-interleaving-spec/src/tests.rs diff --git a/starstream_mock_ledger/src/transaction_effects/instance.rs b/interleaving/starstream-interleaving-spec/src/transaction_effects/instance.rs similarity index 100% rename from starstream_mock_ledger/src/transaction_effects/instance.rs rename to interleaving/starstream-interleaving-spec/src/transaction_effects/instance.rs diff --git a/starstream_mock_ledger/src/transaction_effects/mod.rs b/interleaving/starstream-interleaving-spec/src/transaction_effects/mod.rs similarity index 100% rename from starstream_mock_ledger/src/transaction_effects/mod.rs rename to interleaving/starstream-interleaving-spec/src/transaction_effects/mod.rs diff --git a/starstream_mock_ledger/src/transaction_effects/witness.rs b/interleaving/starstream-interleaving-spec/src/transaction_effects/witness.rs similarity index 100% rename from starstream_mock_ledger/src/transaction_effects/witness.rs rename to interleaving/starstream-interleaving-spec/src/transaction_effects/witness.rs diff --git a/starstream-runtime/Cargo.toml b/interleaving/starstream-runtime/Cargo.toml similarity index 80% rename from starstream-runtime/Cargo.toml rename to interleaving/starstream-runtime/Cargo.toml index 08329fc7..f6e8b84f 100644 --- a/starstream-runtime/Cargo.toml +++ b/interleaving/starstream-runtime/Cargo.toml @@ -8,8 +8,8 @@ repository.workspace = true license.workspace = true [dependencies] -starstream-interleaving-proof = { path = "../starstream-interleaving-proof"} -starstream_mock_ledger = { path = "../starstream_mock_ledger" } +starstream-interleaving-proof = { path = "../starstream-interleaving-proof" } +starstream-interleaving-spec = { path = "../starstream-interleaving-spec" } thiserror = "2.0.17" wasmi = "1.0.7" sha2 = "0.10" diff --git a/starstream-runtime/src/lib.rs b/interleaving/starstream-runtime/src/lib.rs similarity index 99% rename from starstream-runtime/src/lib.rs rename to interleaving/starstream-runtime/src/lib.rs index cb4f80dd..13da607d 100644 --- a/starstream-runtime/src/lib.rs +++ b/interleaving/starstream-runtime/src/lib.rs @@ -1,6 +1,6 @@ use sha2::{Digest, Sha256}; use starstream_interleaving_proof::commit; -use starstream_mock_ledger::{ +use starstream_interleaving_spec::{ CoroutineState, EffectDiscriminant, Hash, InterfaceId, InterleavingInstance, InterleavingWitness, LedgerEffectsCommitment, NewOutput, OutputRef, ProcessId, ProvenTransaction, Ref, UtxoId, Value, WasmModule, WitEffectOutput, WitLedgerEffect, @@ -828,7 +828,7 @@ impl UnprovenTransaction { input_states: vec![], }; - let witness = starstream_mock_ledger::InterleavingWitness { traces }; + let witness = starstream_interleaving_spec::InterleavingWitness { traces }; Ok((instance, runtime.store.into_data(), witness)) } diff --git a/starstream-runtime/tests/integration.rs b/interleaving/starstream-runtime/tests/integration.rs similarity index 99% rename from starstream-runtime/tests/integration.rs rename to interleaving/starstream-runtime/tests/integration.rs index 7ec3293a..bddf0e42 100644 --- a/starstream-runtime/tests/integration.rs +++ b/interleaving/starstream-runtime/tests/integration.rs @@ -1,5 +1,5 @@ use sha2::{Digest, Sha256}; -use starstream_mock_ledger::{EffectDiscriminant, Ledger}; +use starstream_interleaving_spec::{EffectDiscriminant, Ledger}; use starstream_runtime::UnprovenTransaction; use wat::parse_str; diff --git a/starstream-runtime/tests/integration_test.rs b/interleaving/starstream-runtime/tests/integration_test.rs similarity index 100% rename from starstream-runtime/tests/integration_test.rs rename to interleaving/starstream-runtime/tests/integration_test.rs From 72af1234d39fbfe40d646031ecf8ed728a1d8271 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Mon, 19 Jan 2026 12:49:09 -0300 Subject: [PATCH 084/152] update Cargo.lock Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- Cargo.lock | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9216cbf0..92ba6aa3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3187,11 +3187,28 @@ dependencies = [ "p3-symmetric", "rand 0.9.2", "rand_chacha 0.9.0", - "starstream_mock_ledger", + "starstream-interleaving-spec", "tracing", "tracing-subscriber", ] +[[package]] +name = "starstream-interleaving-spec" +version = "0.1.0" +dependencies = [ + "ark-ff", + "ark-goldilocks", + "hex", + "imbl", + "neo-ajtai", + "neo-ccs", + "neo-fold", + "neo-math", + "neo-memory", + "p3-field", + "thiserror 2.0.17", +] + [[package]] name = "starstream-interpreter" version = "0.0.0" @@ -3234,7 +3251,7 @@ dependencies = [ "imbl", "sha2", "starstream-interleaving-proof", - "starstream_mock_ledger", + "starstream-interleaving-spec", "thiserror 2.0.17", "wasmi", "wat", @@ -3280,23 +3297,6 @@ dependencies = [ "thiserror 2.0.17", ] -[[package]] -name = "starstream_mock_ledger" -version = "0.1.0" -dependencies = [ - "ark-ff", - "ark-goldilocks", - "hex", - "imbl", - "neo-ajtai", - "neo-ccs", - "neo-fold", - "neo-math", - "neo-memory", - "p3-field", - "thiserror 2.0.17", -] - [[package]] name = "str_indices" version = "0.4.4" From a058b0d0ae0aae8ca8ee14f92a898450beb69638 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Mon, 19 Jan 2026 12:49:48 -0300 Subject: [PATCH 085/152] remove old/outdated runtime test Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .../tests/integration_test.rs | 65 ------------------- 1 file changed, 65 deletions(-) delete mode 100644 interleaving/starstream-runtime/tests/integration_test.rs diff --git a/interleaving/starstream-runtime/tests/integration_test.rs b/interleaving/starstream-runtime/tests/integration_test.rs deleted file mode 100644 index ffea757c..00000000 --- a/interleaving/starstream-runtime/tests/integration_test.rs +++ /dev/null @@ -1,65 +0,0 @@ -use starstream_runtime::UnprovenTransaction; - -#[test] -fn test_simple_resume_yield() { - // Modified WAT: _start takes no params and returns nothing. - // Host call still returns i64 (which is the 'next_arg' passed via resume). - - let program0_wat = r#" - (module - (import "env" "starstream_host_call" (func $host_call (param i64 i64 i64 i64 i64) (result i64))) - (memory (export "memory") 1) - (func (export "_start") - ;; Call Resume(target=1, val=100, ret=200, id_prev=MAX) - ;; RESUME = 0 - (call $host_call - (i64.const 0) ;; discriminant - (i64.const 1) ;; target - (i64.const 100) ;; val - (i64.const 200) ;; ret - (i64.const -1) ;; id_prev (MAX) - ) - drop ;; drop the result of host_call (which is the return value from the target's yield) - ) - ) - "#; - - let program1_wat = r#" - (module - (import "env" "starstream_host_call" (func $host_call (param i64 i64 i64 i64 i64) (result i64))) - (memory (export "memory") 1) - (func (export "_start") - ;; Program 1 is resumed. - ;; We don't receive args via function params anymore (since _start is () -> ()). - ;; But we can pretend we did logic. - - ;; Yield(val=101, ret=MAX, id_prev=0) - ;; YIELD = 1 - (call $host_call - (i64.const 1) ;; discriminant - (i64.const 101) ;; val - (i64.const -1) ;; ret (MAX -> None) - (i64.const 0) ;; id_prev - (i64.const 0) ;; unused arg4 - ) - drop - ) - ) - "#; - - let program0 = wat::parse_str(program0_wat).unwrap(); - let program1 = wat::parse_str(program1_wat).unwrap(); - - let tx = UnprovenTransaction { - inputs: vec![], - programs: vec![program0, program1], - entrypoint: 0, - is_utxo: vec![false, false], - }; - - let instance = tx.to_instance(); - - dbg!(instance.host_calls_roots); - - // We could inspect internal state if we exposed it, but for now we just ensure it runs. -} From c6f2a7488a795c53c6fe0dc82d1afbb41b85c8f1 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Mon, 19 Jan 2026 14:16:40 -0300 Subject: [PATCH 086/152] remove mem state updates in visit_ methods and rework the optional ownership handling Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .../src/circuit.rs | 89 +++++++++++-------- .../starstream-interleaving-proof/src/neo.rs | 2 +- 2 files changed, 55 insertions(+), 36 deletions(-) diff --git a/interleaving/starstream-interleaving-proof/src/circuit.rs b/interleaving/starstream-interleaving-proof/src/circuit.rs index e0a797ba..7595efe3 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit.rs @@ -529,6 +529,10 @@ impl OptionalF { self.0 } + pub fn from_encoded(value: F) -> Self { + Self(value) + } + pub fn to_option(self) -> Option { if self.0 == F::ZERO { None @@ -627,7 +631,7 @@ pub struct ProgramStateWires { initialized: Boolean, finalized: Boolean, did_burn: Boolean, - ownership: FpVar, // an index into the process table + ownership: OptionalFpVar, // an encoded optional process id } // helper so that we always allocate witnesses in the same order @@ -657,7 +661,7 @@ pub struct ProgramState { initialized: bool, finalized: bool, did_burn: bool, - ownership: F, // an index into the process table + ownership: OptionalF, // encoded optional process id } /// IVC wires (state between steps) @@ -689,7 +693,9 @@ impl ProgramStateWires { initialized: Boolean::new_witness(cs.clone(), || Ok(write_values.initialized))?, finalized: Boolean::new_witness(cs.clone(), || Ok(write_values.finalized))?, did_burn: Boolean::new_witness(cs.clone(), || Ok(write_values.did_burn))?, - ownership: FpVar::new_witness(cs.clone(), || Ok(write_values.ownership))?, + ownership: OptionalFpVar::new(FpVar::new_witness(cs.clone(), || { + Ok(write_values.ownership.encoded()) + })?), }) } } @@ -730,7 +736,7 @@ macro_rules! define_program_state_operations { addr: address.clone(), tag: MemoryTag::from(ProgramStateTag::$tag).allocate(cs.clone())?, }, - &[state.$field.clone().into()], + &[define_program_state_operations!(@convert_to_fpvar state.$field, $field_type)], )?; )* Ok(()) @@ -771,9 +777,15 @@ macro_rules! define_program_state_operations { (@convert_to_f $value:expr, field) => { $value }; (@convert_to_f $value:expr, bool) => { F::from($value) }; + (@convert_to_f $value:expr, optional) => { $value.encoded() }; (@convert_from_f $value:expr, field) => { $value }; (@convert_from_f $value:expr, bool) => { $value == F::ONE }; + (@convert_from_f $value:expr, optional) => { OptionalF::from_encoded($value) }; + + (@convert_to_fpvar $value:expr, field) => { $value.clone().into() }; + (@convert_to_fpvar $value:expr, bool) => { $value.clone().into() }; + (@convert_to_fpvar $value:expr, optional) => { $value.encoded() }; } define_program_state_operations!( @@ -784,7 +796,7 @@ define_program_state_operations!( (initialized, Initialized, bool), (finalized, Finalized, bool), (did_burn, DidBurn, bool), - (ownership, Ownership, field), + (ownership, Ownership, optional), ); impl Wires { @@ -1170,8 +1182,8 @@ fn program_state_read_wires>( .next() .unwrap() .is_one()?, - ownership: rm - .conditional_read( + ownership: OptionalFpVar::new( + rm.conditional_read( &switches.ownership, &Address { addr: address.clone(), @@ -1181,6 +1193,7 @@ fn program_state_read_wires>( .into_iter() .next() .unwrap(), + ), }) } @@ -1463,6 +1476,12 @@ impl LedgerOperation { target_write.init = *val; target_write.counters = F::ZERO; } + LedgerOperation::Bind { owner_id } => { + curr_write.ownership = OptionalF::from_pid(*owner_id); + } + LedgerOperation::Unbind { .. } => { + target_write.ownership = OptionalF::none(); + } _ => { // For other opcodes, we just increment the counter. } @@ -1666,20 +1685,15 @@ impl> StepCircuitBuilder { } for (pid, owner) in self.instance.ownership_in.iter().enumerate() { + let encoded_owner = owner + .map(|p| OptionalF::from_pid(F::from(p.0 as u64)).encoded()) + .unwrap_or_else(|| OptionalF::none().encoded()); mb.init( Address { addr: pid as u64, tag: MemoryTag::Ownership.into(), }, - vec![F::from( - owner - .map(|p| p.0) - // probably using 0 for null is better but it would - // mean checking that pids are always greater than - // 0, so review later - .unwrap_or(self.instance.process_table.len()) - as u64, - )], + vec![encoded_owner], ); } @@ -2309,10 +2323,10 @@ impl> StepCircuitBuilder { .initialized .conditional_enforce_equal(&wires.constant_false, &switch)?; - // Mark new process as initialized - // TODO: There is no need to have this asignment, actually - wires.target_write_wires.initialized = - switch.select(&wires.constant_true, &wires.target_read_wires.initialized)?; + wires + .target_write_wires + .initialized + .conditional_enforce_equal(&wires.constant_true, &switch)?; wires.target_write_wires.init = switch.select(&wires.arg(ArgName::Val), &wires.target_read_wires.init)?; @@ -2363,7 +2377,7 @@ impl> StepCircuitBuilder { } #[tracing::instrument(target = "gr1cs", skip_all)] - fn visit_bind(&self, mut wires: Wires) -> Result { + fn visit_bind(&self, wires: Wires) -> Result { let switch = &wires.switches.bind; // curr is the token (or the utxo bound to the target) @@ -2380,19 +2394,21 @@ impl> StepCircuitBuilder { wires .curr_read_wires .ownership - .conditional_enforce_equal(&wires.p_len, switch)?; + .is_some()? + .conditional_enforce_equal(&wires.constant_false, switch)?; - // TODO: no need to have this assignment, probably - wires.curr_write_wires.ownership = switch.select( - &wires.arg(ArgName::OwnerId), - &wires.curr_read_wires.ownership, - )?; + let owner_id_encoded = &wires.arg(ArgName::OwnerId) + &wires.constant_one; + wires + .curr_write_wires + .ownership + .encoded() + .conditional_enforce_equal(&owner_id_encoded, switch)?; Ok(wires) } #[tracing::instrument(target = "gr1cs", skip_all)] - fn visit_unbind(&self, mut wires: Wires) -> Result { + fn visit_unbind(&self, wires: Wires) -> Result { let switch = &wires.switches.unbind; let is_utxo_curr = wires.is_utxo_curr.is_one()?; @@ -2401,15 +2417,18 @@ impl> StepCircuitBuilder { (is_utxo_curr & is_utxo_target).conditional_enforce_equal(&wires.constant_true, switch)?; // only the owner can unbind + let id_curr_encoded = &wires.id_curr + &wires.constant_one; wires .target_read_wires .ownership - .conditional_enforce_equal(&wires.id_curr, switch)?; + .encoded() + .conditional_enforce_equal(&id_curr_encoded, switch)?; - // p_len is a sentinel for None - // TODO: no need to assign - wires.target_write_wires.ownership = - switch.select(&wires.p_len, &wires.curr_read_wires.ownership)?; + wires + .target_write_wires + .ownership + .encoded() + .conditional_enforce_equal(&FpVar::zero(), switch)?; Ok(wires) } @@ -2790,7 +2809,7 @@ impl ProgramState { counters: F::ZERO, initialized: false, did_burn: false, - ownership: F::ZERO, + ownership: OptionalF::none(), } } @@ -2801,7 +2820,7 @@ impl ProgramState { tracing::debug!("counters={}", self.counters); tracing::debug!("finalized={}", self.finalized); tracing::debug!("did_burn={}", self.did_burn); - tracing::debug!("ownership={}", self.ownership); + tracing::debug!("ownership={}", self.ownership.encoded()); } } diff --git a/interleaving/starstream-interleaving-proof/src/neo.rs b/interleaving/starstream-interleaving-proof/src/neo.rs index 1bb62b50..868b2ae6 100644 --- a/interleaving/starstream-interleaving-proof/src/neo.rs +++ b/interleaving/starstream-interleaving-proof/src/neo.rs @@ -72,7 +72,7 @@ impl WitnessLayout for CircuitLayout { const M_IN: usize = 1; // instance.len()+witness.len() - const USED_COLS: usize = 882; + const USED_COLS: usize = 881; fn new_layout() -> Self { CircuitLayout {} From 86b561a4afe615794c7ccdd2acf2ca4e42ef2904 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Mon, 19 Jan 2026 14:59:10 -0300 Subject: [PATCH 087/152] chore: extract OptionalF and OptionalFpVar to a module Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .../src/circuit.rs | 85 ++----------------- .../starstream-interleaving-proof/src/lib.rs | 11 ++- .../src/optional.rs | 76 +++++++++++++++++ 3 files changed, 90 insertions(+), 82 deletions(-) create mode 100644 interleaving/starstream-interleaving-proof/src/optional.rs diff --git a/interleaving/starstream-interleaving-proof/src/circuit.rs b/interleaving/starstream-interleaving-proof/src/circuit.rs index 7595efe3..80524b91 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit.rs @@ -1,6 +1,6 @@ use crate::abi::{self, ArgName, OPCODE_ARG_COUNT}; use crate::memory::{self, Address, IVCMemory, MemType}; -use crate::{F, LedgerOperation, memory::IVCMemoryAllocated}; +use crate::{F, LedgerOperation, OptionalF, OptionalFpVar, memory::IVCMemoryAllocated}; use ark_ff::{AdditiveGroup, Field as _, PrimeField}; use ark_r1cs_std::fields::FieldVar; use ark_r1cs_std::{ @@ -509,85 +509,14 @@ pub struct StepCircuitBuilder { mem: PhantomData, } -#[derive(Copy, Clone, Debug, Default)] -pub struct OptionalF(F); - -impl OptionalF { - pub fn none() -> Self { - Self(F::ZERO) - } - - pub fn from_pid(value: F) -> Self { - Self(value + F::ONE) - } - - pub fn from_option(value: Option) -> Self { - value.map(Self::from_pid).unwrap_or_else(Self::none) - } - - pub fn encoded(self) -> F { - self.0 - } - - pub fn from_encoded(value: F) -> Self { - Self(value) - } - - pub fn to_option(self) -> Option { - if self.0 == F::ZERO { - None - } else { - Some(self.0 - F::ONE) - } - } - - pub fn decode_or_zero(self) -> F { - self.to_option().unwrap_or(F::ZERO) - } -} - -#[derive(Clone)] -struct OptionalFpVar(FpVar); - -impl OptionalFpVar { - fn new(value: FpVar) -> Self { - Self(value) - } - - fn encoded(&self) -> FpVar { - self.0.clone() - } - - fn is_some(&self) -> Result, SynthesisError> { - Ok(self.0.is_zero()?.not()) - } - - fn decode_or_zero(&self, one: &FpVar) -> Result, SynthesisError> { - let is_zero = self.0.is_zero()?; - let value = &self.0 - one; - is_zero.select(&FpVar::zero(), &value) - } - - fn select_encoded( - switch: &Boolean, - when_true: &FpVar, - when_false: &OptionalFpVar, - ) -> Result { - let selected = switch.select(when_true, &when_false.encoded())?; - Ok(OptionalFpVar::new(selected)) - } - - fn value(&self) -> Result { - self.0.value() - } -} +// OptionalF/OptionalFpVar live in optional.rs /// common circuit variables to all the opcodes #[derive(Clone)] pub struct Wires { // irw id_curr: FpVar, - id_prev: OptionalFpVar, + id_prev: OptionalFpVar, ref_arena_stack_ptr: FpVar, handler_stack_ptr: FpVar, @@ -631,7 +560,7 @@ pub struct ProgramStateWires { initialized: Boolean, finalized: Boolean, did_burn: Boolean, - ownership: OptionalFpVar, // an encoded optional process id + ownership: OptionalFpVar, // an encoded optional process id } // helper so that we always allocate witnesses in the same order @@ -661,7 +590,7 @@ pub struct ProgramState { initialized: bool, finalized: bool, did_burn: bool, - ownership: OptionalF, // encoded optional process id + ownership: OptionalF, // encoded optional process id } /// IVC wires (state between steps) @@ -670,7 +599,7 @@ pub struct ProgramState { #[derive(Clone)] pub struct InterRoundWires { id_curr: F, - id_prev: OptionalF, + id_prev: OptionalF, ref_arena_counter: F, handler_stack_counter: F, @@ -1228,7 +1157,7 @@ impl InterRoundWires { res_id_prev ); - self.id_prev = OptionalF(res_id_prev); + self.id_prev = OptionalF::from_encoded(res_id_prev); tracing::debug!( "utxos_len from {} to {}", diff --git a/interleaving/starstream-interleaving-proof/src/lib.rs b/interleaving/starstream-interleaving-proof/src/lib.rs index bca588c0..85a25b9b 100644 --- a/interleaving/starstream-interleaving-proof/src/lib.rs +++ b/interleaving/starstream-interleaving-proof/src/lib.rs @@ -3,15 +3,18 @@ mod circuit; #[cfg(test)] mod circuit_test; mod logging; +mod optional; + +pub use optional::{OptionalF, OptionalFpVar}; mod memory; mod neo; use crate::circuit::InterRoundWires; -pub use crate::circuit::OptionalF; use crate::memory::IVCMemory; use crate::memory::twist_and_shout::{TSMemLayouts, TSMemory}; use crate::neo::{StarstreamVm, StepCircuitNeo}; use abi::ledger_operation_from_wit; +use ark_ff::PrimeField; use ark_relations::gr1cs::{ConstraintSystem, ConstraintSystemRef, SynthesisError}; use circuit::StepCircuitBuilder; pub use memory::nebula; @@ -35,7 +38,7 @@ pub type ProgramId = F; pub use abi::commit; #[derive(Debug, Clone)] -pub enum LedgerOperation { +pub enum LedgerOperation { /// A call to starstream_resume. /// /// This stores the input and outputs in memory, and sets the @@ -47,14 +50,14 @@ pub enum LedgerOperation { target: F, val: F, ret: F, - id_prev: OptionalF, + id_prev: OptionalF, }, /// Called by utxo to yield. /// Yield { val: F, ret: Option, - id_prev: OptionalF, + id_prev: OptionalF, }, ProgramHash { target: F, diff --git a/interleaving/starstream-interleaving-proof/src/optional.rs b/interleaving/starstream-interleaving-proof/src/optional.rs new file mode 100644 index 00000000..020b07f9 --- /dev/null +++ b/interleaving/starstream-interleaving-proof/src/optional.rs @@ -0,0 +1,76 @@ +use ark_ff::PrimeField; +use ark_r1cs_std::{GR1CSVar, boolean::Boolean, fields::{FieldVar, fp::FpVar}}; +use ark_relations::gr1cs::SynthesisError; + +#[derive(Copy, Clone, Debug, Default)] +pub struct OptionalF(F); + +impl OptionalF { + pub fn none() -> Self { + Self(F::ZERO) + } + + pub fn from_pid(value: F) -> Self { + Self(value + F::ONE) + } + + pub fn from_option(value: Option) -> Self { + value.map(Self::from_pid).unwrap_or_else(Self::none) + } + + pub fn encoded(self) -> F { + self.0 + } + + pub fn from_encoded(value: F) -> Self { + Self(value) + } + + pub fn to_option(self) -> Option { + if self.0 == F::ZERO { + None + } else { + Some(self.0 - F::ONE) + } + } + + pub fn decode_or_zero(self) -> F { + self.to_option().unwrap_or(F::ZERO) + } +} + +#[derive(Clone)] +pub struct OptionalFpVar(FpVar); + +impl OptionalFpVar { + pub fn new(value: FpVar) -> Self { + Self(value) + } + + pub fn encoded(&self) -> FpVar { + self.0.clone() + } + + pub fn is_some(&self) -> Result, SynthesisError> { + Ok(!self.0.is_zero()?) + } + + pub fn decode_or_zero(&self, one: &FpVar) -> Result, SynthesisError> { + let is_zero = self.0.is_zero()?; + let value = &self.0 - one; + is_zero.select(&FpVar::zero(), &value) + } + + pub fn select_encoded( + switch: &Boolean, + when_true: &FpVar, + when_false: &OptionalFpVar, + ) -> Result, SynthesisError> { + let selected = switch.select(when_true, &when_false.encoded())?; + Ok(OptionalFpVar::new(selected)) + } + + pub fn value(&self) -> Result { + self.0.value() + } +} From 7640f94d3828972b7bce3716b3f07677142ccc94 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Mon, 19 Jan 2026 15:12:39 -0300 Subject: [PATCH 088/152] chore: split circuit.rs (code re-org) Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .../src/circuit.rs | 467 +----------------- .../starstream-interleaving-proof/src/lib.rs | 3 + .../src/memory_tags.rs | 80 +++ .../src/program_state.rs | 281 +++++++++++ .../src/switchboard.rs | 115 +++++ 5 files changed, 488 insertions(+), 458 deletions(-) create mode 100644 interleaving/starstream-interleaving-proof/src/memory_tags.rs create mode 100644 interleaving/starstream-interleaving-proof/src/program_state.rs create mode 100644 interleaving/starstream-interleaving-proof/src/switchboard.rs diff --git a/interleaving/starstream-interleaving-proof/src/circuit.rs b/interleaving/starstream-interleaving-proof/src/circuit.rs index 80524b91..0b927f4a 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit.rs @@ -1,5 +1,14 @@ use crate::abi::{self, ArgName, OPCODE_ARG_COUNT}; use crate::memory::{self, Address, IVCMemory, MemType}; +pub use crate::memory_tags::MemoryTag; +use crate::program_state::{ + ProgramState, ProgramStateWires, program_state_read_wires, program_state_write_wires, + trace_program_state_reads, trace_program_state_writes, +}; +use crate::switchboard::{ + HandlerSwitchboard, HandlerSwitchboardWires, MemSwitchboard, MemSwitchboardWires, + RomSwitchboard, RomSwitchboardWires, +}; use crate::{F, LedgerOperation, OptionalF, OptionalFpVar, memory::IVCMemoryAllocated}; use ark_ff::{AdditiveGroup, Field as _, PrimeField}; use ark_r1cs_std::fields::FieldVar; @@ -71,100 +80,6 @@ struct HandlerState { interface_rom_read: FpVar, } -#[derive(Clone, Debug, Default)] -pub struct HandlerSwitchboard { - pub read_interface: bool, - pub read_head: bool, - pub read_node: bool, - pub write_node: bool, - pub write_head: bool, -} - -#[derive(Clone)] -pub struct HandlerSwitchboardWires { - pub read_interface: Boolean, - pub read_head: Boolean, - pub read_node: Boolean, - pub write_node: Boolean, - pub write_head: Boolean, -} - -#[derive(Debug, Clone, Copy, PartialEq, Eq)] -pub enum MemoryTag { - // ROM tags - ProcessTable = 1, - MustBurn = 2, - IsUtxo = 3, - Interfaces = 4, - - // RAM tags - ExpectedInput = 5, - Activation = 6, - Counters = 7, - Initialized = 8, - Finalized = 9, - DidBurn = 10, - Ownership = 11, - Init = 12, - RefArena = 13, - HandlerStackArenaProcess = 14, - HandlerStackArenaNextPtr = 15, - HandlerStackHeads = 16, - TraceCommitments = 17, -} - -impl From for u64 { - fn from(tag: MemoryTag) -> u64 { - tag as u64 - } -} - -impl From for F { - fn from(tag: MemoryTag) -> F { - F::from(tag as u64) - } -} - -impl MemoryTag { - pub fn allocate(&self, cs: ConstraintSystemRef) -> Result, SynthesisError> { - FpVar::new_constant(cs, F::from(*self)) - } -} - -#[derive(Debug, Clone, Copy, PartialEq, Eq)] -pub enum ProgramStateTag { - ExpectedInput, - Activation, - Init, - Counters, - Initialized, - Finalized, - DidBurn, - Ownership, -} - -impl From for MemoryTag { - fn from(tag: ProgramStateTag) -> MemoryTag { - match tag { - ProgramStateTag::ExpectedInput => MemoryTag::ExpectedInput, - ProgramStateTag::Activation => MemoryTag::Activation, - ProgramStateTag::Init => MemoryTag::Init, - ProgramStateTag::Counters => MemoryTag::Counters, - ProgramStateTag::Initialized => MemoryTag::Initialized, - ProgramStateTag::Finalized => MemoryTag::Finalized, - ProgramStateTag::DidBurn => MemoryTag::DidBurn, - ProgramStateTag::Ownership => MemoryTag::Ownership, - } - } -} - -impl From for u64 { - fn from(tag: ProgramStateTag) -> u64 { - let memory_tag: MemoryTag = tag.into(); - memory_tag.into() - } -} - struct OpcodeConfig { mem_switches_curr: MemSwitchboard, mem_switches_target: MemSwitchboard, @@ -456,46 +371,6 @@ impl Default for ExecutionSwitches { } } -#[derive(Clone, Debug, Default)] -pub struct RomSwitchboard { - pub read_is_utxo_curr: bool, - pub read_is_utxo_target: bool, - pub read_must_burn_curr: bool, - pub read_program_hash_target: bool, -} - -#[derive(Clone)] -pub struct RomSwitchboardWires { - pub read_is_utxo_curr: Boolean, - pub read_is_utxo_target: Boolean, - pub read_must_burn_curr: Boolean, - pub read_program_hash_target: Boolean, -} - -#[derive(Clone, Debug, Default)] -pub struct MemSwitchboard { - pub expected_input: bool, - pub activation: bool, - pub init: bool, - pub counters: bool, - pub initialized: bool, - pub finalized: bool, - pub did_burn: bool, - pub ownership: bool, -} - -#[derive(Clone)] -pub struct MemSwitchboardWires { - pub expected_input: Boolean, - pub activation: Boolean, - pub init: Boolean, - pub counters: Boolean, - pub initialized: Boolean, - pub finalized: Boolean, - pub did_burn: Boolean, - pub ownership: Boolean, -} - pub struct StepCircuitBuilder { pub instance: InterleavingInstance, pub last_yield: Vec, @@ -550,19 +425,6 @@ pub struct Wires { constant_one: FpVar, } -/// these are the mcc witnesses -#[derive(Clone)] -pub struct ProgramStateWires { - expected_input: FpVar, - activation: FpVar, - init: FpVar, - counters: FpVar, - initialized: Boolean, - finalized: Boolean, - did_burn: Boolean, - ownership: OptionalFpVar, // an encoded optional process id -} - // helper so that we always allocate witnesses in the same order pub struct PreWires { interface_index: F, @@ -581,18 +443,6 @@ pub struct PreWires { ret_is_some: bool, } -#[derive(Clone, Debug)] -pub struct ProgramState { - expected_input: F, - activation: F, - init: F, - counters: F, - initialized: bool, - finalized: bool, - did_burn: bool, - ownership: OptionalF, // encoded optional process id -} - /// IVC wires (state between steps) /// /// these get input and output variables @@ -609,125 +459,6 @@ pub struct InterRoundWires { p_len: F, } -impl ProgramStateWires { - fn from_write_values( - cs: ConstraintSystemRef, - write_values: &ProgramState, - ) -> Result { - Ok(ProgramStateWires { - expected_input: FpVar::new_witness(cs.clone(), || Ok(write_values.expected_input))?, - activation: FpVar::new_witness(cs.clone(), || Ok(write_values.activation))?, - init: FpVar::new_witness(cs.clone(), || Ok(write_values.init))?, - counters: FpVar::new_witness(cs.clone(), || Ok(write_values.counters))?, - initialized: Boolean::new_witness(cs.clone(), || Ok(write_values.initialized))?, - finalized: Boolean::new_witness(cs.clone(), || Ok(write_values.finalized))?, - did_burn: Boolean::new_witness(cs.clone(), || Ok(write_values.did_burn))?, - ownership: OptionalFpVar::new(FpVar::new_witness(cs.clone(), || { - Ok(write_values.ownership.encoded()) - })?), - }) - } -} - -macro_rules! define_program_state_operations { - ($(($field:ident, $tag:ident, $field_type:ident)),* $(,)?) => { - // Out-of-circuit version - fn trace_program_state_writes>( - mem: &mut M, - pid: u64, - state: &ProgramState, - switches: &MemSwitchboard, - ) { - $( - mem.conditional_write( - switches.$field, - Address { - addr: pid, - tag: ProgramStateTag::$tag.into(), - }, - [define_program_state_operations!(@convert_to_f state.$field, $field_type)].to_vec(), - ); - )* - } - - // In-circuit version - fn program_state_write_wires>( - rm: &mut M, - cs: &ConstraintSystemRef, - address: FpVar, - state: ProgramStateWires, - switches: &MemSwitchboardWires, - ) -> Result<(), SynthesisError> { - $( - rm.conditional_write( - &switches.$field, - &Address { - addr: address.clone(), - tag: MemoryTag::from(ProgramStateTag::$tag).allocate(cs.clone())?, - }, - &[define_program_state_operations!(@convert_to_fpvar state.$field, $field_type)], - )?; - )* - Ok(()) - } - - // Out-of-circuit read version - fn trace_program_state_reads>( - mem: &mut M, - pid: u64, - switches: &MemSwitchboard, - ) -> ProgramState { - ProgramState { - $( - $field: define_program_state_operations!(@convert_from_f - mem.conditional_read( - switches.$field, - Address { - addr: pid, - tag: ProgramStateTag::$tag.into(), - }, - )[0], $field_type), - )* - } - } - - // Just a helper for totality checking - // - // this will generate a compiler error if the macro is not called with all variants - #[allow(dead_code)] - fn _check_program_state_totality(tag: ProgramStateTag) { - match tag { - $( - ProgramStateTag::$tag => {}, - )* - } - } - }; - - (@convert_to_f $value:expr, field) => { $value }; - (@convert_to_f $value:expr, bool) => { F::from($value) }; - (@convert_to_f $value:expr, optional) => { $value.encoded() }; - - (@convert_from_f $value:expr, field) => { $value }; - (@convert_from_f $value:expr, bool) => { $value == F::ONE }; - (@convert_from_f $value:expr, optional) => { OptionalF::from_encoded($value) }; - - (@convert_to_fpvar $value:expr, field) => { $value.clone().into() }; - (@convert_to_fpvar $value:expr, bool) => { $value.clone().into() }; - (@convert_to_fpvar $value:expr, optional) => { $value.encoded() }; -} - -define_program_state_operations!( - (expected_input, ExpectedInput, field), - (activation, Activation, field), - (init, Init, field), - (counters, Counters, field), - (initialized, Initialized, bool), - (finalized, Finalized, bool), - (did_burn, DidBurn, bool), - (ownership, Ownership, optional), -); - impl Wires { fn arg(&self, kind: ArgName) -> FpVar { self.opcode_args[kind.idx()].clone() @@ -1024,108 +755,6 @@ impl Wires { } } -fn program_state_read_wires>( - rm: &mut M, - cs: &ConstraintSystemRef, - address: FpVar, - switches: &MemSwitchboardWires, -) -> Result { - Ok(ProgramStateWires { - expected_input: rm - .conditional_read( - &switches.expected_input, - &Address { - addr: address.clone(), - tag: MemoryTag::ExpectedInput.allocate(cs.clone())?, - }, - )? - .into_iter() - .next() - .unwrap(), - activation: rm - .conditional_read( - &switches.activation, - &Address { - addr: address.clone(), - tag: MemoryTag::Activation.allocate(cs.clone())?, - }, - )? - .into_iter() - .next() - .unwrap(), - init: rm - .conditional_read( - &switches.init, - &Address { - addr: address.clone(), - tag: MemoryTag::Init.allocate(cs.clone())?, - }, - )? - .into_iter() - .next() - .unwrap(), - counters: rm - .conditional_read( - &switches.counters, - &Address { - addr: address.clone(), - tag: MemoryTag::Counters.allocate(cs.clone())?, - }, - )? - .into_iter() - .next() - .unwrap(), - initialized: rm - .conditional_read( - &switches.initialized, - &Address { - addr: address.clone(), - tag: MemoryTag::Initialized.allocate(cs.clone())?, - }, - )? - .into_iter() - .next() - .unwrap() - .is_one()?, - finalized: rm - .conditional_read( - &switches.finalized, - &Address { - addr: address.clone(), - tag: MemoryTag::Finalized.allocate(cs.clone())?, - }, - )? - .into_iter() - .next() - .unwrap() - .is_one()?, - did_burn: rm - .conditional_read( - &switches.did_burn, - &Address { - addr: address.clone(), - tag: MemoryTag::DidBurn.allocate(cs.clone())?, - }, - )? - .into_iter() - .next() - .unwrap() - .is_one()?, - ownership: OptionalFpVar::new( - rm.conditional_read( - &switches.ownership, - &Address { - addr: address.clone(), - tag: MemoryTag::Ownership.allocate(cs.clone())?, - }, - )? - .into_iter() - .next() - .unwrap(), - ), - }) -} - impl InterRoundWires { pub fn new(p_len: F, entrypoint: u64) -> Self { InterRoundWires { @@ -2675,84 +2304,6 @@ impl PreWires { } } -impl MemSwitchboardWires { - pub fn allocate( - cs: ConstraintSystemRef, - switches: &MemSwitchboard, - ) -> Result { - Ok(Self { - expected_input: Boolean::new_witness(cs.clone(), || Ok(switches.expected_input))?, - activation: Boolean::new_witness(cs.clone(), || Ok(switches.activation))?, - init: Boolean::new_witness(cs.clone(), || Ok(switches.init))?, - counters: Boolean::new_witness(cs.clone(), || Ok(switches.counters))?, - initialized: Boolean::new_witness(cs.clone(), || Ok(switches.initialized))?, - finalized: Boolean::new_witness(cs.clone(), || Ok(switches.finalized))?, - did_burn: Boolean::new_witness(cs.clone(), || Ok(switches.did_burn))?, - ownership: Boolean::new_witness(cs.clone(), || Ok(switches.ownership))?, - }) - } -} - -impl RomSwitchboardWires { - pub fn allocate( - cs: ConstraintSystemRef, - switches: &RomSwitchboard, - ) -> Result { - Ok(Self { - read_is_utxo_curr: Boolean::new_witness(cs.clone(), || Ok(switches.read_is_utxo_curr))?, - read_is_utxo_target: Boolean::new_witness(cs.clone(), || { - Ok(switches.read_is_utxo_target) - })?, - read_must_burn_curr: Boolean::new_witness(cs.clone(), || { - Ok(switches.read_must_burn_curr) - })?, - read_program_hash_target: Boolean::new_witness(cs.clone(), || { - Ok(switches.read_program_hash_target) - })?, - }) - } -} - -impl HandlerSwitchboardWires { - pub fn allocate( - cs: ConstraintSystemRef, - switches: &HandlerSwitchboard, - ) -> Result { - Ok(Self { - read_interface: Boolean::new_witness(cs.clone(), || Ok(switches.read_interface))?, - read_head: Boolean::new_witness(cs.clone(), || Ok(switches.read_head))?, - read_node: Boolean::new_witness(cs.clone(), || Ok(switches.read_node))?, - write_node: Boolean::new_witness(cs.clone(), || Ok(switches.write_node))?, - write_head: Boolean::new_witness(cs.clone(), || Ok(switches.write_head))?, - }) - } -} - -impl ProgramState { - pub fn dummy() -> Self { - Self { - finalized: false, - expected_input: F::ZERO, - activation: F::ZERO, - init: F::ZERO, - counters: F::ZERO, - initialized: false, - did_burn: false, - ownership: OptionalF::none(), - } - } - - pub fn debug_print(&self) { - tracing::debug!("expected_input={}", self.expected_input); - tracing::debug!("activation={}", self.activation); - tracing::debug!("init={}", self.init); - tracing::debug!("counters={}", self.counters); - tracing::debug!("finalized={}", self.finalized); - tracing::debug!("did_burn={}", self.did_burn); - tracing::debug!("ownership={}", self.ownership.encoded()); - } -} - fn trace_ic>(curr_pid: usize, mb: &mut M, config: &OpcodeConfig) { if config.execution_switches.nop { return; diff --git a/interleaving/starstream-interleaving-proof/src/lib.rs b/interleaving/starstream-interleaving-proof/src/lib.rs index 85a25b9b..01f77a1c 100644 --- a/interleaving/starstream-interleaving-proof/src/lib.rs +++ b/interleaving/starstream-interleaving-proof/src/lib.rs @@ -3,7 +3,10 @@ mod circuit; #[cfg(test)] mod circuit_test; mod logging; +mod memory_tags; mod optional; +mod program_state; +mod switchboard; pub use optional::{OptionalF, OptionalFpVar}; mod memory; diff --git a/interleaving/starstream-interleaving-proof/src/memory_tags.rs b/interleaving/starstream-interleaving-proof/src/memory_tags.rs new file mode 100644 index 00000000..c3fef77d --- /dev/null +++ b/interleaving/starstream-interleaving-proof/src/memory_tags.rs @@ -0,0 +1,80 @@ +use crate::F; +use ark_r1cs_std::alloc::AllocVar; +use ark_r1cs_std::fields::fp::FpVar; +use ark_relations::gr1cs::{ConstraintSystemRef, SynthesisError}; + +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum MemoryTag { + // ROM tags + ProcessTable = 1, + MustBurn = 2, + IsUtxo = 3, + Interfaces = 4, + + // RAM tags + ExpectedInput = 5, + Activation = 6, + Counters = 7, + Initialized = 8, + Finalized = 9, + DidBurn = 10, + Ownership = 11, + Init = 12, + RefArena = 13, + HandlerStackArenaProcess = 14, + HandlerStackArenaNextPtr = 15, + HandlerStackHeads = 16, + TraceCommitments = 17, +} + +impl From for u64 { + fn from(tag: MemoryTag) -> u64 { + tag as u64 + } +} + +impl From for F { + fn from(tag: MemoryTag) -> F { + F::from(tag as u64) + } +} + +impl MemoryTag { + pub fn allocate(&self, cs: ConstraintSystemRef) -> Result, SynthesisError> { + FpVar::new_constant(cs, F::from(*self)) + } +} + +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum ProgramStateTag { + ExpectedInput, + Activation, + Init, + Counters, + Initialized, + Finalized, + DidBurn, + Ownership, +} + +impl From for MemoryTag { + fn from(tag: ProgramStateTag) -> MemoryTag { + match tag { + ProgramStateTag::ExpectedInput => MemoryTag::ExpectedInput, + ProgramStateTag::Activation => MemoryTag::Activation, + ProgramStateTag::Init => MemoryTag::Init, + ProgramStateTag::Counters => MemoryTag::Counters, + ProgramStateTag::Initialized => MemoryTag::Initialized, + ProgramStateTag::Finalized => MemoryTag::Finalized, + ProgramStateTag::DidBurn => MemoryTag::DidBurn, + ProgramStateTag::Ownership => MemoryTag::Ownership, + } + } +} + +impl From for u64 { + fn from(tag: ProgramStateTag) -> u64 { + let memory_tag: MemoryTag = tag.into(); + memory_tag.into() + } +} diff --git a/interleaving/starstream-interleaving-proof/src/program_state.rs b/interleaving/starstream-interleaving-proof/src/program_state.rs new file mode 100644 index 00000000..6d2677f3 --- /dev/null +++ b/interleaving/starstream-interleaving-proof/src/program_state.rs @@ -0,0 +1,281 @@ +use crate::F; +use crate::memory::{Address, IVCMemory, IVCMemoryAllocated}; +use crate::memory_tags::{MemoryTag, ProgramStateTag}; +use crate::optional::{OptionalF, OptionalFpVar}; +use crate::switchboard::{MemSwitchboard, MemSwitchboardWires}; +use ark_ff::{AdditiveGroup, Field}; +use ark_r1cs_std::alloc::AllocVar; +use ark_r1cs_std::fields::{FieldVar, fp::FpVar}; +use ark_r1cs_std::prelude::Boolean; +use ark_relations::gr1cs::{ConstraintSystemRef, SynthesisError}; + +#[derive(Clone, Debug)] +pub struct ProgramState { + pub expected_input: F, + pub activation: F, + pub init: F, + pub counters: F, + pub initialized: bool, + pub finalized: bool, + pub did_burn: bool, + pub ownership: OptionalF, // encoded optional process id +} + +/// IVC wires (state between steps) +#[derive(Clone)] +pub struct ProgramStateWires { + pub expected_input: FpVar, + pub activation: FpVar, + pub init: FpVar, + pub counters: FpVar, + pub initialized: Boolean, + pub finalized: Boolean, + pub did_burn: Boolean, + pub ownership: OptionalFpVar, // encoded optional process id +} + +impl ProgramStateWires { + pub fn from_write_values( + cs: ConstraintSystemRef, + write_values: &ProgramState, + ) -> Result { + Ok(ProgramStateWires { + expected_input: FpVar::new_witness(cs.clone(), || Ok(write_values.expected_input))?, + activation: FpVar::new_witness(cs.clone(), || Ok(write_values.activation))?, + init: FpVar::new_witness(cs.clone(), || Ok(write_values.init))?, + counters: FpVar::new_witness(cs.clone(), || Ok(write_values.counters))?, + initialized: Boolean::new_witness(cs.clone(), || Ok(write_values.initialized))?, + finalized: Boolean::new_witness(cs.clone(), || Ok(write_values.finalized))?, + did_burn: Boolean::new_witness(cs.clone(), || Ok(write_values.did_burn))?, + ownership: OptionalFpVar::new(FpVar::new_witness(cs.clone(), || { + Ok(write_values.ownership.encoded()) + })?), + }) + } +} + +macro_rules! define_program_state_operations { + ($(($field:ident, $tag:ident, $field_type:ident)),* $(,)?) => { + // Out-of-circuit version + pub fn trace_program_state_writes>( + mem: &mut M, + pid: u64, + state: &ProgramState, + switches: &MemSwitchboard, + ) { + $( + mem.conditional_write( + switches.$field, + Address { + addr: pid, + tag: ProgramStateTag::$tag.into(), + }, + [define_program_state_operations!(@convert_to_f state.$field, $field_type)].to_vec(), + ); + )* + } + + // In-circuit version + pub fn program_state_write_wires>( + rm: &mut M, + cs: &ConstraintSystemRef, + address: FpVar, + state: ProgramStateWires, + switches: &MemSwitchboardWires, + ) -> Result<(), SynthesisError> { + $( + rm.conditional_write( + &switches.$field, + &Address { + addr: address.clone(), + tag: MemoryTag::from(ProgramStateTag::$tag).allocate(cs.clone())?, + }, + &[define_program_state_operations!(@convert_to_fpvar state.$field, $field_type)], + )?; + )* + Ok(()) + } + + // Out-of-circuit read version + pub fn trace_program_state_reads>( + mem: &mut M, + pid: u64, + switches: &MemSwitchboard, + ) -> ProgramState { + ProgramState { + $( + $field: define_program_state_operations!(@convert_from_f + mem.conditional_read( + switches.$field, + Address { + addr: pid, + tag: ProgramStateTag::$tag.into(), + }, + )[0], $field_type), + )* + } + } + + // Just a helper for totality checking + // + // this will generate a compiler error if the macro is not called with all variants + #[allow(dead_code)] + fn _check_program_state_totality(tag: ProgramStateTag) { + match tag { + $( + ProgramStateTag::$tag => {}, + )* + } + } + }; + + (@convert_to_f $value:expr, field) => { $value }; + (@convert_to_f $value:expr, bool) => { F::from($value) }; + (@convert_to_f $value:expr, optional) => { $value.encoded() }; + + (@convert_from_f $value:expr, field) => { $value }; + (@convert_from_f $value:expr, bool) => { $value == F::ONE }; + (@convert_from_f $value:expr, optional) => { OptionalF::from_encoded($value) }; + + (@convert_to_fpvar $value:expr, field) => { $value.clone().into() }; + (@convert_to_fpvar $value:expr, bool) => { $value.clone().into() }; + (@convert_to_fpvar $value:expr, optional) => { $value.encoded() }; +} + +define_program_state_operations!( + (expected_input, ExpectedInput, field), + (activation, Activation, field), + (init, Init, field), + (counters, Counters, field), + (initialized, Initialized, bool), + (finalized, Finalized, bool), + (did_burn, DidBurn, bool), + (ownership, Ownership, optional), +); + +pub fn program_state_read_wires>( + rm: &mut M, + cs: &ConstraintSystemRef, + address: FpVar, + switches: &MemSwitchboardWires, +) -> Result { + Ok(ProgramStateWires { + expected_input: rm + .conditional_read( + &switches.expected_input, + &Address { + addr: address.clone(), + tag: MemoryTag::ExpectedInput.allocate(cs.clone())?, + }, + )? + .into_iter() + .next() + .unwrap(), + activation: rm + .conditional_read( + &switches.activation, + &Address { + addr: address.clone(), + tag: MemoryTag::Activation.allocate(cs.clone())?, + }, + )? + .into_iter() + .next() + .unwrap(), + init: rm + .conditional_read( + &switches.init, + &Address { + addr: address.clone(), + tag: MemoryTag::Init.allocate(cs.clone())?, + }, + )? + .into_iter() + .next() + .unwrap(), + counters: rm + .conditional_read( + &switches.counters, + &Address { + addr: address.clone(), + tag: MemoryTag::Counters.allocate(cs.clone())?, + }, + )? + .into_iter() + .next() + .unwrap(), + initialized: rm + .conditional_read( + &switches.initialized, + &Address { + addr: address.clone(), + tag: MemoryTag::Initialized.allocate(cs.clone())?, + }, + )? + .into_iter() + .next() + .unwrap() + .is_one()?, + finalized: rm + .conditional_read( + &switches.finalized, + &Address { + addr: address.clone(), + tag: MemoryTag::Finalized.allocate(cs.clone())?, + }, + )? + .into_iter() + .next() + .unwrap() + .is_one()?, + did_burn: rm + .conditional_read( + &switches.did_burn, + &Address { + addr: address.clone(), + tag: MemoryTag::DidBurn.allocate(cs.clone())?, + }, + )? + .into_iter() + .next() + .unwrap() + .is_one()?, + ownership: OptionalFpVar::new( + rm.conditional_read( + &switches.ownership, + &Address { + addr: address.clone(), + tag: MemoryTag::Ownership.allocate(cs.clone())?, + }, + )? + .into_iter() + .next() + .unwrap(), + ), + }) +} + +impl ProgramState { + pub fn dummy() -> Self { + Self { + finalized: false, + expected_input: F::ZERO, + activation: F::ZERO, + init: F::ZERO, + counters: F::ZERO, + initialized: false, + did_burn: false, + ownership: OptionalF::none(), + } + } + + pub fn debug_print(&self) { + tracing::debug!("expected_input={}", self.expected_input); + tracing::debug!("activation={}", self.activation); + tracing::debug!("init={}", self.init); + tracing::debug!("counters={}", self.counters); + tracing::debug!("finalized={}", self.finalized); + tracing::debug!("did_burn={}", self.did_burn); + tracing::debug!("ownership={}", self.ownership.encoded()); + } +} diff --git a/interleaving/starstream-interleaving-proof/src/switchboard.rs b/interleaving/starstream-interleaving-proof/src/switchboard.rs new file mode 100644 index 00000000..ff361e45 --- /dev/null +++ b/interleaving/starstream-interleaving-proof/src/switchboard.rs @@ -0,0 +1,115 @@ +use crate::F; +use ark_relations::gr1cs::{ConstraintSystemRef, SynthesisError}; +use ark_r1cs_std::alloc::AllocVar; +use ark_r1cs_std::prelude::Boolean; + +#[derive(Clone, Debug, Default)] +pub struct RomSwitchboard { + pub read_is_utxo_curr: bool, + pub read_is_utxo_target: bool, + pub read_must_burn_curr: bool, + pub read_program_hash_target: bool, +} + +#[derive(Clone)] +pub struct RomSwitchboardWires { + pub read_is_utxo_curr: Boolean, + pub read_is_utxo_target: Boolean, + pub read_must_burn_curr: Boolean, + pub read_program_hash_target: Boolean, +} + +#[derive(Clone, Debug, Default)] +pub struct MemSwitchboard { + pub expected_input: bool, + pub activation: bool, + pub init: bool, + pub counters: bool, + pub initialized: bool, + pub finalized: bool, + pub did_burn: bool, + pub ownership: bool, +} + +#[derive(Clone)] +pub struct MemSwitchboardWires { + pub expected_input: Boolean, + pub activation: Boolean, + pub init: Boolean, + pub counters: Boolean, + pub initialized: Boolean, + pub finalized: Boolean, + pub did_burn: Boolean, + pub ownership: Boolean, +} + +#[derive(Clone, Debug, Default)] +pub struct HandlerSwitchboard { + pub read_interface: bool, + pub read_head: bool, + pub read_node: bool, + pub write_node: bool, + pub write_head: bool, +} + +#[derive(Clone)] +pub struct HandlerSwitchboardWires { + pub read_interface: Boolean, + pub read_head: Boolean, + pub read_node: Boolean, + pub write_node: Boolean, + pub write_head: Boolean, +} + +impl MemSwitchboardWires { + pub fn allocate( + cs: ConstraintSystemRef, + switches: &MemSwitchboard, + ) -> Result { + Ok(Self { + expected_input: Boolean::new_witness(cs.clone(), || Ok(switches.expected_input))?, + activation: Boolean::new_witness(cs.clone(), || Ok(switches.activation))?, + init: Boolean::new_witness(cs.clone(), || Ok(switches.init))?, + counters: Boolean::new_witness(cs.clone(), || Ok(switches.counters))?, + initialized: Boolean::new_witness(cs.clone(), || Ok(switches.initialized))?, + finalized: Boolean::new_witness(cs.clone(), || Ok(switches.finalized))?, + did_burn: Boolean::new_witness(cs.clone(), || Ok(switches.did_burn))?, + ownership: Boolean::new_witness(cs.clone(), || Ok(switches.ownership))?, + }) + } +} + +impl RomSwitchboardWires { + pub fn allocate( + cs: ConstraintSystemRef, + switches: &RomSwitchboard, + ) -> Result { + Ok(Self { + read_is_utxo_curr: Boolean::new_witness(cs.clone(), || Ok(switches.read_is_utxo_curr))?, + read_is_utxo_target: Boolean::new_witness(cs.clone(), || { + Ok(switches.read_is_utxo_target) + })?, + read_must_burn_curr: Boolean::new_witness(cs.clone(), || { + Ok(switches.read_must_burn_curr) + })?, + read_program_hash_target: Boolean::new_witness(cs.clone(), || { + Ok(switches.read_program_hash_target) + })?, + }) + } +} + +impl HandlerSwitchboardWires { + pub fn allocate( + cs: ConstraintSystemRef, + switches: &HandlerSwitchboard, + ) -> Result { + Ok(Self { + read_interface: Boolean::new_witness(cs.clone(), || Ok(switches.read_interface))?, + read_head: Boolean::new_witness(cs.clone(), || Ok(switches.read_head))?, + read_node: Boolean::new_witness(cs.clone(), || Ok(switches.read_node))?, + write_node: Boolean::new_witness(cs.clone(), || Ok(switches.write_node))?, + write_head: Boolean::new_witness(cs.clone(), || Ok(switches.write_head))?, + }) + } +} From 7a90bc1e49afcc100002c3ffddc0cb5e9239cc8d Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Mon, 19 Jan 2026 16:39:20 -0300 Subject: [PATCH 089/152] circuit: OptionalF handling cleanup Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .../src/circuit.rs | 28 +++++++++---------- .../src/optional.rs | 22 ++++++++++----- 2 files changed, 28 insertions(+), 22 deletions(-) diff --git a/interleaving/starstream-interleaving-proof/src/circuit.rs b/interleaving/starstream-interleaving-proof/src/circuit.rs index 0b927f4a..1f463202 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit.rs @@ -422,7 +422,6 @@ pub struct Wires { constant_false: Boolean, constant_true: Boolean, - constant_one: FpVar, } // helper so that we always allocate witnesses in the same order @@ -469,7 +468,7 @@ impl Wires { } fn id_prev_value(&self) -> Result, SynthesisError> { - self.id_prev.decode_or_zero(&self.constant_one) + self.id_prev.decode_or_zero() } // IMPORTANT: no rust branches in this function, since the purpose of this @@ -733,7 +732,6 @@ impl Wires { constant_false: Boolean::new_constant(cs.clone(), false)?, constant_true: Boolean::new_constant(cs.clone(), true)?, - constant_one: FpVar::new_constant(cs.clone(), F::from(1))?, // wit_wires opcode_args, @@ -1035,7 +1033,7 @@ impl LedgerOperation { target_write.counters = F::ZERO; } LedgerOperation::Bind { owner_id } => { - curr_write.ownership = OptionalF::from_pid(*owner_id); + curr_write.ownership = OptionalF::new(*owner_id); } LedgerOperation::Unbind { .. } => { target_write.ownership = OptionalF::none(); @@ -1244,7 +1242,7 @@ impl> StepCircuitBuilder { for (pid, owner) in self.instance.ownership_in.iter().enumerate() { let encoded_owner = owner - .map(|p| OptionalF::from_pid(F::from(p.0 as u64)).encoded()) + .map(|p| OptionalF::new(F::from(p.0 as u64)).encoded()) .unwrap_or_else(|| OptionalF::none().encoded()); mb.init( Address { @@ -1489,13 +1487,13 @@ impl> StepCircuitBuilder { // update pids for next iteration match instr { LedgerOperation::Resume { target, .. } => { - irw.id_prev = OptionalF::from_pid(irw.id_curr); + irw.id_prev = OptionalF::new(irw.id_curr); irw.id_curr = *target; } LedgerOperation::Yield { .. } | LedgerOperation::Burn { .. } => { let old_curr = irw.id_curr; irw.id_curr = irw.id_prev.decode_or_zero(); - irw.id_prev = OptionalF::from_pid(old_curr); + irw.id_prev = OptionalF::new(old_curr); } _ => {} } @@ -1720,7 +1718,7 @@ impl> StepCircuitBuilder { let next_id_curr = switch.select(&wires.arg(ArgName::Target), &wires.id_curr)?; let next_id_prev = OptionalFpVar::select_encoded( switch, - &(&wires.id_curr + &wires.constant_one), + &OptionalFpVar::from_pid(&wires.id_curr), &wires.id_prev, )?; @@ -1770,7 +1768,7 @@ impl> StepCircuitBuilder { let next_id_curr = switch.select(&prev_value, &wires.id_curr)?; let next_id_prev = OptionalFpVar::select_encoded( switch, - &(&wires.id_curr + &wires.constant_one), + &OptionalFpVar::from_pid(&wires.id_curr), &wires.id_prev, )?; wires.id_curr = next_id_curr; @@ -1830,7 +1828,7 @@ impl> StepCircuitBuilder { let next_id_curr = switch.select(&prev_value, &wires.id_curr)?; let next_id_prev = OptionalFpVar::select_encoded( switch, - &(&wires.id_curr + &wires.constant_one), + &OptionalFpVar::from_pid(&wires.id_curr), &wires.id_prev, )?; wires.id_curr = next_id_curr; @@ -1955,7 +1953,7 @@ impl> StepCircuitBuilder { .is_some()? .conditional_enforce_equal(&wires.constant_false, switch)?; - let owner_id_encoded = &wires.arg(ArgName::OwnerId) + &wires.constant_one; + let owner_id_encoded = &wires.arg(ArgName::OwnerId) + FpVar::one(); wires .curr_write_wires .ownership @@ -1975,7 +1973,7 @@ impl> StepCircuitBuilder { (is_utxo_curr & is_utxo_target).conditional_enforce_equal(&wires.constant_true, switch)?; // only the owner can unbind - let id_curr_encoded = &wires.id_curr + &wires.constant_one; + let id_curr_encoded = &wires.id_curr + FpVar::one(); wires .target_read_wires .ownership @@ -2032,12 +2030,12 @@ impl> StepCircuitBuilder { // Update state // remaining -= 1 - let next_remaining = &wires.ref_building_remaining - &wires.constant_one; + let next_remaining = &wires.ref_building_remaining - FpVar::one(); wires.ref_building_remaining = switch.select(&next_remaining, &wires.ref_building_remaining)?; // ptr += 1 - let next_ptr = &wires.ref_building_ptr + &wires.constant_one; + let next_ptr = &wires.ref_building_ptr + FpVar::one(); wires.ref_building_ptr = switch.select(&next_ptr, &wires.ref_building_ptr)?; Ok(wires) @@ -2092,7 +2090,7 @@ impl> StepCircuitBuilder { // Update handler stack counter (allocate new node) wires.handler_stack_ptr = switch.select( - &(&wires.handler_stack_ptr + &wires.constant_one), + &(&wires.handler_stack_ptr + FpVar::one()), &wires.handler_stack_ptr, )?; diff --git a/interleaving/starstream-interleaving-proof/src/optional.rs b/interleaving/starstream-interleaving-proof/src/optional.rs index 020b07f9..25b2d129 100644 --- a/interleaving/starstream-interleaving-proof/src/optional.rs +++ b/interleaving/starstream-interleaving-proof/src/optional.rs @@ -1,5 +1,9 @@ use ark_ff::PrimeField; -use ark_r1cs_std::{GR1CSVar, boolean::Boolean, fields::{FieldVar, fp::FpVar}}; +use ark_r1cs_std::{ + GR1CSVar, + boolean::Boolean, + fields::{FieldVar, fp::FpVar}, +}; use ark_relations::gr1cs::SynthesisError; #[derive(Copy, Clone, Debug, Default)] @@ -10,12 +14,12 @@ impl OptionalF { Self(F::ZERO) } - pub fn from_pid(value: F) -> Self { + pub fn new(value: F) -> Self { Self(value + F::ONE) } pub fn from_option(value: Option) -> Self { - value.map(Self::from_pid).unwrap_or_else(Self::none) + value.map(Self::new).unwrap_or_else(Self::none) } pub fn encoded(self) -> F { @@ -47,6 +51,10 @@ impl OptionalFpVar { Self(value) } + pub fn from_pid(value: &FpVar) -> Self { + Self(value + FpVar::one()) + } + pub fn encoded(&self) -> FpVar { self.0.clone() } @@ -55,18 +63,18 @@ impl OptionalFpVar { Ok(!self.0.is_zero()?) } - pub fn decode_or_zero(&self, one: &FpVar) -> Result, SynthesisError> { + pub fn decode_or_zero(&self) -> Result, SynthesisError> { let is_zero = self.0.is_zero()?; - let value = &self.0 - one; + let value = &self.0 - FpVar::one(); is_zero.select(&FpVar::zero(), &value) } pub fn select_encoded( switch: &Boolean, - when_true: &FpVar, + when_true: &OptionalFpVar, when_false: &OptionalFpVar, ) -> Result, SynthesisError> { - let selected = switch.select(when_true, &when_false.encoded())?; + let selected = switch.select(&when_true.encoded(), &when_false.encoded())?; Ok(OptionalFpVar::new(selected)) } From 16823b147455b7dd9b25f3d6bff17c199bff2242 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Mon, 19 Jan 2026 16:39:46 -0300 Subject: [PATCH 090/152] cargo fmt Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- ark-poseidon2/src/linear_layers.rs | 2 +- ark-poseidon2/src/math.rs | 25 ++++++------------- .../starstream-interleaving-proof/src/abi.rs | 4 ++- .../src/circuit_test.rs | 10 +++++--- .../src/switchboard.rs | 2 +- 5 files changed, 19 insertions(+), 24 deletions(-) diff --git a/ark-poseidon2/src/linear_layers.rs b/ark-poseidon2/src/linear_layers.rs index a3df9a94..f9ed9fe5 100644 --- a/ark-poseidon2/src/linear_layers.rs +++ b/ark-poseidon2/src/linear_layers.rs @@ -2,7 +2,7 @@ use crate::{ F, - goldilocks::{matrix_diag_12_goldilocks, matrix_diag_8_goldilocks}, + goldilocks::{matrix_diag_8_goldilocks, matrix_diag_12_goldilocks}, math::mds_light_permutation, }; use ark_ff::PrimeField; diff --git a/ark-poseidon2/src/math.rs b/ark-poseidon2/src/math.rs index f97a23d1..9ea234aa 100644 --- a/ark-poseidon2/src/math.rs +++ b/ark-poseidon2/src/math.rs @@ -1,5 +1,8 @@ use ark_ff::PrimeField; -use ark_r1cs_std::fields::{FieldVar as _, fp::{AllocatedFp, FpVar}}; +use ark_r1cs_std::fields::{ + FieldVar as _, + fp::{AllocatedFp, FpVar}, +}; use ark_relations::gr1cs::{ConstraintSystemRef, LinearCombination, SynthesisError}; #[inline(always)] @@ -55,22 +58,10 @@ fn linear_combination_4( fn apply_mat4(x: &mut [FpVar]) -> Result<(), SynthesisError> { let vars = [&x[0], &x[1], &x[2], &x[3]]; - let y0 = linear_combination_4( - [F::from(2u64), F::from(3u64), F::ONE, F::ONE], - vars, - )?; - let y1 = linear_combination_4( - [F::ONE, F::from(2u64), F::from(3u64), F::ONE], - vars, - )?; - let y2 = linear_combination_4( - [F::ONE, F::ONE, F::from(2u64), F::from(3u64)], - vars, - )?; - let y3 = linear_combination_4( - [F::from(3u64), F::ONE, F::ONE, F::from(2u64)], - vars, - )?; + let y0 = linear_combination_4([F::from(2u64), F::from(3u64), F::ONE, F::ONE], vars)?; + let y1 = linear_combination_4([F::ONE, F::from(2u64), F::from(3u64), F::ONE], vars)?; + let y2 = linear_combination_4([F::ONE, F::ONE, F::from(2u64), F::from(3u64)], vars)?; + let y3 = linear_combination_4([F::from(3u64), F::ONE, F::ONE, F::from(2u64)], vars)?; x[0] = y0; x[1] = y1; diff --git a/interleaving/starstream-interleaving-proof/src/abi.rs b/interleaving/starstream-interleaving-proof/src/abi.rs index 735a1d03..bd2789da 100644 --- a/interleaving/starstream-interleaving-proof/src/abi.rs +++ b/interleaving/starstream-interleaving-proof/src/abi.rs @@ -1,6 +1,8 @@ use crate::{F, LedgerOperation, OptionalF}; use ark_ff::Zero; -use starstream_interleaving_spec::{EffectDiscriminant, Hash, LedgerEffectsCommitment, WitLedgerEffect}; +use starstream_interleaving_spec::{ + EffectDiscriminant, Hash, LedgerEffectsCommitment, WitLedgerEffect, +}; pub const OPCODE_ARG_COUNT: usize = 7; diff --git a/interleaving/starstream-interleaving-proof/src/circuit_test.rs b/interleaving/starstream-interleaving-proof/src/circuit_test.rs index da695e27..812508db 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit_test.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit_test.rs @@ -22,10 +22,12 @@ fn host_calls_roots(traces: &[Vec]) -> Vec Date: Mon, 19 Jan 2026 23:18:50 -0300 Subject: [PATCH 091/152] minor circuit cleanup (target address conditional todo) Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- interleaving/starstream-interleaving-proof/src/abi.rs | 1 - interleaving/starstream-interleaving-proof/src/circuit.rs | 4 ++-- interleaving/starstream-interleaving-proof/src/neo.rs | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/interleaving/starstream-interleaving-proof/src/abi.rs b/interleaving/starstream-interleaving-proof/src/abi.rs index bd2789da..5e6824ec 100644 --- a/interleaving/starstream-interleaving-proof/src/abi.rs +++ b/interleaving/starstream-interleaving-proof/src/abi.rs @@ -191,7 +191,6 @@ pub(crate) fn opcode_args(op: &LedgerOperation) -> [F; OPCODE_ARG_COUNT] { args[ArgName::IdPrev.idx()] = id_prev.encoded(); } LedgerOperation::Yield { val, ret, id_prev } => { - args[ArgName::Target.idx()] = id_prev.decode_or_zero(); args[ArgName::Val.idx()] = *val; args[ArgName::Ret.idx()] = ret.unwrap_or_default(); args[ArgName::IdPrev.idx()] = id_prev.encoded(); diff --git a/interleaving/starstream-interleaving-proof/src/circuit.rs b/interleaving/starstream-interleaving-proof/src/circuit.rs index 1f463202..9357016a 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit.rs @@ -526,8 +526,8 @@ impl Wires { let curr_read_wires = program_state_read_wires(rm, &cs, curr_address.clone(), &curr_mem_switches)?; - // TODO: make conditional for opcodes without target - let target_address = target.clone(); + let id_prev_value = id_prev.decode_or_zero()?; + let target_address = switches.yield_op.select(&id_prev_value, &target)?; let target_read_wires = program_state_read_wires(rm, &cs, target_address.clone(), &target_mem_switches)?; diff --git a/interleaving/starstream-interleaving-proof/src/neo.rs b/interleaving/starstream-interleaving-proof/src/neo.rs index 868b2ae6..9e97dac4 100644 --- a/interleaving/starstream-interleaving-proof/src/neo.rs +++ b/interleaving/starstream-interleaving-proof/src/neo.rs @@ -72,7 +72,7 @@ impl WitnessLayout for CircuitLayout { const M_IN: usize = 1; // instance.len()+witness.len() - const USED_COLS: usize = 881; + const USED_COLS: usize = 885; fn new_layout() -> Self { CircuitLayout {} From 359e7d0d8d7d74ffcc9be77fa6801cc77f745a25 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Tue, 20 Jan 2026 14:18:50 -0300 Subject: [PATCH 092/152] circuit: basic opcode batching (still missing some continuity constraints) Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .../starstream-interleaving-proof/src/lib.rs | 10 ++- .../starstream-interleaving-proof/src/neo.rs | 81 ++++++++++++++----- 2 files changed, 71 insertions(+), 20 deletions(-) diff --git a/interleaving/starstream-interleaving-proof/src/lib.rs b/interleaving/starstream-interleaving-proof/src/lib.rs index 01f77a1c..e8bbac47 100644 --- a/interleaving/starstream-interleaving-proof/src/lib.rs +++ b/interleaving/starstream-interleaving-proof/src/lib.rs @@ -15,7 +15,7 @@ mod neo; use crate::circuit::InterRoundWires; use crate::memory::IVCMemory; use crate::memory::twist_and_shout::{TSMemLayouts, TSMemory}; -use crate::neo::{StarstreamVm, StepCircuitNeo}; +use crate::neo::{CHUNK_SIZE, StarstreamVm, StepCircuitNeo}; use abi::ledger_operation_from_wit; use ark_ff::PrimeField; use ark_relations::gr1cs::{ConstraintSystem, ConstraintSystemRef, SynthesisError}; @@ -133,7 +133,13 @@ pub fn prove( // map all the disjoints vectors of traces (one per process) into a single // list, which is simpler to think about for ivc. - let ops = make_interleaved_trace(&inst, &wit); + let mut ops = make_interleaved_trace(&inst, &wit); + + ops.resize( + ops.len().next_multiple_of(CHUNK_SIZE), + crate::LedgerOperation::Nop {}, + ); + let max_steps = ops.len(); tracing::info!("making proof, steps {}", ops.len()); diff --git a/interleaving/starstream-interleaving-proof/src/neo.rs b/interleaving/starstream-interleaving-proof/src/neo.rs index 9e97dac4..7083d378 100644 --- a/interleaving/starstream-interleaving-proof/src/neo.rs +++ b/interleaving/starstream-interleaving-proof/src/neo.rs @@ -14,6 +14,11 @@ use neo_vm_trace::{Shout, StepTrace, Twist, VmCpu}; use p3_field::PrimeCharacteristicRing; use std::collections::HashMap; +// TODO: benchmark properly +pub(crate) const CHUNK_SIZE: usize = 10; +const PER_STEP_COLS: usize = 885; +const USED_COLS: usize = 1 + (PER_STEP_COLS - 1) * CHUNK_SIZE; + pub(crate) struct StepCircuitNeo { pub(crate) matrices: Vec>>, pub(crate) num_constraints: usize, @@ -33,7 +38,7 @@ impl StepCircuitNeo { tracing::info!("num instance variables {}", num_instance_variables); tracing::info!("num variables {}", num_variables); - assert_eq!(num_variables, ::Layout::USED_COLS); + assert_eq!(num_variables, PER_STEP_COLS); let matrices = ark_cs .into_inner() @@ -72,7 +77,7 @@ impl WitnessLayout for CircuitLayout { const M_IN: usize = 1; // instance.len()+witness.len() - const USED_COLS: usize = 885; + const USED_COLS: usize = USED_COLS; fn new_layout() -> Self { CircuitLayout {} @@ -83,7 +88,7 @@ impl NeoCircuit for StepCircuitNeo { type Layout = CircuitLayout; fn chunk_size(&self) -> usize { - 1 // for now, this is simpler to debug + CHUNK_SIZE } fn const_one_col(&self, _layout: &Self::Layout) -> usize { @@ -140,6 +145,7 @@ impl NeoCircuit for StepCircuitNeo { _layout: &Self::Layout, ) -> Result<(), String> { let matrices = &self.matrices; + let m_in = ::M_IN; for ((matrix_a, matrix_b), matrix_c) in matrices[0] .iter() @@ -151,7 +157,21 @@ impl NeoCircuit for StepCircuitNeo { let b_row = ark_matrix_to_neo(matrix_b); let c_row = ark_matrix_to_neo(matrix_c); - cs.r1cs_terms(a_row, b_row, c_row); + for j in 0..CHUNK_SIZE { + let map_idx = |idx: usize| { + if idx < m_in { + idx + } else { + m_in + (idx - m_in) * CHUNK_SIZE + j + } + }; + + let a_row: Vec<_> = a_row.iter().map(|(i, v)| (map_idx(*i), *v)).collect(); + let b_row: Vec<_> = b_row.iter().map(|(i, v)| (map_idx(*i), *v)).collect(); + let c_row: Vec<_> = c_row.iter().map(|(i, v)| (map_idx(*i), *v)).collect(); + + cs.r1cs_terms(a_row, b_row, c_row); + } } tracing::info!("constraints defined"); @@ -164,12 +184,34 @@ impl NeoCircuit for StepCircuitNeo { _layout: &Self::Layout, chunk: &[StepTrace], ) -> Result, String> { - let mut witness = vec![]; + if chunk.len() != CHUNK_SIZE { + return Err(format!( + "chunk len {} != CHUNK_SIZE {}", + chunk.len(), + CHUNK_SIZE + )); + } - let c = &chunk[0]; + let m_in = ::M_IN; + let per_step_cols = chunk[0].regs_after.len(); + if per_step_cols != PER_STEP_COLS { + return Err(format!( + "per-step witness len {} != PER_STEP_COLS {}", + per_step_cols, PER_STEP_COLS + )); + } + + let mut witness = vec![neo_math::F::ZERO; USED_COLS]; + + for i in 0..m_in { + witness[i] = neo_math::F::from_u64(chunk[0].regs_after[i]); + } - for v in &c.regs_after { - witness.push(neo_math::F::from_u64(*v)); + for (j, step) in chunk.iter().enumerate() { + for i in m_in..per_step_cols { + let idx = m_in + (i - m_in) * CHUNK_SIZE + j; + witness[idx] = neo_math::F::from_u64(step.regs_after[i]); + } } Ok(witness) @@ -185,15 +227,18 @@ impl NeoCircuit for StepCircuitNeo { ), String, > { + let m_in = ::M_IN; + let map_idx = |witness_idx: usize| m_in + witness_idx * CHUNK_SIZE; + let mut shout_map: HashMap> = HashMap::new(); for (tag, layouts) in &self.ts_mem_spec.shout_bindings { for layout in layouts { let entry = shout_map.entry(*tag as u32).or_default(); entry.push(ShoutCpuBinding { - has_lookup: Self::Layout::M_IN + layout.has_lookup, - addr: Self::Layout::M_IN + layout.addr, - val: Self::Layout::M_IN + layout.val, + has_lookup: map_idx(layout.has_lookup), + addr: map_idx(layout.addr), + val: map_idx(layout.val), }); } } @@ -204,12 +249,12 @@ impl NeoCircuit for StepCircuitNeo { for layout in layouts { let entry = twist_map.entry(*tag as u32).or_default(); entry.push(TwistCpuBinding { - read_addr: Self::Layout::M_IN + layout.ra, - has_read: Self::Layout::M_IN + layout.has_read, - rv: Self::Layout::M_IN + layout.rv, - write_addr: Self::Layout::M_IN + layout.wa, - has_write: Self::Layout::M_IN + layout.has_write, - wv: Self::Layout::M_IN + layout.wv, + read_addr: map_idx(layout.ra), + has_read: map_idx(layout.has_read), + rv: map_idx(layout.rv), + write_addr: map_idx(layout.wa), + has_write: map_idx(layout.has_write), + wv: map_idx(layout.wv), inc: None, }); } @@ -252,7 +297,7 @@ impl StarstreamVm { step_i: 0, mem, irw, - regs: vec![0; ::Layout::USED_COLS], + regs: vec![0; PER_STEP_COLS], } } } From e48de63f80e0b60933f380a3661c93d73285befb Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Tue, 20 Jan 2026 15:35:30 -0300 Subject: [PATCH 093/152] bump nightstream version Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .../starstream-interleaving-proof/Cargo.toml | 14 +++++++------- .../starstream-interleaving-proof/src/lib.rs | 7 +++---- .../starstream-interleaving-proof/src/neo.rs | 2 +- .../starstream-interleaving-spec/Cargo.toml | 10 +++++----- 4 files changed, 16 insertions(+), 17 deletions(-) diff --git a/interleaving/starstream-interleaving-proof/Cargo.toml b/interleaving/starstream-interleaving-proof/Cargo.toml index 3309c86e..45cf95e1 100644 --- a/interleaving/starstream-interleaving-proof/Cargo.toml +++ b/interleaving/starstream-interleaving-proof/Cargo.toml @@ -13,13 +13,13 @@ ark-poly-commit = "0.5.0" tracing = { version = "0.1", default-features = false, features = [ "attributes" ] } tracing-subscriber = { version = "0.3", features = ["env-filter"] } -neo-fold = { git = "https://github.com/nicarq/Nightstream.git", rev = "100f3e638e59537ae3f2a109c9a91c2af97479c0" } -neo-math = { git = "https://github.com/nicarq/Nightstream.git", rev = "100f3e638e59537ae3f2a109c9a91c2af97479c0" } -neo-ccs = { git = "https://github.com/nicarq/Nightstream.git", rev = "100f3e638e59537ae3f2a109c9a91c2af97479c0" } -neo-ajtai = { git = "https://github.com/nicarq/Nightstream.git", rev = "100f3e638e59537ae3f2a109c9a91c2af97479c0" } -neo-params = { git = "https://github.com/nicarq/Nightstream.git", rev = "100f3e638e59537ae3f2a109c9a91c2af97479c0" } -neo-vm-trace = { git = "https://github.com/nicarq/Nightstream.git", rev = "100f3e638e59537ae3f2a109c9a91c2af97479c0" } -neo-memory = { git = "https://github.com/nicarq/Nightstream.git", rev = "100f3e638e59537ae3f2a109c9a91c2af97479c0" } +neo-fold = { git = "https://github.com/nicarq/Nightstream.git", rev = "3be044cda72cfc9956861c7a529a747d7d21d6b8" } +neo-math = { git = "https://github.com/nicarq/Nightstream.git", rev = "3be044cda72cfc9956861c7a529a747d7d21d6b8" } +neo-ccs = { git = "https://github.com/nicarq/Nightstream.git", rev = "3be044cda72cfc9956861c7a529a747d7d21d6b8" } +neo-ajtai = { git = "https://github.com/nicarq/Nightstream.git", rev = "3be044cda72cfc9956861c7a529a747d7d21d6b8" } +neo-params = { git = "https://github.com/nicarq/Nightstream.git", rev = "3be044cda72cfc9956861c7a529a747d7d21d6b8" } +neo-vm-trace = { git = "https://github.com/nicarq/Nightstream.git", rev = "3be044cda72cfc9956861c7a529a747d7d21d6b8" } +neo-memory = { git = "https://github.com/nicarq/Nightstream.git", rev = "3be044cda72cfc9956861c7a529a747d7d21d6b8" } starstream-interleaving-spec = { path = "../starstream-interleaving-spec" } diff --git a/interleaving/starstream-interleaving-proof/src/lib.rs b/interleaving/starstream-interleaving-proof/src/lib.rs index e8bbac47..2f72e749 100644 --- a/interleaving/starstream-interleaving-proof/src/lib.rs +++ b/interleaving/starstream-interleaving-proof/src/lib.rs @@ -3,15 +3,13 @@ mod circuit; #[cfg(test)] mod circuit_test; mod logging; +mod memory; mod memory_tags; +mod neo; mod optional; mod program_state; mod switchboard; -pub use optional::{OptionalF, OptionalFpVar}; -mod memory; -mod neo; - use crate::circuit::InterRoundWires; use crate::memory::IVCMemory; use crate::memory::twist_and_shout::{TSMemLayouts, TSMemory}; @@ -26,6 +24,7 @@ use neo_fold::pi_ccs::FoldingMode; use neo_fold::session::{FoldingSession, preprocess_shared_bus_r1cs}; use neo_fold::shard::StepLinkingConfig; use neo_params::NeoParams; +pub use optional::{OptionalF, OptionalFpVar}; use rand::SeedableRng as _; use starstream_interleaving_spec::{ InterleavingInstance, InterleavingWitness, ProcessId, ZkTransactionProof, diff --git a/interleaving/starstream-interleaving-proof/src/neo.rs b/interleaving/starstream-interleaving-proof/src/neo.rs index 7083d378..11d94d7b 100644 --- a/interleaving/starstream-interleaving-proof/src/neo.rs +++ b/interleaving/starstream-interleaving-proof/src/neo.rs @@ -237,7 +237,7 @@ impl NeoCircuit for StepCircuitNeo { let entry = shout_map.entry(*tag as u32).or_default(); entry.push(ShoutCpuBinding { has_lookup: map_idx(layout.has_lookup), - addr: map_idx(layout.addr), + addr: Some(map_idx(layout.addr)), val: map_idx(layout.val), }); } diff --git a/interleaving/starstream-interleaving-spec/Cargo.toml b/interleaving/starstream-interleaving-spec/Cargo.toml index 624ca5df..72bdd895 100644 --- a/interleaving/starstream-interleaving-spec/Cargo.toml +++ b/interleaving/starstream-interleaving-spec/Cargo.toml @@ -11,10 +11,10 @@ ark-ff = { version = "0.5.0", default-features = false } ark-goldilocks = { path = "../../ark-goldilocks" } # TODO: move to workspace deps -neo-fold = { git = "https://github.com/nicarq/Nightstream.git", rev = "100f3e638e59537ae3f2a109c9a91c2af97479c0" } -neo-ccs = { git = "https://github.com/nicarq/Nightstream.git", rev = "100f3e638e59537ae3f2a109c9a91c2af97479c0" } -neo-math = { git = "https://github.com/nicarq/Nightstream.git", rev = "100f3e638e59537ae3f2a109c9a91c2af97479c0" } -neo-ajtai = { git = "https://github.com/nicarq/Nightstream.git", rev = "100f3e638e59537ae3f2a109c9a91c2af97479c0" } -neo-memory = { git = "https://github.com/nicarq/Nightstream.git", rev = "100f3e638e59537ae3f2a109c9a91c2af97479c0" } +neo-fold = { git = "https://github.com/nicarq/Nightstream.git", rev = "3be044cda72cfc9956861c7a529a747d7d21d6b8" } +neo-ccs = { git = "https://github.com/nicarq/Nightstream.git", rev = "3be044cda72cfc9956861c7a529a747d7d21d6b8" } +neo-math = { git = "https://github.com/nicarq/Nightstream.git", rev = "3be044cda72cfc9956861c7a529a747d7d21d6b8" } +neo-ajtai = { git = "https://github.com/nicarq/Nightstream.git", rev = "3be044cda72cfc9956861c7a529a747d7d21d6b8" } +neo-memory = { git = "https://github.com/nicarq/Nightstream.git", rev = "3be044cda72cfc9956861c7a529a747d7d21d6b8" } p3-field = "0.4.1" From cca679b629e0518f3b6e967789a0bb177b8d09ac Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Tue, 20 Jan 2026 15:35:51 -0300 Subject: [PATCH 094/152] update Cargo.lock Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- Cargo.lock | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 92ba6aa3..05f774fa 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2003,7 +2003,7 @@ dependencies = [ [[package]] name = "neo-ajtai" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=100f3e638e59537ae3f2a109c9a91c2af97479c0#100f3e638e59537ae3f2a109c9a91c2af97479c0" +source = "git+https://github.com/nicarq/Nightstream.git?rev=3be044cda72cfc9956861c7a529a747d7d21d6b8#3be044cda72cfc9956861c7a529a747d7d21d6b8" dependencies = [ "neo-ccs", "neo-math", @@ -2023,7 +2023,7 @@ dependencies = [ [[package]] name = "neo-ccs" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=100f3e638e59537ae3f2a109c9a91c2af97479c0#100f3e638e59537ae3f2a109c9a91c2af97479c0" +source = "git+https://github.com/nicarq/Nightstream.git?rev=3be044cda72cfc9956861c7a529a747d7d21d6b8#3be044cda72cfc9956861c7a529a747d7d21d6b8" dependencies = [ "neo-math", "neo-params", @@ -2044,7 +2044,7 @@ dependencies = [ [[package]] name = "neo-fold" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=100f3e638e59537ae3f2a109c9a91c2af97479c0#100f3e638e59537ae3f2a109c9a91c2af97479c0" +source = "git+https://github.com/nicarq/Nightstream.git?rev=3be044cda72cfc9956861c7a529a747d7d21d6b8#3be044cda72cfc9956861c7a529a747d7d21d6b8" dependencies = [ "neo-ajtai", "neo-ccs", @@ -2068,7 +2068,7 @@ dependencies = [ [[package]] name = "neo-math" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=100f3e638e59537ae3f2a109c9a91c2af97479c0#100f3e638e59537ae3f2a109c9a91c2af97479c0" +source = "git+https://github.com/nicarq/Nightstream.git?rev=3be044cda72cfc9956861c7a529a747d7d21d6b8#3be044cda72cfc9956861c7a529a747d7d21d6b8" dependencies = [ "p3-field", "p3-goldilocks", @@ -2083,7 +2083,7 @@ dependencies = [ [[package]] name = "neo-memory" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=100f3e638e59537ae3f2a109c9a91c2af97479c0#100f3e638e59537ae3f2a109c9a91c2af97479c0" +source = "git+https://github.com/nicarq/Nightstream.git?rev=3be044cda72cfc9956861c7a529a747d7d21d6b8#3be044cda72cfc9956861c7a529a747d7d21d6b8" dependencies = [ "neo-ajtai", "neo-ccs", @@ -2102,7 +2102,7 @@ dependencies = [ [[package]] name = "neo-params" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=100f3e638e59537ae3f2a109c9a91c2af97479c0#100f3e638e59537ae3f2a109c9a91c2af97479c0" +source = "git+https://github.com/nicarq/Nightstream.git?rev=3be044cda72cfc9956861c7a529a747d7d21d6b8#3be044cda72cfc9956861c7a529a747d7d21d6b8" dependencies = [ "serde", "thiserror 2.0.17", @@ -2111,7 +2111,7 @@ dependencies = [ [[package]] name = "neo-reductions" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=100f3e638e59537ae3f2a109c9a91c2af97479c0#100f3e638e59537ae3f2a109c9a91c2af97479c0" +source = "git+https://github.com/nicarq/Nightstream.git?rev=3be044cda72cfc9956861c7a529a747d7d21d6b8#3be044cda72cfc9956861c7a529a747d7d21d6b8" dependencies = [ "bincode", "blake3", @@ -2135,7 +2135,7 @@ dependencies = [ [[package]] name = "neo-transcript" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=100f3e638e59537ae3f2a109c9a91c2af97479c0#100f3e638e59537ae3f2a109c9a91c2af97479c0" +source = "git+https://github.com/nicarq/Nightstream.git?rev=3be044cda72cfc9956861c7a529a747d7d21d6b8#3be044cda72cfc9956861c7a529a747d7d21d6b8" dependencies = [ "neo-ccs", "neo-math", @@ -2151,7 +2151,7 @@ dependencies = [ [[package]] name = "neo-vm-trace" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=100f3e638e59537ae3f2a109c9a91c2af97479c0#100f3e638e59537ae3f2a109c9a91c2af97479c0" +source = "git+https://github.com/nicarq/Nightstream.git?rev=3be044cda72cfc9956861c7a529a747d7d21d6b8#3be044cda72cfc9956861c7a529a747d7d21d6b8" dependencies = [ "serde", "thiserror 2.0.17", From ef735fc5b00a901a6df792749603feb9c324b1f9 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Tue, 20 Jan 2026 17:14:14 -0300 Subject: [PATCH 095/152] (perf) fix slow gr1cs tracing Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .../starstream-interleaving-proof/src/logging.rs | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/interleaving/starstream-interleaving-proof/src/logging.rs b/interleaving/starstream-interleaving-proof/src/logging.rs index 0dc40105..e694243d 100644 --- a/interleaving/starstream-interleaving-proof/src/logging.rs +++ b/interleaving/starstream-interleaving-proof/src/logging.rs @@ -1,15 +1,23 @@ use ark_relations::gr1cs::{ConstraintLayer, TracingMode}; -use tracing_subscriber::{Registry, fmt, layer::SubscriberExt as _}; +use tracing_subscriber::Layer; +use tracing_subscriber::{EnvFilter, Registry, fmt, layer::SubscriberExt as _}; pub(crate) fn setup_logger() { static INIT: std::sync::Once = std::sync::Once::new(); INIT.call_once(|| { let constraint_layer = ConstraintLayer::new(TracingMode::All); + let env_filter = EnvFilter::try_from_default_env() + .unwrap_or_else(|_| EnvFilter::new("starstream_interleaving_proof=debug,g1rcs=off")); - let subscriber = Registry::default() - .with(fmt::layer().with_test_writer()) - .with(constraint_layer); + let fmt_layer = if cfg!(test) { + fmt::layer().with_test_writer().boxed() + } else { + fmt::layer().boxed() + } + .with_filter(env_filter); + + let subscriber = Registry::default().with(fmt_layer).with(constraint_layer); tracing::subscriber::set_global_default(subscriber) .expect("Failed to set global default subscriber"); From ffda7abd18cca4ca32622617c9a04f44698ada0e Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Tue, 20 Jan 2026 23:28:44 -0300 Subject: [PATCH 096/152] interleaving circuit: per batch ivc wiring Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .../src/circuit.rs | 151 +++++++++++------- .../starstream-interleaving-proof/src/lib.rs | 16 +- .../starstream-interleaving-proof/src/neo.rs | 126 ++++++++++++--- 3 files changed, 205 insertions(+), 88 deletions(-) diff --git a/interleaving/starstream-interleaving-proof/src/circuit.rs b/interleaving/starstream-interleaving-proof/src/circuit.rs index 9357016a..245660f0 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit.rs @@ -398,8 +398,6 @@ pub struct Wires { ref_building_remaining: FpVar, ref_building_ptr: FpVar, - p_len: FpVar, - switches: ExecutionSwitches>, opcode_args: [FpVar; OPCODE_ARG_COUNT], @@ -454,8 +452,48 @@ pub struct InterRoundWires { ref_building_remaining: F, ref_building_ptr: F, +} + +#[derive(Clone, Copy, Debug)] +pub struct IvcWireIndices { + pub id_curr: usize, + pub id_prev: usize, + pub ref_arena_stack_ptr: usize, + pub handler_stack_ptr: usize, + pub ref_building_remaining: usize, + pub ref_building_ptr: usize, +} + +#[derive(Clone, Copy, Debug)] +pub struct IvcWireLayout { + pub input: IvcWireIndices, + pub output: IvcWireIndices, +} + +impl IvcWireLayout { + pub const FIELD_COUNT: usize = 6; + + pub fn input_indices(&self) -> [usize; Self::FIELD_COUNT] { + [ + self.input.id_curr, + self.input.id_prev, + self.input.ref_arena_stack_ptr, + self.input.handler_stack_ptr, + self.input.ref_building_remaining, + self.input.ref_building_ptr, + ] + } - p_len: F, + pub fn output_indices(&self) -> [usize; Self::FIELD_COUNT] { + [ + self.output.id_curr, + self.output.id_prev, + self.output.ref_arena_stack_ptr, + self.output.handler_stack_ptr, + self.output.ref_building_remaining, + self.output.ref_building_ptr, + ] + } } impl Wires { @@ -485,7 +523,6 @@ impl Wires { // io vars let id_curr = FpVar::::new_witness(cs.clone(), || Ok(vals.irw.id_curr))?; - let p_len = FpVar::::new_witness(cs.clone(), || Ok(vals.irw.p_len))?; let id_prev = OptionalFpVar::new(FpVar::new_witness(cs.clone(), || { Ok(vals.irw.id_prev.encoded()) })?); @@ -726,8 +763,6 @@ impl Wires { ref_building_remaining, ref_building_ptr, - p_len, - switches, constant_false: Boolean::new_constant(cs.clone(), false)?, @@ -754,11 +789,10 @@ impl Wires { } impl InterRoundWires { - pub fn new(p_len: F, entrypoint: u64) -> Self { + pub fn new(entrypoint: u64) -> Self { InterRoundWires { id_curr: F::from(entrypoint), id_prev: OptionalF::none(), - p_len, ref_arena_counter: F::ZERO, handler_stack_counter: F::ZERO, ref_building_remaining: F::ZERO, @@ -786,14 +820,6 @@ impl InterRoundWires { self.id_prev = OptionalF::from_encoded(res_id_prev); - tracing::debug!( - "utxos_len from {} to {}", - self.p_len, - res.p_len.value().unwrap() - ); - - self.p_len = res.p_len.value().unwrap(); - tracing::debug!( "ref_arena_counter from {} to {}", self.ref_arena_counter, @@ -1075,10 +1101,12 @@ impl> StepCircuitBuilder { rm: &mut M::Allocator, cs: ConstraintSystemRef, mut irw: InterRoundWires, + compute_ivc_layout: bool, ) -> Result< ( InterRoundWires, >::FinishStepPayload, + Option, ), SynthesisError, > { @@ -1109,7 +1137,11 @@ impl> StepCircuitBuilder { let mem_step_data = rm.finish_step(i == self.ops.len() - 1)?; // input <-> output mappings are done by modifying next_wires - ivcify_wires(&cs, &wires_in, &next_wires)?; + let ivc_layout = if compute_ivc_layout { + Some(ivc_wires(&cs, &wires_in, &next_wires)?) + } else { + None + }; // Enforce global invariant: If building ref, must be RefPush let is_building = wires_in.ref_building_remaining.is_zero()?.not(); @@ -1119,7 +1151,7 @@ impl> StepCircuitBuilder { tracing::debug!("constraints: {}", cs.num_constraints()); - Ok((irw, mem_step_data)) + Ok((irw, mem_step_data, ivc_layout)) } pub fn trace_memory_ops(&mut self, params: >::Params) -> M { @@ -1268,10 +1300,7 @@ impl> StepCircuitBuilder { // circuit constraints // Initialize IRW for the trace phase and update it as we process each operation - let mut irw = InterRoundWires::new( - F::from(self.p_len() as u64), - self.instance.entrypoint.0 as u64, - ); + let mut irw = InterRoundWires::new(self.instance.entrypoint.0 as u64); let mut ref_building_id = F::ZERO; let mut ref_building_offset = F::ZERO; @@ -2146,10 +2175,6 @@ impl> StepCircuitBuilder { Ok(wires) } - - pub(crate) fn p_len(&self) -> usize { - self.instance.process_table.len() - } } fn register_memory_segments>(mb: &mut M) { @@ -2230,38 +2255,50 @@ fn register_memory_segments>(mb: &mut M) { } #[tracing::instrument(target = "gr1cs", skip_all)] -fn ivcify_wires( - _cs: &ConstraintSystemRef, - _wires_in: &Wires, - _wires_out: &Wires, -) -> Result<(), SynthesisError> { - // let (current_program_in, current_program_out) = { - // let f_in = || wires_in.id_curr.value(); - // let f_out = || wires_out.id_curr.value(); - // let alloc_in = FpVar::new_variable(cs.clone(), f_in, AllocationMode::Input)?; - // let alloc_out = FpVar::new_variable(cs.clone(), f_out, AllocationMode::Input)?; - - // Ok((alloc_in, alloc_out)) - // }?; - - // wires_in.id_curr.enforce_equal(¤t_program_in)?; - // wires_out.id_curr.enforce_equal(¤t_program_out)?; - - // let (utxos_len_in, utxos_len_out) = { - // let f_in = || wires_in.utxos_len.value(); - // let f_out = || wires_out.utxos_len.value(); - // let alloc_in = FpVar::new_variable(cs.clone(), f_in, AllocationMode::Input)?; - // let alloc_out = FpVar::new_variable(cs.clone(), f_out, AllocationMode::Input)?; - - // Ok((alloc_in, alloc_out)) - // }?; - - // wires_in.utxos_len.enforce_equal(&utxos_len_in)?; - // wires_out.utxos_len.enforce_equal(&utxos_len_out)?; - - // utxos_len_in.enforce_equal(&utxos_len_out)?; +fn ivc_wires( + cs: &ConstraintSystemRef, + wires_in: &Wires, + wires_out: &Wires, +) -> Result { + let input = IvcWireIndices { + id_curr: fpvar_witness_index(cs, &wires_in.id_curr)?, + id_prev: fpvar_witness_index(cs, &wires_in.id_prev.encoded())?, + ref_arena_stack_ptr: fpvar_witness_index(cs, &wires_in.ref_arena_stack_ptr)?, + handler_stack_ptr: fpvar_witness_index(cs, &wires_in.handler_stack_ptr)?, + ref_building_remaining: fpvar_witness_index(cs, &wires_in.ref_building_remaining)?, + ref_building_ptr: fpvar_witness_index(cs, &wires_in.ref_building_ptr)?, + }; + + let output = IvcWireIndices { + id_curr: fpvar_witness_index(cs, &wires_out.id_curr)?, + id_prev: fpvar_witness_index(cs, &wires_out.id_prev.encoded())?, + ref_arena_stack_ptr: fpvar_witness_index(cs, &wires_out.ref_arena_stack_ptr)?, + handler_stack_ptr: fpvar_witness_index(cs, &wires_out.handler_stack_ptr)?, + ref_building_remaining: fpvar_witness_index(cs, &wires_out.ref_building_remaining)?, + ref_building_ptr: fpvar_witness_index(cs, &wires_out.ref_building_ptr)?, + }; + + Ok(IvcWireLayout { input, output }) +} - Ok(()) +fn fpvar_witness_index( + cs: &ConstraintSystemRef, + var: &FpVar, +) -> Result { + let witness_offset = cs.num_instance_variables(); + match var { + FpVar::Var(alloc) => { + let full_index = alloc + .variable + .get_variable_index(witness_offset) + .ok_or(SynthesisError::AssignmentMissing)?; + if alloc.variable.is_instance() { + return Err(SynthesisError::AssignmentMissing); + } + Ok(full_index - witness_offset) + } + FpVar::Constant(_) => Err(SynthesisError::AssignmentMissing), + } } impl PreWires { diff --git a/interleaving/starstream-interleaving-proof/src/lib.rs b/interleaving/starstream-interleaving-proof/src/lib.rs index 2f72e749..b5dc7df0 100644 --- a/interleaving/starstream-interleaving-proof/src/lib.rs +++ b/interleaving/starstream-interleaving-proof/src/lib.rs @@ -10,7 +10,7 @@ mod optional; mod program_state; mod switchboard; -use crate::circuit::InterRoundWires; +use crate::circuit::{InterRoundWires, IvcWireLayout}; use crate::memory::IVCMemory; use crate::memory::twist_and_shout::{TSMemLayouts, TSMemory}; use crate::neo::{CHUNK_SIZE, StarstreamVm, StepCircuitNeo}; @@ -275,7 +275,8 @@ fn make_interleaved_trace( ops } -fn ccs_step_shape() -> Result<(ConstraintSystemRef, TSMemLayouts), SynthesisError> { +fn ccs_step_shape() -> Result<(ConstraintSystemRef, TSMemLayouts, IvcWireLayout), SynthesisError> +{ let _span = tracing::debug_span!("dummy circuit").entered(); tracing::debug!("constructing nop circuit to get initial (stable) ccs shape"); @@ -304,18 +305,17 @@ fn ccs_step_shape() -> Result<(ConstraintSystemRef, TSMemLayouts), SynthesisE let mb = dummy_tx.trace_memory_ops(()); - let irw = InterRoundWires::new( - F::from(dummy_tx.p_len() as u64), - dummy_tx.instance.entrypoint.0 as u64, - ); + let irw = InterRoundWires::new(dummy_tx.instance.entrypoint.0 as u64); let mut running_mem = mb.constraints(); - dummy_tx.make_step_circuit(0, &mut running_mem, cs.clone(), irw)?; + let (_irw, _mem, captured_layout) = + dummy_tx.make_step_circuit(0, &mut running_mem, cs.clone(), irw, true)?; + let ivc_layout = captured_layout.expect("ivc layout requested"); cs.finalize(); let mem_spec = running_mem.ts_mem_layouts(); - Ok((cs, mem_spec)) + Ok((cs, mem_spec, ivc_layout)) } diff --git a/interleaving/starstream-interleaving-proof/src/neo.rs b/interleaving/starstream-interleaving-proof/src/neo.rs index 11d94d7b..228e44ee 100644 --- a/interleaving/starstream-interleaving-proof/src/neo.rs +++ b/interleaving/starstream-interleaving-proof/src/neo.rs @@ -1,6 +1,6 @@ use crate::{ ccs_step_shape, - circuit::{InterRoundWires, StepCircuitBuilder}, + circuit::{InterRoundWires, IvcWireLayout, StepCircuitBuilder}, memory::twist_and_shout::{ TSMemInitTables, TSMemLayouts, TSMemory, TSMemoryConstraints, TWIST_DEBUG_FILTER, }, @@ -16,19 +16,23 @@ use std::collections::HashMap; // TODO: benchmark properly pub(crate) const CHUNK_SIZE: usize = 10; -const PER_STEP_COLS: usize = 885; -const USED_COLS: usize = 1 + (PER_STEP_COLS - 1) * CHUNK_SIZE; +const PER_STEP_COLS: usize = 884; +const BASE_INSTANCE_COLS: usize = 1; +const EXTRA_INSTANCE_COLS: usize = IvcWireLayout::FIELD_COUNT * 2; +const M_IN: usize = BASE_INSTANCE_COLS + EXTRA_INSTANCE_COLS; +const USED_COLS: usize = M_IN + (PER_STEP_COLS - BASE_INSTANCE_COLS) * CHUNK_SIZE; pub(crate) struct StepCircuitNeo { pub(crate) matrices: Vec>>, pub(crate) num_constraints: usize, pub(crate) ts_mem_spec: TSMemLayouts, pub(crate) ts_mem_init: TSMemInitTables, + pub(crate) ivc_layout: crate::circuit::IvcWireLayout, } impl StepCircuitNeo { pub fn new(ts_mem_init: TSMemInitTables) -> Self { - let (ark_cs, ts_mem_spec) = ccs_step_shape().unwrap(); + let (ark_cs, ts_mem_spec, ivc_layout) = ccs_step_shape().unwrap(); let num_constraints = ark_cs.num_constraints(); let num_instance_variables = ark_cs.num_instance_variables(); @@ -53,6 +57,7 @@ impl StepCircuitNeo { num_constraints, ts_mem_spec, ts_mem_init, + ivc_layout, } } @@ -74,7 +79,7 @@ pub struct CircuitLayout {} impl WitnessLayout for CircuitLayout { // instance.len() - const M_IN: usize = 1; + const M_IN: usize = M_IN; // instance.len()+witness.len() const USED_COLS: usize = USED_COLS; @@ -146,6 +151,7 @@ impl NeoCircuit for StepCircuitNeo { ) -> Result<(), String> { let matrices = &self.matrices; let m_in = ::M_IN; + let base_m_in = BASE_INSTANCE_COLS; for ((matrix_a, matrix_b), matrix_c) in matrices[0] .iter() @@ -159,10 +165,12 @@ impl NeoCircuit for StepCircuitNeo { for j in 0..CHUNK_SIZE { let map_idx = |idx: usize| { - if idx < m_in { + if idx < base_m_in { idx } else { - m_in + (idx - m_in) * CHUNK_SIZE + j + // NOTE: m_in includes the per folding step IVC + // variables (inputs and outputs) + m_in + (idx - base_m_in) * CHUNK_SIZE + j } }; @@ -174,7 +182,59 @@ impl NeoCircuit for StepCircuitNeo { } } - tracing::info!("constraints defined"); + let one = neo_math::F::ONE; + let minus_one = -neo_math::F::ONE; + let input_base = BASE_INSTANCE_COLS; + let output_base = BASE_INSTANCE_COLS + IvcWireLayout::FIELD_COUNT; + + for (field_offset, (&input_idx, &output_idx)) in self + .ivc_layout + .input_indices() + .iter() + .zip(self.ivc_layout.output_indices().iter()) + .enumerate() + { + for j in 0..(CHUNK_SIZE - 1) { + // The chunked matrix is interleaved column-major: + // for variable x, step 0 is at `m_in + x * CHUNK_SIZE`, step 1 is at + // `m_in + x * CHUNK_SIZE + 1`, etc. So `x * CHUNK_SIZE` picks the + // contiguous block for that variable, and `j` selects the step. + // + // We enforce continuity inside a chunk: + // wire[in][s+1] == wire[out][s] + let out_col = m_in + output_idx * CHUNK_SIZE + j; + let in_col = m_in + input_idx * CHUNK_SIZE + (j + 1); + cs.r1cs_terms( + vec![(out_col, one), (in_col, minus_one)], + vec![(0, one)], + vec![], + ); + } + + let first_chunk_in_col = m_in + input_idx * CHUNK_SIZE; + let last_chunk_out_col = m_in + output_idx * CHUNK_SIZE + (CHUNK_SIZE - 1); + + // The per-folding-step public instance is: + // [1, inputs, outputs] + // We wire the first chunk input to the instance inputs... + let in_instance_col = input_base + field_offset; + // ...and the last chunk output to the instance outputs. + let out_instance_col = output_base + field_offset; + + // This means step_linking in the IVC setup should link pairs: + // (i, i + IvcWireLayout::FIELD_COUNT) + + cs.r1cs_terms( + vec![(in_instance_col, one), (first_chunk_in_col, minus_one)], + vec![(0, one)], + vec![], + ); + cs.r1cs_terms( + vec![(out_instance_col, one), (last_chunk_out_col, minus_one)], + vec![(0, one)], + vec![], + ); + } Ok(()) } @@ -193,6 +253,7 @@ impl NeoCircuit for StepCircuitNeo { } let m_in = ::M_IN; + let base_m_in = BASE_INSTANCE_COLS; let per_step_cols = chunk[0].regs_after.len(); if per_step_cols != PER_STEP_COLS { return Err(format!( @@ -203,13 +264,30 @@ impl NeoCircuit for StepCircuitNeo { let mut witness = vec![neo_math::F::ZERO; USED_COLS]; - for i in 0..m_in { - witness[i] = neo_math::F::from_u64(chunk[0].regs_after[i]); + witness[0] = neo_math::F::from_u64(chunk[0].regs_after[0]); + + let input_base = BASE_INSTANCE_COLS; + let output_base = BASE_INSTANCE_COLS + IvcWireLayout::FIELD_COUNT; + let last_step = chunk.len() - 1; + + for (field_idx, (&input_idx, &output_idx)) in self + .ivc_layout + .input_indices() + .iter() + .zip(self.ivc_layout.output_indices().iter()) + .enumerate() + { + let input_full_idx = base_m_in + input_idx; + let output_full_idx = base_m_in + output_idx; + witness[input_base + field_idx] = + neo_math::F::from_u64(chunk[0].regs_after[input_full_idx]); + witness[output_base + field_idx] = + neo_math::F::from_u64(chunk[last_step].regs_after[output_full_idx]); } for (j, step) in chunk.iter().enumerate() { - for i in m_in..per_step_cols { - let idx = m_in + (i - m_in) * CHUNK_SIZE + j; + for i in base_m_in..per_step_cols { + let idx = m_in + (i - base_m_in) * CHUNK_SIZE + j; witness[idx] = neo_math::F::from_u64(step.regs_after[i]); } } @@ -287,10 +365,7 @@ impl StarstreamVm { step_circuit_builder: StepCircuitBuilder>, mem: TSMemoryConstraints, ) -> Self { - let irw = InterRoundWires::new( - crate::F::from(step_circuit_builder.p_len() as u64), - step_circuit_builder.instance.entrypoint.0 as u64, - ); + let irw = InterRoundWires::new(step_circuit_builder.instance.entrypoint.0 as u64); Self { step_circuit_builder, @@ -329,14 +404,19 @@ impl VmCpu for StarstreamVm { let cs = ConstraintSystem::::new_ref(); cs.set_optimization_goal(OptimizationGoal::Constraints); - let (irw, (shout_events, twist_events)) = self.step_circuit_builder.make_step_circuit( - self.step_i, - &mut self.mem, - cs.clone(), - self.irw.clone(), - )?; + let (irw, (shout_events, twist_events), _ivc_layout) = + self.step_circuit_builder.make_step_circuit( + self.step_i, + &mut self.mem, + cs.clone(), + self.irw.clone(), + false, + )?; + + if let Some(unsat) = cs.which_is_unsatisfied().unwrap() { + tracing::error!(location = unsat, "step CCS is unsat"); + } - dbg!(cs.which_is_unsatisfied().unwrap()); assert!(cs.is_satisfied().unwrap()); self.irw = irw; From b770059c77d45ffacabb4489ebe1a77f283f358e Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Wed, 21 Jan 2026 13:44:25 -0300 Subject: [PATCH 097/152] cp: runtime improvements and fix resume/yield prev_id semantics Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .../starstream-interleaving-proof/src/abi.rs | 6 +- .../src/circuit.rs | 125 ++- .../src/circuit_test.rs | 95 ++- .../src/memory/twist_and_shout/mod.rs | 1 + .../src/memory_tags.rs | 3 + .../starstream-interleaving-proof/src/neo.rs | 2 +- .../src/program_state.rs | 39 +- .../src/switchboard.rs | 3 + .../starstream-interleaving-spec/README.md | 75 +- .../src/mocked_verifier.rs | 175 ++--- .../starstream-interleaving-spec/src/tests.rs | 32 +- .../src/transaction_effects/witness.rs | 10 +- interleaving/starstream-runtime/src/lib.rs | 731 ++++++++++-------- .../starstream-runtime/tests/integration.rs | 103 +-- 14 files changed, 816 insertions(+), 584 deletions(-) diff --git a/interleaving/starstream-interleaving-proof/src/abi.rs b/interleaving/starstream-interleaving-proof/src/abi.rs index 5e6824ec..f300e70c 100644 --- a/interleaving/starstream-interleaving-proof/src/abi.rs +++ b/interleaving/starstream-interleaving-proof/src/abi.rs @@ -80,7 +80,7 @@ pub(crate) fn ledger_operation_from_wit(op: &WitLedgerEffect) -> LedgerOperation ), }, WitLedgerEffect::Burn { ret } => LedgerOperation::Burn { - ret: F::from(ret.unwrap().0), + ret: F::from(ret.0), }, WitLedgerEffect::ProgramHash { target, @@ -108,11 +108,11 @@ pub(crate) fn ledger_operation_from_wit(op: &WitLedgerEffect) -> LedgerOperation target: F::from(id.unwrap().0 as u64), }, WitLedgerEffect::Activation { val, caller } => LedgerOperation::Activation { - val: F::from(val.0), + val: F::from(val.unwrap().0), caller: F::from(caller.unwrap().0 as u64), }, WitLedgerEffect::Init { val, caller } => LedgerOperation::Init { - val: F::from(val.0), + val: F::from(val.unwrap().0), caller: F::from(caller.unwrap().0 as u64), }, WitLedgerEffect::Bind { owner_id } => LedgerOperation::Bind { diff --git a/interleaving/starstream-interleaving-proof/src/circuit.rs b/interleaving/starstream-interleaving-proof/src/circuit.rs index 245660f0..f6612b12 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit.rs @@ -867,23 +867,27 @@ impl LedgerOperation { config.mem_switches_curr.activation = true; config.mem_switches_curr.expected_input = true; + config.mem_switches_curr.expected_resumer = true; config.mem_switches_target.activation = true; config.mem_switches_target.expected_input = true; + config.mem_switches_target.expected_resumer = true; config.mem_switches_target.finalized = true; config.mem_switches_target.initialized = true; config.rom_switches.read_is_utxo_curr = true; config.rom_switches.read_is_utxo_target = true; } - LedgerOperation::Yield { ret, .. } => { + LedgerOperation::Yield { ret: _ret, .. } => { config.execution_switches.yield_op = true; config.mem_switches_curr.activation = true; - if ret.is_some() { - config.mem_switches_curr.expected_input = true; - } + config.mem_switches_curr.expected_input = true; + config.mem_switches_curr.expected_resumer = true; config.mem_switches_curr.finalized = true; + + config.mem_switches_target.expected_input = true; + config.mem_switches_target.expected_resumer = true; } LedgerOperation::Burn { .. } => { config.execution_switches.burn = true; @@ -907,6 +911,8 @@ impl LedgerOperation { config.mem_switches_target.initialized = true; config.mem_switches_target.init = true; config.mem_switches_target.counters = true; + config.mem_switches_target.expected_input = true; + config.mem_switches_target.expected_resumer = true; config.rom_switches.read_is_utxo_curr = true; config.rom_switches.read_is_utxo_target = true; @@ -918,6 +924,8 @@ impl LedgerOperation { config.mem_switches_target.initialized = true; config.mem_switches_target.init = true; config.mem_switches_target.counters = true; + config.mem_switches_target.expected_input = true; + config.mem_switches_target.expected_resumer = true; config.rom_switches.read_is_utxo_curr = true; config.rom_switches.read_is_utxo_target = true; @@ -1013,11 +1021,12 @@ impl LedgerOperation { // Nop does nothing to the state curr_write.counters -= F::ONE; // revert counter increment } - LedgerOperation::Resume { val, ret, .. } => { + LedgerOperation::Resume { val, ret, id_prev, .. } => { // Current process gives control to target. // It's `arg` is cleared, and its `expected_input` is set to the return value `ret`. curr_write.activation = F::ZERO; // Represents None - curr_write.expected_input = *ret; + curr_write.expected_input = OptionalF::new(*ret); + curr_write.expected_resumer = *id_prev; // Target process receives control. // Its `arg` is set to `val`, and it is no longer in a `finalized` state. @@ -1029,6 +1038,7 @@ impl LedgerOperation { // but this doesn't change the parent's state itself. val: _, ret, + id_prev, .. } => { // Current process yields control back to its parent (the target of this operation). @@ -1036,19 +1046,21 @@ impl LedgerOperation { curr_write.activation = F::ZERO; // Represents None if let Some(r) = ret { // If Yield returns a value, it expects a new input `r` for the next resume. - curr_write.expected_input = *r; + curr_write.expected_input = OptionalF::new(*r); curr_write.finalized = false; } else { // If Yield does not return a value, it's a final yield for this UTXO. + curr_write.expected_input = OptionalF::none(); curr_write.finalized = true; } + curr_write.expected_resumer = *id_prev; } LedgerOperation::Burn { ret } => { // The current UTXO is burned. curr_write.activation = F::ZERO; // Represents None curr_write.finalized = true; curr_write.did_burn = true; - curr_write.expected_input = *ret; // Sets its final return value. + curr_write.expected_input = OptionalF::new(*ret); // Sets its final return value. } LedgerOperation::NewUtxo { val, target: _, .. } | LedgerOperation::NewCoord { val, target: _, .. } => { @@ -1057,6 +1069,8 @@ impl LedgerOperation { target_write.initialized = true; target_write.init = *val; target_write.counters = F::ZERO; + target_write.expected_input = OptionalF::none(); + target_write.expected_resumer = OptionalF::none(); } LedgerOperation::Bind { owner_id } => { curr_write.ownership = OptionalF::new(*owner_id); @@ -1217,11 +1231,15 @@ impl> StepCircuitBuilder { addr: pid as u64, tag: MemoryTag::ExpectedInput.into(), }, - vec![if pid >= self.instance.n_inputs { - F::from(0u64) - } else { - self.last_yield[pid] - }], + vec![OptionalF::none().encoded()], + ); + + mb.init( + Address { + addr: pid as u64, + tag: MemoryTag::ExpectedResumer.into(), + }, + vec![OptionalF::none().encoded()], ); mb.init( @@ -1712,9 +1730,6 @@ impl> StepCircuitBuilder { wires .id_curr .conditional_enforce_not_equal(&wires.arg(ArgName::Target), switch)?; - wires - .arg(ArgName::IdPrev) - .conditional_enforce_equal(&wires.id_prev.encoded(), switch)?; // 2. UTXO cannot resume UTXO. let is_utxo_curr = wires.is_utxo_curr.is_one()?; @@ -1733,11 +1748,28 @@ impl> StepCircuitBuilder { .activation .conditional_enforce_equal(&FpVar::zero(), switch)?; - // 5. Claim check: val passed in must match target's expected_input. + // 5. Claim check: val passed in must match target's expected_input (if set). + let expected_input_is_some = wires.target_read_wires.expected_input.is_some()?; + let expected_input_value = wires.target_read_wires.expected_input.decode_or_zero()?; + expected_input_value.conditional_enforce_equal( + &wires.arg(ArgName::Val), + &(switch & expected_input_is_some), + )?; + + // 6. Resumer check: current process must match target's expected_resumer (if set). + let expected_resumer_is_some = wires.target_read_wires.expected_resumer.is_some()?; + let expected_resumer_value = wires.target_read_wires.expected_resumer.decode_or_zero()?; + expected_resumer_value.conditional_enforce_equal( + &wires.id_curr, + &(switch & expected_resumer_is_some), + )?; + + // 7. Store expected resumer for the current process. wires - .target_read_wires - .expected_input - .conditional_enforce_equal(&wires.arg(ArgName::Val), switch)?; + .curr_write_wires + .expected_resumer + .encoded() + .conditional_enforce_equal(&wires.arg(ArgName::IdPrev), switch)?; // --- // IVC state updates @@ -1782,12 +1814,14 @@ impl> StepCircuitBuilder { .id_prev_is_some()? .conditional_enforce_equal(&Boolean::TRUE, switch)?; - // 2. Claim check: burned value `ret` must match parent's `expected_input`. + // 2. Claim check: burned value `ret` must match parent's `expected_input` (if set). // Parent's state is in `target_read_wires`. - wires - .target_read_wires - .expected_input - .conditional_enforce_equal(&wires.arg(ArgName::Ret), switch)?; + let expected_input_is_some = wires.target_read_wires.expected_input.is_some()?; + let expected_input_value = wires.target_read_wires.expected_input.decode_or_zero()?; + expected_input_value.conditional_enforce_equal( + &wires.arg(ArgName::Ret), + &(switch & expected_input_is_some), + )?; // --- // IVC state updates @@ -1814,19 +1848,15 @@ impl> StepCircuitBuilder { wires .id_prev_is_some()? .conditional_enforce_equal(&Boolean::TRUE, switch)?; - wires - .arg(ArgName::IdPrev) - .conditional_enforce_equal(&wires.id_prev.encoded(), switch)?; // 2. Claim check: yielded value `val` must match parent's `expected_input`. // The parent's state is in `target_read_wires` because we set `target = irw.id_prev`. - wires - .target_read_wires - .expected_input - .conditional_enforce_equal( - &wires.arg(ArgName::Val), - &(switch & (&wires.ret_is_some)), - )?; + let expected_input_is_some = wires.target_read_wires.expected_input.is_some()?; + let expected_input_value = wires.target_read_wires.expected_input.decode_or_zero()?; + expected_input_value.conditional_enforce_equal( + &wires.arg(ArgName::Val), + &(switch & expected_input_is_some), + )?; // --- // State update enforcement @@ -1839,14 +1869,25 @@ impl> StepCircuitBuilder { .finalized .conditional_enforce_equal(&wires.ret_is_some.clone().not(), switch)?; - // The next `expected_input` should be `ret_value` if `ret` is Some, and 0 otherwise. - let new_expected_input = wires + // The next `expected_input` is `ret_value` if `ret` is Some, and None otherwise. + let new_expected_input_encoded = wires .ret_is_some - .select(&wires.arg(ArgName::Ret), &FpVar::zero())?; + .select( + &(&wires.arg(ArgName::Ret) + FpVar::one()), + &FpVar::zero(), + )?; wires .curr_write_wires .expected_input - .conditional_enforce_equal(&new_expected_input, switch)?; + .encoded() + .conditional_enforce_equal(&new_expected_input_encoded, switch)?; + + // The next expected resumer is the provided id_prev. + wires + .curr_write_wires + .expected_resumer + .encoded() + .conditional_enforce_equal(&wires.arg(ArgName::IdPrev), switch)?; // --- // IVC state updates @@ -2201,6 +2242,12 @@ fn register_memory_segments>(mb: &mut M) { MemType::Ram, "RAM_EXPECTED_INPUT", ); + mb.register_mem( + MemoryTag::ExpectedResumer.into(), + 1, + MemType::Ram, + "RAM_EXPECTED_RESUMER", + ); mb.register_mem( MemoryTag::Activation.into(), 1, diff --git a/interleaving/starstream-interleaving-proof/src/circuit_test.rs b/interleaving/starstream-interleaving-proof/src/circuit_test.rs index 812508db..b0227007 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit_test.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit_test.rs @@ -54,7 +54,7 @@ fn test_circuit_many_steps() { let utxo_trace = vec![ WitLedgerEffect::Init { - val: ref_4, + val: ref_4.into(), caller: p2.into(), }, WitLedgerEffect::Get { @@ -63,7 +63,7 @@ fn test_circuit_many_steps() { ret: val_4.clone().into(), }, WitLedgerEffect::Activation { - val: ref_0, + val: ref_0.into(), caller: p2.into(), }, WitLedgerEffect::GetHandlerFor { @@ -79,7 +79,7 @@ fn test_circuit_many_steps() { let token_trace = vec![ WitLedgerEffect::Init { - val: ref_1, + val: ref_1.into(), caller: p2.into(), }, WitLedgerEffect::Get { @@ -88,7 +88,7 @@ fn test_circuit_many_steps() { ret: val_1.clone().into(), }, WitLedgerEffect::Activation { - val: ref_0, + val: ref_0.into(), caller: p2.into(), }, WitLedgerEffect::Bind { owner_id: p0 }, @@ -237,3 +237,90 @@ fn test_circuit_small() { let result = prove(instance, wit); assert!(result.is_ok()); } + +#[test] +#[should_panic] +fn test_circuit_resumer_mismatch() { + setup_logger(); + + let utxo_id = 0; + let coord_a_id = 1; + let coord_b_id = 2; + + let p0 = ProcessId(utxo_id); + let p1 = ProcessId(coord_a_id); + let p2 = ProcessId(coord_b_id); + + let val_0 = v(&[0]); + + let ref_0 = Ref(0); + + let utxo_trace = vec![WitLedgerEffect::Yield { + val: ref_0.clone(), + ret: WitEffectOutput::Thunk, + id_prev: Some(p1).into(), + }]; + + let coord_a_trace = vec![ + WitLedgerEffect::NewRef { + size: 1, + ret: ref_0.into(), + }, + WitLedgerEffect::RefPush { val: val_0 }, + WitLedgerEffect::NewUtxo { + program_hash: h(0), + val: ref_0, + id: p0.into(), + }, + WitLedgerEffect::NewCoord { + program_hash: h(2), + val: ref_0, + id: p2.into(), + }, + WitLedgerEffect::Resume { + target: p0, + val: ref_0.clone(), + ret: ref_0.clone().into(), + id_prev: WitEffectOutput::Resolved(None), + }, + WitLedgerEffect::Resume { + target: p2, + val: ref_0.clone(), + ret: ref_0.clone().into(), + id_prev: WitEffectOutput::Resolved(None), + }, + ]; + + let coord_b_trace = vec![WitLedgerEffect::Resume { + target: p0, + val: ref_0, + ret: ref_0.into(), + id_prev: WitEffectOutput::Resolved(None), + }]; + + let traces = vec![utxo_trace, coord_a_trace, coord_b_trace]; + + let trace_lens = traces.iter().map(|t| t.len() as u32).collect::>(); + + let host_calls_roots = host_calls_roots(&traces); + + let instance = InterleavingInstance { + n_inputs: 0, + n_new: 1, + n_coords: 2, + entrypoint: p1, + process_table: vec![h(0), h(1), h(2)], + is_utxo: vec![true, false, false], + must_burn: vec![false, false, false], + ownership_in: vec![None, None, None], + ownership_out: vec![None, None, None], + host_calls_roots, + host_calls_lens: trace_lens, + input_states: vec![], + }; + + let wit = InterleavingWitness { traces }; + + let result = prove(instance, wit); + assert!(result.is_err()); +} diff --git a/interleaving/starstream-interleaving-proof/src/memory/twist_and_shout/mod.rs b/interleaving/starstream-interleaving-proof/src/memory/twist_and_shout/mod.rs index 3a475d59..07ae4334 100644 --- a/interleaving/starstream-interleaving-proof/src/memory/twist_and_shout/mod.rs +++ b/interleaving/starstream-interleaving-proof/src/memory/twist_and_shout/mod.rs @@ -19,6 +19,7 @@ use std::collections::VecDeque; pub const TWIST_DEBUG_FILTER: &[u32] = &[ MemoryTag::ExpectedInput as u32, + MemoryTag::ExpectedResumer as u32, MemoryTag::Activation as u32, MemoryTag::Counters as u32, MemoryTag::Initialized as u32, diff --git a/interleaving/starstream-interleaving-proof/src/memory_tags.rs b/interleaving/starstream-interleaving-proof/src/memory_tags.rs index c3fef77d..5cef487a 100644 --- a/interleaving/starstream-interleaving-proof/src/memory_tags.rs +++ b/interleaving/starstream-interleaving-proof/src/memory_tags.rs @@ -25,6 +25,7 @@ pub enum MemoryTag { HandlerStackArenaNextPtr = 15, HandlerStackHeads = 16, TraceCommitments = 17, + ExpectedResumer = 18, } impl From for u64 { @@ -48,6 +49,7 @@ impl MemoryTag { #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum ProgramStateTag { ExpectedInput, + ExpectedResumer, Activation, Init, Counters, @@ -61,6 +63,7 @@ impl From for MemoryTag { fn from(tag: ProgramStateTag) -> MemoryTag { match tag { ProgramStateTag::ExpectedInput => MemoryTag::ExpectedInput, + ProgramStateTag::ExpectedResumer => MemoryTag::ExpectedResumer, ProgramStateTag::Activation => MemoryTag::Activation, ProgramStateTag::Init => MemoryTag::Init, ProgramStateTag::Counters => MemoryTag::Counters, diff --git a/interleaving/starstream-interleaving-proof/src/neo.rs b/interleaving/starstream-interleaving-proof/src/neo.rs index 228e44ee..13b34ae4 100644 --- a/interleaving/starstream-interleaving-proof/src/neo.rs +++ b/interleaving/starstream-interleaving-proof/src/neo.rs @@ -16,7 +16,7 @@ use std::collections::HashMap; // TODO: benchmark properly pub(crate) const CHUNK_SIZE: usize = 10; -const PER_STEP_COLS: usize = 884; +const PER_STEP_COLS: usize = 929; const BASE_INSTANCE_COLS: usize = 1; const EXTRA_INSTANCE_COLS: usize = IvcWireLayout::FIELD_COUNT * 2; const M_IN: usize = BASE_INSTANCE_COLS + EXTRA_INSTANCE_COLS; diff --git a/interleaving/starstream-interleaving-proof/src/program_state.rs b/interleaving/starstream-interleaving-proof/src/program_state.rs index 6d2677f3..ee6d2b01 100644 --- a/interleaving/starstream-interleaving-proof/src/program_state.rs +++ b/interleaving/starstream-interleaving-proof/src/program_state.rs @@ -11,7 +11,8 @@ use ark_relations::gr1cs::{ConstraintSystemRef, SynthesisError}; #[derive(Clone, Debug)] pub struct ProgramState { - pub expected_input: F, + pub expected_input: OptionalF, + pub expected_resumer: OptionalF, pub activation: F, pub init: F, pub counters: F, @@ -24,7 +25,8 @@ pub struct ProgramState { /// IVC wires (state between steps) #[derive(Clone)] pub struct ProgramStateWires { - pub expected_input: FpVar, + pub expected_input: OptionalFpVar, + pub expected_resumer: OptionalFpVar, pub activation: FpVar, pub init: FpVar, pub counters: FpVar, @@ -40,7 +42,12 @@ impl ProgramStateWires { write_values: &ProgramState, ) -> Result { Ok(ProgramStateWires { - expected_input: FpVar::new_witness(cs.clone(), || Ok(write_values.expected_input))?, + expected_input: OptionalFpVar::new(FpVar::new_witness(cs.clone(), || { + Ok(write_values.expected_input.encoded()) + })?), + expected_resumer: OptionalFpVar::new(FpVar::new_witness(cs.clone(), || { + Ok(write_values.expected_resumer.encoded()) + })?), activation: FpVar::new_witness(cs.clone(), || Ok(write_values.activation))?, init: FpVar::new_witness(cs.clone(), || Ok(write_values.init))?, counters: FpVar::new_witness(cs.clone(), || Ok(write_values.counters))?, @@ -143,7 +150,8 @@ macro_rules! define_program_state_operations { } define_program_state_operations!( - (expected_input, ExpectedInput, field), + (expected_input, ExpectedInput, optional), + (expected_resumer, ExpectedResumer, optional), (activation, Activation, field), (init, Init, field), (counters, Counters, field), @@ -160,8 +168,8 @@ pub fn program_state_read_wires>( switches: &MemSwitchboardWires, ) -> Result { Ok(ProgramStateWires { - expected_input: rm - .conditional_read( + expected_input: OptionalFpVar::new( + rm.conditional_read( &switches.expected_input, &Address { addr: address.clone(), @@ -171,6 +179,19 @@ pub fn program_state_read_wires>( .into_iter() .next() .unwrap(), + ), + expected_resumer: OptionalFpVar::new( + rm.conditional_read( + &switches.expected_resumer, + &Address { + addr: address.clone(), + tag: MemoryTag::ExpectedResumer.allocate(cs.clone())?, + }, + )? + .into_iter() + .next() + .unwrap(), + ), activation: rm .conditional_read( &switches.activation, @@ -259,7 +280,8 @@ impl ProgramState { pub fn dummy() -> Self { Self { finalized: false, - expected_input: F::ZERO, + expected_input: OptionalF::none(), + expected_resumer: OptionalF::none(), activation: F::ZERO, init: F::ZERO, counters: F::ZERO, @@ -270,7 +292,8 @@ impl ProgramState { } pub fn debug_print(&self) { - tracing::debug!("expected_input={}", self.expected_input); + tracing::debug!("expected_input={}", self.expected_input.encoded()); + tracing::debug!("expected_resumer={}", self.expected_resumer.encoded()); tracing::debug!("activation={}", self.activation); tracing::debug!("init={}", self.init); tracing::debug!("counters={}", self.counters); diff --git a/interleaving/starstream-interleaving-proof/src/switchboard.rs b/interleaving/starstream-interleaving-proof/src/switchboard.rs index 2b246802..21f94c5d 100644 --- a/interleaving/starstream-interleaving-proof/src/switchboard.rs +++ b/interleaving/starstream-interleaving-proof/src/switchboard.rs @@ -22,6 +22,7 @@ pub struct RomSwitchboardWires { #[derive(Clone, Debug, Default)] pub struct MemSwitchboard { pub expected_input: bool, + pub expected_resumer: bool, pub activation: bool, pub init: bool, pub counters: bool, @@ -34,6 +35,7 @@ pub struct MemSwitchboard { #[derive(Clone)] pub struct MemSwitchboardWires { pub expected_input: Boolean, + pub expected_resumer: Boolean, pub activation: Boolean, pub init: Boolean, pub counters: Boolean, @@ -68,6 +70,7 @@ impl MemSwitchboardWires { ) -> Result { Ok(Self { expected_input: Boolean::new_witness(cs.clone(), || Ok(switches.expected_input))?, + expected_resumer: Boolean::new_witness(cs.clone(), || Ok(switches.expected_resumer))?, activation: Boolean::new_witness(cs.clone(), || Ok(switches.activation))?, init: Boolean::new_witness(cs.clone(), || Ok(switches.init))?, counters: Boolean::new_witness(cs.clone(), || Ok(switches.counters))?, diff --git a/interleaving/starstream-interleaving-spec/README.md b/interleaving/starstream-interleaving-spec/README.md index a874371f..89ee12c4 100644 --- a/interleaving/starstream-interleaving-spec/README.md +++ b/interleaving/starstream-interleaving-spec/README.md @@ -86,38 +86,43 @@ our value matches its claim. ```text Rule: Resume ============ - op = Resume(target, val_ref) -> ret_ref + op = Resume(target, val_ref) -> (ret_ref, id_prev) 1. id_curr ≠ target (No self resume) 2. let val = ref_store[val_ref] in - M[target] == val + expected_input[target] == val (Check val matches target's previous claim) - 3. let + 3. expected_resumer[target] == id_curr + + (Check that the current process matches the expected resumer for the target) + + 4. let t = CC[id_curr] in c = counters[id_curr] in t[c] == (The opcode matches the host call lookup table used in the wasm proof at the current index) - 4. is_utxo(id_curr) => !is_utxo(target) + 5. is_utxo(id_curr) => !is_utxo(target) (Utxo's can't call into utxos) - 5. initialized[target] + 6. initialized[target] (Can't jump to an unitialized process) -------------------------------------------------------------------------------------------- - 1. M[id_curr] <- ret_ref (Claim, needs to be checked later by future resumer) - 2. counters'[id_curr] += 1 (Keep track of host call index per process) - 3. id_prev' <- id_curr (Save "caller" for yield) - 4. id_curr' <- target (Switch) - 5. safe_to_ledger'[target] <- False (This is not the final yield for this utxo in this transaction) - 6. activation'[target] <- Some(val_ref, id_curr) + 1. expected_input[id_curr] <- ret_ref (Claim, needs to be checked later by future resumer) + 2. expected_resumer[id_curr] <- id_prev (Claim, needs to be checked later by future resumer) + 3. counters'[id_curr] += 1 (Keep track of host call index per process) + 4. id_prev' <- id_curr (Save "caller" for yield) + 5. id_curr' <- target (Switch) + 6. safe_to_ledger'[target] <- False (This is not the final yield for this utxo in this transaction) + 7. activation'[target] <- Some(val_ref, id_curr) ``` ## Activation @@ -166,14 +171,18 @@ with an actual result). In that case, id_prev would be null (or some sentinel). ```text Rule: Yield (resumed) ============ - op = Yield(val_ref) -> ret_ref + op = Yield(val_ref) -> (ret_ref, id_prev) 1. let val = ref_store[val_ref] in - M[id_prev] == val + expected_input[id_prev] == val (Check val matches target's previous claim) - 2. let + 2. expected_resumer[id_prev] == id_curr + + (Check that the current process matches the expected resumer for the parent) + + 3. let t = CC[id_curr] in c = counters[id_curr] in t[c] == @@ -181,12 +190,13 @@ Rule: Yield (resumed) (The opcode matches the host call lookup table used in the wasm proof at the current index) -------------------------------------------------------------------------------------------- - 1. M[id_curr] <- ret_ref (Claim, needs to be checked later by future resumer) - 2. counters'[id_curr] += 1 (Keep track of host call index per process) - 3. id_curr' <- id_prev (Switch to parent) - 4. id_prev' <- id_curr (Save "caller") - 5. safe_to_ledger'[id_curr] <- False (This is not the final yield for this utxo in this transaction) - 6. activation'[id_curr] <- None + 1. expected_input[id_curr] <- ret_ref (Claim, needs to be checked later by future resumer) + 2. expected_resumer[id_curr] <- id_prev (Claim, needs to be checked later by future resumer) + 3. counters'[id_curr] += 1 (Keep track of host call index per process) + 4. id_curr' <- id_prev (Switch to parent) + 5. id_prev' <- id_curr (Save "caller") + 6. safe_to_ledger'[id_curr] <- False (This is not the final yield for this utxo in this transaction) + 7. activation'[id_curr] <- None ``` ```text @@ -203,11 +213,12 @@ Rule: Yield (end transaction) (The opcode matches the host call lookup table used in the wasm proof at the current index) -------------------------------------------------------------------------------------------- - 1. counters'[id_curr] += 1 (Keep track of host call index per process) - 2. id_curr' <- id_prev (Switch to parent) - 3. id_prev' <- id_curr (Save "caller") - 4. safe_to_ledger'[id_curr] <- True (This utxo creates a transacition output) - 5. activation'[id_curr] <- None + 1. expected_resumer[id_curr] <- id_prev (Claim, needs to be checked later by future resumer) + 2. counters'[id_curr] += 1 (Keep track of host call index per process) + 3. id_curr' <- id_prev (Switch to parent) + 4. id_prev' <- id_curr (Save "caller") + 5. safe_to_ledger'[id_curr] <- True (This utxo creates a transacition output) + 6. activation'[id_curr] <- None ``` ## Program Hash @@ -272,9 +283,10 @@ Assigns a new (transaction-local) ID for a UTXO program. ----------------------------------------------------------------------- 1. initialized[id] <- True - 2. M[id] <- val - 3. init'[id] <- Some(val, id_curr) - 4. counters'[id_curr] += 1 + 2. expected_input[id] <- val + 3. expected_resumer[id] <- id_curr + 4. init'[id] <- Some(val, id_curr) + 5. counters'[id_curr] += 1 ``` ## New Coordination Script (Spawn) @@ -315,9 +327,10 @@ handler) instance. ----------------------------------------------------------------------- 1. initialized[id] <- True - 2. M[id] <- val - 3. init'[id] <- Some(val, id_curr) - 4. counters'[id_curr] += 1 + 2. expected_input[id] <- val + 3. expected_resumer[id] <- id_curr + 4. init'[id] <- Some(val, id_curr) + 5. counters'[id_curr] += 1 ``` --- diff --git a/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs b/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs index 32d217b9..6c30583a 100644 --- a/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs +++ b/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs @@ -9,7 +9,7 @@ //! It's mainly a direct translation of the algorithm in the README use crate::{ - Hash, InterleavingInstance, Ref, Value, WasmModule, WitEffectOutput, + Hash, InterleavingInstance, Ref, Value, WasmModule, transaction_effects::{InterfaceId, ProcessId, witness::WitLedgerEffect}, }; use ark_ff::Zero; @@ -90,6 +90,13 @@ pub enum InterleavingError { got: Vec, }, + #[error("resumer mismatch: target={target} expected={expected} got={got}")] + ResumerMismatch { + target: ProcessId, + expected: ProcessId, + got: ProcessId, + }, + #[error("program hash mismatch: target={target} expected={expected:?} got={got:?}")] ProgramHashMismatch { target: ProcessId, @@ -212,7 +219,8 @@ pub struct InterleavingState { id_prev: Option, /// Claims memory: M[pid] = expected argument to next Resume into pid. - expected_input: Vec, + expected_input: Vec>, + expected_resumer: Vec>, activation: Vec>, init: Vec>, @@ -251,15 +259,9 @@ pub fn verify_interleaving_semantics( )); } - // a utxo that did yield at the end of a previous transaction, gets - // initialized with the same data. - // - // TODO: maybe we also need to assert/prove that it starts with a Yield - let claims_memory = vec![Ref(0); n]; - for _ in 0..inst.n_inputs { - // TODO: This is not correct, last_yield is a Value, not a Ref - // claims_memory[i] = inst.input_states[i].last_yield.clone(); - } + // Inputs do not start with an expected resume argument unless we track it + // explicitly in the instance. + let claims_memory = vec![None; n]; let rom = ROM { process_table: inst.process_table.clone(), @@ -272,6 +274,7 @@ pub fn verify_interleaving_semantics( id_curr: ProcessId(inst.entrypoint.into()), id_prev: None, expected_input: claims_memory, + expected_resumer: vec![None; n], activation: vec![None; n], init: vec![None; n], counters: vec![0; n], @@ -455,18 +458,7 @@ pub fn state_transition( state.activation[id_curr.0] = None; - if state.counters[target.0] == 0 { - if let Some((init_val, _)) = &state.init[target.0] { - if *init_val != val { - return Err(InterleavingError::ResumeClaimMismatch { - target, - expected: init_val.clone(), - got: val.clone(), - }); - } - } - } else { - let expected = state.expected_input[target.0]; + if let Some(expected) = state.expected_input[target.0] { if expected != val { return Err(InterleavingError::ResumeClaimMismatch { target, @@ -476,29 +468,21 @@ pub fn state_transition( } } - state.activation[target.0] = Some((val, id_curr)); - - state.expected_input[id_curr.0] = ret.unwrap(); - - if id_prev.unwrap() != state.id_prev { - return Err(InterleavingError::HostCallMismatch { - pid: id_curr, - counter: c, - expected: WitLedgerEffect::Resume { + if let Some(expected) = state.expected_resumer[target.0] { + if expected != id_curr { + return Err(InterleavingError::ResumerMismatch { target, - val, - ret, - id_prev: WitEffectOutput::Resolved(state.id_prev), - }, - got: WitLedgerEffect::Resume { - target, - val, - ret, - id_prev, - }, - }); + expected, + got: id_curr, + }); + } } + state.activation[target.0] = Some((val, id_curr)); + + state.expected_input[id_curr.0] = ret.to_option(); + state.expected_resumer[id_curr.0] = id_prev.to_option().flatten(); + state.id_prev = Some(id_curr); state.id_curr = target; @@ -507,19 +491,6 @@ pub fn state_transition( } WitLedgerEffect::Yield { val, ret, id_prev } => { - if id_prev.unwrap() != state.id_prev { - return Err(InterleavingError::HostCallMismatch { - pid: id_curr, - counter: c, - expected: WitLedgerEffect::Yield { - val, - ret, - id_prev: WitEffectOutput::Resolved(state.id_prev), - }, - got: WitLedgerEffect::Yield { val, ret, id_prev }, - }); - } - let parent = state .id_prev .ok_or(InterleavingError::YieldWithNoParent { pid: id_curr })?; @@ -529,37 +500,43 @@ pub fn state_transition( .get(&val) .ok_or(InterleavingError::RefNotFound(val))?; + if let Some(expected) = state.expected_resumer[parent.0] { + if expected != id_curr { + return Err(InterleavingError::ResumerMismatch { + target: parent, + expected, + got: id_curr, + }); + } + } + match ret.to_option() { Some(retv) => { - state.expected_input[id_curr.0] = retv; - - state.id_prev = Some(id_curr); - + state.expected_input[id_curr.0] = Some(retv); state.finalized[id_curr.0] = false; - - if let Some(prev) = state.id_prev { - let expected_ref = state.expected_input[prev.0]; - let expected = state - .ref_store - .get(&expected_ref) - .ok_or(InterleavingError::RefNotFound(expected_ref))?; - - if expected != val { - return Err(InterleavingError::YieldClaimMismatch { - id_prev: state.id_prev, - expected: expected.clone(), - got: val.clone(), - }); - } - } } None => { - state.id_prev = Some(id_curr); - + state.expected_input[id_curr.0] = None; state.finalized[id_curr.0] = true; } } + if let Some(expected_ref) = state.expected_input[parent.0] { + let expected = state + .ref_store + .get(&expected_ref) + .ok_or(InterleavingError::RefNotFound(expected_ref))?; + if expected != val { + return Err(InterleavingError::YieldClaimMismatch { + id_prev: state.id_prev, + expected: expected.clone(), + got: val.clone(), + }); + } + } + + state.expected_resumer[id_curr.0] = id_prev.to_option().flatten(); + state.id_prev = Some(id_curr); state.activation[id_curr.0] = None; state.id_curr = parent; } @@ -608,8 +585,8 @@ pub fn state_transition( } state.initialized[id.0] = true; state.init[id.0] = Some((val.clone(), id_curr)); - // TODO: this is not correct, last_yield is a Value, not a Ref - // state.expected_input[id.0] = val; + state.expected_input[id.0] = None; + state.expected_resumer[id.0] = None; } WitLedgerEffect::NewCoord { @@ -644,8 +621,8 @@ pub fn state_transition( state.initialized[id.0] = true; state.init[id.0] = Some((val.clone(), id_curr)); - // TODO: this is not correct, last_yield is a Value, not a Ref - // state.expected_input[id.0] = val; + state.expected_input[id.0] = None; + state.expected_resumer[id.0] = None; } WitLedgerEffect::InstallHandler { interface_id } => { @@ -696,7 +673,7 @@ pub fn state_transition( )); }; - if v != &val || c != &caller.unwrap() { + if v != &val.unwrap() || c != &caller.unwrap() { return Err(InterleavingError::Shape("Activation result mismatch")); } } @@ -708,7 +685,7 @@ pub fn state_transition( return Err(InterleavingError::Shape("Init called with no arg set")); }; - if v != val || c != caller.unwrap() { + if v != val.unwrap() || c != caller.unwrap() { return Err(InterleavingError::Shape("Init result mismatch")); } } @@ -767,7 +744,6 @@ pub fn state_transition( } WitLedgerEffect::Burn { ret } => { - let ret = ret.unwrap(); if !rom.is_utxo[id_curr.0] { return Err(InterleavingError::UtxoOnly(id_curr)); } @@ -785,25 +761,26 @@ pub fn state_transition( .get(&ret) .ok_or(InterleavingError::RefNotFound(ret))?; - let expected_ref = state.expected_input[parent.0]; - let expected_val = state - .ref_store - .get(&expected_ref) - .ok_or(InterleavingError::RefNotFound(expected_ref))?; - - if expected_val != ret_val { - // Burn is the final return of the coroutine - return Err(InterleavingError::YieldClaimMismatch { - id_prev: state.id_prev, - expected: expected_val.clone(), - got: ret_val.clone(), - }); + if let Some(expected_ref) = state.expected_input[parent.0] { + let expected_val = state + .ref_store + .get(&expected_ref) + .ok_or(InterleavingError::RefNotFound(expected_ref))?; + + if expected_val != ret_val { + // Burn is the final return of the coroutine + return Err(InterleavingError::YieldClaimMismatch { + id_prev: state.id_prev, + expected: expected_val.clone(), + got: ret_val.clone(), + }); + } } state.activation[id_curr.0] = None; state.finalized[id_curr.0] = true; state.did_burn[id_curr.0] = true; - state.expected_input[id_curr.0] = ret; + state.expected_input[id_curr.0] = Some(ret); state.id_prev = Some(id_curr); state.id_curr = parent; } diff --git a/interleaving/starstream-interleaving-spec/src/tests.rs b/interleaving/starstream-interleaving-spec/src/tests.rs index a27dcc53..2d4ed4cf 100644 --- a/interleaving/starstream-interleaving-spec/src/tests.rs +++ b/interleaving/starstream-interleaving-spec/src/tests.rs @@ -132,11 +132,11 @@ fn test_transaction_with_coord_and_utxos() { let done_a_ref = refs.get("done_a"); let done_b_ref = refs.get("done_b"); - // Host refs.get("init_b")r each process in canonical order: inputs ++ new_outputs ++ coord_scripts + // Host refs each process in canonical order: inputs ++ new_outputs ++ coord_scripts // Process 0: Input 1, Process 1: Input 2, Process 2: UTXO A (spawn), Process 3: UTXO B (spawn), Process 4: Coordination script let input_1_trace = vec![ WitLedgerEffect::Activation { - val: spend_input_1_ref, + val: spend_input_1_ref.into(), caller: ProcessId(4).into(), }, WitLedgerEffect::Yield { @@ -148,21 +148,19 @@ fn test_transaction_with_coord_and_utxos() { let input_2_trace = vec![ WitLedgerEffect::Activation { - val: spend_input_2_ref, + val: spend_input_2_ref.into(), caller: ProcessId(4).into(), }, - WitLedgerEffect::Burn { - ret: burned_2_ref.into(), - }, + WitLedgerEffect::Burn { ret: burned_2_ref }, ]; let utxo_a_trace = vec![ WitLedgerEffect::Init { - val: init_a_ref, + val: init_a_ref.into(), caller: ProcessId(4).into(), }, WitLedgerEffect::Activation { - val: init_a_ref, + val: init_a_ref.into(), caller: ProcessId(4).into(), }, WitLedgerEffect::Bind { @@ -177,11 +175,11 @@ fn test_transaction_with_coord_and_utxos() { let utxo_b_trace = vec![ WitLedgerEffect::Init { - val: init_b_ref, + val: init_b_ref.into(), caller: ProcessId(4).into(), }, WitLedgerEffect::Activation { - val: init_b_ref, + val: init_b_ref.into(), caller: ProcessId(4).into(), }, WitLedgerEffect::Yield { @@ -230,7 +228,7 @@ fn test_transaction_with_coord_and_utxos() { target: ProcessId(0), val: spend_input_1_ref, ret: continued_1_ref.into(), - id_prev: WitEffectOutput::Resolved(None), + id_prev: Some(ProcessId(0)).into(), }, WitLedgerEffect::NewRef { size: 1, @@ -250,7 +248,7 @@ fn test_transaction_with_coord_and_utxos() { target: ProcessId(1), val: spend_input_2_ref, ret: burned_2_ref.into(), - id_prev: Some(ProcessId(0)).into(), + id_prev: Some(ProcessId(1)).into(), }, WitLedgerEffect::NewRef { size: 1, @@ -261,7 +259,7 @@ fn test_transaction_with_coord_and_utxos() { target: ProcessId(2), val: init_a_ref, ret: done_a_ref.into(), - id_prev: Some(ProcessId(1)).into(), + id_prev: Some(ProcessId(2)).into(), }, WitLedgerEffect::NewRef { size: 1, @@ -272,7 +270,7 @@ fn test_transaction_with_coord_and_utxos() { target: ProcessId(3), val: init_b_ref, ret: done_b_ref.into(), - id_prev: Some(ProcessId(2)).into(), + id_prev: Some(ProcessId(3)).into(), }, ]; @@ -327,7 +325,7 @@ fn test_effect_handlers() { let utxo_trace = vec![ WitLedgerEffect::Activation { - val: ref_gen.get("init_utxo"), + val: ref_gen.get("init_utxo").into(), caller: ProcessId(1).into(), }, WitLedgerEffect::ProgramHash { @@ -447,7 +445,7 @@ fn test_burn_with_continuation_fails() { ret: Ref(0).into(), }, WitLedgerEffect::RefPush { val: v(b"burned") }, - WitLedgerEffect::Burn { ret: Ref(0).into() }, + WitLedgerEffect::Burn { ret: Ref(0) }, ], ) .with_entrypoint(0) @@ -592,7 +590,7 @@ fn test_duplicate_input_utxo_fails() { ret: Ref(1).into(), }, WitLedgerEffect::RefPush { val: Value::nil() }, - WitLedgerEffect::Burn { ret: Ref(0).into() }, + WitLedgerEffect::Burn { ret: Ref(0) }, ], ) .with_coord_script( diff --git a/interleaving/starstream-interleaving-spec/src/transaction_effects/witness.rs b/interleaving/starstream-interleaving-spec/src/transaction_effects/witness.rs index 007c3d29..7b3da40e 100644 --- a/interleaving/starstream-interleaving-spec/src/transaction_effects/witness.rs +++ b/interleaving/starstream-interleaving-spec/src/transaction_effects/witness.rs @@ -97,21 +97,19 @@ pub enum WitLedgerEffect { // UTXO-only Burn { - // out - ret: WitEffectOutput, + // in + ret: Ref, }, Activation { - // in - val: Ref, // out + val: WitEffectOutput, caller: WitEffectOutput, }, Init { - // in - val: Ref, // out + val: WitEffectOutput, caller: WitEffectOutput, }, diff --git a/interleaving/starstream-runtime/src/lib.rs b/interleaving/starstream-runtime/src/lib.rs index 13da607d..58f9d60f 100644 --- a/interleaving/starstream-runtime/src/lib.rs +++ b/interleaving/starstream-runtime/src/lib.rs @@ -1,10 +1,9 @@ use sha2::{Digest, Sha256}; use starstream_interleaving_proof::commit; use starstream_interleaving_spec::{ - CoroutineState, EffectDiscriminant, Hash, InterfaceId, InterleavingInstance, - InterleavingWitness, LedgerEffectsCommitment, NewOutput, OutputRef, ProcessId, - ProvenTransaction, Ref, UtxoId, Value, WasmModule, WitEffectOutput, WitLedgerEffect, - builder::TransactionBuilder, + CoroutineState, Hash, InterfaceId, InterleavingInstance, InterleavingWitness, + LedgerEffectsCommitment, NewOutput, OutputRef, ProcessId, ProvenTransaction, Ref, UtxoId, + Value, WasmModule, WitEffectOutput, WitLedgerEffect, builder::TransactionBuilder, }; use std::collections::{HashMap, HashSet}; use wasmi::{ @@ -35,6 +34,50 @@ impl std::fmt::Display for Interrupt { impl HostError for Interrupt {} +fn args_to_hash(a: u64, b: u64, c: u64, d: u64) -> [u8; 32] { + let mut buffer = [0u8; 32]; + buffer[0..8].copy_from_slice(&a.to_le_bytes()); + buffer[8..16].copy_from_slice(&b.to_le_bytes()); + buffer[16..24].copy_from_slice(&c.to_le_bytes()); + buffer[24..32].copy_from_slice(&d.to_le_bytes()); + buffer +} + +fn suspend_with_effect( + caller: &mut Caller<'_, RuntimeState>, + effect: WitLedgerEffect, +) -> Result { + let current_pid = caller.data().current_process; + caller + .data_mut() + .traces + .entry(current_pid) + .or_default() + .push(effect); + Err(wasmi::Error::host(Interrupt {})) +} + +fn effect_result_arity(effect: &WitLedgerEffect) -> usize { + match effect { + WitLedgerEffect::Resume { .. } + | WitLedgerEffect::Yield { .. } + | WitLedgerEffect::Activation { .. } + | WitLedgerEffect::Init { .. } => 2, + WitLedgerEffect::ProgramHash { .. } => 4, + WitLedgerEffect::NewUtxo { .. } + | WitLedgerEffect::NewCoord { .. } + | WitLedgerEffect::GetHandlerFor { .. } + | WitLedgerEffect::NewRef { .. } + | WitLedgerEffect::Get { .. } => 1, + WitLedgerEffect::InstallHandler { .. } + | WitLedgerEffect::UninstallHandler { .. } + | WitLedgerEffect::Burn { .. } + | WitLedgerEffect::Bind { .. } + | WitLedgerEffect::Unbind { .. } + | WitLedgerEffect::RefPush { .. } => 0, + } +} + pub struct UnprovenTransaction { pub inputs: Vec, pub programs: Vec, @@ -105,329 +148,396 @@ impl Runtime { linker .func_wrap( "env", - // we don't really need more than one host call in practice, - // since we can just use the first argument as a discriminant. - // - // this also means we don't need to care about the order of - // imports necessarily. - // - // it's probably better to split everything though, but this can be - // done later - "starstream_host_call", - |mut caller: Caller<'_, RuntimeState>, - discriminant: u64, - arg1: u64, - arg2: u64, - arg3: u64, - arg4: u64, - arg5: u64| - -> Result<(u64, u64), wasmi::Error> { + "starstream_resume", + |mut caller: Caller<'_, RuntimeState>, target: u64, val: u64| -> Result<(u64, u64), wasmi::Error> { let current_pid = caller.data().current_process; + let target = ProcessId(target as usize); + let val = Ref(val); + let ret = WitEffectOutput::Thunk; + let id_prev = caller.data().prev_id; - let args_to_hash = |a: u64, b: u64, c: u64, d: u64| -> [u8; 32] { - let mut buffer = [0u8; 32]; - buffer[0..8].copy_from_slice(&a.to_le_bytes()); - buffer[8..16].copy_from_slice(&b.to_le_bytes()); - buffer[16..24].copy_from_slice(&c.to_le_bytes()); - buffer[24..32].copy_from_slice(&d.to_le_bytes()); - buffer - }; + caller + .data_mut() + .pending_activation + .insert(target, (val, current_pid)); + + suspend_with_effect( + &mut caller, + WitLedgerEffect::Resume { + target, + val, + ret, + id_prev: WitEffectOutput::Resolved(id_prev), + }, + ) + }, + ) + .unwrap(); - let effect = match EffectDiscriminant::from(discriminant) { - EffectDiscriminant::Resume => { - let target = ProcessId(arg1 as usize); - let val = Ref(arg2); - let ret = WitEffectOutput::Thunk; - let id_prev = caller.data().prev_id; + linker + .func_wrap( + "env", + "starstream_yield", + |mut caller: Caller<'_, RuntimeState>, val: u64| -> Result<(u64, u64), wasmi::Error> { + let id_prev = caller.data().prev_id; + suspend_with_effect( + &mut caller, + WitLedgerEffect::Yield { + val: Ref(val), + ret: WitEffectOutput::Thunk, + id_prev: WitEffectOutput::Resolved(id_prev), + }, + ) + }, + ) + .unwrap(); - // Update state - caller - .data_mut() - .pending_activation - .insert(target, (val, current_pid)); - - Some(WitLedgerEffect::Resume { - target, - val, - ret, - id_prev: WitEffectOutput::Resolved(id_prev), - }) - } - EffectDiscriminant::Yield => { - let val = Ref(arg1); - let ret = WitEffectOutput::Thunk; - let id_prev = caller.data().prev_id; - - Some(WitLedgerEffect::Yield { - val, - ret, - id_prev: WitEffectOutput::Resolved(id_prev), - }) - } - EffectDiscriminant::NewUtxo => { - let h = Hash( - args_to_hash(arg1, arg2, arg3, arg4), - std::marker::PhantomData, - ); - let val = Ref(arg5); - - let mut found_id = None; - let limit = caller.data().process_hashes.len(); - for i in 0..limit { - let pid = ProcessId(i); - if !caller.data().allocated_processes.contains(&pid) { - if let Some(ph) = caller.data().process_hashes.get(&pid) { - if *ph == h { - if let Some(&is_u) = caller.data().is_utxo.get(&pid) { - if is_u { - found_id = Some(pid); - break; - } - } + linker + .func_wrap( + "env", + "starstream_new_utxo", + |mut caller: Caller<'_, RuntimeState>, + h0: u64, + h1: u64, + h2: u64, + h3: u64, + val: u64| + -> Result { + let current_pid = caller.data().current_process; + let h = Hash(args_to_hash(h0, h1, h2, h3), std::marker::PhantomData); + let val = Ref(val); + + let mut found_id = None; + let limit = caller.data().process_hashes.len(); + for i in 0..limit { + let pid = ProcessId(i); + if !caller.data().allocated_processes.contains(&pid) { + if let Some(ph) = caller.data().process_hashes.get(&pid) { + if *ph == h { + if let Some(&is_u) = caller.data().is_utxo.get(&pid) { + if is_u { + found_id = Some(pid); + break; } } } } - let id = found_id - .ok_or(wasmi::Error::new("no matching utxo process found"))?; - caller.data_mut().allocated_processes.insert(id); - - caller - .data_mut() - .pending_init - .insert(id, (val, current_pid)); - caller.data_mut().n_new += 1; - - Some(WitLedgerEffect::NewUtxo { - program_hash: h, - val, - id: WitEffectOutput::Resolved(id), - }) } - EffectDiscriminant::NewCoord => { - let h = Hash( - args_to_hash(arg1, arg2, arg3, arg4), - std::marker::PhantomData, - ); - let val = Ref(arg5); - - let mut found_id = None; - let limit = caller.data().process_hashes.len(); - for i in 0..limit { - let pid = ProcessId(i); - if !caller.data().allocated_processes.contains(&pid) { - if let Some(ph) = caller.data().process_hashes.get(&pid) { - if *ph == h { - if let Some(&is_u) = caller.data().is_utxo.get(&pid) { - if !is_u { - found_id = Some(pid); - break; - } - } + } + let id = found_id + .ok_or(wasmi::Error::new("no matching utxo process found"))?; + caller.data_mut().allocated_processes.insert(id); + + caller + .data_mut() + .pending_init + .insert(id, (val, current_pid)); + caller.data_mut().n_new += 1; + + suspend_with_effect( + &mut caller, + WitLedgerEffect::NewUtxo { + program_hash: h, + val, + id: WitEffectOutput::Resolved(id), + }, + ) + }, + ) + .unwrap(); + + linker + .func_wrap( + "env", + "starstream_new_coord", + |mut caller: Caller<'_, RuntimeState>, + h0: u64, + h1: u64, + h2: u64, + h3: u64, + val: u64| + -> Result { + let current_pid = caller.data().current_process; + let h = Hash(args_to_hash(h0, h1, h2, h3), std::marker::PhantomData); + let val = Ref(val); + + let mut found_id = None; + let limit = caller.data().process_hashes.len(); + for i in 0..limit { + let pid = ProcessId(i); + if !caller.data().allocated_processes.contains(&pid) { + if let Some(ph) = caller.data().process_hashes.get(&pid) { + if *ph == h { + if let Some(&is_u) = caller.data().is_utxo.get(&pid) { + if !is_u { + found_id = Some(pid); + break; } } } } - let id = found_id - .ok_or(wasmi::Error::new("no matching coord process found"))?; - caller.data_mut().allocated_processes.insert(id); - - caller - .data_mut() - .pending_init - .insert(id, (val, current_pid)); - caller.data_mut().n_coord += 1; - - Some(WitLedgerEffect::NewCoord { - program_hash: h, - val, - id: WitEffectOutput::Resolved(id), - }) - } - EffectDiscriminant::InstallHandler => { - let interface_id = Hash( - args_to_hash(arg1, arg2, arg3, arg4), - std::marker::PhantomData, - ); - caller - .data_mut() - .handler_stack - .entry(interface_id.clone()) - .or_default() - .push(current_pid); - Some(WitLedgerEffect::InstallHandler { interface_id }) - } - EffectDiscriminant::UninstallHandler => { - let interface_id = Hash( - args_to_hash(arg1, arg2, arg3, arg4), - std::marker::PhantomData, - ); - let stack = caller - .data_mut() - .handler_stack - .get_mut(&interface_id) - .ok_or(wasmi::Error::new("handler stack not found"))?; - if stack.pop() != Some(current_pid) { - return Err(wasmi::Error::new("uninstall handler mismatch")); - } - Some(WitLedgerEffect::UninstallHandler { interface_id }) } - EffectDiscriminant::GetHandlerFor => { - let interface_id = Hash( - args_to_hash(arg1, arg2, arg3, arg4), - std::marker::PhantomData, - ); + } + let id = found_id + .ok_or(wasmi::Error::new("no matching coord process found"))?; + caller.data_mut().allocated_processes.insert(id); - let stack = caller - .data_mut() - .handler_stack - .get(&interface_id) - .ok_or(wasmi::Error::new("handler stack not found"))?; - let handler_id = stack - .last() - .ok_or(wasmi::Error::new("handler stack empty"))?; - - Some(WitLedgerEffect::GetHandlerFor { - interface_id, - handler_id: WitEffectOutput::Resolved(*handler_id), - }) - } - EffectDiscriminant::Activation => { - let (val, caller_id) = caller - .data() - .pending_activation - .get(¤t_pid) - .ok_or(wasmi::Error::new("no pending activation"))?; - Some(WitLedgerEffect::Activation { - val: *val, - caller: WitEffectOutput::Resolved(*caller_id), - }) - } - EffectDiscriminant::Init => { - let (val, caller_id) = caller - .data() - .pending_init - .get(¤t_pid) - .ok_or(wasmi::Error::new("no pending init"))?; - Some(WitLedgerEffect::Init { - val: *val, - caller: WitEffectOutput::Resolved(*caller_id), - }) - } - EffectDiscriminant::NewRef => { - let size = arg1 as usize; - let ref_id = Ref(caller.data().next_ref); - caller.data_mut().next_ref += size as u64; + caller + .data_mut() + .pending_init + .insert(id, (val, current_pid)); + caller.data_mut().n_coord += 1; + + suspend_with_effect( + &mut caller, + WitLedgerEffect::NewCoord { + program_hash: h, + val, + id: WitEffectOutput::Resolved(id), + }, + ) + }, + ) + .unwrap(); - caller - .data_mut() - .ref_store - .insert(ref_id, vec![Value(0); size]); - caller - .data_mut() - .ref_state - .insert(current_pid, (ref_id, 0, size)); + linker + .func_wrap( + "env", + "starstream_install_handler", + |mut caller: Caller<'_, RuntimeState>, h0: u64, h1: u64, h2: u64, h3: u64| -> Result<(), wasmi::Error> { + let current_pid = caller.data().current_process; + let interface_id = Hash(args_to_hash(h0, h1, h2, h3), std::marker::PhantomData); + caller + .data_mut() + .handler_stack + .entry(interface_id.clone()) + .or_default() + .push(current_pid); + suspend_with_effect( + &mut caller, + WitLedgerEffect::InstallHandler { interface_id }, + ) + }, + ) + .unwrap(); - Some(WitLedgerEffect::NewRef { - size, - ret: WitEffectOutput::Resolved(ref_id), - }) - } - EffectDiscriminant::RefPush => { - let val = Value(arg1); - let (ref_id, offset, size) = *caller - .data() - .ref_state - .get(¤t_pid) - .ok_or(wasmi::Error::new("no ref state"))?; - - if offset >= size { - return Err(wasmi::Error::new("ref push overflow")); - } + linker + .func_wrap( + "env", + "starstream_uninstall_handler", + |mut caller: Caller<'_, RuntimeState>, h0: u64, h1: u64, h2: u64, h3: u64| -> Result<(), wasmi::Error> { + let current_pid = caller.data().current_process; + let interface_id = Hash(args_to_hash(h0, h1, h2, h3), std::marker::PhantomData); + let stack = caller + .data_mut() + .handler_stack + .get_mut(&interface_id) + .ok_or(wasmi::Error::new("handler stack not found"))?; + if stack.pop() != Some(current_pid) { + return Err(wasmi::Error::new("uninstall handler mismatch")); + } + suspend_with_effect( + &mut caller, + WitLedgerEffect::UninstallHandler { interface_id }, + ) + }, + ) + .unwrap(); - let store = caller - .data_mut() - .ref_store - .get_mut(&ref_id) - .ok_or(wasmi::Error::new("ref not found"))?; - store[offset] = val; + linker + .func_wrap( + "env", + "starstream_get_handler_for", + |mut caller: Caller<'_, RuntimeState>, h0: u64, h1: u64, h2: u64, h3: u64| -> Result { + let interface_id = Hash(args_to_hash(h0, h1, h2, h3), std::marker::PhantomData); + let handler_id = { + let stack = caller + .data() + .handler_stack + .get(&interface_id) + .ok_or(wasmi::Error::new("handler stack not found"))?; + *stack + .last() + .ok_or(wasmi::Error::new("handler stack empty"))? + }; + suspend_with_effect( + &mut caller, + WitLedgerEffect::GetHandlerFor { + interface_id, + handler_id: WitEffectOutput::Resolved(handler_id), + }, + ) + }, + ) + .unwrap(); - caller - .data_mut() - .ref_state - .insert(current_pid, (ref_id, offset + 1, size)); + linker + .func_wrap("env", "starstream_activation", |mut caller: Caller<'_, RuntimeState>| -> Result<(u64, u64), wasmi::Error> { + let current_pid = caller.data().current_process; + let (val, caller_id) = { + let (val, caller_id) = caller + .data() + .pending_activation + .get(¤t_pid) + .ok_or(wasmi::Error::new("no pending activation"))?; + (*val, *caller_id) + }; + suspend_with_effect( + &mut caller, + WitLedgerEffect::Activation { + val: WitEffectOutput::Resolved(val), + caller: WitEffectOutput::Resolved(caller_id), + }, + ) + }) + .unwrap(); - Some(WitLedgerEffect::RefPush { val }) - } - EffectDiscriminant::Get => { - let ref_id = Ref(arg1); - let offset = arg2 as usize; - - let store = caller - .data() - .ref_store - .get(&ref_id) - .ok_or(wasmi::Error::new("ref not found"))?; - if offset >= store.len() { - return Err(wasmi::Error::new("get out of bounds")); - } - let val = store[offset]; + linker + .func_wrap("env", "starstream_init", |mut caller: Caller<'_, RuntimeState>| -> Result<(u64, u64), wasmi::Error> { + let current_pid = caller.data().current_process; + let (val, caller_id) = { + let (val, caller_id) = caller + .data() + .pending_init + .get(¤t_pid) + .ok_or(wasmi::Error::new("no pending init"))?; + (*val, *caller_id) + }; + suspend_with_effect( + &mut caller, + WitLedgerEffect::Init { + val: WitEffectOutput::Resolved(val), + caller: WitEffectOutput::Resolved(caller_id), + }, + ) + }) + .unwrap(); - Some(WitLedgerEffect::Get { - reff: ref_id, - offset, - ret: WitEffectOutput::Resolved(val), - }) - } - EffectDiscriminant::Bind => { - let owner_id = ProcessId(arg1 as usize); - caller - .data_mut() - .ownership - .insert(current_pid, Some(owner_id)); - Some(WitLedgerEffect::Bind { owner_id }) - } - EffectDiscriminant::Unbind => { - let token_id = ProcessId(arg1 as usize); - if caller.data().ownership.get(&token_id) != Some(&Some(current_pid)) {} - caller.data_mut().ownership.insert(token_id, None); - Some(WitLedgerEffect::Unbind { token_id }) - } - EffectDiscriminant::Burn => { - caller.data_mut().must_burn.insert(current_pid); + linker + .func_wrap("env", "starstream_new_ref", |mut caller: Caller<'_, RuntimeState>, size: u64| -> Result { + let current_pid = caller.data().current_process; + let size = size as usize; + let ref_id = Ref(caller.data().next_ref); + caller.data_mut().next_ref += size as u64; + + caller + .data_mut() + .ref_store + .insert(ref_id, vec![Value(0); size]); + caller + .data_mut() + .ref_state + .insert(current_pid, (ref_id, 0, size)); + + suspend_with_effect( + &mut caller, + WitLedgerEffect::NewRef { + size, + ret: WitEffectOutput::Resolved(ref_id), + }, + ) + }) + .unwrap(); - Some(WitLedgerEffect::Burn { - ret: WitEffectOutput::Resolved(Ref(arg1)), - }) - } - EffectDiscriminant::ProgramHash => { - unreachable!(); - } - }; + linker + .func_wrap("env", "starstream_ref_push", |mut caller: Caller<'_, RuntimeState>, val: u64| -> Result<(), wasmi::Error> { + let current_pid = caller.data().current_process; + let val = Value(val); + let (ref_id, offset, size) = *caller + .data() + .ref_state + .get(¤t_pid) + .ok_or(wasmi::Error::new("no ref state"))?; + + if offset >= size { + return Err(wasmi::Error::new("ref push overflow")); + } + + let store = caller + .data_mut() + .ref_store + .get_mut(&ref_id) + .ok_or(wasmi::Error::new("ref not found"))?; + store[offset] = val; + + caller + .data_mut() + .ref_state + .insert(current_pid, (ref_id, offset + 1, size)); + + suspend_with_effect(&mut caller, WitLedgerEffect::RefPush { val }) + }) + .unwrap(); - if let Some(e) = effect { - caller - .data_mut() - .traces - .entry(current_pid) - .or_default() - .push(e); + linker + .func_wrap( + "env", + "starstream_get", + |mut caller: Caller<'_, RuntimeState>, reff: u64, offset: u64| -> Result { + let ref_id = Ref(reff); + let offset = offset as usize; + let store = caller + .data() + .ref_store + .get(&ref_id) + .ok_or(wasmi::Error::new("ref not found"))?; + if offset >= store.len() { + return Err(wasmi::Error::new("get out of bounds")); } + let val = store[offset]; + suspend_with_effect( + &mut caller, + WitLedgerEffect::Get { + reff: ref_id, + offset, + ret: WitEffectOutput::Resolved(val), + }, + ) + }, + ) + .unwrap(); - Err(wasmi::Error::host(Interrupt {})) + linker + .func_wrap("env", "starstream_bind", |mut caller: Caller<'_, RuntimeState>, owner_id: u64| -> Result<(), wasmi::Error> { + let current_pid = caller.data().current_process; + let owner_id = ProcessId(owner_id as usize); + caller + .data_mut() + .ownership + .insert(current_pid, Some(owner_id)); + suspend_with_effect(&mut caller, WitLedgerEffect::Bind { owner_id }) + }) + .unwrap(); + + linker + .func_wrap( + "env", + "starstream_unbind", + |mut caller: Caller<'_, RuntimeState>, token_id: u64| -> Result<(), wasmi::Error> { + let current_pid = caller.data().current_process; + let token_id = ProcessId(token_id as usize); + if caller.data().ownership.get(&token_id) != Some(&Some(current_pid)) {} + caller.data_mut().ownership.insert(token_id, None); + suspend_with_effect(&mut caller, WitLedgerEffect::Unbind { token_id }) }, ) .unwrap(); + linker + .func_wrap("env", "starstream_burn", |mut caller: Caller<'_, RuntimeState>, ret: u64| -> Result<(), wasmi::Error> { + let current_pid = caller.data().current_process; + caller.data_mut().must_burn.insert(current_pid); + suspend_with_effect(&mut caller, WitLedgerEffect::Burn { ret: Ref(ret) }) + }) + .unwrap(); + linker .func_wrap( "env", "starstream_get_program_hash", |mut caller: Caller<'_, RuntimeState>, - _discriminant: u64, target_pid: u64| -> Result<(u64, u64, u64, u64), wasmi::Error> { - let current_pid = caller.data().current_process; let target = ProcessId(target_pid as usize); let program_hash = caller .data() @@ -436,19 +546,13 @@ impl Runtime { .ok_or(wasmi::Error::new("process hash not found"))? .clone(); - let effect = WitLedgerEffect::ProgramHash { - target, - program_hash: WitEffectOutput::Resolved(program_hash), - }; - - caller - .data_mut() - .traces - .entry(current_pid) - .or_default() - .push(effect); - - Err(wasmi::Error::host(Interrupt {})) + suspend_with_effect( + &mut caller, + WitLedgerEffect::ProgramHash { + target, + program_hash: WitEffectOutput::Resolved(program_hash), + }, + ) }, ) .unwrap(); @@ -650,10 +754,7 @@ impl UnprovenTransaction { let n_results = { let traces = &runtime.store.data().traces; let trace = traces.get(¤t_pid).expect("trace exists"); - match trace.last().expect("trace not empty") { - WitLedgerEffect::ProgramHash { .. } => 4, - _ => 2, - } + effect_result_arity(trace.last().expect("trace not empty")) }; // Update previous effect with return value @@ -661,11 +762,17 @@ impl UnprovenTransaction { if let Some(trace) = traces.get_mut(¤t_pid) { if let Some(last) = trace.last_mut() { match last { - WitLedgerEffect::Resume { ret, .. } => { + WitLedgerEffect::Resume { ret, id_prev, .. } => { *ret = WitEffectOutput::Resolved(Ref(next_args[0])); + *id_prev = WitEffectOutput::Resolved(Some(ProcessId( + next_args[1] as usize, + ))); } - WitLedgerEffect::Yield { ret, .. } => { + WitLedgerEffect::Yield { ret, id_prev, .. } => { *ret = WitEffectOutput::Resolved(Ref(next_args[0])); + *id_prev = WitEffectOutput::Resolved(Some(ProcessId( + next_args[1] as usize, + ))); } _ => {} } @@ -745,10 +852,10 @@ impl UnprovenTransaction { next_args = [handler_id.unwrap().0 as u64, 0, 0, 0]; } WitLedgerEffect::Activation { val, caller } => { - next_args = [val.0, caller.unwrap().0 as u64, 0, 0]; + next_args = [val.unwrap().0, caller.unwrap().0 as u64, 0, 0]; } WitLedgerEffect::Init { val, caller } => { - next_args = [val.0, caller.unwrap().0 as u64, 0, 0]; + next_args = [val.unwrap().0, caller.unwrap().0 as u64, 0, 0]; } WitLedgerEffect::NewRef { ret, .. } => { next_args = [ret.unwrap().0, 0, 0, 0]; diff --git a/interleaving/starstream-runtime/tests/integration.rs b/interleaving/starstream-runtime/tests/integration.rs index bddf0e42..a7d571a0 100644 --- a/interleaving/starstream-runtime/tests/integration.rs +++ b/interleaving/starstream-runtime/tests/integration.rs @@ -1,69 +1,59 @@ use sha2::{Digest, Sha256}; -use starstream_interleaving_spec::{EffectDiscriminant, Ledger}; +use starstream_interleaving_spec::Ledger; use starstream_runtime::UnprovenTransaction; use wat::parse_str; #[test] fn test_runtime_effect_handlers() { - let utxo_wat = format!( - r#"( + let utxo_wat = r#"( module - (import "env" "starstream_host_call" (func $host_call (param i64 i64 i64 i64 i64 i64) (result i64 i64))) - (import "env" "starstream_get_program_hash" (func $program_hash (param i64 i64) (result i64 i64 i64 i64))) + (import "env" "starstream_activation" (func $activation (result i64 i64))) + (import "env" "starstream_get_program_hash" (func $program_hash (param i64) (result i64 i64 i64 i64))) + (import "env" "starstream_get_handler_for" (func $get_handler_for (param i64 i64 i64 i64) (result i64))) + (import "env" "starstream_new_ref" (func $new_ref (param i64) (result i64))) + (import "env" "starstream_ref_push" (func $ref_push (param i64))) + (import "env" "starstream_resume" (func $resume (param i64 i64) (result i64 i64))) + (import "env" "starstream_yield" (func $yield (param i64) (result i64 i64))) (func (export "_start") (local $val i64) (local $handler_id i64) (local $req i64) (local $resp i64) ;; ACTIVATION - (call $host_call (i64.const {ACTIVATION}) (i64.const 0) (i64.const 0) (i64.const 0) (i64.const 0) (i64.const 0)) + (call $activation) drop local.set $val ;; PROGRAM_HASH(target=1) - (call $program_hash (i64.const {PROGRAM_HASH}) (i64.const 1)) + (call $program_hash (i64.const 1)) drop drop drop drop ;; GET_HANDLER_FOR(interface_id=limbs at 0) - (call $host_call (i64.const {GET_HANDLER_FOR}) - (i64.const 1) (i64.const 0) (i64.const 0) (i64.const 0) (i64.const 0) - ) - drop + (call $get_handler_for (i64.const 1) (i64.const 0) (i64.const 0) (i64.const 0)) local.set $handler_id ;; NEW_REF(size=1) - (call $host_call (i64.const {NEW_REF}) (i64.const 1) (i64.const 0) (i64.const 0) (i64.const 0) (i64.const 0)) - drop + (call $new_ref (i64.const 1)) local.set $req ;; REF_PUSH(val=42) - (call $host_call (i64.const {REF_PUSH}) (i64.const 42) (i64.const 0) (i64.const 0) (i64.const 0) (i64.const 0)) - drop - drop + (call $ref_push (i64.const 42)) ;; RESUME(target=$handler_id, val=$req, ret=2, prev=1) - (call $host_call (i64.const {RESUME}) (local.get $handler_id) (local.get $req) (i64.const 0) (i64.const 1) (i64.const 0)) + (call $resume (local.get $handler_id) (local.get $req)) drop local.set $resp ;; YIELD(val=$resp, ret=-1, prev=0) - (call $host_call (i64.const {YIELD}) (local.get $resp) (i64.const 0) (i64.const 1) (i64.const 0) (i64.const 0)) + (call $yield (local.get $resp)) drop drop ) ) -"#, - ACTIVATION = EffectDiscriminant::Activation as u64, - GET_HANDLER_FOR = EffectDiscriminant::GetHandlerFor as u64, - NEW_REF = EffectDiscriminant::NewRef as u64, - REF_PUSH = EffectDiscriminant::RefPush as u64, - RESUME = EffectDiscriminant::Resume as u64, - YIELD = EffectDiscriminant::Yield as u64, - PROGRAM_HASH = EffectDiscriminant::ProgramHash as u64, - ); - let utxo_bin = parse_str(&utxo_wat).unwrap(); +"#; + let utxo_bin = parse_str(utxo_wat).unwrap(); // TODO: this should be poseidon at some point later let mut hasher = Sha256::new(); @@ -79,30 +69,28 @@ module let coord_wat = format!( r#"( module - (import "env" "starstream_host_call" (func $host_call (param i64 i64 i64 i64 i64 i64) (result i64 i64))) + (import "env" "starstream_install_handler" (func $install_handler (param i64 i64 i64 i64))) + (import "env" "starstream_new_ref" (func $new_ref (param i64) (result i64))) + (import "env" "starstream_ref_push" (func $ref_push (param i64))) + (import "env" "starstream_new_utxo" (func $new_utxo (param i64 i64 i64 i64 i64) (result i64))) + (import "env" "starstream_resume" (func $resume (param i64 i64) (result i64 i64))) + (import "env" "starstream_uninstall_handler" (func $uninstall_handler (param i64 i64 i64 i64))) (func (export "_start") (local $init_val i64) (local $resp i64) (local $final i64) ;; INSTALL_HANDLER(interface_id=limbs at 0) - (call $host_call (i64.const {INSTALL_HANDLER}) - (i64.const 1) (i64.const 0) (i64.const 0) (i64.const 0) (i64.const 0) - ) - drop - drop + (call $install_handler (i64.const 1) (i64.const 0) (i64.const 0) (i64.const 0)) ;; NEW_REF(size=1) - (call $host_call (i64.const {NEW_REF}) (i64.const 1) (i64.const 0) (i64.const 0) (i64.const 0) (i64.const 0)) - drop + (call $new_ref (i64.const 1)) local.set $init_val ;; REF_PUSH(val=11111) - (call $host_call (i64.const {REF_PUSH}) (i64.const 11111) (i64.const 0) (i64.const 0) (i64.const 0) (i64.const 0)) - drop - drop + (call $ref_push (i64.const 11111)) ;; NEW_UTXO(program_hash=limbs at 32, val=$init_val, id=0) - (call $host_call (i64.const {NEW_UTXO}) + (call $new_utxo (i64.const {utxo_hash_limb_a}) (i64.const {utxo_hash_limb_b}) (i64.const {utxo_hash_limb_c}) @@ -110,53 +98,40 @@ module (local.get $init_val) ) drop - drop ;; RESUME(target=0, val=$init_val, ret=1, prev=-1) - (call $host_call (i64.const {RESUME}) (i64.const 0) (local.get $init_val) (i64.const 0) (i64.const -1) (i64.const 0)) + (call $resume (i64.const 0) (local.get $init_val)) drop drop ;; NEW_REF(size=1) - (call $host_call (i64.const {NEW_REF}) (i64.const 1) (i64.const 0) (i64.const 0) (i64.const 0) (i64.const 0)) - drop + (call $new_ref (i64.const 1)) local.set $resp ;; REF_PUSH(val=43) - (call $host_call (i64.const {REF_PUSH}) (i64.const 43) (i64.const 0) (i64.const 0) (i64.const 0) (i64.const 0)) - drop - drop + (call $ref_push (i64.const 43)) ;; NEW_REF(size=1) - (call $host_call (i64.const {NEW_REF}) (i64.const 1) (i64.const 0) (i64.const 0) (i64.const 0) (i64.const 0)) - drop + (call $new_ref (i64.const 1)) local.set $final ;; REF_PUSH(val=33333) - (call $host_call (i64.const {REF_PUSH}) (i64.const 33333) (i64.const 0) (i64.const 0) (i64.const 0) (i64.const 0)) - drop - drop + (call $ref_push (i64.const 33333)) ;; RESUME(target=0, val=$resp, ret=$resp, prev=0) - (call $host_call (i64.const {RESUME}) (i64.const 0) (local.get $resp) (i64.const 0) (i64.const 0) (i64.const 0)) + (call $resume (i64.const 0) (local.get $resp)) drop drop ;; UNINSTALL_HANDLER(interface_id=limbs at 0) - (call $host_call (i64.const {UNINSTALL_HANDLER}) - (i64.const 1) (i64.const 0) (i64.const 0) (i64.const 0) (i64.const 0) - ) - drop - drop + (call $uninstall_handler (i64.const 1) (i64.const 0) (i64.const 0) (i64.const 0)) ) ) "#, - INSTALL_HANDLER = EffectDiscriminant::InstallHandler as u64, - NEW_REF = EffectDiscriminant::NewRef as u64, - REF_PUSH = EffectDiscriminant::RefPush as u64, - NEW_UTXO = EffectDiscriminant::NewUtxo as u64, - RESUME = EffectDiscriminant::Resume as u64, - UNINSTALL_HANDLER = EffectDiscriminant::UninstallHandler as u64, + utxo_hash_limb_a = utxo_hash_limb_a, + utxo_hash_limb_b = utxo_hash_limb_b, + utxo_hash_limb_c = utxo_hash_limb_c, + utxo_hash_limb_d = utxo_hash_limb_d, ); let coord_bin = parse_str(&coord_wat).unwrap(); From 074edc5b9b3ac8d1f1ef2190f3b3487d621543cc Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Thu, 22 Jan 2026 12:25:08 -0300 Subject: [PATCH 098/152] bump Nightstream version Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .../starstream-interleaving-proof/Cargo.toml | 14 +++++++------- .../starstream-interleaving-spec/Cargo.toml | 10 +++++----- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/interleaving/starstream-interleaving-proof/Cargo.toml b/interleaving/starstream-interleaving-proof/Cargo.toml index 45cf95e1..225c107b 100644 --- a/interleaving/starstream-interleaving-proof/Cargo.toml +++ b/interleaving/starstream-interleaving-proof/Cargo.toml @@ -13,13 +13,13 @@ ark-poly-commit = "0.5.0" tracing = { version = "0.1", default-features = false, features = [ "attributes" ] } tracing-subscriber = { version = "0.3", features = ["env-filter"] } -neo-fold = { git = "https://github.com/nicarq/Nightstream.git", rev = "3be044cda72cfc9956861c7a529a747d7d21d6b8" } -neo-math = { git = "https://github.com/nicarq/Nightstream.git", rev = "3be044cda72cfc9956861c7a529a747d7d21d6b8" } -neo-ccs = { git = "https://github.com/nicarq/Nightstream.git", rev = "3be044cda72cfc9956861c7a529a747d7d21d6b8" } -neo-ajtai = { git = "https://github.com/nicarq/Nightstream.git", rev = "3be044cda72cfc9956861c7a529a747d7d21d6b8" } -neo-params = { git = "https://github.com/nicarq/Nightstream.git", rev = "3be044cda72cfc9956861c7a529a747d7d21d6b8" } -neo-vm-trace = { git = "https://github.com/nicarq/Nightstream.git", rev = "3be044cda72cfc9956861c7a529a747d7d21d6b8" } -neo-memory = { git = "https://github.com/nicarq/Nightstream.git", rev = "3be044cda72cfc9956861c7a529a747d7d21d6b8" } +neo-fold = { git = "https://github.com/nicarq/Nightstream.git", rev = "e93ae040e29a3e883d08569a8ccbf79118ebd218" } +neo-math = { git = "https://github.com/nicarq/Nightstream.git", rev = "e93ae040e29a3e883d08569a8ccbf79118ebd218" } +neo-ccs = { git = "https://github.com/nicarq/Nightstream.git", rev = "e93ae040e29a3e883d08569a8ccbf79118ebd218" } +neo-ajtai = { git = "https://github.com/nicarq/Nightstream.git", rev = "e93ae040e29a3e883d08569a8ccbf79118ebd218" } +neo-params = { git = "https://github.com/nicarq/Nightstream.git", rev = "e93ae040e29a3e883d08569a8ccbf79118ebd218" } +neo-vm-trace = { git = "https://github.com/nicarq/Nightstream.git", rev = "e93ae040e29a3e883d08569a8ccbf79118ebd218" } +neo-memory = { git = "https://github.com/nicarq/Nightstream.git", rev = "e93ae040e29a3e883d08569a8ccbf79118ebd218" } starstream-interleaving-spec = { path = "../starstream-interleaving-spec" } diff --git a/interleaving/starstream-interleaving-spec/Cargo.toml b/interleaving/starstream-interleaving-spec/Cargo.toml index 72bdd895..18118447 100644 --- a/interleaving/starstream-interleaving-spec/Cargo.toml +++ b/interleaving/starstream-interleaving-spec/Cargo.toml @@ -11,10 +11,10 @@ ark-ff = { version = "0.5.0", default-features = false } ark-goldilocks = { path = "../../ark-goldilocks" } # TODO: move to workspace deps -neo-fold = { git = "https://github.com/nicarq/Nightstream.git", rev = "3be044cda72cfc9956861c7a529a747d7d21d6b8" } -neo-ccs = { git = "https://github.com/nicarq/Nightstream.git", rev = "3be044cda72cfc9956861c7a529a747d7d21d6b8" } -neo-math = { git = "https://github.com/nicarq/Nightstream.git", rev = "3be044cda72cfc9956861c7a529a747d7d21d6b8" } -neo-ajtai = { git = "https://github.com/nicarq/Nightstream.git", rev = "3be044cda72cfc9956861c7a529a747d7d21d6b8" } -neo-memory = { git = "https://github.com/nicarq/Nightstream.git", rev = "3be044cda72cfc9956861c7a529a747d7d21d6b8" } +neo-fold = { git = "https://github.com/nicarq/Nightstream.git", rev = "e93ae040e29a3e883d08569a8ccbf79118ebd218" } +neo-ccs = { git = "https://github.com/nicarq/Nightstream.git", rev = "e93ae040e29a3e883d08569a8ccbf79118ebd218" } +neo-math = { git = "https://github.com/nicarq/Nightstream.git", rev = "e93ae040e29a3e883d08569a8ccbf79118ebd218" } +neo-ajtai = { git = "https://github.com/nicarq/Nightstream.git", rev = "e93ae040e29a3e883d08569a8ccbf79118ebd218" } +neo-memory = { git = "https://github.com/nicarq/Nightstream.git", rev = "e93ae040e29a3e883d08569a8ccbf79118ebd218" } p3-field = "0.4.1" From 7c15018ba82d2d4464a8076102443d39120d2781 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Thu, 22 Jan 2026 12:25:26 -0300 Subject: [PATCH 099/152] update Cargo.lock Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- Cargo.lock | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 05f774fa..effbdc37 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2003,7 +2003,7 @@ dependencies = [ [[package]] name = "neo-ajtai" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=3be044cda72cfc9956861c7a529a747d7d21d6b8#3be044cda72cfc9956861c7a529a747d7d21d6b8" +source = "git+https://github.com/nicarq/Nightstream.git?rev=e93ae040e29a3e883d08569a8ccbf79118ebd218#e93ae040e29a3e883d08569a8ccbf79118ebd218" dependencies = [ "neo-ccs", "neo-math", @@ -2023,7 +2023,7 @@ dependencies = [ [[package]] name = "neo-ccs" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=3be044cda72cfc9956861c7a529a747d7d21d6b8#3be044cda72cfc9956861c7a529a747d7d21d6b8" +source = "git+https://github.com/nicarq/Nightstream.git?rev=e93ae040e29a3e883d08569a8ccbf79118ebd218#e93ae040e29a3e883d08569a8ccbf79118ebd218" dependencies = [ "neo-math", "neo-params", @@ -2044,7 +2044,7 @@ dependencies = [ [[package]] name = "neo-fold" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=3be044cda72cfc9956861c7a529a747d7d21d6b8#3be044cda72cfc9956861c7a529a747d7d21d6b8" +source = "git+https://github.com/nicarq/Nightstream.git?rev=e93ae040e29a3e883d08569a8ccbf79118ebd218#e93ae040e29a3e883d08569a8ccbf79118ebd218" dependencies = [ "neo-ajtai", "neo-ccs", @@ -2068,7 +2068,7 @@ dependencies = [ [[package]] name = "neo-math" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=3be044cda72cfc9956861c7a529a747d7d21d6b8#3be044cda72cfc9956861c7a529a747d7d21d6b8" +source = "git+https://github.com/nicarq/Nightstream.git?rev=e93ae040e29a3e883d08569a8ccbf79118ebd218#e93ae040e29a3e883d08569a8ccbf79118ebd218" dependencies = [ "p3-field", "p3-goldilocks", @@ -2083,7 +2083,7 @@ dependencies = [ [[package]] name = "neo-memory" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=3be044cda72cfc9956861c7a529a747d7d21d6b8#3be044cda72cfc9956861c7a529a747d7d21d6b8" +source = "git+https://github.com/nicarq/Nightstream.git?rev=e93ae040e29a3e883d08569a8ccbf79118ebd218#e93ae040e29a3e883d08569a8ccbf79118ebd218" dependencies = [ "neo-ajtai", "neo-ccs", @@ -2102,7 +2102,7 @@ dependencies = [ [[package]] name = "neo-params" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=3be044cda72cfc9956861c7a529a747d7d21d6b8#3be044cda72cfc9956861c7a529a747d7d21d6b8" +source = "git+https://github.com/nicarq/Nightstream.git?rev=e93ae040e29a3e883d08569a8ccbf79118ebd218#e93ae040e29a3e883d08569a8ccbf79118ebd218" dependencies = [ "serde", "thiserror 2.0.17", @@ -2111,7 +2111,7 @@ dependencies = [ [[package]] name = "neo-reductions" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=3be044cda72cfc9956861c7a529a747d7d21d6b8#3be044cda72cfc9956861c7a529a747d7d21d6b8" +source = "git+https://github.com/nicarq/Nightstream.git?rev=e93ae040e29a3e883d08569a8ccbf79118ebd218#e93ae040e29a3e883d08569a8ccbf79118ebd218" dependencies = [ "bincode", "blake3", @@ -2135,7 +2135,7 @@ dependencies = [ [[package]] name = "neo-transcript" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=3be044cda72cfc9956861c7a529a747d7d21d6b8#3be044cda72cfc9956861c7a529a747d7d21d6b8" +source = "git+https://github.com/nicarq/Nightstream.git?rev=e93ae040e29a3e883d08569a8ccbf79118ebd218#e93ae040e29a3e883d08569a8ccbf79118ebd218" dependencies = [ "neo-ccs", "neo-math", @@ -2151,7 +2151,7 @@ dependencies = [ [[package]] name = "neo-vm-trace" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=3be044cda72cfc9956861c7a529a747d7d21d6b8#3be044cda72cfc9956861c7a529a747d7d21d6b8" +source = "git+https://github.com/nicarq/Nightstream.git?rev=e93ae040e29a3e883d08569a8ccbf79118ebd218#e93ae040e29a3e883d08569a8ccbf79118ebd218" dependencies = [ "serde", "thiserror 2.0.17", From 4db92ddf84e326f4debc6818b65529aeeca1fa08 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Thu, 22 Jan 2026 14:59:32 -0300 Subject: [PATCH 100/152] move neo/Nightstream to workspace dependencies Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- Cargo.toml | 8 ++++++++ .../starstream-interleaving-proof/Cargo.toml | 14 +++++++------- .../starstream-interleaving-spec/Cargo.toml | 10 +++++----- 3 files changed, 20 insertions(+), 12 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8090b003..65a80dea 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -44,6 +44,14 @@ wasm-encoder = "0.240.0" wasmprinter = "0.240.0" wit-component = "0.240.0" +neo-fold = { git = "https://github.com/LFDT-Nightstream/Nightstream.git", rev = "e93ae040e29a3e883d08569a8ccbf79118ebd218" } +neo-math = { git = "https://github.com/LFDT-Nightstream/Nightstream.git", rev = "e93ae040e29a3e883d08569a8ccbf79118ebd218" } +neo-ccs = { git = "https://github.com/LFDT-Nightstream/Nightstream.git", rev = "e93ae040e29a3e883d08569a8ccbf79118ebd218" } +neo-ajtai = { git = "https://github.com/LFDT-Nightstream/Nightstream.git", rev = "e93ae040e29a3e883d08569a8ccbf79118ebd218" } +neo-params = { git = "https://github.com/LFDT-Nightstream/Nightstream.git", rev = "e93ae040e29a3e883d08569a8ccbf79118ebd218" } +neo-vm-trace = { git = "https://github.com/LFDT-Nightstream/Nightstream.git", rev = "e93ae040e29a3e883d08569a8ccbf79118ebd218" } +neo-memory = { git = "https://github.com/LFDT-Nightstream/Nightstream.git", rev = "e93ae040e29a3e883d08569a8ccbf79118ebd218" } + [profile.dev.package] insta.opt-level = 3 diff --git a/interleaving/starstream-interleaving-proof/Cargo.toml b/interleaving/starstream-interleaving-proof/Cargo.toml index 225c107b..1cd2c21f 100644 --- a/interleaving/starstream-interleaving-proof/Cargo.toml +++ b/interleaving/starstream-interleaving-proof/Cargo.toml @@ -13,13 +13,13 @@ ark-poly-commit = "0.5.0" tracing = { version = "0.1", default-features = false, features = [ "attributes" ] } tracing-subscriber = { version = "0.3", features = ["env-filter"] } -neo-fold = { git = "https://github.com/nicarq/Nightstream.git", rev = "e93ae040e29a3e883d08569a8ccbf79118ebd218" } -neo-math = { git = "https://github.com/nicarq/Nightstream.git", rev = "e93ae040e29a3e883d08569a8ccbf79118ebd218" } -neo-ccs = { git = "https://github.com/nicarq/Nightstream.git", rev = "e93ae040e29a3e883d08569a8ccbf79118ebd218" } -neo-ajtai = { git = "https://github.com/nicarq/Nightstream.git", rev = "e93ae040e29a3e883d08569a8ccbf79118ebd218" } -neo-params = { git = "https://github.com/nicarq/Nightstream.git", rev = "e93ae040e29a3e883d08569a8ccbf79118ebd218" } -neo-vm-trace = { git = "https://github.com/nicarq/Nightstream.git", rev = "e93ae040e29a3e883d08569a8ccbf79118ebd218" } -neo-memory = { git = "https://github.com/nicarq/Nightstream.git", rev = "e93ae040e29a3e883d08569a8ccbf79118ebd218" } +neo-fold = { workspace = true } +neo-math = { workspace = true } +neo-ccs = { workspace = true } +neo-ajtai = { workspace = true } +neo-params = { workspace = true } +neo-vm-trace = { workspace = true } +neo-memory = { workspace = true } starstream-interleaving-spec = { path = "../starstream-interleaving-spec" } diff --git a/interleaving/starstream-interleaving-spec/Cargo.toml b/interleaving/starstream-interleaving-spec/Cargo.toml index 18118447..ea9dad04 100644 --- a/interleaving/starstream-interleaving-spec/Cargo.toml +++ b/interleaving/starstream-interleaving-spec/Cargo.toml @@ -11,10 +11,10 @@ ark-ff = { version = "0.5.0", default-features = false } ark-goldilocks = { path = "../../ark-goldilocks" } # TODO: move to workspace deps -neo-fold = { git = "https://github.com/nicarq/Nightstream.git", rev = "e93ae040e29a3e883d08569a8ccbf79118ebd218" } -neo-ccs = { git = "https://github.com/nicarq/Nightstream.git", rev = "e93ae040e29a3e883d08569a8ccbf79118ebd218" } -neo-math = { git = "https://github.com/nicarq/Nightstream.git", rev = "e93ae040e29a3e883d08569a8ccbf79118ebd218" } -neo-ajtai = { git = "https://github.com/nicarq/Nightstream.git", rev = "e93ae040e29a3e883d08569a8ccbf79118ebd218" } -neo-memory = { git = "https://github.com/nicarq/Nightstream.git", rev = "e93ae040e29a3e883d08569a8ccbf79118ebd218" } +neo-fold = { workspace = true } +neo-math = { workspace = true } +neo-ccs = { workspace = true } +neo-ajtai = { workspace = true } +neo-memory = { workspace = true } p3-field = "0.4.1" From 02f37ca69cedc84c7aab16324a1a9d7ab15cb2a5 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Thu, 22 Jan 2026 15:04:03 -0300 Subject: [PATCH 101/152] wip: biggish effect_handlers.star based integration test Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .../src/circuit.rs | 17 +- .../starstream-interleaving-proof/src/neo.rs | 2 +- .../starstream-interleaving-spec/src/lib.rs | 16 - .../src/transaction_effects/instance.rs | 4 +- interleaving/starstream-runtime/src/lib.rs | 260 +++--- .../starstream-runtime/tests/integration.rs | 851 +++++++++++++++++- 6 files changed, 990 insertions(+), 160 deletions(-) diff --git a/interleaving/starstream-interleaving-proof/src/circuit.rs b/interleaving/starstream-interleaving-proof/src/circuit.rs index f6612b12..ee750ed9 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit.rs @@ -1021,7 +1021,9 @@ impl LedgerOperation { // Nop does nothing to the state curr_write.counters -= F::ONE; // revert counter increment } - LedgerOperation::Resume { val, ret, id_prev, .. } => { + LedgerOperation::Resume { + val, ret, id_prev, .. + } => { // Current process gives control to target. // It's `arg` is cleared, and its `expected_input` is set to the return value `ret`. curr_write.activation = F::ZERO; // Represents None @@ -1163,8 +1165,6 @@ impl> StepCircuitBuilder { irw.update(next_wires); - tracing::debug!("constraints: {}", cs.num_constraints()); - Ok((irw, mem_step_data, ivc_layout)) } @@ -1759,10 +1759,8 @@ impl> StepCircuitBuilder { // 6. Resumer check: current process must match target's expected_resumer (if set). let expected_resumer_is_some = wires.target_read_wires.expected_resumer.is_some()?; let expected_resumer_value = wires.target_read_wires.expected_resumer.decode_or_zero()?; - expected_resumer_value.conditional_enforce_equal( - &wires.id_curr, - &(switch & expected_resumer_is_some), - )?; + expected_resumer_value + .conditional_enforce_equal(&wires.id_curr, &(switch & expected_resumer_is_some))?; // 7. Store expected resumer for the current process. wires @@ -1872,10 +1870,7 @@ impl> StepCircuitBuilder { // The next `expected_input` is `ret_value` if `ret` is Some, and None otherwise. let new_expected_input_encoded = wires .ret_is_some - .select( - &(&wires.arg(ArgName::Ret) + FpVar::one()), - &FpVar::zero(), - )?; + .select(&(&wires.arg(ArgName::Ret) + FpVar::one()), &FpVar::zero())?; wires .curr_write_wires .expected_input diff --git a/interleaving/starstream-interleaving-proof/src/neo.rs b/interleaving/starstream-interleaving-proof/src/neo.rs index 13b34ae4..b023f6c5 100644 --- a/interleaving/starstream-interleaving-proof/src/neo.rs +++ b/interleaving/starstream-interleaving-proof/src/neo.rs @@ -124,7 +124,7 @@ impl NeoCircuit for StepCircuitNeo { } let twist_id = *tag as u32; - let k = 64usize; // TODO: hardcoded number + let k = 256usize; // TODO: hardcoded number assert!(k > 0, "set_binary_mem_layout: k must be > 0"); assert!( k.is_power_of_two(), diff --git a/interleaving/starstream-interleaving-spec/src/lib.rs b/interleaving/starstream-interleaving-spec/src/lib.rs index 6b4e573a..c68ac889 100644 --- a/interleaving/starstream-interleaving-spec/src/lib.rs +++ b/interleaving/starstream-interleaving-spec/src/lib.rs @@ -516,22 +516,6 @@ impl Ledger { } } - // for (token_pid, owner_pid_opt) in tx.body.ownership_out.iter().enumerate() { - // let Some(token_cid) = process_to_coroutine[token_pid].clone() else { - // panic!("coordination scripts can't own or be owned") - // }; - - // if let Some(owner_pid) = owner_pid_opt { - // let Some(owner_cid) = process_to_coroutine[owner_pid.0].clone() else { - // // the proof should reject this in theory - // return Err(VerificationError::OwnerHasNoStableIdentity); - // }; - - // self.ownership_registry.insert(token_cid, owner_cid); - // } else { - // } - // } - // 4) Remove spent inputs for (i, input_id) in tx.body.inputs.iter().enumerate() { if is_reference_input.contains(&i) { diff --git a/interleaving/starstream-interleaving-spec/src/transaction_effects/instance.rs b/interleaving/starstream-interleaving-spec/src/transaction_effects/instance.rs index 24cf7775..0a14f44a 100644 --- a/interleaving/starstream-interleaving-spec/src/transaction_effects/instance.rs +++ b/interleaving/starstream-interleaving-spec/src/transaction_effects/instance.rs @@ -95,8 +95,8 @@ impl InterleavingInstance { } } - let num_bits = 6; - // currently the twist tables have a size of 64, so 2**6 == 6 + let num_bits = 8; + // currently the twist tables have a size of 256, so 2**8 == 256 // // need to figure out if that can be generalized, or if we need a bound or not diff --git a/interleaving/starstream-runtime/src/lib.rs b/interleaving/starstream-runtime/src/lib.rs index 58f9d60f..5c7ce177 100644 --- a/interleaving/starstream-runtime/src/lib.rs +++ b/interleaving/starstream-runtime/src/lib.rs @@ -149,7 +149,10 @@ impl Runtime { .func_wrap( "env", "starstream_resume", - |mut caller: Caller<'_, RuntimeState>, target: u64, val: u64| -> Result<(u64, u64), wasmi::Error> { + |mut caller: Caller<'_, RuntimeState>, + target: u64, + val: u64| + -> Result<(u64, u64), wasmi::Error> { let current_pid = caller.data().current_process; let target = ProcessId(target as usize); let val = Ref(val); @@ -178,7 +181,9 @@ impl Runtime { .func_wrap( "env", "starstream_yield", - |mut caller: Caller<'_, RuntimeState>, val: u64| -> Result<(u64, u64), wasmi::Error> { + |mut caller: Caller<'_, RuntimeState>, + val: u64| + -> Result<(u64, u64), wasmi::Error> { let id_prev = caller.data().prev_id; suspend_with_effect( &mut caller, @@ -224,8 +229,7 @@ impl Runtime { } } } - let id = found_id - .ok_or(wasmi::Error::new("no matching utxo process found"))?; + let id = found_id.ok_or(wasmi::Error::new("no matching utxo process found"))?; caller.data_mut().allocated_processes.insert(id); caller @@ -278,8 +282,8 @@ impl Runtime { } } } - let id = found_id - .ok_or(wasmi::Error::new("no matching coord process found"))?; + let id = + found_id.ok_or(wasmi::Error::new("no matching coord process found"))?; caller.data_mut().allocated_processes.insert(id); caller @@ -304,7 +308,12 @@ impl Runtime { .func_wrap( "env", "starstream_install_handler", - |mut caller: Caller<'_, RuntimeState>, h0: u64, h1: u64, h2: u64, h3: u64| -> Result<(), wasmi::Error> { + |mut caller: Caller<'_, RuntimeState>, + h0: u64, + h1: u64, + h2: u64, + h3: u64| + -> Result<(), wasmi::Error> { let current_pid = caller.data().current_process; let interface_id = Hash(args_to_hash(h0, h1, h2, h3), std::marker::PhantomData); caller @@ -325,7 +334,12 @@ impl Runtime { .func_wrap( "env", "starstream_uninstall_handler", - |mut caller: Caller<'_, RuntimeState>, h0: u64, h1: u64, h2: u64, h3: u64| -> Result<(), wasmi::Error> { + |mut caller: Caller<'_, RuntimeState>, + h0: u64, + h1: u64, + h2: u64, + h3: u64| + -> Result<(), wasmi::Error> { let current_pid = caller.data().current_process; let interface_id = Hash(args_to_hash(h0, h1, h2, h3), std::marker::PhantomData); let stack = caller @@ -348,7 +362,12 @@ impl Runtime { .func_wrap( "env", "starstream_get_handler_for", - |mut caller: Caller<'_, RuntimeState>, h0: u64, h1: u64, h2: u64, h3: u64| -> Result { + |mut caller: Caller<'_, RuntimeState>, + h0: u64, + h1: u64, + h2: u64, + h3: u64| + -> Result { let interface_id = Hash(args_to_hash(h0, h1, h2, h3), std::marker::PhantomData); let handler_id = { let stack = caller @@ -372,108 +391,127 @@ impl Runtime { .unwrap(); linker - .func_wrap("env", "starstream_activation", |mut caller: Caller<'_, RuntimeState>| -> Result<(u64, u64), wasmi::Error> { - let current_pid = caller.data().current_process; - let (val, caller_id) = { - let (val, caller_id) = caller - .data() - .pending_activation - .get(¤t_pid) - .ok_or(wasmi::Error::new("no pending activation"))?; - (*val, *caller_id) - }; - suspend_with_effect( - &mut caller, - WitLedgerEffect::Activation { - val: WitEffectOutput::Resolved(val), - caller: WitEffectOutput::Resolved(caller_id), - }, - ) - }) + .func_wrap( + "env", + "starstream_activation", + |mut caller: Caller<'_, RuntimeState>| -> Result<(u64, u64), wasmi::Error> { + let current_pid = caller.data().current_process; + let (val, caller_id) = { + let (val, caller_id) = caller + .data() + .pending_activation + .get(¤t_pid) + .ok_or(wasmi::Error::new("no pending activation"))?; + (*val, *caller_id) + }; + suspend_with_effect( + &mut caller, + WitLedgerEffect::Activation { + val: WitEffectOutput::Resolved(val), + caller: WitEffectOutput::Resolved(caller_id), + }, + ) + }, + ) .unwrap(); linker - .func_wrap("env", "starstream_init", |mut caller: Caller<'_, RuntimeState>| -> Result<(u64, u64), wasmi::Error> { - let current_pid = caller.data().current_process; - let (val, caller_id) = { - let (val, caller_id) = caller - .data() - .pending_init - .get(¤t_pid) - .ok_or(wasmi::Error::new("no pending init"))?; - (*val, *caller_id) - }; - suspend_with_effect( - &mut caller, - WitLedgerEffect::Init { - val: WitEffectOutput::Resolved(val), - caller: WitEffectOutput::Resolved(caller_id), - }, - ) - }) + .func_wrap( + "env", + "starstream_init", + |mut caller: Caller<'_, RuntimeState>| -> Result<(u64, u64), wasmi::Error> { + let current_pid = caller.data().current_process; + let (val, caller_id) = { + let (val, caller_id) = caller + .data() + .pending_init + .get(¤t_pid) + .ok_or(wasmi::Error::new("no pending init"))?; + (*val, *caller_id) + }; + suspend_with_effect( + &mut caller, + WitLedgerEffect::Init { + val: WitEffectOutput::Resolved(val), + caller: WitEffectOutput::Resolved(caller_id), + }, + ) + }, + ) .unwrap(); linker - .func_wrap("env", "starstream_new_ref", |mut caller: Caller<'_, RuntimeState>, size: u64| -> Result { - let current_pid = caller.data().current_process; - let size = size as usize; - let ref_id = Ref(caller.data().next_ref); - caller.data_mut().next_ref += size as u64; - - caller - .data_mut() - .ref_store - .insert(ref_id, vec![Value(0); size]); - caller - .data_mut() - .ref_state - .insert(current_pid, (ref_id, 0, size)); - - suspend_with_effect( - &mut caller, - WitLedgerEffect::NewRef { - size, - ret: WitEffectOutput::Resolved(ref_id), - }, - ) - }) + .func_wrap( + "env", + "starstream_new_ref", + |mut caller: Caller<'_, RuntimeState>, size: u64| -> Result { + let current_pid = caller.data().current_process; + let size = size as usize; + let ref_id = Ref(caller.data().next_ref); + caller.data_mut().next_ref += size as u64; + + caller + .data_mut() + .ref_store + .insert(ref_id, vec![Value(0); size]); + caller + .data_mut() + .ref_state + .insert(current_pid, (ref_id, 0, size)); + + suspend_with_effect( + &mut caller, + WitLedgerEffect::NewRef { + size, + ret: WitEffectOutput::Resolved(ref_id), + }, + ) + }, + ) .unwrap(); linker - .func_wrap("env", "starstream_ref_push", |mut caller: Caller<'_, RuntimeState>, val: u64| -> Result<(), wasmi::Error> { - let current_pid = caller.data().current_process; - let val = Value(val); - let (ref_id, offset, size) = *caller - .data() - .ref_state - .get(¤t_pid) - .ok_or(wasmi::Error::new("no ref state"))?; - - if offset >= size { - return Err(wasmi::Error::new("ref push overflow")); - } + .func_wrap( + "env", + "starstream_ref_push", + |mut caller: Caller<'_, RuntimeState>, val: u64| -> Result<(), wasmi::Error> { + let current_pid = caller.data().current_process; + let val = Value(val); + let (ref_id, offset, size) = *caller + .data() + .ref_state + .get(¤t_pid) + .ok_or(wasmi::Error::new("no ref state"))?; - let store = caller - .data_mut() - .ref_store - .get_mut(&ref_id) - .ok_or(wasmi::Error::new("ref not found"))?; - store[offset] = val; + if offset >= size { + return Err(wasmi::Error::new("ref push overflow")); + } - caller - .data_mut() - .ref_state - .insert(current_pid, (ref_id, offset + 1, size)); + let store = caller + .data_mut() + .ref_store + .get_mut(&ref_id) + .ok_or(wasmi::Error::new("ref not found"))?; + store[offset] = val; + + caller + .data_mut() + .ref_state + .insert(current_pid, (ref_id, offset + 1, size)); - suspend_with_effect(&mut caller, WitLedgerEffect::RefPush { val }) - }) + suspend_with_effect(&mut caller, WitLedgerEffect::RefPush { val }) + }, + ) .unwrap(); linker .func_wrap( "env", "starstream_get", - |mut caller: Caller<'_, RuntimeState>, reff: u64, offset: u64| -> Result { + |mut caller: Caller<'_, RuntimeState>, + reff: u64, + offset: u64| + -> Result { let ref_id = Ref(reff); let offset = offset as usize; let store = caller @@ -498,15 +536,19 @@ impl Runtime { .unwrap(); linker - .func_wrap("env", "starstream_bind", |mut caller: Caller<'_, RuntimeState>, owner_id: u64| -> Result<(), wasmi::Error> { - let current_pid = caller.data().current_process; - let owner_id = ProcessId(owner_id as usize); - caller - .data_mut() - .ownership - .insert(current_pid, Some(owner_id)); - suspend_with_effect(&mut caller, WitLedgerEffect::Bind { owner_id }) - }) + .func_wrap( + "env", + "starstream_bind", + |mut caller: Caller<'_, RuntimeState>, owner_id: u64| -> Result<(), wasmi::Error> { + let current_pid = caller.data().current_process; + let owner_id = ProcessId(owner_id as usize); + caller + .data_mut() + .ownership + .insert(current_pid, Some(owner_id)); + suspend_with_effect(&mut caller, WitLedgerEffect::Bind { owner_id }) + }, + ) .unwrap(); linker @@ -524,11 +566,15 @@ impl Runtime { .unwrap(); linker - .func_wrap("env", "starstream_burn", |mut caller: Caller<'_, RuntimeState>, ret: u64| -> Result<(), wasmi::Error> { - let current_pid = caller.data().current_process; - caller.data_mut().must_burn.insert(current_pid); - suspend_with_effect(&mut caller, WitLedgerEffect::Burn { ret: Ref(ret) }) - }) + .func_wrap( + "env", + "starstream_burn", + |mut caller: Caller<'_, RuntimeState>, ret: u64| -> Result<(), wasmi::Error> { + let current_pid = caller.data().current_process; + caller.data_mut().must_burn.insert(current_pid); + suspend_with_effect(&mut caller, WitLedgerEffect::Burn { ret: Ref(ret) }) + }, + ) .unwrap(); linker diff --git a/interleaving/starstream-runtime/tests/integration.rs b/interleaving/starstream-runtime/tests/integration.rs index a7d571a0..d365f520 100644 --- a/interleaving/starstream-runtime/tests/integration.rs +++ b/interleaving/starstream-runtime/tests/integration.rs @@ -4,7 +4,15 @@ use starstream_runtime::UnprovenTransaction; use wat::parse_str; #[test] -fn test_runtime_effect_handlers() { +fn test_runtime_simple_effect_handlers() { + // Pseudocode (UTXO): + // - (ret, caller) = activation() + // - assert program_hash(caller) == program_hash(1) // caller is the script in this test + // - handler_id = get_handler_for(interface_id=1) + // - req = new_ref(1); ref_push(42) + // - (ret, resp) = resume(handler_id, req) + // - assert get(resp, 0) == 1 + // - yield(resp) let utxo_wat = r#"( module (import "env" "starstream_activation" (func $activation (result i64 i64))) @@ -12,23 +20,52 @@ module (import "env" "starstream_get_handler_for" (func $get_handler_for (param i64 i64 i64 i64) (result i64))) (import "env" "starstream_new_ref" (func $new_ref (param i64) (result i64))) (import "env" "starstream_ref_push" (func $ref_push (param i64))) + (import "env" "starstream_get" (func $get (param i64 i64) (result i64))) (import "env" "starstream_resume" (func $resume (param i64 i64) (result i64 i64))) (import "env" "starstream_yield" (func $yield (param i64) (result i64 i64))) (func (export "_start") - (local $val i64) (local $handler_id i64) (local $req i64) (local $resp i64) + (local $init_ref i64) (local $caller i64) (local $handler_id i64) (local $req i64) (local $resp i64) + (local $caller_hash_a i64) (local $caller_hash_b i64) (local $caller_hash_c i64) (local $caller_hash_d i64) + (local $script_hash_a i64) (local $script_hash_b i64) (local $script_hash_c i64) (local $script_hash_d i64) + (local $resp_val i64) ;; ACTIVATION (call $activation) - drop - local.set $val + local.set $caller + local.set $init_ref - ;; PROGRAM_HASH(target=1) + ;; PROGRAM_HASH(target=caller) + (call $program_hash (local.get $caller)) + local.set $caller_hash_d + local.set $caller_hash_c + local.set $caller_hash_b + local.set $caller_hash_a + + ;; PROGRAM_HASH(target=script id 1) (call $program_hash (i64.const 1)) - drop - drop - drop - drop + local.set $script_hash_d + local.set $script_hash_c + local.set $script_hash_b + local.set $script_hash_a + + ;; Ensure caller hash matches script hash + (local.get $caller_hash_a) + (local.get $script_hash_a) + i64.ne + if unreachable end + (local.get $caller_hash_b) + (local.get $script_hash_b) + i64.ne + if unreachable end + (local.get $caller_hash_c) + (local.get $script_hash_c) + i64.ne + if unreachable end + (local.get $caller_hash_d) + (local.get $script_hash_d) + i64.ne + if unreachable end ;; GET_HANDLER_FOR(interface_id=limbs at 0) (call $get_handler_for (i64.const 1) (i64.const 0) (i64.const 0) (i64.const 0)) @@ -45,6 +82,14 @@ module (call $resume (local.get $handler_id) (local.get $req)) drop local.set $resp + + ;; GET(bool) from handler response + (call $get (local.get $resp) (i64.const 0)) + local.set $resp_val + (local.get $resp_val) + (i64.const 1) + i64.ne + if unreachable end ;; YIELD(val=$resp, ret=-1, prev=0) (call $yield (local.get $resp)) @@ -66,18 +111,28 @@ module let utxo_hash_limb_d = u64::from_le_bytes(utxo_hash_bytes[8 * 3..8 * 4].try_into().unwrap()); // 2. Compile Coord Program + // Pseudocode (Coord): + // - install_handler(interface_id=1) + // - init = new_ref(1); ref_push(0) + // - new_utxo(hash(utxo_bin), init) + // - (req, caller) = resume(utxo_id=0, init) + // - assert get(req, 0) == 42 + // - resp = new_ref(1); ref_push(1) + // - resume(utxo_id=0, resp) + // - uninstall_handler(interface_id=1) let coord_wat = format!( r#"( module (import "env" "starstream_install_handler" (func $install_handler (param i64 i64 i64 i64))) (import "env" "starstream_new_ref" (func $new_ref (param i64) (result i64))) (import "env" "starstream_ref_push" (func $ref_push (param i64))) + (import "env" "starstream_get" (func $get (param i64 i64) (result i64))) (import "env" "starstream_new_utxo" (func $new_utxo (param i64 i64 i64 i64 i64) (result i64))) (import "env" "starstream_resume" (func $resume (param i64 i64) (result i64 i64))) (import "env" "starstream_uninstall_handler" (func $uninstall_handler (param i64 i64 i64 i64))) (func (export "_start") - (local $init_val i64) (local $resp i64) (local $final i64) + (local $init_val i64) (local $req i64) (local $req_val i64) (local $resp i64) (local $caller i64) ;; INSTALL_HANDLER(interface_id=limbs at 0) (call $install_handler (i64.const 1) (i64.const 0) (i64.const 0) (i64.const 0)) @@ -86,8 +141,8 @@ module (call $new_ref (i64.const 1)) local.set $init_val - ;; REF_PUSH(val=11111) - (call $ref_push (i64.const 11111)) + ;; REF_PUSH(val=0) + (call $ref_push (i64.const 0)) ;; NEW_UTXO(program_hash=limbs at 32, val=$init_val, id=0) (call $new_utxo @@ -101,22 +156,23 @@ module ;; RESUME(target=0, val=$init_val, ret=1, prev=-1) (call $resume (i64.const 0) (local.get $init_val)) - drop - drop + local.set $caller + local.set $req + + ;; GET request val + (call $get (local.get $req) (i64.const 0)) + local.set $req_val + (local.get $req_val) + (i64.const 42) + i64.ne + if unreachable end ;; NEW_REF(size=1) (call $new_ref (i64.const 1)) local.set $resp - ;; REF_PUSH(val=43) - (call $ref_push (i64.const 43)) - - ;; NEW_REF(size=1) - (call $new_ref (i64.const 1)) - local.set $final - - ;; REF_PUSH(val=33333) - (call $ref_push (i64.const 33333)) + ;; REF_PUSH(val=true) + (call $ref_push (i64.const 1)) ;; RESUME(target=0, val=$resp, ret=$resp, prev=0) (call $resume (i64.const 0) (local.get $resp)) @@ -152,3 +208,752 @@ module assert_eq!(ledger.utxos.len(), 1); } + +#[test] +fn test_runtime_effect_handlers_star_flow() { + // Pseudocode (UTXO): + // - (init, caller) = activation() + // - loop: + // - yield(resp_msg) -> (req_msg, caller) + // - assert req_msg.iface == UtxoAbi + // - match req_msg.disc: + // 1 => raise Foo(33) via handler, respond + // 2 => respond 1 + // 3 => raise Bar(payload) via handler, respond with handler result + // + // Pseudocode (Coord): + // - install_handler(A) outer + // - create UTXO and start it + // - call abi_call1, abi_call2, abi_call3(false) with outer handlers + // - install_handler(A) inner, call abi_call3(true) with inner handlers + // - uninstall handler inner, uninstall handler outer + let utxo_wat = r#"( +module + (import "env" "starstream_activation" (func $activation (result i64 i64))) + (import "env" "starstream_get_handler_for" (func $get_handler_for (param i64 i64 i64 i64) (result i64))) + (import "env" "starstream_new_ref" (func $new_ref (param i64) (result i64))) + (import "env" "starstream_ref_push" (func $ref_push (param i64))) + (import "env" "starstream_get" (func $get (param i64 i64) (result i64))) + (import "env" "starstream_resume" (func $resume (param i64 i64) (result i64 i64))) + (import "env" "starstream_yield" (func $yield (param i64) (result i64 i64))) + + (func (export "_start") + (local $init i64) (local $caller i64) (local $handler_id i64) + (local $req i64) (local $resp_msg i64) + (local $iface0 i64) (local $iface1 i64) (local $iface2 i64) (local $iface3 i64) + (local $disc i64) (local $payload i64) + (local $effect_req i64) (local $effect_resp i64) (local $effect_val i64) + + ;; ACTIVATION + (call $activation) + local.set $caller + local.set $init + + ;; Prepare initial response message (iface=UtxoAbi, disc=0, payload=0) + (call $new_ref (i64.const 6)) + local.set $resp_msg + (call $ref_push (i64.const 2)) + (call $ref_push (i64.const 0)) + (call $ref_push (i64.const 0)) + (call $ref_push (i64.const 0)) + (call $ref_push (i64.const 0)) + (call $ref_push (i64.const 0)) + + (block $exit + (loop $loop + ;; YIELD(response) => (req, caller) + (call $yield (local.get $resp_msg)) + local.set $caller + local.set $req + + ;; Read iface + discriminant + payload + (call $get (local.get $req) (i64.const 0)) + local.set $iface0 + (call $get (local.get $req) (i64.const 1)) + local.set $iface1 + (call $get (local.get $req) (i64.const 2)) + local.set $iface2 + (call $get (local.get $req) (i64.const 3)) + local.set $iface3 + (call $get (local.get $req) (i64.const 4)) + local.set $disc + (call $get (local.get $req) (i64.const 5)) + local.set $payload + + ;; Assert iface == UtxoAbi (2,0,0,0) + (local.get $iface0) + (i64.const 2) + i64.ne + if unreachable end + (local.get $iface1) + (i64.const 0) + i64.ne + if unreachable end + (local.get $iface2) + (i64.const 0) + i64.ne + if unreachable end + (local.get $iface3) + (i64.const 0) + i64.ne + if unreachable end + + ;; Match discriminant + (local.get $disc) + (i64.const 1) + i64.eq + if + ;; AbiCall1 => raise Foo(33) + (call $get_handler_for (i64.const 1) (i64.const 0) (i64.const 0) (i64.const 0)) + local.set $handler_id + + (call $new_ref (i64.const 6)) + local.set $effect_req + (call $ref_push (i64.const 1)) + (call $ref_push (i64.const 0)) + (call $ref_push (i64.const 0)) + (call $ref_push (i64.const 0)) + (call $ref_push (i64.const 1)) + (call $ref_push (i64.const 33)) + + (call $resume (local.get $handler_id) (local.get $effect_req)) + local.set $caller + local.set $effect_resp + + ;; Respond with iface=UtxoAbi, disc=1, payload=0 + (call $new_ref (i64.const 6)) + local.set $resp_msg + (call $ref_push (i64.const 2)) + (call $ref_push (i64.const 0)) + (call $ref_push (i64.const 0)) + (call $ref_push (i64.const 0)) + (call $ref_push (i64.const 1)) + (call $ref_push (i64.const 0)) + else + (local.get $disc) + (i64.const 2) + i64.eq + if + ;; AbiCall2 => respond 1 + (call $new_ref (i64.const 6)) + local.set $resp_msg + (call $ref_push (i64.const 2)) + (call $ref_push (i64.const 0)) + (call $ref_push (i64.const 0)) + (call $ref_push (i64.const 0)) + (call $ref_push (i64.const 2)) + (call $ref_push (i64.const 1)) + else + (local.get $disc) + (i64.const 3) + i64.eq + if + ;; AbiCall3 => raise Bar(payload) + (call $get_handler_for (i64.const 1) (i64.const 0) (i64.const 0) (i64.const 0)) + local.set $handler_id + + (call $new_ref (i64.const 6)) + local.set $effect_req + (call $ref_push (i64.const 1)) + (call $ref_push (i64.const 0)) + (call $ref_push (i64.const 0)) + (call $ref_push (i64.const 0)) + (call $ref_push (i64.const 2)) + (call $ref_push (local.get $payload)) + + (call $resume (local.get $handler_id) (local.get $effect_req)) + local.set $caller + local.set $effect_resp + + (call $get (local.get $effect_resp) (i64.const 0)) + local.set $effect_val + + ;; Respond with iface=UtxoAbi, disc=3, payload=effect_val + (call $new_ref (i64.const 6)) + local.set $resp_msg + (call $ref_push (i64.const 2)) + (call $ref_push (i64.const 0)) + (call $ref_push (i64.const 0)) + (call $ref_push (i64.const 0)) + (call $ref_push (i64.const 3)) + (call $ref_push (local.get $effect_val)) + else + unreachable + end + end + end + + br $loop + ) + ) + ) +) +"#; + let utxo_bin = parse_str(utxo_wat).unwrap(); + + let mut hasher = Sha256::new(); + hasher.update(&utxo_bin); + let utxo_hash_bytes = hasher.finalize(); + + let utxo_hash_limb_a = u64::from_le_bytes(utxo_hash_bytes[0..8].try_into().unwrap()); + let utxo_hash_limb_b = u64::from_le_bytes(utxo_hash_bytes[8..8 * 2].try_into().unwrap()); + let utxo_hash_limb_c = u64::from_le_bytes(utxo_hash_bytes[8 * 2..8 * 3].try_into().unwrap()); + let utxo_hash_limb_d = u64::from_le_bytes(utxo_hash_bytes[8 * 3..8 * 4].try_into().unwrap()); + + let coord_wat = format!( + r#"( +module + (import "env" "starstream_install_handler" (func $install_handler (param i64 i64 i64 i64))) + (import "env" "starstream_uninstall_handler" (func $uninstall_handler (param i64 i64 i64 i64))) + (import "env" "starstream_new_ref" (func $new_ref (param i64) (result i64))) + (import "env" "starstream_ref_push" (func $ref_push (param i64))) + (import "env" "starstream_get" (func $get (param i64 i64) (result i64))) + (import "env" "starstream_new_utxo" (func $new_utxo (param i64 i64 i64 i64 i64) (result i64))) + (import "env" "starstream_resume" (func $resume (param i64 i64) (result i64 i64))) + + (func (export "_start") + (local $init i64) (local $req i64) (local $msg i64) (local $caller i64) + (local $iface0 i64) (local $iface1 i64) (local $iface2 i64) (local $iface3 i64) + (local $disc i64) (local $payload i64) + (local $resp i64) (local $handler_mode i64) + + ;; install outer handler for A + (call $install_handler (i64.const 1) (i64.const 0) (i64.const 0) (i64.const 0)) + (i64.const 0) + local.set $handler_mode + + ;; init ref + (call $new_ref (i64.const 1)) + local.set $init + (call $ref_push (i64.const 0)) + + ;; new utxo + (call $new_utxo + (i64.const {utxo_hash_limb_a}) + (i64.const {utxo_hash_limb_b}) + (i64.const {utxo_hash_limb_c}) + (i64.const {utxo_hash_limb_d}) + (local.get $init) + ) + drop + + ;; start utxo + (call $resume (i64.const 0) (local.get $init)) + drop + drop + + ;; abi_call1() + (call $new_ref (i64.const 6)) + local.set $req + (call $ref_push (i64.const 2)) + (call $ref_push (i64.const 0)) + (call $ref_push (i64.const 0)) + (call $ref_push (i64.const 0)) + (call $ref_push (i64.const 1)) + (call $ref_push (i64.const 0)) + + (call $resume (i64.const 0) (local.get $req)) + local.set $caller + local.set $msg + + (block $done1 + (loop $loop1 + ;; parse iface + (call $get (local.get $msg) (i64.const 0)) + local.set $iface0 + (call $get (local.get $msg) (i64.const 1)) + local.set $iface1 + (call $get (local.get $msg) (i64.const 2)) + local.set $iface2 + (call $get (local.get $msg) (i64.const 3)) + local.set $iface3 + (call $get (local.get $msg) (i64.const 4)) + local.set $disc + (call $get (local.get $msg) (i64.const 5)) + local.set $payload + + ;; iface == A? + (local.get $iface0) + (i64.const 1) + i64.eq + (local.get $iface1) + (i64.const 0) + i64.eq + i32.and + (local.get $iface2) + (i64.const 0) + i64.eq + i32.and + (local.get $iface3) + (i64.const 0) + i64.eq + i32.and + if + ;; handle A::Foo/A::Bar + (local.get $disc) + (i64.const 1) + i64.eq + if + ;; Foo: outer => x * i, inner => i + (local.get $handler_mode) + (i64.const 1) + i64.eq + if + (local.get $payload) + local.set $resp + else + (i64.const 5) + (local.get $payload) + i64.mul + local.set $resp + end + else + ;; Bar: outer => !b, inner => b + (local.get $handler_mode) + (i64.const 1) + i64.eq + if + (local.get $payload) + local.set $resp + else + (local.get $payload) + (i64.const 0) + i64.eq + if + (i64.const 1) + local.set $resp + else + (i64.const 0) + local.set $resp + end + end + end + + (call $new_ref (i64.const 1)) + local.set $req + (call $ref_push (local.get $resp)) + (call $resume (local.get $caller) (local.get $req)) + local.set $caller + local.set $msg + br $loop1 + end + + ;; iface == UtxoAbi? expect response for call1 + (local.get $iface0) + (i64.const 2) + i64.ne + if unreachable end + (local.get $iface1) + (i64.const 0) + i64.ne + if unreachable end + (local.get $iface2) + (i64.const 0) + i64.ne + if unreachable end + (local.get $iface3) + (i64.const 0) + i64.ne + if unreachable end + (local.get $disc) + (i64.const 1) + i64.ne + if unreachable end + br $done1 + ) + ) + + ;; abi_call2() => expect payload 1 + (call $new_ref (i64.const 6)) + local.set $req + (call $ref_push (i64.const 2)) + (call $ref_push (i64.const 0)) + (call $ref_push (i64.const 0)) + (call $ref_push (i64.const 0)) + (call $ref_push (i64.const 2)) + (call $ref_push (i64.const 0)) + + (call $resume (i64.const 0) (local.get $req)) + local.set $caller + local.set $msg + + (block $done2 + (loop $loop2 + (call $get (local.get $msg) (i64.const 0)) + local.set $iface0 + (call $get (local.get $msg) (i64.const 1)) + local.set $iface1 + (call $get (local.get $msg) (i64.const 2)) + local.set $iface2 + (call $get (local.get $msg) (i64.const 3)) + local.set $iface3 + (call $get (local.get $msg) (i64.const 4)) + local.set $disc + (call $get (local.get $msg) (i64.const 5)) + local.set $payload + + (local.get $iface0) + (i64.const 1) + i64.eq + (local.get $iface1) + (i64.const 0) + i64.eq + i32.and + (local.get $iface2) + (i64.const 0) + i64.eq + i32.and + (local.get $iface3) + (i64.const 0) + i64.eq + i32.and + if + ;; handle A::Foo/A::Bar (same as above) + (local.get $disc) + (i64.const 1) + i64.eq + if + (local.get $handler_mode) + (i64.const 1) + i64.eq + if + (local.get $payload) + local.set $resp + else + (i64.const 5) + (local.get $payload) + i64.mul + local.set $resp + end + else + (local.get $handler_mode) + (i64.const 1) + i64.eq + if + (local.get $payload) + local.set $resp + else + (local.get $payload) + (i64.const 0) + i64.eq + if + (i64.const 1) + local.set $resp + else + (i64.const 0) + local.set $resp + end + end + end + + (call $new_ref (i64.const 1)) + local.set $req + (call $ref_push (local.get $resp)) + (call $resume (local.get $caller) (local.get $req)) + local.set $caller + local.set $msg + br $loop2 + end + + (local.get $iface0) + (i64.const 2) + i64.ne + if unreachable end + (local.get $iface1) + (i64.const 0) + i64.ne + if unreachable end + (local.get $iface2) + (i64.const 0) + i64.ne + if unreachable end + (local.get $iface3) + (i64.const 0) + i64.ne + if unreachable end + (local.get $disc) + (i64.const 2) + i64.ne + if unreachable end + (local.get $payload) + (i64.const 1) + i64.ne + if unreachable end + br $done2 + ) + ) + + ;; abi_call3(false) => expect payload 1 + (call $new_ref (i64.const 6)) + local.set $req + (call $ref_push (i64.const 2)) + (call $ref_push (i64.const 0)) + (call $ref_push (i64.const 0)) + (call $ref_push (i64.const 0)) + (call $ref_push (i64.const 3)) + (call $ref_push (i64.const 0)) + + (call $resume (i64.const 0) (local.get $req)) + local.set $caller + local.set $msg + + (block $done3 + (loop $loop3 + (call $get (local.get $msg) (i64.const 0)) + local.set $iface0 + (call $get (local.get $msg) (i64.const 1)) + local.set $iface1 + (call $get (local.get $msg) (i64.const 2)) + local.set $iface2 + (call $get (local.get $msg) (i64.const 3)) + local.set $iface3 + (call $get (local.get $msg) (i64.const 4)) + local.set $disc + (call $get (local.get $msg) (i64.const 5)) + local.set $payload + + (local.get $iface0) + (i64.const 1) + i64.eq + (local.get $iface1) + (i64.const 0) + i64.eq + i32.and + (local.get $iface2) + (i64.const 0) + i64.eq + i32.and + (local.get $iface3) + (i64.const 0) + i64.eq + i32.and + if + (local.get $disc) + (i64.const 1) + i64.eq + if + (local.get $handler_mode) + (i64.const 1) + i64.eq + if + (local.get $payload) + local.set $resp + else + (i64.const 5) + (local.get $payload) + i64.mul + local.set $resp + end + else + (local.get $handler_mode) + (i64.const 1) + i64.eq + if + (local.get $payload) + local.set $resp + else + (local.get $payload) + (i64.const 0) + i64.eq + if + (i64.const 1) + local.set $resp + else + (i64.const 0) + local.set $resp + end + end + end + + (call $new_ref (i64.const 1)) + local.set $req + (call $ref_push (local.get $resp)) + (call $resume (local.get $caller) (local.get $req)) + local.set $caller + local.set $msg + br $loop3 + end + + (local.get $iface0) + (i64.const 2) + i64.ne + if unreachable end + (local.get $iface1) + (i64.const 0) + i64.ne + if unreachable end + (local.get $iface2) + (i64.const 0) + i64.ne + if unreachable end + (local.get $iface3) + (i64.const 0) + i64.ne + if unreachable end + (local.get $disc) + (i64.const 3) + i64.ne + if unreachable end + (local.get $payload) + (i64.const 1) + i64.ne + if unreachable end + br $done3 + ) + ) + + ;; inner handlers for abi_call3(true) + (call $install_handler (i64.const 1) (i64.const 0) (i64.const 0) (i64.const 0)) + (i64.const 1) + local.set $handler_mode + + (call $new_ref (i64.const 6)) + local.set $req + (call $ref_push (i64.const 2)) + (call $ref_push (i64.const 0)) + (call $ref_push (i64.const 0)) + (call $ref_push (i64.const 0)) + (call $ref_push (i64.const 3)) + (call $ref_push (i64.const 1)) + + (call $resume (i64.const 0) (local.get $req)) + local.set $caller + local.set $msg + + (block $done4 + (loop $loop4 + (call $get (local.get $msg) (i64.const 0)) + local.set $iface0 + (call $get (local.get $msg) (i64.const 1)) + local.set $iface1 + (call $get (local.get $msg) (i64.const 2)) + local.set $iface2 + (call $get (local.get $msg) (i64.const 3)) + local.set $iface3 + (call $get (local.get $msg) (i64.const 4)) + local.set $disc + (call $get (local.get $msg) (i64.const 5)) + local.set $payload + + (local.get $iface0) + (i64.const 1) + i64.eq + (local.get $iface1) + (i64.const 0) + i64.eq + i32.and + (local.get $iface2) + (i64.const 0) + i64.eq + i32.and + (local.get $iface3) + (i64.const 0) + i64.eq + i32.and + if + (local.get $disc) + (i64.const 1) + i64.eq + if + (local.get $handler_mode) + (i64.const 1) + i64.eq + if + (local.get $payload) + local.set $resp + else + (i64.const 5) + (local.get $payload) + i64.mul + local.set $resp + end + else + (local.get $handler_mode) + (i64.const 1) + i64.eq + if + (local.get $payload) + local.set $resp + else + (local.get $payload) + (i64.const 0) + i64.eq + if + (i64.const 1) + local.set $resp + else + (i64.const 0) + local.set $resp + end + end + end + + (call $new_ref (i64.const 1)) + local.set $req + (call $ref_push (local.get $resp)) + (call $resume (local.get $caller) (local.get $req)) + local.set $caller + local.set $msg + br $loop4 + end + + (local.get $iface0) + (i64.const 2) + i64.ne + if unreachable end + (local.get $iface1) + (i64.const 0) + i64.ne + if unreachable end + (local.get $iface2) + (i64.const 0) + i64.ne + if unreachable end + (local.get $iface3) + (i64.const 0) + i64.ne + if unreachable end + (local.get $disc) + (i64.const 3) + i64.ne + if unreachable end + (local.get $payload) + (i64.const 1) + i64.ne + if unreachable end + br $done4 + ) + ) + + (call $uninstall_handler (i64.const 1) (i64.const 0) (i64.const 0) (i64.const 0)) + (i64.const 0) + local.set $handler_mode + + (call $uninstall_handler (i64.const 1) (i64.const 0) (i64.const 0) (i64.const 0)) + ) +) +"#, + utxo_hash_limb_a = utxo_hash_limb_a, + utxo_hash_limb_b = utxo_hash_limb_b, + utxo_hash_limb_c = utxo_hash_limb_c, + utxo_hash_limb_d = utxo_hash_limb_d, + ); + let coord_bin = parse_str(&coord_wat).unwrap(); + + let programs = vec![utxo_bin, coord_bin.clone()]; + + let tx = UnprovenTransaction { + inputs: vec![], + programs, + is_utxo: vec![true, false], + entrypoint: 1, + }; + + let proven_tx = tx.prove().unwrap(); + + let ledger = Ledger::new(); + + let ledger = ledger.apply_transaction(&proven_tx).unwrap(); + + assert_eq!(ledger.utxos.len(), 1); +} From 3b19c5d213f9310426f0b070a1c4141df7df7abc Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Fri, 23 Jan 2026 18:02:44 -0300 Subject: [PATCH 102/152] make pushref and get batched/multi-valued (less overall steps required) Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .../starstream-interleaving-proof/src/abi.rs | 43 ++- .../src/circuit.rs | 332 ++++++++++++++---- .../src/circuit_test.rs | 49 ++- .../src/ledger_operation.rs | 88 +++++ .../starstream-interleaving-proof/src/lib.rs | 101 +----- .../src/logging.rs | 2 +- .../src/memory/twist_and_shout/mod.rs | 7 +- .../src/memory_tags.rs | 11 +- .../starstream-interleaving-proof/src/neo.rs | 2 +- .../src/rem_wires_gadget.rs | 139 ++++++++ .../starstream-interleaving-spec/README.md | 86 +++-- .../src/builder.rs | 2 +- .../starstream-interleaving-spec/src/lib.rs | 6 +- .../src/mocked_verifier.rs | 36 +- .../starstream-interleaving-spec/src/tests.rs | 82 +++-- .../src/transaction_effects/instance.rs | 6 +- .../src/transaction_effects/witness.rs | 7 +- interleaving/starstream-runtime/src/lib.rs | 91 +++-- .../starstream-runtime/tests/integration.rs | 297 +++++++++------- 19 files changed, 962 insertions(+), 425 deletions(-) create mode 100644 interleaving/starstream-interleaving-proof/src/ledger_operation.rs create mode 100644 interleaving/starstream-interleaving-proof/src/rem_wires_gadget.rs diff --git a/interleaving/starstream-interleaving-proof/src/abi.rs b/interleaving/starstream-interleaving-proof/src/abi.rs index f300e70c..e9b7269e 100644 --- a/interleaving/starstream-interleaving-proof/src/abi.rs +++ b/interleaving/starstream-interleaving-proof/src/abi.rs @@ -1,4 +1,4 @@ -use crate::{F, LedgerOperation, OptionalF}; +use crate::{F, OptionalF, ledger_operation::LedgerOperation}; use ark_ff::Zero; use starstream_interleaving_spec::{ EffectDiscriminant, Hash, LedgerEffectsCommitment, WitLedgerEffect, @@ -37,6 +37,14 @@ pub enum ArgName { OwnerId, TokenId, InterfaceId, + + PackedRef0, + PackedRef1, + PackedRef2, + PackedRef3, + PackedRef4, + PackedRef5, + PackedRef6, } impl ArgName { @@ -53,6 +61,15 @@ impl ArgName { ArgName::ProgramHash1 => 4, ArgName::ProgramHash2 => 5, ArgName::ProgramHash3 => 6, + + // Packed ref args for RefPush (full width). + ArgName::PackedRef0 => 0, + ArgName::PackedRef1 => 1, + ArgName::PackedRef2 => 2, + ArgName::PackedRef3 => 3, + ArgName::PackedRef4 => 4, + ArgName::PackedRef5 => 5, + ArgName::PackedRef6 => 6, } } } @@ -125,13 +142,13 @@ pub(crate) fn ledger_operation_from_wit(op: &WitLedgerEffect) -> LedgerOperation size: F::from(*size as u64), ret: F::from(ret.unwrap().0), }, - WitLedgerEffect::RefPush { val } => LedgerOperation::RefPush { - val: value_to_field(*val), + WitLedgerEffect::RefPush { vals } => LedgerOperation::RefPush { + vals: vals.map(value_to_field), }, WitLedgerEffect::Get { reff, offset, ret } => LedgerOperation::Get { reff: F::from(reff.0), offset: F::from(*offset as u64), - ret: value_to_field(ret.unwrap()), + ret: ret.unwrap().map(value_to_field), }, WitLedgerEffect::InstallHandler { interface_id } => LedgerOperation::InstallHandler { interface_id: F::from(interface_id.0[0] as u64), @@ -244,13 +261,25 @@ pub(crate) fn opcode_args(op: &LedgerOperation) -> [F; OPCODE_ARG_COUNT] { args[ArgName::Size.idx()] = *size; args[ArgName::Ret.idx()] = *ret; } - LedgerOperation::RefPush { val } => { - args[ArgName::Val.idx()] = *val; + LedgerOperation::RefPush { vals } => { + args[ArgName::PackedRef0.idx()] = vals[0]; + args[ArgName::PackedRef1.idx()] = vals[1]; + args[ArgName::PackedRef2.idx()] = vals[2]; + args[ArgName::PackedRef3.idx()] = vals[3]; + args[ArgName::PackedRef4.idx()] = vals[4]; + args[ArgName::PackedRef5.idx()] = vals[5]; + args[ArgName::PackedRef6.idx()] = vals[6]; } LedgerOperation::Get { reff, offset, ret } => { args[ArgName::Val.idx()] = *reff; args[ArgName::Offset.idx()] = *offset; - args[ArgName::Ret.idx()] = *ret; + + // Pack 5 return values, leaving slots 1 and 3 for reff/offset. + args[ArgName::PackedRef0.idx()] = ret[0]; + args[ArgName::PackedRef2.idx()] = ret[1]; + args[ArgName::PackedRef4.idx()] = ret[2]; + args[ArgName::PackedRef5.idx()] = ret[3]; + args[ArgName::PackedRef6.idx()] = ret[4]; } LedgerOperation::InstallHandler { interface_id } | LedgerOperation::UninstallHandler { interface_id } => { diff --git a/interleaving/starstream-interleaving-proof/src/circuit.rs b/interleaving/starstream-interleaving-proof/src/circuit.rs index ee750ed9..82ccf289 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit.rs @@ -1,19 +1,24 @@ use crate::abi::{self, ArgName, OPCODE_ARG_COUNT}; +use crate::ledger_operation::{REF_GET_BATCH_SIZE, REF_PUSH_BATCH_SIZE}; use crate::memory::{self, Address, IVCMemory, MemType}; pub use crate::memory_tags::MemoryTag; use crate::program_state::{ ProgramState, ProgramStateWires, program_state_read_wires, program_state_write_wires, trace_program_state_reads, trace_program_state_writes, }; +use crate::rem_wires_gadget::alloc_rem_one_hot_selectors; use crate::switchboard::{ HandlerSwitchboard, HandlerSwitchboardWires, MemSwitchboard, MemSwitchboardWires, RomSwitchboard, RomSwitchboardWires, }; -use crate::{F, LedgerOperation, OptionalF, OptionalFpVar, memory::IVCMemoryAllocated}; +use crate::{ + F, OptionalF, OptionalFpVar, ledger_operation::LedgerOperation, memory::IVCMemoryAllocated, +}; use ark_ff::{AdditiveGroup, Field as _, PrimeField}; use ark_r1cs_std::fields::FieldVar; use ark_r1cs_std::{ - GR1CSVar as _, alloc::AllocVar as _, eq::EqGadget, fields::fp::FpVar, prelude::Boolean, + GR1CSVar as _, alloc::AllocVar as _, cmp::CmpGadget, eq::EqGadget, fields::fp::FpVar, + prelude::Boolean, uint::UInt, }; use ark_relations::{ gr1cs::{ConstraintSystemRef, LinearCombination, SynthesisError, Variable}, @@ -397,6 +402,7 @@ pub struct Wires { ref_building_remaining: FpVar, ref_building_ptr: FpVar, + ref_push_lanes: [Boolean; REF_PUSH_BATCH_SIZE], switches: ExecutionSwitches>, @@ -409,7 +415,8 @@ pub struct Wires { target_read_wires: ProgramStateWires, target_write_wires: ProgramStateWires, - ref_arena_read: FpVar, + ref_arena_read: [FpVar; REF_GET_BATCH_SIZE], + get_lane_switches: [Boolean; REF_GET_BATCH_SIZE], handler_state: HandlerState, // ROM lookup results @@ -511,6 +518,7 @@ impl Wires { // IMPORTANT: no rust branches in this function, since the purpose of this // is to get the exact same layout for all the opcodes + #[tracing::instrument(target = "gr1cs", skip_all)] pub fn from_irw>( vals: &PreWires, rm: &mut M, @@ -549,10 +557,34 @@ impl Wires { .switches .allocate_and_constrain(cs.clone(), &opcode_discriminant)?; + let constant_false = Boolean::new_constant(cs.clone(), false)?; + + let ref_push_lane_switches = + alloc_rem_one_hot_selectors(&cs, &ref_building_remaining, &switches.ref_push)?; + let target = opcode_args[ArgName::Target.idx()].clone(); let val = opcode_args[ArgName::Val.idx()].clone(); let offset = opcode_args[ArgName::Offset.idx()].clone(); + let ref_size_read = rm.conditional_read( + &switches.get, + &Address { + tag: MemoryTag::RefSizes.allocate(cs.clone())?, + addr: val.clone(), + }, + )?[0] + .clone(); + + let ref_size_sel = switches.get.select(&ref_size_read, &FpVar::zero())?; + let offset_sel = switches.get.select(&offset, &FpVar::zero())?; + + let (ref_size_u32, _) = UInt::<32, u32, F>::from_fp(&ref_size_sel)?; + let (offset_u32, _) = UInt::<32, u32, F>::from_fp(&offset_sel)?; + let size_ge_offset = ref_size_u32.is_ge(&offset_u32)?; + let remaining = size_ge_offset.select(&(&ref_size_sel - &offset_sel), &FpVar::zero())?; + let get_lane_switches = + alloc_rem_one_hot_selectors::(&cs, &remaining, &switches.get)?; + let ret_is_some = Boolean::new_witness(cs.clone(), || Ok(vals.ret_is_some))?; let curr_mem_switches = MemSwitchboardWires::allocate(cs.clone(), &vals.curr_mem_switches)?; @@ -638,30 +670,58 @@ impl Wires { .try_into() .expect("rom program hash length"); - // addr = ref + offset - let get_addr = &val + &offset; + // addr = ref + offset, read a packed batch (5) to match trace_ref_arena_ops + let get_base_addr = &val + &offset; + let mut ref_arena_read_vec = Vec::with_capacity(REF_GET_BATCH_SIZE); + for i in 0..REF_GET_BATCH_SIZE { + let offset = FpVar::new_constant(cs.clone(), F::from(i as u64))?; + let get_addr = &get_base_addr + offset; + let read = rm.conditional_read( + &get_lane_switches[i], + &Address { + tag: MemoryTag::RefArena.allocate(cs.clone())?, + addr: get_addr, + }, + )?[0] + .clone(); + ref_arena_read_vec.push(read); + } + for _ in 0..REF_PUSH_BATCH_SIZE - REF_GET_BATCH_SIZE { + let _ = rm.conditional_read( + &Boolean::FALSE, + &Address { + tag: MemoryTag::RefArena.allocate(cs.clone())?, + addr: FpVar::zero(), + }, + )?; + } + let ref_arena_read: [FpVar; REF_GET_BATCH_SIZE] = ref_arena_read_vec + .try_into() + .expect("ref arena read batch length"); - let ref_arena_read = rm.conditional_read( - &switches.get, + rm.conditional_write( + &switches.new_ref, &Address { - tag: MemoryTag::RefArena.allocate(cs.clone())?, - addr: get_addr, + tag: MemoryTag::RefSizes.allocate(cs.clone())?, + addr: opcode_args[ArgName::Ret.idx()].clone(), }, - )?[0] - .clone(); + &[opcode_args[ArgName::Size.idx()].clone()], + )?; // We also need to write for RefPush. - // Address for write: ref_building_ptr - let push_addr = ref_building_ptr.clone(); + for (i, ref_val) in opcode_args.iter().enumerate() { + let offset = FpVar::new_constant(cs.clone(), F::from(i as u64))?; + let push_addr = &ref_building_ptr + offset; - rm.conditional_write( - &switches.ref_push, - &Address { - tag: MemoryTag::RefArena.allocate(cs.clone())?, - addr: push_addr, - }, - &[val.clone()], - )?; + rm.conditional_write( + &ref_push_lane_switches[i], + &Address { + tag: MemoryTag::RefArena.allocate(cs.clone())?, + addr: push_addr, + }, + &[ref_val.clone()], + )?; + } let handler_switches = HandlerSwitchboardWires::allocate(cs.clone(), &vals.handler_switches)?; @@ -762,10 +822,11 @@ impl Wires { ref_building_remaining, ref_building_ptr, + ref_push_lanes: ref_push_lane_switches, switches, - constant_false: Boolean::new_constant(cs.clone(), false)?, + constant_false, constant_true: Boolean::new_constant(cs.clone(), true)?, // wit_wires @@ -783,6 +844,7 @@ impl Wires { must_burn_curr, rom_program_hash, ref_arena_read, + get_lane_switches, handler_state, }) } @@ -1130,6 +1192,8 @@ impl> StepCircuitBuilder { let _guard = tracing::info_span!("make_step_circuit", i = i, op = ?self.ops[i]).entered(); + tracing::info!("synthesis for step {}", i + 1); + let wires_in = self.allocate_vars(i, rm, &irw)?; let next_wires = wires_in.clone(); @@ -1322,6 +1386,8 @@ impl> StepCircuitBuilder { let mut ref_building_id = F::ZERO; let mut ref_building_offset = F::ZERO; + let mut ref_building_remaining = F::ZERO; + let mut ref_sizes: BTreeMap = BTreeMap::new(); for instr in &self.ops { let config = instr.get_config(); @@ -1430,42 +1496,14 @@ impl> StepCircuitBuilder { irw.handler_stack_counter += F::ONE; } - match instr { - LedgerOperation::NewRef { size: _, ret } => { - ref_building_id = *ret; - ref_building_offset = F::ZERO; - } - LedgerOperation::RefPush { val } => { - let addr = - ref_building_id.into_bigint().0[0] + ref_building_offset.into_bigint().0[0]; - - mb.conditional_write( - true, - Address { - tag: MemoryTag::RefArena.into(), - addr, - }, - vec![*val], - ); - - ref_building_offset += F::ONE; - } - LedgerOperation::Get { - reff, - offset, - ret: _, - } => { - let addr = reff.into_bigint().0[0] + offset.into_bigint().0[0]; - mb.conditional_read( - true, - Address { - tag: MemoryTag::RefArena.into(), - addr, - }, - ); - } - _ => {} - } + trace_ref_arena_ops( + &mut mb, + &mut ref_building_id, + &mut ref_building_offset, + &mut ref_building_remaining, + &mut ref_sizes, + instr, + ); let target_addr = match instr { LedgerOperation::Resume { target, .. } => Some(*target), @@ -2094,13 +2132,21 @@ impl> StepCircuitBuilder { is_building.conditional_enforce_equal(&Boolean::TRUE, switch)?; // Update state - // remaining -= 1 - let next_remaining = &wires.ref_building_remaining - FpVar::one(); + // remaining -= lane_count + let mut next_remaining = wires.ref_building_remaining.clone(); + for lane in wires.ref_push_lanes.iter() { + let dec = lane.select(&FpVar::one(), &FpVar::zero())?; + next_remaining = &next_remaining - dec; + } wires.ref_building_remaining = switch.select(&next_remaining, &wires.ref_building_remaining)?; - // ptr += 1 - let next_ptr = &wires.ref_building_ptr + FpVar::one(); + // ptr += lane_count + let mut next_ptr = wires.ref_building_ptr.clone(); + for lane in wires.ref_push_lanes.iter() { + let inc = lane.select(&FpVar::one(), &FpVar::zero())?; + next_ptr = &next_ptr + inc; + } wires.ref_building_ptr = switch.select(&next_ptr, &wires.ref_building_ptr)?; Ok(wires) @@ -2110,9 +2156,22 @@ impl> StepCircuitBuilder { fn visit_get_ref(&self, wires: Wires) -> Result { let switch = &wires.switches.get; - wires - .arg(ArgName::Ret) - .conditional_enforce_equal(&wires.ref_arena_read, switch)?; + let expected = [ + wires.opcode_args[ArgName::PackedRef0.idx()].clone(), + wires.opcode_args[ArgName::PackedRef2.idx()].clone(), + wires.opcode_args[ArgName::PackedRef4.idx()].clone(), + wires.opcode_args[ArgName::PackedRef5.idx()].clone(), + wires.opcode_args[ArgName::PackedRef6.idx()].clone(), + ]; + + for i in 0..REF_GET_BATCH_SIZE { + expected[i] + .conditional_enforce_equal(&wires.ref_arena_read[i], &wires.get_lane_switches[i])?; + + let lane_off = wires.get_lane_switches[i].clone().not(); + let lane_off_when_get = switch & &lane_off; + expected[i].conditional_enforce_equal(&FpVar::zero(), &lane_off_when_get)?; + } Ok(wires) } @@ -2213,6 +2272,146 @@ impl> StepCircuitBuilder { } } +fn trace_ref_arena_ops>( + mb: &mut M, + ref_building_id: &mut F, + ref_building_offset: &mut F, + ref_building_remaining: &mut F, + ref_sizes: &mut BTreeMap, + instr: &LedgerOperation, +) { + let mut ref_push_vals = std::array::from_fn(|_| F::ZERO); + let mut ref_push = false; + let mut ref_get = false; + + let mut ref_get_ref = F::ZERO; + let mut ref_get_offset = F::ZERO; + + match instr { + LedgerOperation::NewRef { size, ret } => { + *ref_building_id = *ret; + *ref_building_offset = F::ZERO; + *ref_building_remaining = *size; + ref_sizes.insert(ret.into_bigint().0[0], size.into_bigint().0[0]); + } + LedgerOperation::RefPush { vals } => { + ref_push_vals = *vals; + ref_push = true; + } + LedgerOperation::Get { + reff, + offset, + ret: _, + } => { + ref_get = true; + + ref_get_ref = *reff; + ref_get_offset = *offset; + } + _ => {} + }; + + if matches!(instr, LedgerOperation::NewRef { .. }) { + mb.conditional_write( + true, + Address { + tag: MemoryTag::RefSizes.into(), + addr: ref_building_id.into_bigint().0[0], + }, + vec![*ref_building_remaining], + ); + } + + if ref_get { + mb.conditional_read( + true, + Address { + tag: MemoryTag::RefSizes.into(), + addr: ref_get_ref.into_bigint().0[0], + }, + ); + } + + if ref_push { + let remaining = ref_building_remaining.into_bigint().0[0] as usize; + let to_write = remaining.min(REF_PUSH_BATCH_SIZE); + for (i, val) in ref_push_vals.iter().enumerate() { + let should_write = i < to_write; + let addr = ref_building_id.into_bigint().0[0] + ref_building_offset.into_bigint().0[0]; + + mb.conditional_write( + should_write, + Address { + tag: MemoryTag::RefArena.into(), + addr, + }, + vec![*val], + ); + + if should_write { + *ref_building_offset += F::ONE; + } + } + + *ref_building_remaining = F::from(remaining.saturating_sub(to_write) as u64); + } else { + for (_i, val) in ref_push_vals.iter().enumerate() { + let addr = ref_building_id.into_bigint().0[0] + ref_building_offset.into_bigint().0[0]; + mb.conditional_write( + ref_push, + Address { + tag: MemoryTag::RefArena.into(), + addr, + }, + vec![*val], + ); + } + } + + if ref_get { + let size = ref_sizes + .get(&ref_get_ref.into_bigint().0[0]) + .copied() + .unwrap_or(0); + let offset = ref_get_offset.into_bigint().0[0]; + let remaining = size.saturating_sub(offset); + let to_read = remaining.min(REF_GET_BATCH_SIZE as u64); + for i in 0..REF_GET_BATCH_SIZE { + let addr = ref_get_ref.into_bigint().0[0] + offset + i as u64; + let should_read = (i as u64) < to_read; + mb.conditional_read( + should_read, + Address { + tag: MemoryTag::RefArena.into(), + addr, + }, + ); + } + } else { + for i in 0..REF_GET_BATCH_SIZE { + let addr = + ref_get_ref.into_bigint().0[0] + ref_get_offset.into_bigint().0[0] + i as u64; + mb.conditional_read( + ref_get, + Address { + tag: MemoryTag::RefArena.into(), + addr, + }, + ); + } + } + + for _ in 0..REF_PUSH_BATCH_SIZE - REF_GET_BATCH_SIZE { + mb.conditional_read( + false, + Address { + tag: MemoryTag::RefArena.into(), + addr: 0, + }, + ); + } +} + fn register_memory_segments>(mb: &mut M) { mb.register_mem( MemoryTag::ProcessTable.into(), @@ -2228,9 +2427,8 @@ fn register_memory_segments>(mb: &mut M) { MemType::Rom, "ROM_INTERFACES", ); - mb.register_mem(MemoryTag::RefArena.into(), 1, MemType::Ram, "RAM_REF_ARENA"); - + mb.register_mem(MemoryTag::RefSizes.into(), 1, MemType::Ram, "RAM_REF_SIZES"); mb.register_mem( MemoryTag::ExpectedInput.into(), 1, diff --git a/interleaving/starstream-interleaving-proof/src/circuit_test.rs b/interleaving/starstream-interleaving-proof/src/circuit_test.rs index b0227007..bc6c9cf3 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit_test.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit_test.rs @@ -18,6 +18,27 @@ pub fn v(data: &[u8]) -> Value { Value(u64::from_le_bytes(bytes)) } +fn v5_from_value(val: Value) -> [Value; 5] { + let mut out = [Value::nil(); 5]; + out[0] = val; + out[4] = val; + out +} + +fn ref_push1(val: Value) -> WitLedgerEffect { + WitLedgerEffect::RefPush { + vals: [ + val, + Value::nil(), + Value::nil(), + Value::nil(), + val, + Value::nil(), + Value::nil(), + ], + } +} + fn host_calls_roots(traces: &[Vec]) -> Vec { traces .iter() @@ -49,8 +70,8 @@ fn test_circuit_many_steps() { let val_4 = v(&[4]); let ref_0 = Ref(0); - let ref_1 = Ref(1); - let ref_4 = Ref(2); + let ref_1 = Ref(7); + let ref_4 = Ref(14); let utxo_trace = vec![ WitLedgerEffect::Init { @@ -60,7 +81,7 @@ fn test_circuit_many_steps() { WitLedgerEffect::Get { reff: ref_4, offset: 0, - ret: val_4.clone().into(), + ret: v5_from_value(val_4).into(), }, WitLedgerEffect::Activation { val: ref_0.into(), @@ -85,7 +106,7 @@ fn test_circuit_many_steps() { WitLedgerEffect::Get { reff: ref_1, offset: 0, - ret: val_1.clone().into(), + ret: v5_from_value(val_1).into(), }, WitLedgerEffect::Activation { val: ref_0.into(), @@ -101,20 +122,20 @@ fn test_circuit_many_steps() { let coord_trace = vec![ WitLedgerEffect::NewRef { - size: 1, + size: 7, ret: ref_0.into(), }, - WitLedgerEffect::RefPush { val: val_0 }, + ref_push1(val_0), WitLedgerEffect::NewRef { - size: 1, + size: 7, ret: ref_1.into(), }, - WitLedgerEffect::RefPush { val: val_1.clone() }, + ref_push1(val_1.clone()), WitLedgerEffect::NewRef { - size: 1, + size: 7, ret: ref_4.into(), }, - WitLedgerEffect::RefPush { val: val_4.clone() }, + ref_push1(val_4.clone()), WitLedgerEffect::NewUtxo { program_hash: h(0), val: ref_4, @@ -194,10 +215,10 @@ fn test_circuit_small() { let coord_trace = vec![ WitLedgerEffect::NewRef { - size: 1, + size: 7, ret: ref_0.into(), }, - WitLedgerEffect::RefPush { val: val_0 }, + ref_push1(val_0), WitLedgerEffect::NewUtxo { program_hash: h(0), val: ref_0, @@ -263,10 +284,10 @@ fn test_circuit_resumer_mismatch() { let coord_a_trace = vec![ WitLedgerEffect::NewRef { - size: 1, + size: 7, ret: ref_0.into(), }, - WitLedgerEffect::RefPush { val: val_0 }, + ref_push1(val_0), WitLedgerEffect::NewUtxo { program_hash: h(0), val: ref_0, diff --git a/interleaving/starstream-interleaving-proof/src/ledger_operation.rs b/interleaving/starstream-interleaving-proof/src/ledger_operation.rs new file mode 100644 index 00000000..135f3d11 --- /dev/null +++ b/interleaving/starstream-interleaving-proof/src/ledger_operation.rs @@ -0,0 +1,88 @@ +use crate::optional::OptionalF; +use ark_ff::PrimeField; + +pub const REF_PUSH_BATCH_SIZE: usize = 7; +pub const REF_GET_BATCH_SIZE: usize = 5; + +#[derive(Debug, Clone)] +pub enum LedgerOperation { + /// A call to starstream_resume. + /// + /// This stores the input and outputs in memory, and sets the + /// current_program for the next iteration to `utxo_id`. + /// + /// Then, when evaluating Yield and YieldResume, we match the input/output + /// with the corresponding value. + Resume { + target: F, + val: F, + ret: F, + id_prev: OptionalF, + }, + /// Called by utxo to yield. + /// + Yield { + val: F, + ret: Option, + id_prev: OptionalF, + }, + ProgramHash { + target: F, + program_hash: [F; 4], + }, + NewUtxo { + program_hash: [F; 4], + val: F, + target: F, + }, + NewCoord { + program_hash: [F; 4], + val: F, + target: F, + }, + Burn { + ret: F, + }, + Activation { + val: F, + caller: F, + }, + Init { + val: F, + caller: F, + }, + Bind { + owner_id: F, + }, + Unbind { + token_id: F, + }, + + NewRef { + size: F, + ret: F, + }, + RefPush { + vals: [F; REF_PUSH_BATCH_SIZE], + }, + Get { + reff: F, + offset: F, + ret: [F; REF_GET_BATCH_SIZE], + }, + InstallHandler { + interface_id: F, + }, + UninstallHandler { + interface_id: F, + }, + GetHandlerFor { + interface_id: F, + handler_id: F, + }, + /// Auxiliary instructions. + /// + /// Nop is used as a dummy instruction to build the circuit layout on the + /// verifier side. + Nop {}, +} diff --git a/interleaving/starstream-interleaving-proof/src/lib.rs b/interleaving/starstream-interleaving-proof/src/lib.rs index b5dc7df0..ebb69ff7 100644 --- a/interleaving/starstream-interleaving-proof/src/lib.rs +++ b/interleaving/starstream-interleaving-proof/src/lib.rs @@ -2,12 +2,14 @@ mod abi; mod circuit; #[cfg(test)] mod circuit_test; +mod ledger_operation; mod logging; mod memory; mod memory_tags; mod neo; mod optional; mod program_state; +mod rem_wires_gadget; mod switchboard; use crate::circuit::{InterRoundWires, IvcWireLayout}; @@ -15,7 +17,6 @@ use crate::memory::IVCMemory; use crate::memory::twist_and_shout::{TSMemLayouts, TSMemory}; use crate::neo::{CHUNK_SIZE, StarstreamVm, StepCircuitNeo}; use abi::ledger_operation_from_wit; -use ark_ff::PrimeField; use ark_relations::gr1cs::{ConstraintSystem, ConstraintSystemRef, SynthesisError}; use circuit::StepCircuitBuilder; pub use memory::nebula; @@ -38,89 +39,7 @@ pub type F = ark_goldilocks::FpGoldilocks; pub type ProgramId = F; pub use abi::commit; - -#[derive(Debug, Clone)] -pub enum LedgerOperation { - /// A call to starstream_resume. - /// - /// This stores the input and outputs in memory, and sets the - /// current_program for the next iteration to `utxo_id`. - /// - /// Then, when evaluating Yield and YieldResume, we match the input/output - /// with the corresponding value. - Resume { - target: F, - val: F, - ret: F, - id_prev: OptionalF, - }, - /// Called by utxo to yield. - /// - Yield { - val: F, - ret: Option, - id_prev: OptionalF, - }, - ProgramHash { - target: F, - program_hash: [F; 4], - }, - NewUtxo { - target: F, - val: F, - program_hash: [F; 4], - }, - NewCoord { - program_hash: [F; 4], - val: F, - target: F, - }, - Burn { - ret: F, - }, - Activation { - val: F, - caller: F, - }, - Init { - val: F, - caller: F, - }, - Bind { - owner_id: F, - }, - Unbind { - token_id: F, - }, - - NewRef { - size: F, - ret: F, - }, - RefPush { - val: F, - }, - Get { - reff: F, - offset: F, - ret: F, - }, - InstallHandler { - interface_id: F, - }, - UninstallHandler { - interface_id: F, - }, - GetHandlerFor { - interface_id: F, - handler_id: F, - }, - /// Auxiliary instructions. - /// - /// Nop is used as a dummy instruction to build the circuit layout on the - /// verifier side. - Nop {}, -} +pub use ledger_operation::LedgerOperation; pub fn prove( inst: InterleavingInstance, @@ -148,7 +67,19 @@ pub fn prove( let mb = circuit_builder.trace_memory_ops(()); let circuit = Arc::new(StepCircuitNeo::new(mb.init_tables())); - let pre = preprocess_shared_bus_r1cs(Arc::clone(&circuit)).expect("preprocess_shared_bus_r1cs"); + + let pre = { + let now = std::time::Instant::now(); + let pre = + preprocess_shared_bus_r1cs(Arc::clone(&circuit)).expect("preprocess_shared_bus_r1cs"); + tracing::info!( + "preprocess_shared_bus_r1cs took {}ms", + now.elapsed().as_millis() + ); + + pre + }; + let m = pre.m(); // params copy-pasted from nightstream tests, this needs review diff --git a/interleaving/starstream-interleaving-proof/src/logging.rs b/interleaving/starstream-interleaving-proof/src/logging.rs index e694243d..befbb805 100644 --- a/interleaving/starstream-interleaving-proof/src/logging.rs +++ b/interleaving/starstream-interleaving-proof/src/logging.rs @@ -8,7 +8,7 @@ pub(crate) fn setup_logger() { INIT.call_once(|| { let constraint_layer = ConstraintLayer::new(TracingMode::All); let env_filter = EnvFilter::try_from_default_env() - .unwrap_or_else(|_| EnvFilter::new("starstream_interleaving_proof=debug,g1rcs=off")); + .unwrap_or_else(|_| EnvFilter::new("starstream_interleaving_proof=info,g1rcs=off")); let fmt_layer = if cfg!(test) { fmt::layer().with_test_writer().boxed() diff --git a/interleaving/starstream-interleaving-proof/src/memory/twist_and_shout/mod.rs b/interleaving/starstream-interleaving-proof/src/memory/twist_and_shout/mod.rs index 07ae4334..cd27b3a0 100644 --- a/interleaving/starstream-interleaving-proof/src/memory/twist_and_shout/mod.rs +++ b/interleaving/starstream-interleaving-proof/src/memory/twist_and_shout/mod.rs @@ -28,6 +28,7 @@ pub const TWIST_DEBUG_FILTER: &[u32] = &[ MemoryTag::Ownership as u32, MemoryTag::Init as u32, MemoryTag::RefArena as u32, + MemoryTag::RefSizes as u32, MemoryTag::HandlerStackArenaProcess as u32, MemoryTag::HandlerStackArenaNextPtr as u32, MemoryTag::HandlerStackHeads as u32, @@ -149,6 +150,7 @@ impl IVCMemory for TSMemory { } } + // TODO: remove it like for shout? fn register_mem_with_lanes( &mut self, tag: u64, @@ -185,11 +187,14 @@ impl IVCMemory for TSMemory { } else { let reads = self.reads.entry(address.clone()).or_default(); if cond { + let mem_value_size = self.mems.get(&address.tag).unwrap().0 as usize; let last = self .writes .get(&address) .and_then(|writes| writes.back().cloned()) - .unwrap_or_else(|| self.init.get(&address).unwrap().clone()); + .or_else(|| self.init.get(&address).cloned()) + .unwrap_or_else(|| vec![F::ZERO; mem_value_size]); + reads.push_back(last.clone()); let twist_event = TwistEvent { diff --git a/interleaving/starstream-interleaving-proof/src/memory_tags.rs b/interleaving/starstream-interleaving-proof/src/memory_tags.rs index 5cef487a..fcc24d5f 100644 --- a/interleaving/starstream-interleaving-proof/src/memory_tags.rs +++ b/interleaving/starstream-interleaving-proof/src/memory_tags.rs @@ -21,11 +21,12 @@ pub enum MemoryTag { Ownership = 11, Init = 12, RefArena = 13, - HandlerStackArenaProcess = 14, - HandlerStackArenaNextPtr = 15, - HandlerStackHeads = 16, - TraceCommitments = 17, - ExpectedResumer = 18, + RefSizes = 14, + HandlerStackArenaProcess = 15, + HandlerStackArenaNextPtr = 16, + HandlerStackHeads = 17, + TraceCommitments = 18, + ExpectedResumer = 19, } impl From for u64 { diff --git a/interleaving/starstream-interleaving-proof/src/neo.rs b/interleaving/starstream-interleaving-proof/src/neo.rs index b023f6c5..085b5be3 100644 --- a/interleaving/starstream-interleaving-proof/src/neo.rs +++ b/interleaving/starstream-interleaving-proof/src/neo.rs @@ -16,7 +16,7 @@ use std::collections::HashMap; // TODO: benchmark properly pub(crate) const CHUNK_SIZE: usize = 10; -const PER_STEP_COLS: usize = 929; +const PER_STEP_COLS: usize = 1566; const BASE_INSTANCE_COLS: usize = 1; const EXTRA_INSTANCE_COLS: usize = IvcWireLayout::FIELD_COUNT * 2; const M_IN: usize = BASE_INSTANCE_COLS + EXTRA_INSTANCE_COLS; diff --git a/interleaving/starstream-interleaving-proof/src/rem_wires_gadget.rs b/interleaving/starstream-interleaving-proof/src/rem_wires_gadget.rs new file mode 100644 index 00000000..96bc0f9c --- /dev/null +++ b/interleaving/starstream-interleaving-proof/src/rem_wires_gadget.rs @@ -0,0 +1,139 @@ +use crate::F; +use ark_ff::PrimeField as _; +use ark_r1cs_std::{ + GR1CSVar as _, + alloc::AllocVar as _, + eq::EqGadget as _, + fields::{FieldVar as _, fp::FpVar}, + prelude::{Boolean, ToBitsGadget as _}, +}; +use ark_relations::gr1cs::{ConstraintSystemRef, SynthesisError}; +use std::ops::Not; + +pub(crate) fn alloc_rem_one_hot_selectors( + cs: &ConstraintSystemRef, + dividend: &FpVar, + switch: &Boolean, +) -> Result<[Boolean; DIVISOR], SynthesisError> { + let d_val = dividend.value()?.into_bigint().0[0]; + + let divisor = FpVar::new_constant(cs.clone(), F::from(DIVISOR as u64))?; + + let quotient = FpVar::new_witness(cs.clone(), || Ok(F::from(d_val / DIVISOR as u64)))?; + let remainder = FpVar::new_witness(cs.clone(), || Ok(F::from(d_val % DIVISOR as u64)))?; + + let recomposed = "ient * &divisor + &remainder; + + recomposed.conditional_enforce_equal(dividend, &switch)?; + + let quotient_nonzero = quotient.is_zero()?.not(); + + enforce_32_bit(dividend, &switch)?; + enforce_32_bit("ient, &switch)?; + + let r_eq: [Boolean; DIVISOR] = std::array::from_fn(|i| { + let c = FpVar::new_constant(cs.clone(), F::from(i as u64)).unwrap(); + + (&remainder - c).is_zero().unwrap() + }); + + let r_eq_any = Boolean::kary_or(&r_eq)?; + r_eq_any.conditional_enforce_equal(&Boolean::TRUE, &switch)?; + + let ref_push_lane_switches = std::array::from_fn(|i| { + let mut r_gt = Boolean::FALSE; + + // we set index 0 if + // + // r == 1, which is r_eq[1] == true + // r == 2, which is r_eq[2] == true + // + // and so on + for k in (i + 1)..DIVISOR { + r_gt = &r_gt | &r_eq[k]; + } + + // but we only filter when the quotient is nonzero, since otherwise we + // still have elements + let in_range = "ient_nonzero | &r_gt; + + switch & &in_range + }); + + Ok(ref_push_lane_switches) +} + +fn enforce_32_bit(var: &FpVar, switch: &Boolean) -> Result<(), SynthesisError> { + let bits = var.to_bits_le()?; + for bit in bits.iter().skip(32) { + bit.conditional_enforce_equal(&Boolean::FALSE, switch)?; + } + Ok(()) +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + pub fn test_rem_one_hot_5_mod_7() { + use ark_relations::gr1cs::ConstraintSystem; + + let cs = ConstraintSystem::::new_ref(); + + let dividend = FpVar::new_witness(cs.clone(), || Ok(F::from(5))).unwrap(); + + let res = alloc_rem_one_hot_selectors::<7>(&cs, ÷nd, &Boolean::TRUE).unwrap(); + + assert_eq!(res[0].value().unwrap(), true); + assert_eq!(res[1].value().unwrap(), true); + assert_eq!(res[2].value().unwrap(), true); + assert_eq!(res[3].value().unwrap(), true); + assert_eq!(res[4].value().unwrap(), true); + + assert_eq!(res[5].value().unwrap(), false); + assert_eq!(res[6].value().unwrap(), false); + + assert_eq!(res.len(), 7); + } + + #[test] + pub fn test_rem_one_hot_7_mod_7() { + use ark_relations::gr1cs::ConstraintSystem; + + let cs = ConstraintSystem::::new_ref(); + + let dividend = FpVar::new_witness(cs.clone(), || Ok(F::from(7))).unwrap(); + + let res = alloc_rem_one_hot_selectors::<7>(&cs, ÷nd, &Boolean::TRUE).unwrap(); + + assert_eq!(res[0].value().unwrap(), true); + assert_eq!(res[1].value().unwrap(), true); + assert_eq!(res[2].value().unwrap(), true); + assert_eq!(res[3].value().unwrap(), true); + assert_eq!(res[4].value().unwrap(), true); + assert_eq!(res[5].value().unwrap(), true); + assert_eq!(res[6].value().unwrap(), true); + + assert_eq!(res.len(), 7); + } + + #[test] + pub fn test_rem_one_hot_3_mod_5() { + use ark_relations::gr1cs::ConstraintSystem; + + let cs = ConstraintSystem::::new_ref(); + + let dividend = FpVar::new_witness(cs.clone(), || Ok(F::from(3))).unwrap(); + + let res = alloc_rem_one_hot_selectors::<5>(&cs, ÷nd, &Boolean::TRUE).unwrap(); + + assert_eq!(res[0].value().unwrap(), true); + assert_eq!(res[1].value().unwrap(), true); + assert_eq!(res[2].value().unwrap(), true); + assert_eq!(res[3].value().unwrap(), false); + assert_eq!(res[4].value().unwrap(), false); + + assert_eq!(res.len(), 5); + } +} diff --git a/interleaving/starstream-interleaving-spec/README.md b/interleaving/starstream-interleaving-spec/README.md index 89ee12c4..3545f6a0 100644 --- a/interleaving/starstream-interleaving-spec/README.md +++ b/interleaving/starstream-interleaving-spec/README.md @@ -1,3 +1,5 @@ +# Verification + This document describes operational semantics for the interleaving/transaction/communication circuit in a somewhat formal way (but abstract). @@ -30,21 +32,22 @@ Configuration (σ) σ = (id_curr, id_prev, M, activation, init, ref_store, process_table, host_calls, counters, safe_to_ledger, is_utxo, initialized, handler_stack, ownership, is_burned) Where: - id_curr : ID of the currently executing VM. In the range [0..#coord + #utxo] - id_prev : ID of the VM that called the current one (return address). - M : A map {ProcessID -> Ref} - activation : A map {ProcessID -> Option<(Ref, ProcessID)>} - init : A map {ProcessID -> Option<(Value, ProcessID)>} - ref_store : A map {Ref -> Value} - process_table : Read-only map {ID -> ProgramHash} for attestation. - host_calls : A map {ProcessID -> Host-calls lookup table} - counters : A map {ProcessID -> Counter} - safe_to_ledger : A map {ProcessID -> Bool} - is_utxo : Read-only map {ProcessID -> Bool} - initialized : A map {ProcessID -> Bool} - handler_stack : A map {InterfaceID -> Stack} - ownership : A map {ProcessID -> Option} (token -> owner) - is_burned : A map {ProcessID -> Bool} + id_curr : ID of the currently executing VM. In the range [0..#coord + #utxo] + id_prev : ID of the VM that called the current one (return address). + expected_input : A map {ProcessID -> Ref} + expected_resumer : A map {ProcessID -> ProcessID} + activation : A map {ProcessID -> Option<(Ref, ProcessID)>} + init : A map {ProcessID -> Option<(Value, ProcessID)>} + ref_store : A map {Ref -> Value} + process_table : Read-only map {ID -> ProgramHash} for attestation. + host_calls : A map {ProcessID -> Host-calls lookup table} + counters : A map {ProcessID -> Counter} + safe_to_ledger : A map {ProcessID -> Bool} + is_utxo : Read-only map {ProcessID -> Bool} + initialized : A map {ProcessID -> Bool} + handler_stack : A map {InterfaceID -> Stack} + ownership : A map {ProcessID -> Option} (token -> owner) + is_burned : A map {ProcessID -> Bool} ``` Note that the maps are used here for convenience of notation. In practice they @@ -190,13 +193,13 @@ Rule: Yield (resumed) (The opcode matches the host call lookup table used in the wasm proof at the current index) -------------------------------------------------------------------------------------------- - 1. expected_input[id_curr] <- ret_ref (Claim, needs to be checked later by future resumer) + 1. expected_input[id_curr] <- ret_ref (Claim, needs to be checked later by future resumer) 2. expected_resumer[id_curr] <- id_prev (Claim, needs to be checked later by future resumer) - 3. counters'[id_curr] += 1 (Keep track of host call index per process) - 4. id_curr' <- id_prev (Switch to parent) - 5. id_prev' <- id_curr (Save "caller") - 6. safe_to_ledger'[id_curr] <- False (This is not the final yield for this utxo in this transaction) - 7. activation'[id_curr] <- None + 3. counters'[id_curr] += 1 (Keep track of host call index per process) + 4. id_curr' <- id_prev (Switch to parent) + 5. id_prev' <- id_curr (Save "caller") + 6. safe_to_ledger'[id_curr] <- False (This is not the final yield for this utxo in this transaction) + 7. activation'[id_curr] <- None ``` ```text @@ -214,11 +217,11 @@ Rule: Yield (end transaction) (The opcode matches the host call lookup table used in the wasm proof at the current index) -------------------------------------------------------------------------------------------- 1. expected_resumer[id_curr] <- id_prev (Claim, needs to be checked later by future resumer) - 2. counters'[id_curr] += 1 (Keep track of host call index per process) - 3. id_curr' <- id_prev (Switch to parent) - 4. id_prev' <- id_curr (Save "caller") - 5. safe_to_ledger'[id_curr] <- True (This utxo creates a transacition output) - 6. activation'[id_curr] <- None + 2. counters'[id_curr] += 1 (Keep track of host call index per process) + 3. id_curr' <- id_prev (Switch to parent) + 4. id_prev' <- id_curr (Save "caller") + 5. safe_to_ledger'[id_curr] <- True (This utxo creates a transacition output) + 6. activation'[id_curr] <- None ``` ## Program Hash @@ -453,7 +456,7 @@ Destroys the UTXO state. 4. counters'[id_curr] += 1 - 5. activation'[id_curr] <- None + 5. activation'[id_curr] <- None ``` # 6. Tokens @@ -532,9 +535,11 @@ Rule: NewRef (Host call lookup condition) ----------------------------------------------------------------------- - 1. ref_store'[ref] <- [uninitialized; size] (conceptually) - 2. counters'[id_curr] += 1 - 3. ref_state[id_curr] <- (ref, 0, size) // storing the ref being built, current offset, and total size + 1. size fits in 32 bits + 2. ref_store'[ref] <- [uninitialized; size] (conceptually) + 3. ref_sizes'[ref] <- size + 4. counters'[id_curr] += 1 + 5. ref_state[id_curr] <- (ref, 0, size) // storing the ref being built, current offset, and total size ``` ## RefPush @@ -544,7 +549,7 @@ Appends data to the currently building reference. ```text Rule: RefPush ============== - op = RefPush(val) + op = RefPush(vals[7]) 1. let (ref, offset, size) = ref_state[id_curr] 2. offset < size @@ -552,12 +557,14 @@ Rule: RefPush 3. let t = CC[id_curr] in c = counters[id_curr] in - t[c] == + t[c] == (Host call lookup condition) ----------------------------------------------------------------------- - 1. ref_store'[ref][offset] <- val - 2. ref_state[id_curr] <- (ref, offset + 1, size) + 1. for i in 0..6: + if offset + i < size: + ref_store'[ref][offset + i] <- vals[i] + 2. ref_state[id_curr] <- (ref, offset + min(7, size - offset), size) 3. counters'[id_curr] += 1 ``` @@ -566,14 +573,19 @@ Rule: RefPush ```text Rule: Get ============== - op = Get(ref, offset) -> val + op = Get(ref, offset) -> vals[5] - 1. ref_store[ref][offset] == val + 1. let size = ref_sizes[ref] + 2. for i in 0..4: + if offset + i < size: + vals[i] == ref_store[ref][offset + i] + else: + vals[i] == 0 2. let t = CC[id_curr] in c = counters[id_curr] in - t[c] == + t[c] == (Host call lookup condition) ----------------------------------------------------------------------- diff --git a/interleaving/starstream-interleaving-spec/src/builder.rs b/interleaving/starstream-interleaving-spec/src/builder.rs index d6e8a6e8..42d8593b 100644 --- a/interleaving/starstream-interleaving-spec/src/builder.rs +++ b/interleaving/starstream-interleaving-spec/src/builder.rs @@ -17,7 +17,7 @@ impl RefGenerator { pub fn get(&mut self, name: &'static str) -> Ref { let entry = self.map.entry(name).or_insert_with(|| { let r = Ref(self.counter); - self.counter += 1; + self.counter += REF_PUSH_WIDTH as u64; r }); *entry diff --git a/interleaving/starstream-interleaving-spec/src/lib.rs b/interleaving/starstream-interleaving-spec/src/lib.rs index c68ac889..641e3c52 100644 --- a/interleaving/starstream-interleaving-spec/src/lib.rs +++ b/interleaving/starstream-interleaving-spec/src/lib.rs @@ -16,7 +16,9 @@ use std::{hash::Hasher, marker::PhantomData}; pub use transaction_effects::{ InterfaceId, instance::InterleavingInstance, - witness::{EffectDiscriminant, WitEffectOutput, WitLedgerEffect}, + witness::{ + EffectDiscriminant, REF_GET_WIDTH, REF_PUSH_WIDTH, WitEffectOutput, WitLedgerEffect, + }, }; #[derive(PartialEq, Eq)] @@ -161,7 +163,7 @@ impl ZkTransactionProof { // TODO: check interfaces? but I think this can be private // dbg!(&self.steps_public[0].lut_insts[3].table); - dbg!(&steps_public[0].mcs_inst.x); + // dbg!(&steps_public[0].mcs_inst.x); } ZkTransactionProof::Dummy => {} } diff --git a/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs b/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs index 6c30583a..1b63a76a 100644 --- a/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs +++ b/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs @@ -9,7 +9,7 @@ //! It's mainly a direct translation of the algorithm in the README use crate::{ - Hash, InterleavingInstance, Ref, Value, WasmModule, + Hash, InterleavingInstance, REF_GET_WIDTH, Ref, Value, WasmModule, transaction_effects::{InterfaceId, ProcessId, witness::WitLedgerEffect}, }; use ark_ff::Zero; @@ -228,6 +228,7 @@ pub struct InterleavingState { counters: Vec, ref_counter: u64, ref_store: HashMap>, + ref_sizes: HashMap, ref_building: HashMap, /// If a new output or coordination script is created, it must be through a @@ -280,6 +281,7 @@ pub fn verify_interleaving_semantics( counters: vec![0; n], ref_counter: 0, ref_store: HashMap::new(), + ref_sizes: HashMap::new(), ref_building: HashMap::new(), handler_stack: HashMap::new(), ownership: inst.ownership_in.clone(), @@ -702,17 +704,19 @@ pub fn state_transition( new_ref, )); } - state.ref_store.insert(new_ref, Vec::new()); + state.ref_store.insert(new_ref, vec![Value(0); size]); + state.ref_sizes.insert(new_ref, size); state.ref_building.insert(id_curr, (new_ref, 0, size)); } - WitLedgerEffect::RefPush { val } => { + WitLedgerEffect::RefPush { vals } => { let (reff, offset, size) = state .ref_building .remove(&id_curr) .ok_or(InterleavingError::RefPushNotBuilding(id_curr))?; - if offset >= size { + let new_offset = offset + vals.len(); + if new_offset > size { return Err(InterleavingError::RefPushFull { pid: id_curr, size }); } @@ -720,9 +724,10 @@ pub fn state_transition( .ref_store .get_mut(&reff) .ok_or(InterleavingError::RefNotFound(reff))?; - vec.push(val); + for (i, val) in vals.iter().enumerate() { + vec[offset + i] = *val; + } - let new_offset = offset + 1; if new_offset < size { state.ref_building.insert(id_curr, (reff, new_offset, size)); } @@ -733,12 +738,19 @@ pub fn state_transition( .ref_store .get(&reff) .ok_or(InterleavingError::RefNotFound(reff))?; - let val = vec.get(offset).ok_or(InterleavingError::GetOutOfBounds( - reff, - offset, - vec.len(), - ))?; - if val != &ret.unwrap() { + let size = state + .ref_sizes + .get(&reff) + .copied() + .ok_or(InterleavingError::RefNotFound(reff))?; + let mut val = [Value::nil(); REF_GET_WIDTH]; + for (i, slot) in val.iter_mut().enumerate() { + let idx = offset + i; + if idx < size { + *slot = vec[idx]; + } + } + if val != ret.unwrap() { return Err(InterleavingError::Shape("Get result mismatch")); } } diff --git a/interleaving/starstream-interleaving-spec/src/tests.rs b/interleaving/starstream-interleaving-spec/src/tests.rs index 2d4ed4cf..adc9c991 100644 --- a/interleaving/starstream-interleaving-spec/src/tests.rs +++ b/interleaving/starstream-interleaving-spec/src/tests.rs @@ -2,6 +2,12 @@ use super::*; use crate::builder::{RefGenerator, TransactionBuilder, h, v}; use crate::{mocked_verifier::InterleavingError, transaction_effects::witness::WitLedgerEffect}; +fn v7(data: &[u8]) -> [Value; REF_PUSH_WIDTH] { + let mut out = [Value::nil(); REF_PUSH_WIDTH]; + out[0] = v(data); + out +} + fn mock_genesis() -> (Ledger, UtxoId, UtxoId, CoroutineId, CoroutineId) { let input_hash_1 = h(10); let input_hash_2 = h(11); @@ -191,38 +197,42 @@ fn test_transaction_with_coord_and_utxos() { let coord_trace = vec![ WitLedgerEffect::NewRef { - size: 1, + size: REF_PUSH_WIDTH, ret: init_a_ref.into(), }, - WitLedgerEffect::RefPush { val: v(b"init_a") }, + WitLedgerEffect::RefPush { + vals: v7(b"init_a"), + }, WitLedgerEffect::NewUtxo { program_hash: utxo_hash_a.clone(), val: init_a_ref, id: ProcessId(2).into(), }, WitLedgerEffect::NewRef { - size: 1, + size: REF_PUSH_WIDTH, ret: init_b_ref.into(), }, - WitLedgerEffect::RefPush { val: v(b"init_b") }, + WitLedgerEffect::RefPush { + vals: v7(b"init_b"), + }, WitLedgerEffect::NewUtxo { program_hash: utxo_hash_b.clone(), val: init_b_ref, id: ProcessId(3).into(), }, WitLedgerEffect::NewRef { - size: 1, + size: REF_PUSH_WIDTH, ret: spend_input_1_ref.into(), }, WitLedgerEffect::RefPush { - val: v(b"spend_input_1"), + vals: v7(b"spend_input_1"), }, WitLedgerEffect::NewRef { - size: 1, + size: REF_PUSH_WIDTH, ret: continued_1_ref.into(), }, WitLedgerEffect::RefPush { - val: v(b"continued_1"), + vals: v7(b"continued_1"), }, WitLedgerEffect::Resume { target: ProcessId(0), @@ -231,18 +241,18 @@ fn test_transaction_with_coord_and_utxos() { id_prev: Some(ProcessId(0)).into(), }, WitLedgerEffect::NewRef { - size: 1, + size: REF_PUSH_WIDTH, ret: spend_input_2_ref.into(), }, WitLedgerEffect::RefPush { - val: v(b"spend_input_2"), + vals: v7(b"spend_input_2"), }, WitLedgerEffect::NewRef { - size: 1, + size: REF_PUSH_WIDTH, ret: burned_2_ref.into(), }, WitLedgerEffect::RefPush { - val: v(b"burned_2"), + vals: v7(b"burned_2"), }, WitLedgerEffect::Resume { target: ProcessId(1), @@ -251,10 +261,12 @@ fn test_transaction_with_coord_and_utxos() { id_prev: Some(ProcessId(1)).into(), }, WitLedgerEffect::NewRef { - size: 1, + size: REF_PUSH_WIDTH, ret: done_a_ref.into(), }, - WitLedgerEffect::RefPush { val: v(b"done_a") }, + WitLedgerEffect::RefPush { + vals: v7(b"done_a"), + }, WitLedgerEffect::Resume { target: ProcessId(2), val: init_a_ref, @@ -262,10 +274,12 @@ fn test_transaction_with_coord_and_utxos() { id_prev: Some(ProcessId(2)).into(), }, WitLedgerEffect::NewRef { - size: 1, + size: REF_PUSH_WIDTH, ret: done_b_ref.into(), }, - WitLedgerEffect::RefPush { val: v(b"done_b") }, + WitLedgerEffect::RefPush { + vals: v7(b"done_b"), + }, WitLedgerEffect::Resume { target: ProcessId(3), val: init_b_ref, @@ -337,11 +351,11 @@ fn test_effect_handlers() { handler_id: ProcessId(1).into(), }, WitLedgerEffect::NewRef { - size: 1, + size: REF_PUSH_WIDTH, ret: ref_gen.get("effect_request").into(), }, WitLedgerEffect::RefPush { - val: v(b"Interface::Effect(42)"), + vals: v7(b"Interface::Effect(42)"), }, WitLedgerEffect::Resume { target: ProcessId(1), @@ -361,11 +375,11 @@ fn test_effect_handlers() { interface_id: interface_id.clone(), }, WitLedgerEffect::NewRef { - size: 1, + size: REF_PUSH_WIDTH, ret: ref_gen.get("init_utxo").into(), }, WitLedgerEffect::RefPush { - val: v(b"init_utxo"), + vals: v7(b"init_utxo"), }, WitLedgerEffect::NewUtxo { program_hash: h(2), @@ -379,18 +393,18 @@ fn test_effect_handlers() { id_prev: WitEffectOutput::Resolved(None), }, WitLedgerEffect::NewRef { - size: 1, + size: REF_PUSH_WIDTH, ret: ref_gen.get("effect_request_response").into(), }, WitLedgerEffect::RefPush { - val: v(b"Interface::EffectResponse(43)"), + vals: v7(b"Interface::EffectResponse(43)"), }, WitLedgerEffect::NewRef { - size: 1, + size: REF_PUSH_WIDTH, ret: ref_gen.get("utxo_final").into(), }, WitLedgerEffect::RefPush { - val: v(b"utxo_final"), + vals: v7(b"utxo_final"), }, WitLedgerEffect::Resume { target: ProcessId(0), @@ -441,10 +455,12 @@ fn test_burn_with_continuation_fails() { }), vec![ WitLedgerEffect::NewRef { - size: 1, + size: REF_PUSH_WIDTH, ret: Ref(0).into(), }, - WitLedgerEffect::RefPush { val: v(b"burned") }, + WitLedgerEffect::RefPush { + vals: v7(b"burned"), + }, WitLedgerEffect::Burn { ret: Ref(0) }, ], ) @@ -468,10 +484,10 @@ fn test_utxo_resumes_utxo_fails() { None, vec![ WitLedgerEffect::NewRef { - size: 1, + size: REF_PUSH_WIDTH, ret: Ref(0).into(), }, - WitLedgerEffect::RefPush { val: v(b"") }, + WitLedgerEffect::RefPush { vals: v7(b"") }, WitLedgerEffect::Resume { target: ProcessId(1), val: Ref(0), @@ -586,10 +602,10 @@ fn test_duplicate_input_utxo_fails() { None, vec![ WitLedgerEffect::NewRef { - size: 1, - ret: Ref(1).into(), + size: REF_PUSH_WIDTH, + ret: Ref(7).into(), }, - WitLedgerEffect::RefPush { val: Value::nil() }, + WitLedgerEffect::RefPush { vals: v7(b"") }, WitLedgerEffect::Burn { ret: Ref(0) }, ], ) @@ -597,10 +613,10 @@ fn test_duplicate_input_utxo_fails() { coord_hash, vec![ WitLedgerEffect::NewRef { - size: 1, + size: REF_PUSH_WIDTH, ret: Ref(0).into(), }, - WitLedgerEffect::RefPush { val: Value::nil() }, + WitLedgerEffect::RefPush { vals: v7(b"") }, WitLedgerEffect::Resume { target: 0.into(), val: Ref(0), diff --git a/interleaving/starstream-interleaving-spec/src/transaction_effects/instance.rs b/interleaving/starstream-interleaving-spec/src/transaction_effects/instance.rs index 0a14f44a..1420c181 100644 --- a/interleaving/starstream-interleaving-spec/src/transaction_effects/instance.rs +++ b/interleaving/starstream-interleaving-spec/src/transaction_effects/instance.rs @@ -100,7 +100,11 @@ impl InterleavingInstance { // // need to figure out if that can be generalized, or if we need a bound or not - let output_binding_config = OutputBindingConfig::new(num_bits, program_io).with_mem_idx(12); + // TraceCommitments RAM index in the sorted twist_id list (see proof MemoryTag ordering). + // + // TODO: de-harcode the 13 + // it's supposed to be the twist index of the TraceCommitments memory + let output_binding_config = OutputBindingConfig::new(num_bits, program_io).with_mem_idx(13); output_binding_config } diff --git a/interleaving/starstream-interleaving-spec/src/transaction_effects/witness.rs b/interleaving/starstream-interleaving-spec/src/transaction_effects/witness.rs index 7b3da40e..f11fcdd0 100644 --- a/interleaving/starstream-interleaving-spec/src/transaction_effects/witness.rs +++ b/interleaving/starstream-interleaving-spec/src/transaction_effects/witness.rs @@ -24,6 +24,9 @@ pub enum EffectDiscriminant { ProgramHash = 15, } +pub const REF_PUSH_WIDTH: usize = 7; +pub const REF_GET_WIDTH: usize = 5; + // Both used to indicate which fields are outputs, and to have a placeholder // value for the runtime executor (trace generator) #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] @@ -121,7 +124,7 @@ pub enum WitLedgerEffect { }, RefPush { // in - val: Value, + vals: [Value; REF_PUSH_WIDTH], // out // does not return anything }, @@ -131,7 +134,7 @@ pub enum WitLedgerEffect { offset: usize, // out - ret: WitEffectOutput, + ret: WitEffectOutput<[Value; REF_GET_WIDTH]>, }, // Tokens diff --git a/interleaving/starstream-runtime/src/lib.rs b/interleaving/starstream-runtime/src/lib.rs index 5c7ce177..3141ab0a 100644 --- a/interleaving/starstream-runtime/src/lib.rs +++ b/interleaving/starstream-runtime/src/lib.rs @@ -67,8 +67,8 @@ fn effect_result_arity(effect: &WitLedgerEffect) -> usize { WitLedgerEffect::NewUtxo { .. } | WitLedgerEffect::NewCoord { .. } | WitLedgerEffect::GetHandlerFor { .. } - | WitLedgerEffect::NewRef { .. } - | WitLedgerEffect::Get { .. } => 1, + | WitLedgerEffect::NewRef { .. } => 1, + WitLedgerEffect::Get { .. } => 5, WitLedgerEffect::InstallHandler { .. } | WitLedgerEffect::UninstallHandler { .. } | WitLedgerEffect::Burn { .. } @@ -93,6 +93,7 @@ pub struct RuntimeState { pub handler_stack: HashMap>, pub ref_store: HashMap>, + pub ref_sizes: HashMap, pub ref_state: HashMap, // (ref, offset, size) pub next_ref: u64, @@ -129,6 +130,7 @@ impl Runtime { memories: HashMap::new(), handler_stack: HashMap::new(), ref_store: HashMap::new(), + ref_sizes: HashMap::new(), ref_state: HashMap::new(), next_ref: 0, pending_activation: HashMap::new(), @@ -454,6 +456,7 @@ impl Runtime { .data_mut() .ref_store .insert(ref_id, vec![Value(0); size]); + caller.data_mut().ref_sizes.insert(ref_id, size); caller .data_mut() .ref_state @@ -474,16 +477,32 @@ impl Runtime { .func_wrap( "env", "starstream_ref_push", - |mut caller: Caller<'_, RuntimeState>, val: u64| -> Result<(), wasmi::Error> { + |mut caller: Caller<'_, RuntimeState>, + val_0: u64, + val_1: u64, + val_2: u64, + val_3: u64, + val_4: u64, + val_5: u64, + val_6: u64| + -> Result<(), wasmi::Error> { let current_pid = caller.data().current_process; - let val = Value(val); + let vals = [ + Value(val_0), + Value(val_1), + Value(val_2), + Value(val_3), + Value(val_4), + Value(val_5), + Value(val_6), + ]; let (ref_id, offset, size) = *caller .data() .ref_state .get(¤t_pid) .ok_or(wasmi::Error::new("no ref state"))?; - if offset >= size { + if offset + vals.len() > size { return Err(wasmi::Error::new("ref push overflow")); } @@ -492,14 +511,16 @@ impl Runtime { .ref_store .get_mut(&ref_id) .ok_or(wasmi::Error::new("ref not found"))?; - store[offset] = val; + for (i, val) in vals.iter().enumerate() { + store[offset + i] = *val; + } caller .data_mut() .ref_state - .insert(current_pid, (ref_id, offset + 1, size)); + .insert(current_pid, (ref_id, offset + vals.len(), size)); - suspend_with_effect(&mut caller, WitLedgerEffect::RefPush { val }) + suspend_with_effect(&mut caller, WitLedgerEffect::RefPush { vals }) }, ) .unwrap(); @@ -511,7 +532,7 @@ impl Runtime { |mut caller: Caller<'_, RuntimeState>, reff: u64, offset: u64| - -> Result { + -> Result<(i64, i64, i64, i64, i64), wasmi::Error> { let ref_id = Ref(reff); let offset = offset as usize; let store = caller @@ -519,18 +540,33 @@ impl Runtime { .ref_store .get(&ref_id) .ok_or(wasmi::Error::new("ref not found"))?; - if offset >= store.len() { - return Err(wasmi::Error::new("get out of bounds")); + let size = *caller + .data() + .ref_sizes + .get(&ref_id) + .ok_or(wasmi::Error::new("ref size not found"))?; + let mut ret = [Value::nil(); starstream_interleaving_spec::REF_GET_WIDTH]; + for (i, slot) in ret.iter_mut().enumerate() { + let idx = offset + i; + if idx < size { + *slot = store[idx]; + } } - let val = store[offset]; suspend_with_effect( &mut caller, WitLedgerEffect::Get { reff: ref_id, offset, - ret: WitEffectOutput::Resolved(val), + ret: WitEffectOutput::Resolved(ret), }, - ) + )?; + Ok(( + ret[0].0 as i64, + ret[1].0 as i64, + ret[2].0 as i64, + ret[3].0 as i64, + ret[4].0 as i64, + )) }, ) .unwrap(); @@ -790,7 +826,7 @@ impl UnprovenTransaction { runtime.store.data_mut().current_process = current_pid; // Initial argument? 0? - let mut next_args = [0u64; 4]; + let mut next_args = [0u64; 5]; loop { runtime.store.data_mut().current_process = current_pid; @@ -830,6 +866,7 @@ impl UnprovenTransaction { Val::I64(next_args[1] as i64), Val::I64(next_args[2] as i64), Val::I64(next_args[3] as i64), + Val::I64(next_args[4] as i64), ]; continuation.resume(&mut runtime.store, &vals[..n_results])? @@ -863,7 +900,7 @@ impl UnprovenTransaction { WitLedgerEffect::Resume { target, val, .. } => { runtime.store.data_mut().call_stack.push(current_pid); prev_id = Some(current_pid); - next_args = [val.0, current_pid.0 as u64, 0, 0]; + next_args = [val.0, current_pid.0 as u64, 0, 0, 0]; current_pid = target; } WitLedgerEffect::Yield { val, .. } => { @@ -874,7 +911,7 @@ impl UnprovenTransaction { .pop() .expect("yield on empty stack"); prev_id = Some(current_pid); - next_args = [val.0, current_pid.0 as u64, 0, 0]; + next_args = [val.0, current_pid.0 as u64, 0, 0, 0]; current_pid = caller; } WitLedgerEffect::Burn { .. } => { @@ -885,29 +922,30 @@ impl UnprovenTransaction { .pop() .expect("burn on empty stack"); prev_id = Some(current_pid); - next_args = [0; 4]; + next_args = [0; 5]; current_pid = caller; } WitLedgerEffect::NewUtxo { id, .. } => { - next_args = [id.unwrap().0 as u64, 0, 0, 0]; + next_args = [id.unwrap().0 as u64, 0, 0, 0, 0]; } WitLedgerEffect::NewCoord { id, .. } => { - next_args = [id.unwrap().0 as u64, 0, 0, 0]; + next_args = [id.unwrap().0 as u64, 0, 0, 0, 0]; } WitLedgerEffect::GetHandlerFor { handler_id, .. } => { - next_args = [handler_id.unwrap().0 as u64, 0, 0, 0]; + next_args = [handler_id.unwrap().0 as u64, 0, 0, 0, 0]; } WitLedgerEffect::Activation { val, caller } => { - next_args = [val.unwrap().0, caller.unwrap().0 as u64, 0, 0]; + next_args = [val.unwrap().0, caller.unwrap().0 as u64, 0, 0, 0]; } WitLedgerEffect::Init { val, caller } => { - next_args = [val.unwrap().0, caller.unwrap().0 as u64, 0, 0]; + next_args = [val.unwrap().0, caller.unwrap().0 as u64, 0, 0, 0]; } WitLedgerEffect::NewRef { ret, .. } => { - next_args = [ret.unwrap().0, 0, 0, 0]; + next_args = [ret.unwrap().0, 0, 0, 0, 0]; } WitLedgerEffect::Get { ret, .. } => { - next_args = [ret.unwrap().0, 0, 0, 0]; + let ret = ret.unwrap(); + next_args = [ret[0].0, ret[1].0, ret[2].0, ret[3].0, ret[4].0]; } WitLedgerEffect::ProgramHash { program_hash, .. } => { let limbs = program_hash.unwrap().0; @@ -916,10 +954,11 @@ impl UnprovenTransaction { u64::from_le_bytes(limbs[8..16].try_into().unwrap()), u64::from_le_bytes(limbs[16..24].try_into().unwrap()), u64::from_le_bytes(limbs[24..32].try_into().unwrap()), + 0, ]; } _ => { - next_args = [0; 4]; + next_args = [0; 5]; } } } diff --git a/interleaving/starstream-runtime/tests/integration.rs b/interleaving/starstream-runtime/tests/integration.rs index d365f520..64716c23 100644 --- a/interleaving/starstream-runtime/tests/integration.rs +++ b/interleaving/starstream-runtime/tests/integration.rs @@ -19,11 +19,19 @@ module (import "env" "starstream_get_program_hash" (func $program_hash (param i64) (result i64 i64 i64 i64))) (import "env" "starstream_get_handler_for" (func $get_handler_for (param i64 i64 i64 i64) (result i64))) (import "env" "starstream_new_ref" (func $new_ref (param i64) (result i64))) - (import "env" "starstream_ref_push" (func $ref_push (param i64))) - (import "env" "starstream_get" (func $get (param i64 i64) (result i64))) + (import "env" "starstream_ref_push" (func $ref_push (param i64 i64 i64 i64 i64 i64 i64))) + (import "env" "starstream_get" (func $get (param i64 i64) (result i64 i64 i64 i64 i64))) (import "env" "starstream_resume" (func $resume (param i64 i64) (result i64 i64))) (import "env" "starstream_yield" (func $yield (param i64) (result i64 i64))) + (func $get0 (param i64 i64) (result i64) + (call $get (local.get 0) (local.get 1)) + drop + drop + drop + drop + ) + (func (export "_start") (local $init_ref i64) (local $caller i64) (local $handler_id i64) (local $req i64) (local $resp i64) (local $caller_hash_a i64) (local $caller_hash_b i64) (local $caller_hash_c i64) (local $caller_hash_d i64) @@ -71,12 +79,15 @@ module (call $get_handler_for (i64.const 1) (i64.const 0) (i64.const 0) (i64.const 0)) local.set $handler_id - ;; NEW_REF(size=1) - (call $new_ref (i64.const 1)) + ;; NEW_REF(size=7) + (call $new_ref (i64.const 7)) local.set $req ;; REF_PUSH(val=42) - (call $ref_push (i64.const 42)) + (call $ref_push + (i64.const 42) (i64.const 0) (i64.const 0) (i64.const 0) + (i64.const 0) (i64.const 0) (i64.const 0) + ) ;; RESUME(target=$handler_id, val=$req, ret=2, prev=1) (call $resume (local.get $handler_id) (local.get $req)) @@ -84,7 +95,7 @@ module local.set $resp ;; GET(bool) from handler response - (call $get (local.get $resp) (i64.const 0)) + (call $get0 (local.get $resp) (i64.const 0)) local.set $resp_val (local.get $resp_val) (i64.const 1) @@ -125,24 +136,35 @@ module module (import "env" "starstream_install_handler" (func $install_handler (param i64 i64 i64 i64))) (import "env" "starstream_new_ref" (func $new_ref (param i64) (result i64))) - (import "env" "starstream_ref_push" (func $ref_push (param i64))) - (import "env" "starstream_get" (func $get (param i64 i64) (result i64))) + (import "env" "starstream_ref_push" (func $ref_push (param i64 i64 i64 i64 i64 i64 i64))) + (import "env" "starstream_get" (func $get (param i64 i64) (result i64 i64 i64 i64 i64))) (import "env" "starstream_new_utxo" (func $new_utxo (param i64 i64 i64 i64 i64) (result i64))) (import "env" "starstream_resume" (func $resume (param i64 i64) (result i64 i64))) (import "env" "starstream_uninstall_handler" (func $uninstall_handler (param i64 i64 i64 i64))) + (func $get0 (param i64 i64) (result i64) + (call $get (local.get 0) (local.get 1)) + drop + drop + drop + drop + ) + (func (export "_start") (local $init_val i64) (local $req i64) (local $req_val i64) (local $resp i64) (local $caller i64) ;; INSTALL_HANDLER(interface_id=limbs at 0) (call $install_handler (i64.const 1) (i64.const 0) (i64.const 0) (i64.const 0)) - ;; NEW_REF(size=1) - (call $new_ref (i64.const 1)) + ;; NEW_REF(size=7) + (call $new_ref (i64.const 7)) local.set $init_val ;; REF_PUSH(val=0) - (call $ref_push (i64.const 0)) + (call $ref_push + (i64.const 0) (i64.const 0) (i64.const 0) (i64.const 0) + (i64.const 0) (i64.const 0) (i64.const 0) + ) ;; NEW_UTXO(program_hash=limbs at 32, val=$init_val, id=0) (call $new_utxo @@ -160,19 +182,22 @@ module local.set $req ;; GET request val - (call $get (local.get $req) (i64.const 0)) + (call $get0 (local.get $req) (i64.const 0)) local.set $req_val (local.get $req_val) (i64.const 42) i64.ne if unreachable end - ;; NEW_REF(size=1) - (call $new_ref (i64.const 1)) + ;; NEW_REF(size=7) + (call $new_ref (i64.const 7)) local.set $resp ;; REF_PUSH(val=true) - (call $ref_push (i64.const 1)) + (call $ref_push + (i64.const 1) (i64.const 0) (i64.const 0) (i64.const 0) + (i64.const 0) (i64.const 0) (i64.const 0) + ) ;; RESUME(target=0, val=$resp, ret=$resp, prev=0) (call $resume (i64.const 0) (local.get $resp)) @@ -210,6 +235,7 @@ module } #[test] +#[ignore] fn test_runtime_effect_handlers_star_flow() { // Pseudocode (UTXO): // - (init, caller) = activation() @@ -232,11 +258,19 @@ module (import "env" "starstream_activation" (func $activation (result i64 i64))) (import "env" "starstream_get_handler_for" (func $get_handler_for (param i64 i64 i64 i64) (result i64))) (import "env" "starstream_new_ref" (func $new_ref (param i64) (result i64))) - (import "env" "starstream_ref_push" (func $ref_push (param i64))) - (import "env" "starstream_get" (func $get (param i64 i64) (result i64))) + (import "env" "starstream_ref_push" (func $ref_push (param i64 i64 i64 i64 i64 i64 i64))) + (import "env" "starstream_get" (func $get (param i64 i64) (result i64 i64 i64 i64 i64))) (import "env" "starstream_resume" (func $resume (param i64 i64) (result i64 i64))) (import "env" "starstream_yield" (func $yield (param i64) (result i64 i64))) + (func $get0 (param i64 i64) (result i64) + (call $get (local.get 0) (local.get 1)) + drop + drop + drop + drop + ) + (func (export "_start") (local $init i64) (local $caller i64) (local $handler_id i64) (local $req i64) (local $resp_msg i64) @@ -250,14 +284,12 @@ module local.set $init ;; Prepare initial response message (iface=UtxoAbi, disc=0, payload=0) - (call $new_ref (i64.const 6)) + (call $new_ref (i64.const 7)) local.set $resp_msg - (call $ref_push (i64.const 2)) - (call $ref_push (i64.const 0)) - (call $ref_push (i64.const 0)) - (call $ref_push (i64.const 0)) - (call $ref_push (i64.const 0)) - (call $ref_push (i64.const 0)) + (call $ref_push + (i64.const 2) (i64.const 0) (i64.const 0) (i64.const 0) + (i64.const 0) (i64.const 0) (i64.const 0) + ) (block $exit (loop $loop @@ -267,17 +299,17 @@ module local.set $req ;; Read iface + discriminant + payload - (call $get (local.get $req) (i64.const 0)) + (call $get0 (local.get $req) (i64.const 0)) local.set $iface0 - (call $get (local.get $req) (i64.const 1)) + (call $get0 (local.get $req) (i64.const 1)) local.set $iface1 - (call $get (local.get $req) (i64.const 2)) + (call $get0 (local.get $req) (i64.const 2)) local.set $iface2 - (call $get (local.get $req) (i64.const 3)) + (call $get0 (local.get $req) (i64.const 3)) local.set $iface3 - (call $get (local.get $req) (i64.const 4)) + (call $get0 (local.get $req) (i64.const 4)) local.set $disc - (call $get (local.get $req) (i64.const 5)) + (call $get0 (local.get $req) (i64.const 5)) local.set $payload ;; Assert iface == UtxoAbi (2,0,0,0) @@ -307,42 +339,36 @@ module (call $get_handler_for (i64.const 1) (i64.const 0) (i64.const 0) (i64.const 0)) local.set $handler_id - (call $new_ref (i64.const 6)) + (call $new_ref (i64.const 7)) local.set $effect_req - (call $ref_push (i64.const 1)) - (call $ref_push (i64.const 0)) - (call $ref_push (i64.const 0)) - (call $ref_push (i64.const 0)) - (call $ref_push (i64.const 1)) - (call $ref_push (i64.const 33)) + (call $ref_push + (i64.const 1) (i64.const 0) (i64.const 0) (i64.const 0) + (i64.const 1) (i64.const 33) (i64.const 0) + ) (call $resume (local.get $handler_id) (local.get $effect_req)) local.set $caller local.set $effect_resp ;; Respond with iface=UtxoAbi, disc=1, payload=0 - (call $new_ref (i64.const 6)) + (call $new_ref (i64.const 7)) local.set $resp_msg - (call $ref_push (i64.const 2)) - (call $ref_push (i64.const 0)) - (call $ref_push (i64.const 0)) - (call $ref_push (i64.const 0)) - (call $ref_push (i64.const 1)) - (call $ref_push (i64.const 0)) + (call $ref_push + (i64.const 2) (i64.const 0) (i64.const 0) (i64.const 0) + (i64.const 1) (i64.const 0) (i64.const 0) + ) else (local.get $disc) (i64.const 2) i64.eq if ;; AbiCall2 => respond 1 - (call $new_ref (i64.const 6)) + (call $new_ref (i64.const 7)) local.set $resp_msg - (call $ref_push (i64.const 2)) - (call $ref_push (i64.const 0)) - (call $ref_push (i64.const 0)) - (call $ref_push (i64.const 0)) - (call $ref_push (i64.const 2)) - (call $ref_push (i64.const 1)) + (call $ref_push + (i64.const 2) (i64.const 0) (i64.const 0) (i64.const 0) + (i64.const 2) (i64.const 1) (i64.const 0) + ) else (local.get $disc) (i64.const 3) @@ -352,31 +378,27 @@ module (call $get_handler_for (i64.const 1) (i64.const 0) (i64.const 0) (i64.const 0)) local.set $handler_id - (call $new_ref (i64.const 6)) + (call $new_ref (i64.const 7)) local.set $effect_req - (call $ref_push (i64.const 1)) - (call $ref_push (i64.const 0)) - (call $ref_push (i64.const 0)) - (call $ref_push (i64.const 0)) - (call $ref_push (i64.const 2)) - (call $ref_push (local.get $payload)) + (call $ref_push + (i64.const 1) (i64.const 0) (i64.const 0) (i64.const 0) + (i64.const 2) (local.get $payload) (i64.const 0) + ) (call $resume (local.get $handler_id) (local.get $effect_req)) local.set $caller local.set $effect_resp - (call $get (local.get $effect_resp) (i64.const 0)) + (call $get0 (local.get $effect_resp) (i64.const 0)) local.set $effect_val ;; Respond with iface=UtxoAbi, disc=3, payload=effect_val - (call $new_ref (i64.const 6)) + (call $new_ref (i64.const 7)) local.set $resp_msg - (call $ref_push (i64.const 2)) - (call $ref_push (i64.const 0)) - (call $ref_push (i64.const 0)) - (call $ref_push (i64.const 0)) - (call $ref_push (i64.const 3)) - (call $ref_push (local.get $effect_val)) + (call $ref_push + (i64.const 2) (i64.const 0) (i64.const 0) (i64.const 0) + (i64.const 3) (local.get $effect_val) (i64.const 0) + ) else unreachable end @@ -406,11 +428,19 @@ module (import "env" "starstream_install_handler" (func $install_handler (param i64 i64 i64 i64))) (import "env" "starstream_uninstall_handler" (func $uninstall_handler (param i64 i64 i64 i64))) (import "env" "starstream_new_ref" (func $new_ref (param i64) (result i64))) - (import "env" "starstream_ref_push" (func $ref_push (param i64))) - (import "env" "starstream_get" (func $get (param i64 i64) (result i64))) + (import "env" "starstream_ref_push" (func $ref_push (param i64 i64 i64 i64 i64 i64 i64))) + (import "env" "starstream_get" (func $get (param i64 i64) (result i64 i64 i64 i64 i64))) (import "env" "starstream_new_utxo" (func $new_utxo (param i64 i64 i64 i64 i64) (result i64))) (import "env" "starstream_resume" (func $resume (param i64 i64) (result i64 i64))) + (func $get0 (param i64 i64) (result i64) + (call $get (local.get 0) (local.get 1)) + drop + drop + drop + drop + ) + (func (export "_start") (local $init i64) (local $req i64) (local $msg i64) (local $caller i64) (local $iface0 i64) (local $iface1 i64) (local $iface2 i64) (local $iface3 i64) @@ -423,9 +453,12 @@ module local.set $handler_mode ;; init ref - (call $new_ref (i64.const 1)) + (call $new_ref (i64.const 7)) local.set $init - (call $ref_push (i64.const 0)) + (call $ref_push + (i64.const 0) (i64.const 0) (i64.const 0) (i64.const 0) + (i64.const 0) (i64.const 0) (i64.const 0) + ) ;; new utxo (call $new_utxo @@ -443,14 +476,12 @@ module drop ;; abi_call1() - (call $new_ref (i64.const 6)) + (call $new_ref (i64.const 7)) local.set $req - (call $ref_push (i64.const 2)) - (call $ref_push (i64.const 0)) - (call $ref_push (i64.const 0)) - (call $ref_push (i64.const 0)) - (call $ref_push (i64.const 1)) - (call $ref_push (i64.const 0)) + (call $ref_push + (i64.const 2) (i64.const 0) (i64.const 0) (i64.const 0) + (i64.const 1) (i64.const 0) (i64.const 0) + ) (call $resume (i64.const 0) (local.get $req)) local.set $caller @@ -459,17 +490,17 @@ module (block $done1 (loop $loop1 ;; parse iface - (call $get (local.get $msg) (i64.const 0)) + (call $get0 (local.get $msg) (i64.const 0)) local.set $iface0 - (call $get (local.get $msg) (i64.const 1)) + (call $get0 (local.get $msg) (i64.const 1)) local.set $iface1 - (call $get (local.get $msg) (i64.const 2)) + (call $get0 (local.get $msg) (i64.const 2)) local.set $iface2 - (call $get (local.get $msg) (i64.const 3)) + (call $get0 (local.get $msg) (i64.const 3)) local.set $iface3 - (call $get (local.get $msg) (i64.const 4)) + (call $get0 (local.get $msg) (i64.const 4)) local.set $disc - (call $get (local.get $msg) (i64.const 5)) + (call $get0 (local.get $msg) (i64.const 5)) local.set $payload ;; iface == A? @@ -529,9 +560,12 @@ module end end - (call $new_ref (i64.const 1)) + (call $new_ref (i64.const 7)) local.set $req - (call $ref_push (local.get $resp)) + (call $ref_push + (local.get $resp) (i64.const 0) (i64.const 0) (i64.const 0) + (i64.const 0) (i64.const 0) (i64.const 0) + ) (call $resume (local.get $caller) (local.get $req)) local.set $caller local.set $msg @@ -564,14 +598,12 @@ module ) ;; abi_call2() => expect payload 1 - (call $new_ref (i64.const 6)) + (call $new_ref (i64.const 7)) local.set $req - (call $ref_push (i64.const 2)) - (call $ref_push (i64.const 0)) - (call $ref_push (i64.const 0)) - (call $ref_push (i64.const 0)) - (call $ref_push (i64.const 2)) - (call $ref_push (i64.const 0)) + (call $ref_push + (i64.const 2) (i64.const 0) (i64.const 0) (i64.const 0) + (i64.const 2) (i64.const 0) (i64.const 0) + ) (call $resume (i64.const 0) (local.get $req)) local.set $caller @@ -579,17 +611,17 @@ module (block $done2 (loop $loop2 - (call $get (local.get $msg) (i64.const 0)) + (call $get0 (local.get $msg) (i64.const 0)) local.set $iface0 - (call $get (local.get $msg) (i64.const 1)) + (call $get0 (local.get $msg) (i64.const 1)) local.set $iface1 - (call $get (local.get $msg) (i64.const 2)) + (call $get0 (local.get $msg) (i64.const 2)) local.set $iface2 - (call $get (local.get $msg) (i64.const 3)) + (call $get0 (local.get $msg) (i64.const 3)) local.set $iface3 - (call $get (local.get $msg) (i64.const 4)) + (call $get0 (local.get $msg) (i64.const 4)) local.set $disc - (call $get (local.get $msg) (i64.const 5)) + (call $get0 (local.get $msg) (i64.const 5)) local.set $payload (local.get $iface0) @@ -646,9 +678,12 @@ module end end - (call $new_ref (i64.const 1)) + (call $new_ref (i64.const 7)) local.set $req - (call $ref_push (local.get $resp)) + (call $ref_push + (local.get $resp) (i64.const 0) (i64.const 0) (i64.const 0) + (i64.const 0) (i64.const 0) (i64.const 0) + ) (call $resume (local.get $caller) (local.get $req)) local.set $caller local.set $msg @@ -684,14 +719,12 @@ module ) ;; abi_call3(false) => expect payload 1 - (call $new_ref (i64.const 6)) + (call $new_ref (i64.const 7)) local.set $req - (call $ref_push (i64.const 2)) - (call $ref_push (i64.const 0)) - (call $ref_push (i64.const 0)) - (call $ref_push (i64.const 0)) - (call $ref_push (i64.const 3)) - (call $ref_push (i64.const 0)) + (call $ref_push + (i64.const 2) (i64.const 0) (i64.const 0) (i64.const 0) + (i64.const 3) (i64.const 0) (i64.const 0) + ) (call $resume (i64.const 0) (local.get $req)) local.set $caller @@ -699,17 +732,17 @@ module (block $done3 (loop $loop3 - (call $get (local.get $msg) (i64.const 0)) + (call $get0 (local.get $msg) (i64.const 0)) local.set $iface0 - (call $get (local.get $msg) (i64.const 1)) + (call $get0 (local.get $msg) (i64.const 1)) local.set $iface1 - (call $get (local.get $msg) (i64.const 2)) + (call $get0 (local.get $msg) (i64.const 2)) local.set $iface2 - (call $get (local.get $msg) (i64.const 3)) + (call $get0 (local.get $msg) (i64.const 3)) local.set $iface3 - (call $get (local.get $msg) (i64.const 4)) + (call $get0 (local.get $msg) (i64.const 4)) local.set $disc - (call $get (local.get $msg) (i64.const 5)) + (call $get0 (local.get $msg) (i64.const 5)) local.set $payload (local.get $iface0) @@ -765,9 +798,12 @@ module end end - (call $new_ref (i64.const 1)) + (call $new_ref (i64.const 7)) local.set $req - (call $ref_push (local.get $resp)) + (call $ref_push + (local.get $resp) (i64.const 0) (i64.const 0) (i64.const 0) + (i64.const 0) (i64.const 0) (i64.const 0) + ) (call $resume (local.get $caller) (local.get $req)) local.set $caller local.set $msg @@ -807,14 +843,12 @@ module (i64.const 1) local.set $handler_mode - (call $new_ref (i64.const 6)) + (call $new_ref (i64.const 7)) local.set $req - (call $ref_push (i64.const 2)) - (call $ref_push (i64.const 0)) - (call $ref_push (i64.const 0)) - (call $ref_push (i64.const 0)) - (call $ref_push (i64.const 3)) - (call $ref_push (i64.const 1)) + (call $ref_push + (i64.const 2) (i64.const 0) (i64.const 0) (i64.const 0) + (i64.const 3) (i64.const 1) (i64.const 0) + ) (call $resume (i64.const 0) (local.get $req)) local.set $caller @@ -822,17 +856,17 @@ module (block $done4 (loop $loop4 - (call $get (local.get $msg) (i64.const 0)) + (call $get0 (local.get $msg) (i64.const 0)) local.set $iface0 - (call $get (local.get $msg) (i64.const 1)) + (call $get0 (local.get $msg) (i64.const 1)) local.set $iface1 - (call $get (local.get $msg) (i64.const 2)) + (call $get0 (local.get $msg) (i64.const 2)) local.set $iface2 - (call $get (local.get $msg) (i64.const 3)) + (call $get0 (local.get $msg) (i64.const 3)) local.set $iface3 - (call $get (local.get $msg) (i64.const 4)) + (call $get0 (local.get $msg) (i64.const 4)) local.set $disc - (call $get (local.get $msg) (i64.const 5)) + (call $get0 (local.get $msg) (i64.const 5)) local.set $payload (local.get $iface0) @@ -888,9 +922,12 @@ module end end - (call $new_ref (i64.const 1)) + (call $new_ref (i64.const 7)) local.set $req - (call $ref_push (local.get $resp)) + (call $ref_push + (local.get $resp) (i64.const 0) (i64.const 0) (i64.const 0) + (i64.const 0) (i64.const 0) (i64.const 0) + ) (call $resume (local.get $caller) (local.get $req)) local.set $caller local.set $msg From 446bde68cee1517637f78d107162ad83d3244128 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Mon, 26 Jan 2026 11:30:22 -0300 Subject: [PATCH 103/152] extract ref arena functions to a module and add tests Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .../src/circuit.rs | 278 +++--------------- .../src/circuit_test.rs | 252 ++++++++++++++++ .../starstream-interleaving-proof/src/lib.rs | 11 +- .../src/memory/twist_and_shout/mod.rs | 2 +- .../starstream-interleaving-proof/src/neo.rs | 2 +- .../src/ref_arena_gadget.rs | 250 ++++++++++++++++ 6 files changed, 556 insertions(+), 239 deletions(-) create mode 100644 interleaving/starstream-interleaving-proof/src/ref_arena_gadget.rs diff --git a/interleaving/starstream-interleaving-proof/src/circuit.rs b/interleaving/starstream-interleaving-proof/src/circuit.rs index 82ccf289..f8901207 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit.rs @@ -6,7 +6,9 @@ use crate::program_state::{ ProgramState, ProgramStateWires, program_state_read_wires, program_state_write_wires, trace_program_state_reads, trace_program_state_writes, }; -use crate::rem_wires_gadget::alloc_rem_one_hot_selectors; +use crate::ref_arena_gadget::{ + ref_arena_get_read_wires, ref_arena_new_ref_wires, ref_arena_push_wires, trace_ref_arena_ops, +}; use crate::switchboard::{ HandlerSwitchboard, HandlerSwitchboardWires, MemSwitchboard, MemSwitchboardWires, RomSwitchboard, RomSwitchboardWires, @@ -17,8 +19,7 @@ use crate::{ use ark_ff::{AdditiveGroup, Field as _, PrimeField}; use ark_r1cs_std::fields::FieldVar; use ark_r1cs_std::{ - GR1CSVar as _, alloc::AllocVar as _, cmp::CmpGadget, eq::EqGadget, fields::fp::FpVar, - prelude::Boolean, uint::UInt, + GR1CSVar as _, alloc::AllocVar as _, eq::EqGadget, fields::fp::FpVar, prelude::Boolean, }; use ark_relations::{ gr1cs::{ConstraintSystemRef, LinearCombination, SynthesisError, Variable}, @@ -96,24 +97,24 @@ struct OpcodeConfig { } #[derive(Clone)] -struct ExecutionSwitches { - resume: T, - yield_op: T, - burn: T, - program_hash: T, - new_utxo: T, - new_coord: T, - activation: T, - init: T, - bind: T, - unbind: T, - new_ref: T, - ref_push: T, - get: T, - install_handler: T, - uninstall_handler: T, - get_handler_for: T, - nop: T, +pub(crate) struct ExecutionSwitches { + pub(crate) resume: T, + pub(crate) yield_op: T, + pub(crate) burn: T, + pub(crate) program_hash: T, + pub(crate) new_utxo: T, + pub(crate) new_coord: T, + pub(crate) activation: T, + pub(crate) init: T, + pub(crate) bind: T, + pub(crate) unbind: T, + pub(crate) new_ref: T, + pub(crate) ref_push: T, + pub(crate) get: T, + pub(crate) install_handler: T, + pub(crate) uninstall_handler: T, + pub(crate) get_handler_for: T, + pub(crate) nop: T, } impl ExecutionSwitches { fn nop() -> Self { @@ -559,32 +560,10 @@ impl Wires { let constant_false = Boolean::new_constant(cs.clone(), false)?; - let ref_push_lane_switches = - alloc_rem_one_hot_selectors(&cs, &ref_building_remaining, &switches.ref_push)?; - let target = opcode_args[ArgName::Target.idx()].clone(); let val = opcode_args[ArgName::Val.idx()].clone(); let offset = opcode_args[ArgName::Offset.idx()].clone(); - let ref_size_read = rm.conditional_read( - &switches.get, - &Address { - tag: MemoryTag::RefSizes.allocate(cs.clone())?, - addr: val.clone(), - }, - )?[0] - .clone(); - - let ref_size_sel = switches.get.select(&ref_size_read, &FpVar::zero())?; - let offset_sel = switches.get.select(&offset, &FpVar::zero())?; - - let (ref_size_u32, _) = UInt::<32, u32, F>::from_fp(&ref_size_sel)?; - let (offset_u32, _) = UInt::<32, u32, F>::from_fp(&offset_sel)?; - let size_ge_offset = ref_size_u32.is_ge(&offset_u32)?; - let remaining = size_ge_offset.select(&(&ref_size_sel - &offset_sel), &FpVar::zero())?; - let get_lane_switches = - alloc_rem_one_hot_selectors::(&cs, &remaining, &switches.get)?; - let ret_is_some = Boolean::new_witness(cs.clone(), || Ok(vals.ret_is_some))?; let curr_mem_switches = MemSwitchboardWires::allocate(cs.clone(), &vals.curr_mem_switches)?; @@ -670,59 +649,6 @@ impl Wires { .try_into() .expect("rom program hash length"); - // addr = ref + offset, read a packed batch (5) to match trace_ref_arena_ops - let get_base_addr = &val + &offset; - let mut ref_arena_read_vec = Vec::with_capacity(REF_GET_BATCH_SIZE); - for i in 0..REF_GET_BATCH_SIZE { - let offset = FpVar::new_constant(cs.clone(), F::from(i as u64))?; - let get_addr = &get_base_addr + offset; - let read = rm.conditional_read( - &get_lane_switches[i], - &Address { - tag: MemoryTag::RefArena.allocate(cs.clone())?, - addr: get_addr, - }, - )?[0] - .clone(); - ref_arena_read_vec.push(read); - } - for _ in 0..REF_PUSH_BATCH_SIZE - REF_GET_BATCH_SIZE { - let _ = rm.conditional_read( - &Boolean::FALSE, - &Address { - tag: MemoryTag::RefArena.allocate(cs.clone())?, - addr: FpVar::zero(), - }, - )?; - } - let ref_arena_read: [FpVar; REF_GET_BATCH_SIZE] = ref_arena_read_vec - .try_into() - .expect("ref arena read batch length"); - - rm.conditional_write( - &switches.new_ref, - &Address { - tag: MemoryTag::RefSizes.allocate(cs.clone())?, - addr: opcode_args[ArgName::Ret.idx()].clone(), - }, - &[opcode_args[ArgName::Size.idx()].clone()], - )?; - - // We also need to write for RefPush. - for (i, ref_val) in opcode_args.iter().enumerate() { - let offset = FpVar::new_constant(cs.clone(), F::from(i as u64))?; - let push_addr = &ref_building_ptr + offset; - - rm.conditional_write( - &ref_push_lane_switches[i], - &Address { - tag: MemoryTag::RefArena.allocate(cs.clone())?, - addr: push_addr, - }, - &[ref_val.clone()], - )?; - } - let handler_switches = HandlerSwitchboardWires::allocate(cs.clone(), &vals.handler_switches)?; @@ -804,6 +730,25 @@ impl Wires { interface_rom_read: interface_rom_read.clone(), }; + // ref arena wires + let (ref_push_lane_switches, ref_arena_read, get_lane_switches) = { + let (ref_arena_read, get_lane_switches) = + ref_arena_get_read_wires(cs.clone(), rm, &switches, val.clone(), offset.clone())?; + + let ref_push_lane_switches = ref_arena_push_wires( + cs.clone(), + rm, + &switches, + &opcode_args, + &ref_building_ptr, + &ref_building_remaining, + )?; + + ref_arena_new_ref_wires(cs.clone(), rm, &switches, &opcode_args)?; + + (ref_push_lane_switches, ref_arena_read, get_lane_switches) + }; + let should_trace = switches.nop.clone().not(); trace_ic_wires( id_curr.clone(), @@ -1390,6 +1335,7 @@ impl> StepCircuitBuilder { let mut ref_sizes: BTreeMap = BTreeMap::new(); for instr in &self.ops { + tracing::info!("mem tracing instr {:?}", &instr); let config = instr.get_config(); trace_ic(irw.id_curr.into_bigint().0[0] as usize, &mut mb, &config); @@ -2272,146 +2218,6 @@ impl> StepCircuitBuilder { } } -fn trace_ref_arena_ops>( - mb: &mut M, - ref_building_id: &mut F, - ref_building_offset: &mut F, - ref_building_remaining: &mut F, - ref_sizes: &mut BTreeMap, - instr: &LedgerOperation, -) { - let mut ref_push_vals = std::array::from_fn(|_| F::ZERO); - let mut ref_push = false; - let mut ref_get = false; - - let mut ref_get_ref = F::ZERO; - let mut ref_get_offset = F::ZERO; - - match instr { - LedgerOperation::NewRef { size, ret } => { - *ref_building_id = *ret; - *ref_building_offset = F::ZERO; - *ref_building_remaining = *size; - ref_sizes.insert(ret.into_bigint().0[0], size.into_bigint().0[0]); - } - LedgerOperation::RefPush { vals } => { - ref_push_vals = *vals; - ref_push = true; - } - LedgerOperation::Get { - reff, - offset, - ret: _, - } => { - ref_get = true; - - ref_get_ref = *reff; - ref_get_offset = *offset; - } - _ => {} - }; - - if matches!(instr, LedgerOperation::NewRef { .. }) { - mb.conditional_write( - true, - Address { - tag: MemoryTag::RefSizes.into(), - addr: ref_building_id.into_bigint().0[0], - }, - vec![*ref_building_remaining], - ); - } - - if ref_get { - mb.conditional_read( - true, - Address { - tag: MemoryTag::RefSizes.into(), - addr: ref_get_ref.into_bigint().0[0], - }, - ); - } - - if ref_push { - let remaining = ref_building_remaining.into_bigint().0[0] as usize; - let to_write = remaining.min(REF_PUSH_BATCH_SIZE); - for (i, val) in ref_push_vals.iter().enumerate() { - let should_write = i < to_write; - let addr = ref_building_id.into_bigint().0[0] + ref_building_offset.into_bigint().0[0]; - - mb.conditional_write( - should_write, - Address { - tag: MemoryTag::RefArena.into(), - addr, - }, - vec![*val], - ); - - if should_write { - *ref_building_offset += F::ONE; - } - } - - *ref_building_remaining = F::from(remaining.saturating_sub(to_write) as u64); - } else { - for (_i, val) in ref_push_vals.iter().enumerate() { - let addr = ref_building_id.into_bigint().0[0] + ref_building_offset.into_bigint().0[0]; - mb.conditional_write( - ref_push, - Address { - tag: MemoryTag::RefArena.into(), - addr, - }, - vec![*val], - ); - } - } - - if ref_get { - let size = ref_sizes - .get(&ref_get_ref.into_bigint().0[0]) - .copied() - .unwrap_or(0); - let offset = ref_get_offset.into_bigint().0[0]; - let remaining = size.saturating_sub(offset); - let to_read = remaining.min(REF_GET_BATCH_SIZE as u64); - for i in 0..REF_GET_BATCH_SIZE { - let addr = ref_get_ref.into_bigint().0[0] + offset + i as u64; - let should_read = (i as u64) < to_read; - mb.conditional_read( - should_read, - Address { - tag: MemoryTag::RefArena.into(), - addr, - }, - ); - } - } else { - for i in 0..REF_GET_BATCH_SIZE { - let addr = - ref_get_ref.into_bigint().0[0] + ref_get_offset.into_bigint().0[0] + i as u64; - mb.conditional_read( - ref_get, - Address { - tag: MemoryTag::RefArena.into(), - addr, - }, - ); - } - } - - for _ in 0..REF_PUSH_BATCH_SIZE - REF_GET_BATCH_SIZE { - mb.conditional_read( - false, - Address { - tag: MemoryTag::RefArena.into(), - addr: 0, - }, - ); - } -} - fn register_memory_segments>(mb: &mut M) { mb.register_mem( MemoryTag::ProcessTable.into(), diff --git a/interleaving/starstream-interleaving-proof/src/circuit_test.rs b/interleaving/starstream-interleaving-proof/src/circuit_test.rs index bc6c9cf3..c037237d 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit_test.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit_test.rs @@ -1,4 +1,5 @@ use crate::{logging::setup_logger, prove}; +use ark_relations::gr1cs::SynthesisError; use starstream_interleaving_spec::{ Hash, InterleavingInstance, InterleavingWitness, LedgerEffectsCommitment, ProcessId, Ref, Value, WitEffectOutput, WitLedgerEffect, @@ -345,3 +346,254 @@ fn test_circuit_resumer_mismatch() { let result = prove(instance, wit); assert!(result.is_err()); } + +fn prove_ref_non_multiple( + size: usize, + push1_vals: [Value; 7], + push2_vals: [Value; 7], + first_get_ret: [Value; 5], + last_get_offset: usize, + last_get_ret: [Value; 5], +) -> Result<(), SynthesisError> { + let coord_id = 0; + + let p0 = ProcessId(coord_id); + + let coord_trace = { + let size = size; + let push2_vals = push2_vals; + let first_get_ret = first_get_ret; + let last_get_offset = last_get_offset; + let last_get_ret = last_get_ret; + let ref_0 = Ref(0); + + vec![ + WitLedgerEffect::NewRef { + size, + ret: ref_0.into(), + }, + WitLedgerEffect::RefPush { vals: push1_vals }, + WitLedgerEffect::RefPush { vals: push2_vals }, + WitLedgerEffect::Get { + ret: first_get_ret.into(), + reff: ref_0.into(), + offset: 0, + }, + WitLedgerEffect::Get { + ret: last_get_ret.into(), + reff: ref_0.into(), + offset: last_get_offset, + }, + ] + }; + + let traces = vec![coord_trace]; + + let trace_lens = traces.iter().map(|t| t.len() as u32).collect::>(); + + let host_calls_roots = host_calls_roots(&traces); + + let instance = InterleavingInstance { + n_inputs: 0, + n_new: 0, + n_coords: 1, + entrypoint: p0, + process_table: vec![h(0)], + is_utxo: vec![false], + must_burn: vec![false], + ownership_in: vec![None], + ownership_out: vec![None], + host_calls_roots, + host_calls_lens: trace_lens, + input_states: vec![], + }; + + let wit = InterleavingWitness { traces }; + + prove(instance, wit).map(|_| ()) +} + +#[test] +fn test_ref_non_multiple_sat() { + setup_logger(); + + let val_0 = v(&[100]); + let val_1 = v(&[42]); + + let result = prove_ref_non_multiple( + 9, + [ + val_0, + Value::nil(), + Value::nil(), + Value::nil(), + val_0, + Value::nil(), + Value::nil(), + ], + [ + val_0, + val_1, + Value::nil(), // from here it's just padding + Value::nil(), + Value::nil(), + Value::nil(), + Value::nil(), + ], + { + let mut out = [Value::nil(); 5]; + out[0] = val_0; + out[4] = val_0; + out + }, + 5, + [Value::nil(), Value::nil(), val_0, val_1, Value::nil()], + ); + assert!(result.is_ok()); +} + +#[test] +#[should_panic] +fn test_ref_non_multiple_unsat() { + setup_logger(); + + let val_0 = v(&[100]); + let val_1 = v(&[42]); + + let result = prove_ref_non_multiple( + 9, + [ + val_0, + Value::nil(), + Value::nil(), + Value::nil(), + val_0, + Value::nil(), + Value::nil(), + ], + [ + val_0, + val_1, + Value::nil(), // from here it's just padding + Value::nil(), + Value::nil(), + Value::nil(), + Value::nil(), + ], + v5_from_value(val_0), + 5, + [Value::nil(), Value::nil(), val_0, val_0, Value::nil()], + ); + assert!(result.is_ok()); +} + +#[test] +#[should_panic] +fn test_ref_non_multiple_value_mismatch_unsat() { + setup_logger(); + + let val_0 = v(&[100]); + let val_1 = v(&[42]); + + let result = prove_ref_non_multiple( + 9, + [ + val_0, + Value::nil(), + Value::nil(), + Value::nil(), + val_0, + Value::nil(), + Value::nil(), + ], + [ + val_0, + val_1, + Value::nil(), // from here it's just padding + Value::nil(), + Value::nil(), + Value::nil(), + Value::nil(), + ], + [val_1, Value::nil(), Value::nil(), Value::nil(), val_0], + 5, + [Value::nil(), Value::nil(), val_0, val_1, Value::nil()], + ); + + assert!(result.is_ok()); +} + +#[test] +#[should_panic] +fn test_ref_non_multiple_refpush_oob_unsat() { + setup_logger(); + + let val_0 = v(&[100]); + let val_1 = v(&[42]); + + let result = prove_ref_non_multiple( + 9, + [ + val_0, + Value::nil(), + Value::nil(), + Value::nil(), + val_0, + Value::nil(), + Value::nil(), + ], + [ + val_0, + val_1, + val_1, // would land out-of-bounds after the first 7-slot push + Value::nil(), + Value::nil(), + Value::nil(), + Value::nil(), + ], + [val_0, Value::nil(), Value::nil(), Value::nil(), val_0], + 5, + [val_0, Value::nil(), Value::nil(), Value::nil(), val_0], + ); + assert!(result.is_ok()); +} + +#[test] +#[should_panic] +fn test_ref_non_multiple_get_oob_unsat() { + setup_logger(); + + let val_0 = v(&[100]); + + let result = prove_ref_non_multiple( + 9, + [ + val_0, + Value::nil(), + Value::nil(), + Value::nil(), + val_0, + Value::nil(), + Value::nil(), + ], + [ + val_0, + val_0, + Value::nil(), // padding + Value::nil(), + Value::nil(), + Value::nil(), + Value::nil(), + ], + [val_0, Value::nil(), Value::nil(), Value::nil(), val_0], + 9, + [ + val_0, + Value::nil(), + Value::nil(), + Value::nil(), + Value::nil(), + ], + ); + assert!(result.is_ok()); +} diff --git a/interleaving/starstream-interleaving-proof/src/lib.rs b/interleaving/starstream-interleaving-proof/src/lib.rs index ebb69ff7..715f3a42 100644 --- a/interleaving/starstream-interleaving-proof/src/lib.rs +++ b/interleaving/starstream-interleaving-proof/src/lib.rs @@ -9,6 +9,7 @@ mod memory_tags; mod neo; mod optional; mod program_state; +mod ref_arena_gadget; mod rem_wires_gadget; mod switchboard; @@ -161,6 +162,8 @@ fn make_interleaved_trace( let mut id_prev: Option = None; let mut counters: HashMap = HashMap::new(); + let expected_len: usize = wit.traces.iter().map(|t| t.len()).sum(); + loop { let c = counters.entry(id_curr).or_insert(0); @@ -203,12 +206,18 @@ fn make_interleaved_trace( ops.push(op); } + assert_eq!( + ops.len(), + expected_len, + "interleaved trace doesn't match original length" + ); + ops } fn ccs_step_shape() -> Result<(ConstraintSystemRef, TSMemLayouts, IvcWireLayout), SynthesisError> { - let _span = tracing::debug_span!("dummy circuit").entered(); + let _span = tracing::info_span!("dummy circuit").entered(); tracing::debug!("constructing nop circuit to get initial (stable) ccs shape"); diff --git a/interleaving/starstream-interleaving-proof/src/memory/twist_and_shout/mod.rs b/interleaving/starstream-interleaving-proof/src/memory/twist_and_shout/mod.rs index cd27b3a0..c25ab0dd 100644 --- a/interleaving/starstream-interleaving-proof/src/memory/twist_and_shout/mod.rs +++ b/interleaving/starstream-interleaving-proof/src/memory/twist_and_shout/mod.rs @@ -124,7 +124,7 @@ pub struct TSMemLayouts { pub twist_bindings: BTreeMap>, } -#[derive(Clone, Copy)] +#[derive(Debug, Clone, Copy)] pub struct Lanes(pub usize); impl Default for Lanes { diff --git a/interleaving/starstream-interleaving-proof/src/neo.rs b/interleaving/starstream-interleaving-proof/src/neo.rs index 085b5be3..2fecc050 100644 --- a/interleaving/starstream-interleaving-proof/src/neo.rs +++ b/interleaving/starstream-interleaving-proof/src/neo.rs @@ -15,7 +15,7 @@ use p3_field::PrimeCharacteristicRing; use std::collections::HashMap; // TODO: benchmark properly -pub(crate) const CHUNK_SIZE: usize = 10; +pub(crate) const CHUNK_SIZE: usize = 5; const PER_STEP_COLS: usize = 1566; const BASE_INSTANCE_COLS: usize = 1; const EXTRA_INSTANCE_COLS: usize = IvcWireLayout::FIELD_COUNT * 2; diff --git a/interleaving/starstream-interleaving-proof/src/ref_arena_gadget.rs b/interleaving/starstream-interleaving-proof/src/ref_arena_gadget.rs new file mode 100644 index 00000000..94f645bd --- /dev/null +++ b/interleaving/starstream-interleaving-proof/src/ref_arena_gadget.rs @@ -0,0 +1,250 @@ +use std::collections::BTreeMap; + +use crate::{ + F, LedgerOperation, + abi::{ArgName, OPCODE_ARG_COUNT}, + circuit::MemoryTag, + ledger_operation::{REF_GET_BATCH_SIZE, REF_PUSH_BATCH_SIZE}, + memory::{Address, IVCMemory, IVCMemoryAllocated}, +}; +use crate::{circuit::ExecutionSwitches, rem_wires_gadget::alloc_rem_one_hot_selectors}; +use ark_ff::{AdditiveGroup as _, Field as _, PrimeField as _}; +use ark_r1cs_std::{ + alloc::AllocVar as _, + cmp::CmpGadget as _, + fields::{FieldVar as _, fp::FpVar}, + prelude::Boolean, + uint::UInt, +}; +use ark_relations::gr1cs::{ConstraintSystemRef, SynthesisError}; + +pub(crate) fn trace_ref_arena_ops>( + mb: &mut M, + ref_building_id: &mut F, + ref_building_offset: &mut F, + ref_building_remaining: &mut F, + ref_sizes: &mut BTreeMap, + instr: &LedgerOperation, +) { + let mut ref_push_vals = std::array::from_fn(|_| F::ZERO); + let mut ref_push = false; + let mut ref_get = false; + let mut new_ref = false; + + let mut ref_get_ref = F::ZERO; + let mut ref_get_offset = F::ZERO; + + match instr { + LedgerOperation::NewRef { size, ret } => { + *ref_building_id = *ret; + *ref_building_offset = F::ZERO; + *ref_building_remaining = *size; + ref_sizes.insert(ret.into_bigint().0[0], size.into_bigint().0[0]); + + new_ref = true; + } + LedgerOperation::RefPush { vals } => { + ref_push_vals = *vals; + ref_push = true; + } + LedgerOperation::Get { + reff, + offset, + ret: _, + } => { + ref_get = true; + + ref_get_ref = *reff; + ref_get_offset = *offset; + } + _ => {} + }; + + mb.conditional_write( + new_ref, + Address { + tag: MemoryTag::RefSizes.into(), + addr: ref_building_id.into_bigint().0[0], + }, + vec![*ref_building_remaining], + ); + + mb.conditional_read( + ref_get, + Address { + tag: MemoryTag::RefSizes.into(), + addr: ref_get_ref.into_bigint().0[0], + }, + ); + + let remaining = ref_building_remaining.into_bigint().0[0] as usize; + let to_write = remaining.min(REF_PUSH_BATCH_SIZE); + + for (i, val) in ref_push_vals.iter().enumerate() { + let should_write = i < to_write && ref_push; + let addr = ref_building_id.into_bigint().0[0] + ref_building_offset.into_bigint().0[0]; + + mb.conditional_write( + should_write, + Address { + tag: MemoryTag::RefArena.into(), + addr, + }, + vec![*val], + ); + + if should_write { + *ref_building_offset += F::ONE; + } + } + + if ref_push { + *ref_building_remaining = F::from(remaining.saturating_sub(to_write) as u64); + } + + let size = ref_sizes + .get(&ref_get_ref.into_bigint().0[0]) + .copied() + .unwrap_or(0); + let offset = ref_get_offset.into_bigint().0[0]; + let remaining = size.saturating_sub(offset); + let to_read = remaining.min(REF_GET_BATCH_SIZE as u64); + for i in 0..REF_GET_BATCH_SIZE { + let addr = ref_get_ref.into_bigint().0[0] + offset + i as u64; + let should_read = (i as u64) < to_read && ref_get; + mb.conditional_read( + should_read, + Address { + tag: MemoryTag::RefArena.into(), + addr, + }, + ); + } + + for _ in 0..REF_PUSH_BATCH_SIZE - REF_GET_BATCH_SIZE { + mb.conditional_read( + false, + Address { + tag: MemoryTag::RefArena.into(), + addr: 0, + }, + ); + } +} + +pub(crate) fn ref_arena_new_ref_wires>( + cs: ConstraintSystemRef, + rm: &mut M, + switches: &ExecutionSwitches>, + + opcode_args: &[FpVar; OPCODE_ARG_COUNT], +) -> Result<(), SynthesisError> { + rm.conditional_write( + &switches.new_ref, + &Address { + tag: MemoryTag::RefSizes.allocate(cs.clone())?, + addr: opcode_args[ArgName::Ret.idx()].clone(), + }, + &[opcode_args[ArgName::Size.idx()].clone()], + )?; + + Ok(()) +} + +pub(crate) fn ref_arena_get_read_wires>( + cs: ConstraintSystemRef, + rm: &mut M, + switches: &ExecutionSwitches>, + val: FpVar, + offset: FpVar, +) -> Result< + ( + [FpVar; REF_GET_BATCH_SIZE], + [Boolean; REF_GET_BATCH_SIZE], + ), + SynthesisError, +> { + let ref_size_read = rm.conditional_read( + &switches.get, + &Address { + tag: MemoryTag::RefSizes.allocate(cs.clone())?, + addr: val.clone(), + }, + )?[0] + .clone(); + + let ref_size_sel = switches.get.select(&ref_size_read, &FpVar::zero())?; + let offset_sel = switches.get.select(&offset, &FpVar::zero())?; + + let (ref_size_u32, _) = UInt::<32, u32, F>::from_fp(&ref_size_sel)?; + let (offset_u32, _) = UInt::<32, u32, F>::from_fp(&offset_sel)?; + let size_ge_offset = ref_size_u32.is_ge(&offset_u32)?; + let remaining = size_ge_offset.select(&(&ref_size_sel - &offset_sel), &FpVar::zero())?; + + let get_lane_switches = + alloc_rem_one_hot_selectors::(&cs, &remaining, &switches.get)?; + + // addr = ref + offset, read a packed batch (5) to match trace_ref_arena_ops + let get_base_addr = &val + &offset; + let mut ref_arena_read_vec = Vec::with_capacity(REF_GET_BATCH_SIZE); + for i in 0..REF_GET_BATCH_SIZE { + let offset = FpVar::new_constant(cs.clone(), F::from(i as u64))?; + let get_addr = &get_base_addr + offset; + let read = rm.conditional_read( + &get_lane_switches[i], + &Address { + tag: MemoryTag::RefArena.allocate(cs.clone())?, + addr: get_addr, + }, + )?[0] + .clone(); + ref_arena_read_vec.push(read); + } + + // we need the same number of reads from the RefArena as we do writes we do + // more writes than reads, so we need to pad the rest. + for _ in 0..REF_PUSH_BATCH_SIZE - REF_GET_BATCH_SIZE { + let _ = rm.conditional_read( + &Boolean::FALSE, + &Address { + tag: MemoryTag::RefArena.allocate(cs.clone())?, + addr: FpVar::zero(), + }, + )?; + } + + let ref_arena_read: [FpVar; REF_GET_BATCH_SIZE] = ref_arena_read_vec + .try_into() + .expect("ref arena read batch length"); + + Ok((ref_arena_read, get_lane_switches)) +} + +pub(crate) fn ref_arena_push_wires>( + cs: ConstraintSystemRef, + rm: &mut M, + switches: &ExecutionSwitches>, + opcode_args: &[FpVar; OPCODE_ARG_COUNT], + ref_building_ptr: &FpVar, + ref_building_remaining: &FpVar, +) -> Result<[Boolean; REF_PUSH_BATCH_SIZE], SynthesisError> { + let ref_push_lane_switches = + alloc_rem_one_hot_selectors(&cs, &ref_building_remaining, &switches.ref_push)?; + + // We also need to write for RefPush. + for (i, ref_val) in opcode_args.iter().enumerate() { + let offset = FpVar::new_constant(cs.clone(), F::from(i as u64))?; + let push_addr = ref_building_ptr + offset; + + rm.conditional_write( + &ref_push_lane_switches[i], + &Address { + tag: MemoryTag::RefArena.allocate(cs.clone())?, + addr: push_addr, + }, + &[ref_val.clone()], + )?; + } + + Ok(ref_push_lane_switches) +} From 1a4d8d2910b86f768510e22d9baa11e975a01c71 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Mon, 26 Jan 2026 23:49:00 -0300 Subject: [PATCH 104/152] add channel-like integration test with new ad-hoc wasm dsl macro Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .../src/circuit.rs | 6 +- .../src/circuit_test.rs | 1 + .../starstream-interleaving-proof/src/neo.rs | 1 + .../starstream-interleaving-spec/src/lib.rs | 16 +- .../src/mocked_verifier.rs | 14 +- interleaving/starstream-runtime/Cargo.toml | 1 + interleaving/starstream-runtime/src/lib.rs | 9 +- .../starstream-runtime/tests/integration.rs | 1137 +++-------------- .../starstream-runtime/tests/wasm_dsl.rs | 607 +++++++++ 9 files changed, 821 insertions(+), 971 deletions(-) create mode 100644 interleaving/starstream-runtime/tests/wasm_dsl.rs diff --git a/interleaving/starstream-interleaving-proof/src/circuit.rs b/interleaving/starstream-interleaving-proof/src/circuit.rs index f8901207..1826b67e 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit.rs @@ -1135,9 +1135,11 @@ impl> StepCircuitBuilder { > { rm.start_step(cs.clone()).unwrap(); - let _guard = tracing::info_span!("make_step_circuit", i = i, op = ?self.ops[i]).entered(); + let _guard = + tracing::info_span!("make_step_circuit", i = i, pid = ?irw.id_curr, op = ?self.ops[i]) + .entered(); - tracing::info!("synthesis for step {}", i + 1); + tracing::info!("synthesizing step"); let wires_in = self.allocate_vars(i, rm, &irw)?; let next_wires = wires_in.clone(); diff --git a/interleaving/starstream-interleaving-proof/src/circuit_test.rs b/interleaving/starstream-interleaving-proof/src/circuit_test.rs index c037237d..fb930c45 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit_test.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit_test.rs @@ -9,6 +9,7 @@ pub fn h(n: u8) -> Hash { // TODO: actual hashing let mut bytes = [0u8; 32]; bytes[0] = n; + bytes[4] = n; Hash(bytes, std::marker::PhantomData) } diff --git a/interleaving/starstream-interleaving-proof/src/neo.rs b/interleaving/starstream-interleaving-proof/src/neo.rs index 2fecc050..f6dbfe25 100644 --- a/interleaving/starstream-interleaving-proof/src/neo.rs +++ b/interleaving/starstream-interleaving-proof/src/neo.rs @@ -106,6 +106,7 @@ impl NeoCircuit for StepCircuitNeo { for (tag, (_dims, lanes, ty, _)) in &self.ts_mem_init.mems { match ty { crate::memory::MemType::Rom => { + // TODO: could this be avoided? let size = *max_rom_size.unwrap(); let mut dense_content = vec![neo_math::F::ZERO; size]; diff --git a/interleaving/starstream-interleaving-spec/src/lib.rs b/interleaving/starstream-interleaving-spec/src/lib.rs index 641e3c52..c9a4c7f0 100644 --- a/interleaving/starstream-interleaving-spec/src/lib.rs +++ b/interleaving/starstream-interleaving-spec/src/lib.rs @@ -125,18 +125,22 @@ impl ZkTransactionProof { // NOTE: the indices in steps_public match the memory initializations // ordered by MemoryTag in the circuit - let process_table = &steps_public[0].lut_insts[0].table; let mut expected_fields = Vec::with_capacity(inst.process_table.len() * 4); for hash in &inst.process_table { let hash_fields = encode_hash_to_fields(*hash); expected_fields.extend(hash_fields.iter().copied()); } + // TODO: review if this is correct, I think all ROM's need to be + // of the same size, so we have some extra padding. + // + // we may need to check the length or something as a new check, + // or maybe try to just use a sparse definition? + let process_table = &steps_public[0].lut_insts[0].table[0..expected_fields.len()]; assert!( - expected_fields.len() == process_table.len() - && expected_fields - .iter() - .zip(process_table.iter()) - .all(|(expected, found)| *expected == *found), + expected_fields + .iter() + .zip(process_table.iter()) + .all(|(expected, found)| *expected == *found), "program hash table mismatch" ); diff --git a/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs b/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs index 1b63a76a..a8941faa 100644 --- a/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs +++ b/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs @@ -193,7 +193,7 @@ pub enum InterleavingError { BuildingRefButCalledOther(ProcessId), #[error("RefPush called but full (pid={pid} size={size})")] - RefPushFull { pid: ProcessId, size: usize }, + RefPushOutOfBounds { pid: ProcessId, size: usize }, #[error("Get offset out of bounds: ref={0:?} offset={1} len={2}")] GetOutOfBounds(Ref, usize, usize), @@ -716,16 +716,20 @@ pub fn state_transition( .ok_or(InterleavingError::RefPushNotBuilding(id_curr))?; let new_offset = offset + vals.len(); - if new_offset > size { - return Err(InterleavingError::RefPushFull { pid: id_curr, size }); - } let vec = state .ref_store .get_mut(&reff) .ok_or(InterleavingError::RefNotFound(reff))?; + for (i, val) in vals.iter().enumerate() { - vec[offset + i] = *val; + if offset + i > size && *val != Value::nil() { + return Err(InterleavingError::RefPushOutOfBounds { pid: id_curr, size }); + } + + if let Some(pos) = vec.get_mut(offset + i) { + *pos = *val; + } } if new_offset < size { diff --git a/interleaving/starstream-runtime/Cargo.toml b/interleaving/starstream-runtime/Cargo.toml index f6e8b84f..4ea9b921 100644 --- a/interleaving/starstream-runtime/Cargo.toml +++ b/interleaving/starstream-runtime/Cargo.toml @@ -17,3 +17,4 @@ sha2 = "0.10" [dev-dependencies] imbl = "6.1.0" wat = "1.0" +wasm-encoder = { workspace = true } diff --git a/interleaving/starstream-runtime/src/lib.rs b/interleaving/starstream-runtime/src/lib.rs index 3141ab0a..74cef15a 100644 --- a/interleaving/starstream-runtime/src/lib.rs +++ b/interleaving/starstream-runtime/src/lib.rs @@ -502,17 +502,16 @@ impl Runtime { .get(¤t_pid) .ok_or(wasmi::Error::new("no ref state"))?; - if offset + vals.len() > size { - return Err(wasmi::Error::new("ref push overflow")); - } - let store = caller .data_mut() .ref_store .get_mut(&ref_id) .ok_or(wasmi::Error::new("ref not found"))?; + for (i, val) in vals.iter().enumerate() { - store[offset + i] = *val; + if let Some(pos) = store.get_mut(offset + i) { + *pos = *val; + } } caller diff --git a/interleaving/starstream-runtime/tests/integration.rs b/interleaving/starstream-runtime/tests/integration.rs index 64716c23..c883a4d1 100644 --- a/interleaving/starstream-runtime/tests/integration.rs +++ b/interleaving/starstream-runtime/tests/integration.rs @@ -1,220 +1,64 @@ +#[macro_use] +pub mod wasm_dsl; + use sha2::{Digest, Sha256}; use starstream_interleaving_spec::Ledger; use starstream_runtime::UnprovenTransaction; -use wat::parse_str; #[test] fn test_runtime_simple_effect_handlers() { - // Pseudocode (UTXO): - // - (ret, caller) = activation() - // - assert program_hash(caller) == program_hash(1) // caller is the script in this test - // - handler_id = get_handler_for(interface_id=1) - // - req = new_ref(1); ref_push(42) - // - (ret, resp) = resume(handler_id, req) - // - assert get(resp, 0) == 1 - // - yield(resp) - let utxo_wat = r#"( -module - (import "env" "starstream_activation" (func $activation (result i64 i64))) - (import "env" "starstream_get_program_hash" (func $program_hash (param i64) (result i64 i64 i64 i64))) - (import "env" "starstream_get_handler_for" (func $get_handler_for (param i64 i64 i64 i64) (result i64))) - (import "env" "starstream_new_ref" (func $new_ref (param i64) (result i64))) - (import "env" "starstream_ref_push" (func $ref_push (param i64 i64 i64 i64 i64 i64 i64))) - (import "env" "starstream_get" (func $get (param i64 i64) (result i64 i64 i64 i64 i64))) - (import "env" "starstream_resume" (func $resume (param i64 i64) (result i64 i64))) - (import "env" "starstream_yield" (func $yield (param i64) (result i64 i64))) - - (func $get0 (param i64 i64) (result i64) - (call $get (local.get 0) (local.get 1)) - drop - drop - drop - drop - ) + let utxo_bin = wasm_module!({ + let (_init_ref, caller) = call activation(); - (func (export "_start") - (local $init_ref i64) (local $caller i64) (local $handler_id i64) (local $req i64) (local $resp i64) - (local $caller_hash_a i64) (local $caller_hash_b i64) (local $caller_hash_c i64) (local $caller_hash_d i64) - (local $script_hash_a i64) (local $script_hash_b i64) (local $script_hash_c i64) (local $script_hash_d i64) - (local $resp_val i64) - - ;; ACTIVATION - (call $activation) - local.set $caller - local.set $init_ref - - ;; PROGRAM_HASH(target=caller) - (call $program_hash (local.get $caller)) - local.set $caller_hash_d - local.set $caller_hash_c - local.set $caller_hash_b - local.set $caller_hash_a - - ;; PROGRAM_HASH(target=script id 1) - (call $program_hash (i64.const 1)) - local.set $script_hash_d - local.set $script_hash_c - local.set $script_hash_b - local.set $script_hash_a - - ;; Ensure caller hash matches script hash - (local.get $caller_hash_a) - (local.get $script_hash_a) - i64.ne - if unreachable end - (local.get $caller_hash_b) - (local.get $script_hash_b) - i64.ne - if unreachable end - (local.get $caller_hash_c) - (local.get $script_hash_c) - i64.ne - if unreachable end - (local.get $caller_hash_d) - (local.get $script_hash_d) - i64.ne - if unreachable end - - ;; GET_HANDLER_FOR(interface_id=limbs at 0) - (call $get_handler_for (i64.const 1) (i64.const 0) (i64.const 0) (i64.const 0)) - local.set $handler_id - - ;; NEW_REF(size=7) - (call $new_ref (i64.const 7)) - local.set $req - - ;; REF_PUSH(val=42) - (call $ref_push - (i64.const 42) (i64.const 0) (i64.const 0) (i64.const 0) - (i64.const 0) (i64.const 0) (i64.const 0) - ) - - ;; RESUME(target=$handler_id, val=$req, ret=2, prev=1) - (call $resume (local.get $handler_id) (local.get $req)) - drop - local.set $resp - - ;; GET(bool) from handler response - (call $get0 (local.get $resp) (i64.const 0)) - local.set $resp_val - (local.get $resp_val) - (i64.const 1) - i64.ne - if unreachable end - - ;; YIELD(val=$resp, ret=-1, prev=0) - (call $yield (local.get $resp)) - drop - drop - ) -) -"#; - let utxo_bin = parse_str(utxo_wat).unwrap(); + let (caller_hash_a, caller_hash_b, caller_hash_c, caller_hash_d) = call get_program_hash(caller); + let (script_hash_a, script_hash_b, script_hash_c, script_hash_d) = call get_program_hash(1); - // TODO: this should be poseidon at some point later - let mut hasher = Sha256::new(); - hasher.update(&utxo_bin); - let utxo_hash_bytes = hasher.finalize(); + assert_eq caller_hash_a, script_hash_a; + assert_eq caller_hash_b, script_hash_b; + assert_eq caller_hash_c, script_hash_c; + assert_eq caller_hash_d, script_hash_d; - let utxo_hash_limb_a = u64::from_le_bytes(utxo_hash_bytes[0..8].try_into().unwrap()); - let utxo_hash_limb_b = u64::from_le_bytes(utxo_hash_bytes[8..8 * 2].try_into().unwrap()); - let utxo_hash_limb_c = u64::from_le_bytes(utxo_hash_bytes[8 * 2..8 * 3].try_into().unwrap()); - let utxo_hash_limb_d = u64::from_le_bytes(utxo_hash_bytes[8 * 3..8 * 4].try_into().unwrap()); - - // 2. Compile Coord Program - // Pseudocode (Coord): - // - install_handler(interface_id=1) - // - init = new_ref(1); ref_push(0) - // - new_utxo(hash(utxo_bin), init) - // - (req, caller) = resume(utxo_id=0, init) - // - assert get(req, 0) == 42 - // - resp = new_ref(1); ref_push(1) - // - resume(utxo_id=0, resp) - // - uninstall_handler(interface_id=1) - let coord_wat = format!( - r#"( -module - (import "env" "starstream_install_handler" (func $install_handler (param i64 i64 i64 i64))) - (import "env" "starstream_new_ref" (func $new_ref (param i64) (result i64))) - (import "env" "starstream_ref_push" (func $ref_push (param i64 i64 i64 i64 i64 i64 i64))) - (import "env" "starstream_get" (func $get (param i64 i64) (result i64 i64 i64 i64 i64))) - (import "env" "starstream_new_utxo" (func $new_utxo (param i64 i64 i64 i64 i64) (result i64))) - (import "env" "starstream_resume" (func $resume (param i64 i64) (result i64 i64))) - (import "env" "starstream_uninstall_handler" (func $uninstall_handler (param i64 i64 i64 i64))) - - (func $get0 (param i64 i64) (result i64) - (call $get (local.get 0) (local.get 1)) - drop - drop - drop - drop - ) + let handler_id = call get_handler_for(1, 0, 0, 0); + let req = call new_ref(7); + call ref_push(42, 0, 0, 0, 0, 0, 0); - (func (export "_start") - (local $init_val i64) (local $req i64) (local $req_val i64) (local $resp i64) (local $caller i64) - - ;; INSTALL_HANDLER(interface_id=limbs at 0) - (call $install_handler (i64.const 1) (i64.const 0) (i64.const 0) (i64.const 0)) - - ;; NEW_REF(size=7) - (call $new_ref (i64.const 7)) - local.set $init_val - - ;; REF_PUSH(val=0) - (call $ref_push - (i64.const 0) (i64.const 0) (i64.const 0) (i64.const 0) - (i64.const 0) (i64.const 0) (i64.const 0) - ) - - ;; NEW_UTXO(program_hash=limbs at 32, val=$init_val, id=0) - (call $new_utxo - (i64.const {utxo_hash_limb_a}) - (i64.const {utxo_hash_limb_b}) - (i64.const {utxo_hash_limb_c}) - (i64.const {utxo_hash_limb_d}) - (local.get $init_val) - ) - drop - - ;; RESUME(target=0, val=$init_val, ret=1, prev=-1) - (call $resume (i64.const 0) (local.get $init_val)) - local.set $caller - local.set $req - - ;; GET request val - (call $get0 (local.get $req) (i64.const 0)) - local.set $req_val - (local.get $req_val) - (i64.const 42) - i64.ne - if unreachable end - - ;; NEW_REF(size=7) - (call $new_ref (i64.const 7)) - local.set $resp - - ;; REF_PUSH(val=true) - (call $ref_push - (i64.const 1) (i64.const 0) (i64.const 0) (i64.const 0) - (i64.const 0) (i64.const 0) (i64.const 0) - ) - - ;; RESUME(target=0, val=$resp, ret=$resp, prev=0) - (call $resume (i64.const 0) (local.get $resp)) - drop - drop - - ;; UNINSTALL_HANDLER(interface_id=limbs at 0) - (call $uninstall_handler (i64.const 1) (i64.const 0) (i64.const 0) (i64.const 0)) - ) -) -"#, - utxo_hash_limb_a = utxo_hash_limb_a, - utxo_hash_limb_b = utxo_hash_limb_b, - utxo_hash_limb_c = utxo_hash_limb_c, - utxo_hash_limb_d = utxo_hash_limb_d, - ); - let coord_bin = parse_str(&coord_wat).unwrap(); + let (resp, _caller) = call resume(handler_id, req); + let (resp_val, _b, _c, _d, _e) = call get(resp, 0); + + assert_eq resp_val, 1; + let (_req2, _caller2) = call yield_(resp); + }); + + let (utxo_hash_limb_a, utxo_hash_limb_b, utxo_hash_limb_c, utxo_hash_limb_d) = + hash_program(&utxo_bin); + + let coord_bin = wasm_module!({ + call install_handler(1, 0, 0, 0); + + let init_val = call new_ref(7); + + call ref_push(0, 0, 0, 0, 0, 0, 0); + + let _utxo_id = call new_utxo( + const(utxo_hash_limb_a), + const(utxo_hash_limb_b), + const(utxo_hash_limb_c), + const(utxo_hash_limb_d), + init_val + ); + + let (req, _caller) = call resume(0, init_val); + let (req_val, _b, _c, _d, _e) = call get(req, 0); + + assert_eq req_val, 42; + + let resp = call new_ref(7); + call ref_push(1, 0, 0, 0, 0, 0, 0); + + let (_ret, _caller2) = call resume(0, resp); + + call uninstall_handler(1, 0, 0, 0); + }); let programs = vec![utxo_bin, coord_bin.clone()]; @@ -235,755 +79,124 @@ module } #[test] -#[ignore] -fn test_runtime_effect_handlers_star_flow() { - // Pseudocode (UTXO): - // - (init, caller) = activation() - // - loop: - // - yield(resp_msg) -> (req_msg, caller) - // - assert req_msg.iface == UtxoAbi - // - match req_msg.disc: - // 1 => raise Foo(33) via handler, respond - // 2 => respond 1 - // 3 => raise Bar(payload) via handler, respond with handler result - // - // Pseudocode (Coord): - // - install_handler(A) outer - // - create UTXO and start it - // - call abi_call1, abi_call2, abi_call3(false) with outer handlers - // - install_handler(A) inner, call abi_call3(true) with inner handlers - // - uninstall handler inner, uninstall handler outer - let utxo_wat = r#"( -module - (import "env" "starstream_activation" (func $activation (result i64 i64))) - (import "env" "starstream_get_handler_for" (func $get_handler_for (param i64 i64 i64 i64) (result i64))) - (import "env" "starstream_new_ref" (func $new_ref (param i64) (result i64))) - (import "env" "starstream_ref_push" (func $ref_push (param i64 i64 i64 i64 i64 i64 i64))) - (import "env" "starstream_get" (func $get (param i64 i64) (result i64 i64 i64 i64 i64))) - (import "env" "starstream_resume" (func $resume (param i64 i64) (result i64 i64))) - (import "env" "starstream_yield" (func $yield (param i64) (result i64 i64))) - - (func $get0 (param i64 i64) (result i64) - (call $get (local.get 0) (local.get 1)) - drop - drop - drop - drop - ) - - (func (export "_start") - (local $init i64) (local $caller i64) (local $handler_id i64) - (local $req i64) (local $resp_msg i64) - (local $iface0 i64) (local $iface1 i64) (local $iface2 i64) (local $iface3 i64) - (local $disc i64) (local $payload i64) - (local $effect_req i64) (local $effect_resp i64) (local $effect_val i64) - - ;; ACTIVATION - (call $activation) - local.set $caller - local.set $init - - ;; Prepare initial response message (iface=UtxoAbi, disc=0, payload=0) - (call $new_ref (i64.const 7)) - local.set $resp_msg - (call $ref_push - (i64.const 2) (i64.const 0) (i64.const 0) (i64.const 0) - (i64.const 0) (i64.const 0) (i64.const 0) - ) - - (block $exit - (loop $loop - ;; YIELD(response) => (req, caller) - (call $yield (local.get $resp_msg)) - local.set $caller - local.set $req - - ;; Read iface + discriminant + payload - (call $get0 (local.get $req) (i64.const 0)) - local.set $iface0 - (call $get0 (local.get $req) (i64.const 1)) - local.set $iface1 - (call $get0 (local.get $req) (i64.const 2)) - local.set $iface2 - (call $get0 (local.get $req) (i64.const 3)) - local.set $iface3 - (call $get0 (local.get $req) (i64.const 4)) - local.set $disc - (call $get0 (local.get $req) (i64.const 5)) - local.set $payload - - ;; Assert iface == UtxoAbi (2,0,0,0) - (local.get $iface0) - (i64.const 2) - i64.ne - if unreachable end - (local.get $iface1) - (i64.const 0) - i64.ne - if unreachable end - (local.get $iface2) - (i64.const 0) - i64.ne - if unreachable end - (local.get $iface3) - (i64.const 0) - i64.ne - if unreachable end - - ;; Match discriminant - (local.get $disc) - (i64.const 1) - i64.eq - if - ;; AbiCall1 => raise Foo(33) - (call $get_handler_for (i64.const 1) (i64.const 0) (i64.const 0) (i64.const 0)) - local.set $handler_id - - (call $new_ref (i64.const 7)) - local.set $effect_req - (call $ref_push - (i64.const 1) (i64.const 0) (i64.const 0) (i64.const 0) - (i64.const 1) (i64.const 33) (i64.const 0) - ) - - (call $resume (local.get $handler_id) (local.get $effect_req)) - local.set $caller - local.set $effect_resp - - ;; Respond with iface=UtxoAbi, disc=1, payload=0 - (call $new_ref (i64.const 7)) - local.set $resp_msg - (call $ref_push - (i64.const 2) (i64.const 0) (i64.const 0) (i64.const 0) - (i64.const 1) (i64.const 0) (i64.const 0) - ) - else - (local.get $disc) - (i64.const 2) - i64.eq - if - ;; AbiCall2 => respond 1 - (call $new_ref (i64.const 7)) - local.set $resp_msg - (call $ref_push - (i64.const 2) (i64.const 0) (i64.const 0) (i64.const 0) - (i64.const 2) (i64.const 1) (i64.const 0) - ) - else - (local.get $disc) - (i64.const 3) - i64.eq - if - ;; AbiCall3 => raise Bar(payload) - (call $get_handler_for (i64.const 1) (i64.const 0) (i64.const 0) (i64.const 0)) - local.set $handler_id - - (call $new_ref (i64.const 7)) - local.set $effect_req - (call $ref_push - (i64.const 1) (i64.const 0) (i64.const 0) (i64.const 0) - (i64.const 2) (local.get $payload) (i64.const 0) - ) - - (call $resume (local.get $handler_id) (local.get $effect_req)) - local.set $caller - local.set $effect_resp - - (call $get0 (local.get $effect_resp) (i64.const 0)) - local.set $effect_val - - ;; Respond with iface=UtxoAbi, disc=3, payload=effect_val - (call $new_ref (i64.const 7)) - local.set $resp_msg - (call $ref_push - (i64.const 2) (i64.const 0) (i64.const 0) (i64.const 0) - (i64.const 3) (local.get $effect_val) (i64.const 0) - ) - else - unreachable - end - end - end - - br $loop - ) - ) - ) -) -"#; - let utxo_bin = parse_str(utxo_wat).unwrap(); - - let mut hasher = Sha256::new(); - hasher.update(&utxo_bin); - let utxo_hash_bytes = hasher.finalize(); - - let utxo_hash_limb_a = u64::from_le_bytes(utxo_hash_bytes[0..8].try_into().unwrap()); - let utxo_hash_limb_b = u64::from_le_bytes(utxo_hash_bytes[8..8 * 2].try_into().unwrap()); - let utxo_hash_limb_c = u64::from_le_bytes(utxo_hash_bytes[8 * 2..8 * 3].try_into().unwrap()); - let utxo_hash_limb_d = u64::from_le_bytes(utxo_hash_bytes[8 * 3..8 * 4].try_into().unwrap()); - - let coord_wat = format!( - r#"( -module - (import "env" "starstream_install_handler" (func $install_handler (param i64 i64 i64 i64))) - (import "env" "starstream_uninstall_handler" (func $uninstall_handler (param i64 i64 i64 i64))) - (import "env" "starstream_new_ref" (func $new_ref (param i64) (result i64))) - (import "env" "starstream_ref_push" (func $ref_push (param i64 i64 i64 i64 i64 i64 i64))) - (import "env" "starstream_get" (func $get (param i64 i64) (result i64 i64 i64 i64 i64))) - (import "env" "starstream_new_utxo" (func $new_utxo (param i64 i64 i64 i64 i64) (result i64))) - (import "env" "starstream_resume" (func $resume (param i64 i64) (result i64 i64))) - - (func $get0 (param i64 i64) (result i64) - (call $get (local.get 0) (local.get 1)) - drop - drop - drop - drop - ) - - (func (export "_start") - (local $init i64) (local $req i64) (local $msg i64) (local $caller i64) - (local $iface0 i64) (local $iface1 i64) (local $iface2 i64) (local $iface3 i64) - (local $disc i64) (local $payload i64) - (local $resp i64) (local $handler_mode i64) - - ;; install outer handler for A - (call $install_handler (i64.const 1) (i64.const 0) (i64.const 0) (i64.const 0)) - (i64.const 0) - local.set $handler_mode - - ;; init ref - (call $new_ref (i64.const 7)) - local.set $init - (call $ref_push - (i64.const 0) (i64.const 0) (i64.const 0) (i64.const 0) - (i64.const 0) (i64.const 0) (i64.const 0) - ) - - ;; new utxo - (call $new_utxo - (i64.const {utxo_hash_limb_a}) - (i64.const {utxo_hash_limb_b}) - (i64.const {utxo_hash_limb_c}) - (i64.const {utxo_hash_limb_d}) - (local.get $init) - ) - drop - - ;; start utxo - (call $resume (i64.const 0) (local.get $init)) - drop - drop - - ;; abi_call1() - (call $new_ref (i64.const 7)) - local.set $req - (call $ref_push - (i64.const 2) (i64.const 0) (i64.const 0) (i64.const 0) - (i64.const 1) (i64.const 0) (i64.const 0) - ) - - (call $resume (i64.const 0) (local.get $req)) - local.set $caller - local.set $msg - - (block $done1 - (loop $loop1 - ;; parse iface - (call $get0 (local.get $msg) (i64.const 0)) - local.set $iface0 - (call $get0 (local.get $msg) (i64.const 1)) - local.set $iface1 - (call $get0 (local.get $msg) (i64.const 2)) - local.set $iface2 - (call $get0 (local.get $msg) (i64.const 3)) - local.set $iface3 - (call $get0 (local.get $msg) (i64.const 4)) - local.set $disc - (call $get0 (local.get $msg) (i64.const 5)) - local.set $payload - - ;; iface == A? - (local.get $iface0) - (i64.const 1) - i64.eq - (local.get $iface1) - (i64.const 0) - i64.eq - i32.and - (local.get $iface2) - (i64.const 0) - i64.eq - i32.and - (local.get $iface3) - (i64.const 0) - i64.eq - i32.and - if - ;; handle A::Foo/A::Bar - (local.get $disc) - (i64.const 1) - i64.eq - if - ;; Foo: outer => x * i, inner => i - (local.get $handler_mode) - (i64.const 1) - i64.eq - if - (local.get $payload) - local.set $resp - else - (i64.const 5) - (local.get $payload) - i64.mul - local.set $resp - end - else - ;; Bar: outer => !b, inner => b - (local.get $handler_mode) - (i64.const 1) - i64.eq - if - (local.get $payload) - local.set $resp - else - (local.get $payload) - (i64.const 0) - i64.eq - if - (i64.const 1) - local.set $resp - else - (i64.const 0) - local.set $resp - end - end - end - - (call $new_ref (i64.const 7)) - local.set $req - (call $ref_push - (local.get $resp) (i64.const 0) (i64.const 0) (i64.const 0) - (i64.const 0) (i64.const 0) (i64.const 0) - ) - (call $resume (local.get $caller) (local.get $req)) - local.set $caller - local.set $msg - br $loop1 - end - - ;; iface == UtxoAbi? expect response for call1 - (local.get $iface0) - (i64.const 2) - i64.ne - if unreachable end - (local.get $iface1) - (i64.const 0) - i64.ne - if unreachable end - (local.get $iface2) - (i64.const 0) - i64.ne - if unreachable end - (local.get $iface3) - (i64.const 0) - i64.ne - if unreachable end - (local.get $disc) - (i64.const 1) - i64.ne - if unreachable end - br $done1 - ) - ) - - ;; abi_call2() => expect payload 1 - (call $new_ref (i64.const 7)) - local.set $req - (call $ref_push - (i64.const 2) (i64.const 0) (i64.const 0) (i64.const 0) - (i64.const 2) (i64.const 0) (i64.const 0) - ) - - (call $resume (i64.const 0) (local.get $req)) - local.set $caller - local.set $msg - - (block $done2 - (loop $loop2 - (call $get0 (local.get $msg) (i64.const 0)) - local.set $iface0 - (call $get0 (local.get $msg) (i64.const 1)) - local.set $iface1 - (call $get0 (local.get $msg) (i64.const 2)) - local.set $iface2 - (call $get0 (local.get $msg) (i64.const 3)) - local.set $iface3 - (call $get0 (local.get $msg) (i64.const 4)) - local.set $disc - (call $get0 (local.get $msg) (i64.const 5)) - local.set $payload - - (local.get $iface0) - (i64.const 1) - i64.eq - (local.get $iface1) - (i64.const 0) - i64.eq - i32.and - (local.get $iface2) - (i64.const 0) - i64.eq - i32.and - (local.get $iface3) - (i64.const 0) - i64.eq - i32.and - if - ;; handle A::Foo/A::Bar (same as above) - (local.get $disc) - (i64.const 1) - i64.eq - if - (local.get $handler_mode) - (i64.const 1) - i64.eq - if - (local.get $payload) - local.set $resp - else - (i64.const 5) - (local.get $payload) - i64.mul - local.set $resp - end - else - (local.get $handler_mode) - (i64.const 1) - i64.eq - if - (local.get $payload) - local.set $resp - else - (local.get $payload) - (i64.const 0) - i64.eq - if - (i64.const 1) - local.set $resp - else - (i64.const 0) - local.set $resp - end - end - end - - (call $new_ref (i64.const 7)) - local.set $req - (call $ref_push - (local.get $resp) (i64.const 0) (i64.const 0) (i64.const 0) - (i64.const 0) (i64.const 0) (i64.const 0) - ) - (call $resume (local.get $caller) (local.get $req)) - local.set $caller - local.set $msg - br $loop2 - end - - (local.get $iface0) - (i64.const 2) - i64.ne - if unreachable end - (local.get $iface1) - (i64.const 0) - i64.ne - if unreachable end - (local.get $iface2) - (i64.const 0) - i64.ne - if unreachable end - (local.get $iface3) - (i64.const 0) - i64.ne - if unreachable end - (local.get $disc) - (i64.const 2) - i64.ne - if unreachable end - (local.get $payload) - (i64.const 1) - i64.ne - if unreachable end - br $done2 - ) - ) - - ;; abi_call3(false) => expect payload 1 - (call $new_ref (i64.const 7)) - local.set $req - (call $ref_push - (i64.const 2) (i64.const 0) (i64.const 0) (i64.const 0) - (i64.const 3) (i64.const 0) (i64.const 0) - ) - - (call $resume (i64.const 0) (local.get $req)) - local.set $caller - local.set $msg - - (block $done3 - (loop $loop3 - (call $get0 (local.get $msg) (i64.const 0)) - local.set $iface0 - (call $get0 (local.get $msg) (i64.const 1)) - local.set $iface1 - (call $get0 (local.get $msg) (i64.const 2)) - local.set $iface2 - (call $get0 (local.get $msg) (i64.const 3)) - local.set $iface3 - (call $get0 (local.get $msg) (i64.const 4)) - local.set $disc - (call $get0 (local.get $msg) (i64.const 5)) - local.set $payload - - (local.get $iface0) - (i64.const 1) - i64.eq - (local.get $iface1) - (i64.const 0) - i64.eq - i32.and - (local.get $iface2) - (i64.const 0) - i64.eq - i32.and - (local.get $iface3) - (i64.const 0) - i64.eq - i32.and - if - (local.get $disc) - (i64.const 1) - i64.eq - if - (local.get $handler_mode) - (i64.const 1) - i64.eq - if - (local.get $payload) - local.set $resp - else - (i64.const 5) - (local.get $payload) - i64.mul - local.set $resp - end - else - (local.get $handler_mode) - (i64.const 1) - i64.eq - if - (local.get $payload) - local.set $resp - else - (local.get $payload) - (i64.const 0) - i64.eq - if - (i64.const 1) - local.set $resp - else - (i64.const 0) - local.set $resp - end - end - end - - (call $new_ref (i64.const 7)) - local.set $req - (call $ref_push - (local.get $resp) (i64.const 0) (i64.const 0) (i64.const 0) - (i64.const 0) (i64.const 0) (i64.const 0) - ) - (call $resume (local.get $caller) (local.get $req)) - local.set $caller - local.set $msg - br $loop3 - end - - (local.get $iface0) - (i64.const 2) - i64.ne - if unreachable end - (local.get $iface1) - (i64.const 0) - i64.ne - if unreachable end - (local.get $iface2) - (i64.const 0) - i64.ne - if unreachable end - (local.get $iface3) - (i64.const 0) - i64.ne - if unreachable end - (local.get $disc) - (i64.const 3) - i64.ne - if unreachable end - (local.get $payload) - (i64.const 1) - i64.ne - if unreachable end - br $done3 - ) - ) - - ;; inner handlers for abi_call3(true) - (call $install_handler (i64.const 1) (i64.const 0) (i64.const 0) (i64.const 0)) - (i64.const 1) - local.set $handler_mode - - (call $new_ref (i64.const 7)) - local.set $req - (call $ref_push - (i64.const 2) (i64.const 0) (i64.const 0) (i64.const 0) - (i64.const 3) (i64.const 1) (i64.const 0) - ) - - (call $resume (i64.const 0) (local.get $req)) - local.set $caller - local.set $msg - - (block $done4 - (loop $loop4 - (call $get0 (local.get $msg) (i64.const 0)) - local.set $iface0 - (call $get0 (local.get $msg) (i64.const 1)) - local.set $iface1 - (call $get0 (local.get $msg) (i64.const 2)) - local.set $iface2 - (call $get0 (local.get $msg) (i64.const 3)) - local.set $iface3 - (call $get0 (local.get $msg) (i64.const 4)) - local.set $disc - (call $get0 (local.get $msg) (i64.const 5)) - local.set $payload - - (local.get $iface0) - (i64.const 1) - i64.eq - (local.get $iface1) - (i64.const 0) - i64.eq - i32.and - (local.get $iface2) - (i64.const 0) - i64.eq - i32.and - (local.get $iface3) - (i64.const 0) - i64.eq - i32.and - if - (local.get $disc) - (i64.const 1) - i64.eq - if - (local.get $handler_mode) - (i64.const 1) - i64.eq - if - (local.get $payload) - local.set $resp - else - (i64.const 5) - (local.get $payload) - i64.mul - local.set $resp - end - else - (local.get $handler_mode) - (i64.const 1) - i64.eq - if - (local.get $payload) - local.set $resp - else - (local.get $payload) - (i64.const 0) - i64.eq - if - (i64.const 1) - local.set $resp - else - (i64.const 0) - local.set $resp - end - end - end - - (call $new_ref (i64.const 7)) - local.set $req - (call $ref_push - (local.get $resp) (i64.const 0) (i64.const 0) (i64.const 0) - (i64.const 0) (i64.const 0) (i64.const 0) - ) - (call $resume (local.get $caller) (local.get $req)) - local.set $caller - local.set $msg - br $loop4 - end - - (local.get $iface0) - (i64.const 2) - i64.ne - if unreachable end - (local.get $iface1) - (i64.const 0) - i64.ne - if unreachable end - (local.get $iface2) - (i64.const 0) - i64.ne - if unreachable end - (local.get $iface3) - (i64.const 0) - i64.ne - if unreachable end - (local.get $disc) - (i64.const 3) - i64.ne - if unreachable end - (local.get $payload) - (i64.const 1) - i64.ne - if unreachable end - br $done4 - ) - ) - - (call $uninstall_handler (i64.const 1) (i64.const 0) (i64.const 0) (i64.const 0)) - (i64.const 0) - local.set $handler_mode - - (call $uninstall_handler (i64.const 1) (i64.const 0) (i64.const 0) (i64.const 0)) - ) -) -"#, - utxo_hash_limb_a = utxo_hash_limb_a, - utxo_hash_limb_b = utxo_hash_limb_b, - utxo_hash_limb_c = utxo_hash_limb_c, - utxo_hash_limb_d = utxo_hash_limb_d, - ); - let coord_bin = parse_str(&coord_wat).unwrap(); - - let programs = vec![utxo_bin, coord_bin.clone()]; +fn test_runtime_effect_handlers_cross_calls() { + let utxo1_bin = wasm_module!({ + let (_init_ref, _caller) = call activation(); + + let handler_id = call get_handler_for(1, 2, 3, 4); + let x0 = 99; + let n = 5; + let i0 = 0; + let x = x0; + let i = i0; + + // Call the +1 service n times, then send disc=2 to break. + loop { + break_if i == n; + + let req = call new_ref(2); + call ref_push(1, x, 0, 0, 0, 0, 0); + + let (resp, _caller2) = call resume(handler_id, req); + let (y, _b, _c, _d, _e) = call get(resp, 0); + let expected = add x, 1; + assert_eq y, expected; + + set x = y; + set i = add i, 1; + continue; + } + + let stop = call new_ref(2); + call ref_push(2, x, 0, 0, 0, 0, 0); + let (_resp_stop, _caller_stop) = call resume(handler_id, stop); + + let (_req3, _caller3) = call yield_(stop); + }); + + let utxo2_bin = wasm_module!({ + let (init_ref, _caller) = call activation(); + let req = init_ref; + + // Serve x -> x+1 for each incoming request. + loop { + let (x, _b, _c, _d, _e) = call get(req, 0); + let y = add x, 1; + let resp = call new_ref(1); + call ref_push(y, 0, 0, 0, 0, 0, 0); + let (next_req, _caller2) = call yield_(resp); + set req = next_req; + continue; + } + }); + + let (utxo1_hash_limb_a, utxo1_hash_limb_b, utxo1_hash_limb_c, utxo1_hash_limb_d) = + hash_program(&utxo1_bin); + + let (utxo2_hash_limb_a, utxo2_hash_limb_b, utxo2_hash_limb_c, utxo2_hash_limb_d) = + hash_program(&utxo2_bin); + + let coord_bin = wasm_module!({ + call install_handler(1, 2, 3, 4); + + let init_val = call new_ref(1); + call ref_push(0, 0, 0, 0, 0, 0, 0); + + let utxo_id1 = call new_utxo( + const(utxo1_hash_limb_a), + const(utxo1_hash_limb_b), + const(utxo1_hash_limb_c), + const(utxo1_hash_limb_d), + init_val + ); + + let utxo_id2 = call new_utxo( + const(utxo2_hash_limb_a), + const(utxo2_hash_limb_b), + const(utxo2_hash_limb_c), + const(utxo2_hash_limb_d), + init_val + ); + + // Start utxo1 and then route messages until disc=2. + let (req0, caller0) = call resume(utxo_id1, init_val); + let req = req0; + let caller1 = caller0; + + loop { + let (disc, x, _c, _d, _e) = call get(req, 0); + if disc == 2 { + let back = call new_ref(1); + call ref_push(x, 0, 0, 0, 0, 0, 0); + let (_ret_stop, _caller_stop) = call resume(caller1, back); + } + break_if disc == 2; + + // coord -> utxo2 + let msg = call new_ref(1); + call ref_push(x, 0, 0, 0, 0, 0, 0); + let (resp2, _caller2) = call resume(utxo_id2, msg); + let (y, _b2, _c2, _d2, _e2) = call get(resp2, 0); + + // coord -> utxo1, which will resume the handler again + let back = call new_ref(1); + call ref_push(y, 0, 0, 0, 0, 0, 0); + let (req_next, caller_next) = call resume(caller1, back); + set req = req_next; + set caller1 = caller_next; + continue; + } + + call uninstall_handler(1, 2, 3, 4); + }); + + let programs = vec![utxo1_bin.clone(), utxo2_bin.clone(), coord_bin.clone()]; let tx = UnprovenTransaction { inputs: vec![], programs, - is_utxo: vec![true, false], - entrypoint: 1, + is_utxo: vec![true, true, false], + entrypoint: 2, }; let proven_tx = tx.prove().unwrap(); @@ -992,5 +205,23 @@ module let ledger = ledger.apply_transaction(&proven_tx).unwrap(); - assert_eq!(ledger.utxos.len(), 1); + assert_eq!(ledger.utxos.len(), 2); +} + +fn hash_program(utxo_bin: &Vec) -> (i64, i64, i64, i64) { + let mut hasher = Sha256::new(); + hasher.update(utxo_bin); + let utxo_hash_bytes = hasher.finalize(); + + let utxo_hash_limb_a = i64::from_le_bytes(utxo_hash_bytes[0..8].try_into().unwrap()); + let utxo_hash_limb_b = i64::from_le_bytes(utxo_hash_bytes[8..8 * 2].try_into().unwrap()); + let utxo_hash_limb_c = i64::from_le_bytes(utxo_hash_bytes[8 * 2..8 * 3].try_into().unwrap()); + let utxo_hash_limb_d = i64::from_le_bytes(utxo_hash_bytes[8 * 3..8 * 4].try_into().unwrap()); + + ( + utxo_hash_limb_a, + utxo_hash_limb_b, + utxo_hash_limb_c, + utxo_hash_limb_d, + ) } diff --git a/interleaving/starstream-runtime/tests/wasm_dsl.rs b/interleaving/starstream-runtime/tests/wasm_dsl.rs new file mode 100644 index 00000000..840c8aa1 --- /dev/null +++ b/interleaving/starstream-runtime/tests/wasm_dsl.rs @@ -0,0 +1,607 @@ +use wasm_encoder::{ + BlockType, CodeSection, EntityType, ExportKind, ExportSection, Function, FunctionSection, + ImportSection, Instruction, Module, TypeSection, ValType, +}; + +#[derive(Clone, Copy, Debug)] +pub struct Local(u32); + +#[derive(Clone, Copy, Debug)] +pub struct FuncRef { + pub idx: u32, + pub results: usize, +} + +#[derive(Clone, Copy, Debug)] +pub enum Value { + Local(Local), + Const(i64), +} + +impl Value { + fn emit(self, instrs: &mut Vec>) { + match self { + Value::Local(Local(idx)) => instrs.push(Instruction::LocalGet(idx)), + Value::Const(value) => instrs.push(Instruction::I64Const(value)), + } + } +} + +pub struct FuncBuilder { + locals: Vec, + instrs: Vec>, +} + +impl FuncBuilder { + pub fn new() -> Self { + Self { + locals: Vec::new(), + instrs: Vec::new(), + } + } + + pub fn local_i64(&mut self) -> Local { + let idx = self.locals.len() as u32; + self.locals.push(ValType::I64); + Local(idx) + } + + pub fn set_const(&mut self, dst: Local, value: i64) { + self.instrs.push(Instruction::I64Const(value)); + self.instrs.push(Instruction::LocalSet(dst.0)); + } + + pub fn set_local(&mut self, dst: Local, src: Local) { + self.instrs.push(Instruction::LocalGet(src.0)); + self.instrs.push(Instruction::LocalSet(dst.0)); + } + + pub fn call(&mut self, func: FuncRef, args: Vec, results: &[Local]) { + for arg in args { + arg.emit(&mut self.instrs); + } + self.instrs.push(Instruction::Call(func.idx)); + for local in results.iter().rev() { + self.instrs.push(Instruction::LocalSet(local.0)); + } + } + + pub fn assert_eq(&mut self, lhs: Value, rhs: Value) { + lhs.emit(&mut self.instrs); + rhs.emit(&mut self.instrs); + self.instrs.push(Instruction::I64Ne); + self.instrs.push(Instruction::If(BlockType::Empty)); + self.instrs.push(Instruction::Unreachable); + self.instrs.push(Instruction::End); + } + + pub fn add_i64(&mut self, a: Value, b: Value, dst: Local) { + a.emit(&mut self.instrs); + b.emit(&mut self.instrs); + self.instrs.push(Instruction::I64Add); + self.instrs.push(Instruction::LocalSet(dst.0)); + } + + pub fn emit_eq_i64(&mut self, a: Value, b: Value) { + a.emit(&mut self.instrs); + b.emit(&mut self.instrs); + self.instrs.push(Instruction::I64Eq); + } + + pub fn emit_lt_i64(&mut self, a: Value, b: Value) { + a.emit(&mut self.instrs); + b.emit(&mut self.instrs); + self.instrs.push(Instruction::I64LtS); + } + + pub fn loop_begin(&mut self) { + // block { loop { ... } } so depth 1 is break and depth 0 is continue. + self.instrs.push(Instruction::Block(BlockType::Empty)); + self.instrs.push(Instruction::Loop(BlockType::Empty)); + } + + pub fn loop_end(&mut self) { + self.instrs.push(Instruction::End); + self.instrs.push(Instruction::End); + } + + pub fn br(&mut self, depth: u32) { + self.instrs.push(Instruction::Br(depth)); + } + + pub fn br_if(&mut self, depth: u32) { + self.instrs.push(Instruction::BrIf(depth)); + } + + pub fn if_eq(&mut self, lhs: Value, rhs: Value, f: F) + where + F: FnOnce(&mut FuncBuilder), + { + lhs.emit(&mut self.instrs); + rhs.emit(&mut self.instrs); + self.instrs.push(Instruction::I64Eq); + self.instrs.push(Instruction::If(BlockType::Empty)); + f(self); + self.instrs.push(Instruction::End); + } + + fn finish(self) -> Function { + let mut groups: Vec<(u32, ValType)> = Vec::new(); + for ty in self.locals { + if let Some((count, last_ty)) = groups.last_mut() { + if *last_ty == ty { + *count += 1; + continue; + } + } + groups.push((1, ty)); + } + let mut func = Function::new(groups); + for instr in self.instrs { + func.instruction(&instr); + } + func.instruction(&Instruction::End); + func + } +} + +pub struct ModuleBuilder { + types: TypeSection, + imports: ImportSection, + functions: FunctionSection, + codes: CodeSection, + exports: ExportSection, + type_count: u32, + import_count: u32, + starstream: Option, +} + +#[derive(Clone, Copy, Debug)] +pub struct Imports { + pub activation: FuncRef, + pub get_program_hash: FuncRef, + pub get_handler_for: FuncRef, + pub install_handler: FuncRef, + pub uninstall_handler: FuncRef, + pub new_ref: FuncRef, + pub ref_push: FuncRef, + pub get: FuncRef, + pub resume: FuncRef, + pub yield_: FuncRef, + pub new_utxo: FuncRef, + pub new_coord: FuncRef, + pub burn: FuncRef, + pub bind: FuncRef, + pub unbind: FuncRef, + pub init: FuncRef, +} + +impl ModuleBuilder { + pub fn new() -> Self { + let mut builder = Self { + types: TypeSection::new(), + imports: ImportSection::new(), + functions: FunctionSection::new(), + codes: CodeSection::new(), + exports: ExportSection::new(), + type_count: 0, + import_count: 0, + starstream: None, + }; + let imports = builder.import_starstream(); + builder.starstream = Some(imports); + builder + } + + pub fn starstream(&self) -> Imports { + self.starstream.expect("starstream imports available") + } + + pub fn import_starstream(&mut self) -> Imports { + let activation = self.import_func( + "env", + "starstream_activation", + &[], + &[ValType::I64, ValType::I64], + ); + let get_program_hash = self.import_func( + "env", + "starstream_get_program_hash", + &[ValType::I64], + &[ + ValType::I64, + ValType::I64, + ValType::I64, + ValType::I64, + ], + ); + let get_handler_for = self.import_func( + "env", + "starstream_get_handler_for", + &[ValType::I64, ValType::I64, ValType::I64, ValType::I64], + &[ValType::I64], + ); + let install_handler = self.import_func( + "env", + "starstream_install_handler", + &[ValType::I64, ValType::I64, ValType::I64, ValType::I64], + &[], + ); + let uninstall_handler = self.import_func( + "env", + "starstream_uninstall_handler", + &[ValType::I64, ValType::I64, ValType::I64, ValType::I64], + &[], + ); + let new_ref = + self.import_func("env", "starstream_new_ref", &[ValType::I64], &[ValType::I64]); + let ref_push = self.import_func( + "env", + "starstream_ref_push", + &[ + ValType::I64, + ValType::I64, + ValType::I64, + ValType::I64, + ValType::I64, + ValType::I64, + ValType::I64, + ], + &[], + ); + let get = self.import_func( + "env", + "starstream_get", + &[ValType::I64, ValType::I64], + &[ + ValType::I64, + ValType::I64, + ValType::I64, + ValType::I64, + ValType::I64, + ], + ); + let resume = self.import_func( + "env", + "starstream_resume", + &[ValType::I64, ValType::I64], + &[ValType::I64, ValType::I64], + ); + let yield_ = self.import_func( + "env", + "starstream_yield", + &[ValType::I64], + &[ValType::I64, ValType::I64], + ); + let new_utxo = self.import_func( + "env", + "starstream_new_utxo", + &[ + ValType::I64, + ValType::I64, + ValType::I64, + ValType::I64, + ValType::I64, + ], + &[ValType::I64], + ); + let new_coord = self.import_func( + "env", + "starstream_new_coord", + &[ + ValType::I64, + ValType::I64, + ValType::I64, + ValType::I64, + ValType::I64, + ], + &[ValType::I64], + ); + let burn = self.import_func("env", "starstream_burn", &[ValType::I64], &[]); + let bind = self.import_func("env", "starstream_bind", &[ValType::I64], &[]); + let unbind = self.import_func("env", "starstream_unbind", &[ValType::I64], &[]); + let init = self.import_func( + "env", + "starstream_init", + &[], + &[ValType::I64, ValType::I64], + ); + + Imports { + activation, + get_program_hash, + get_handler_for, + install_handler, + uninstall_handler, + new_ref, + ref_push, + get, + resume, + yield_, + new_utxo, + new_coord, + burn, + bind, + unbind, + init, + } + } + + pub fn import_func( + &mut self, + module: &str, + name: &str, + params: &[ValType], + results: &[ValType], + ) -> FuncRef { + let type_idx = self.type_count; + self.type_count += 1; + self.types + .ty() + .function(params.iter().copied(), results.iter().copied()); + self.imports + .import(module, name, EntityType::Function(type_idx)); + let idx = self.import_count; + self.import_count += 1; + FuncRef { + idx, + results: results.len(), + } + } + + pub fn func(&self) -> FuncBuilder { + FuncBuilder::new() + } + + pub fn finish(mut self, func: FuncBuilder) -> Vec { + let type_idx = self.type_count; + self.type_count += 1; + self.types.ty().function([], []); + self.functions.function(type_idx); + self.codes.function(&func.finish()); + let start_idx = self.import_count; + self.exports + .export("_start", ExportKind::Func, start_idx); + + let mut module = Module::new(); + module.section(&self.types); + module.section(&self.imports); + module.section(&self.functions); + module.section(&self.exports); + module.section(&self.codes); + module.finish() + } +} + +#[macro_export] +macro_rules! wasm_module { + ({ $($body:tt)* }) => {{ + let mut __builder = $crate::wasm_dsl::ModuleBuilder::new(); + let __imports = __builder.starstream(); + let mut __func = __builder.func(); + $crate::wasm!(__func, __imports, { $($body)* }); + __builder.finish(__func) + }}; + ($builder:expr, { $($body:tt)* }) => {{ + let __imports = $builder.starstream(); + let mut __func = $builder.func(); + $crate::wasm!(__func, __imports, { $($body)* }); + $builder.finish(__func) + }}; +} + +#[macro_export] +macro_rules! wasm_value { + (const($expr:expr)) => { + $crate::wasm_dsl::Value::Const($expr as i64) + }; + ($lit:literal) => { + $crate::wasm_dsl::Value::Const($lit) + }; + ($var:ident) => { + $crate::wasm_dsl::Value::Local($var) + }; +} + +#[macro_export] +macro_rules! wasm_args { + () => { + Vec::<$crate::wasm_dsl::Value>::new() + }; + ($($arg:tt)+) => {{ + let mut args = Vec::<$crate::wasm_dsl::Value>::new(); + $crate::wasm_args_push!(args, $($arg)+); + args + }}; +} + +#[macro_export] +macro_rules! wasm_args_push { + ($args:ident,) => {}; + ($args:ident, const($expr:expr) $(, $($rest:tt)*)?) => {{ + $args.push($crate::wasm_dsl::Value::Const($expr as i64)); + $( $crate::wasm_args_push!($args, $($rest)*); )? + }}; + ($args:ident, $lit:literal $(, $($rest:tt)*)?) => {{ + $args.push($crate::wasm_dsl::Value::Const($lit)); + $( $crate::wasm_args_push!($args, $($rest)*); )? + }}; + ($args:ident, $var:ident $(, $($rest:tt)*)?) => {{ + $args.push($crate::wasm_dsl::Value::Local($var)); + $( $crate::wasm_args_push!($args, $($rest)*); )? + }}; +} + +#[macro_export] +macro_rules! wasm { + ($f:ident, $imports:ident, { $($body:tt)* }) => { + $crate::wasm_stmt!($f, $imports, $($body)*); + }; +} + +#[macro_export] +macro_rules! wasm_repeat { + ($f:ident, $imports:ident, 0, { $($body:tt)* }) => {}; + ($f:ident, $imports:ident, 1, { $($body:tt)* }) => { + $crate::wasm_stmt!($f, $imports, $($body)*); + }; + ($f:ident, $imports:ident, 2, { $($body:tt)* }) => { + $crate::wasm_stmt!($f, $imports, $($body)*); + $crate::wasm_stmt!($f, $imports, $($body)*); + }; + ($f:ident, $imports:ident, 3, { $($body:tt)* }) => { + $crate::wasm_stmt!($f, $imports, $($body)*); + $crate::wasm_stmt!($f, $imports, $($body)*); + $crate::wasm_stmt!($f, $imports, $($body)*); + }; + ($f:ident, $imports:ident, 4, { $($body:tt)* }) => { + $crate::wasm_stmt!($f, $imports, $($body)*); + $crate::wasm_stmt!($f, $imports, $($body)*); + $crate::wasm_stmt!($f, $imports, $($body)*); + $crate::wasm_stmt!($f, $imports, $($body)*); + }; + ($f:ident, $imports:ident, 5, { $($body:tt)* }) => { + $crate::wasm_stmt!($f, $imports, $($body)*); + $crate::wasm_stmt!($f, $imports, $($body)*); + $crate::wasm_stmt!($f, $imports, $($body)*); + $crate::wasm_stmt!($f, $imports, $($body)*); + $crate::wasm_stmt!($f, $imports, $($body)*); + }; +} + +#[macro_export] +macro_rules! wasm_stmt { + ($f:ident, $imports:ident,) => {}; + + ($f:ident, $imports:ident, repeat $n:literal { $($body:tt)* } $($rest:tt)*) => { + $crate::wasm_repeat!($f, $imports, $n, { $($body)* }); + $crate::wasm_stmt!($f, $imports, $($rest)*); + }; + + // Structured loop: `block { loop { ... } }` so depth 1 is "break" and depth 0 is "continue". + ($f:ident, $imports:ident, loop { $($body:tt)* } $($rest:tt)*) => { + $f.loop_begin(); + $crate::wasm_stmt!($f, $imports, $($body)*); + $f.loop_end(); + $crate::wasm_stmt!($f, $imports, $($rest)*); + }; + + // Loop control (valid inside the `loop { ... }` form above). + ($f:ident, $imports:ident, break; $($rest:tt)*) => { + $f.br(1); + $crate::wasm_stmt!($f, $imports, $($rest)*); + }; + + ($f:ident, $imports:ident, continue; $($rest:tt)*) => { + $f.br(0); + $crate::wasm_stmt!($f, $imports, $($rest)*); + }; + + ($f:ident, $imports:ident, break_if $a:tt == $b:tt; $($rest:tt)*) => { + $f.emit_eq_i64($crate::wasm_value!($a), $crate::wasm_value!($b)); + $f.br_if(1); + $crate::wasm_stmt!($f, $imports, $($rest)*); + }; + + ($f:ident, $imports:ident, continue_if $a:tt == $b:tt; $($rest:tt)*) => { + $f.emit_eq_i64($crate::wasm_value!($a), $crate::wasm_value!($b)); + $f.br_if(0); + $crate::wasm_stmt!($f, $imports, $($rest)*); + }; + + ($f:ident, $imports:ident, break_if $a:tt < $b:tt; $($rest:tt)*) => { + $f.emit_lt_i64($crate::wasm_value!($a), $crate::wasm_value!($b)); + $f.br_if(1); + $crate::wasm_stmt!($f, $imports, $($rest)*); + }; + + ($f:ident, $imports:ident, continue_if $a:tt < $b:tt; $($rest:tt)*) => { + $f.emit_lt_i64($crate::wasm_value!($a), $crate::wasm_value!($b)); + $f.br_if(0); + $crate::wasm_stmt!($f, $imports, $($rest)*); + }; + + // Assignment (must target an existing local). + ($f:ident, $imports:ident, set $var:ident = const($expr:expr); $($rest:tt)*) => { + $f.set_const($var, $expr as i64); + $crate::wasm_stmt!($f, $imports, $($rest)*); + }; + + ($f:ident, $imports:ident, set $var:ident = $lit:literal; $($rest:tt)*) => { + $f.set_const($var, $lit); + $crate::wasm_stmt!($f, $imports, $($rest)*); + }; + + ($f:ident, $imports:ident, set $var:ident = $src:ident; $($rest:tt)*) => { + $f.set_local($var, $src); + $crate::wasm_stmt!($f, $imports, $($rest)*); + }; + + ($f:ident, $imports:ident, set $var:ident = add $a:tt, $b:tt; $($rest:tt)*) => { + $f.add_i64($crate::wasm_value!($a), $crate::wasm_value!($b), $var); + $crate::wasm_stmt!($f, $imports, $($rest)*); + }; + + ($f:ident, $imports:ident, set ($($var:ident),+ $(,)?) = call $func:ident ( $($arg:tt)* ); $($rest:tt)*) => { + $f.call($imports.$func, $crate::wasm_args!($($arg)*), &[$($var),+]); + $crate::wasm_stmt!($f, $imports, $($rest)*); + }; + + ($f:ident, $imports:ident, set $var:ident = call $func:ident ( $($arg:tt)* ); $($rest:tt)*) => { + $f.call($imports.$func, $crate::wasm_args!($($arg)*), &[$var]); + $crate::wasm_stmt!($f, $imports, $($rest)*); + }; + + ($f:ident, $imports:ident, let $var:ident = const($expr:expr); $($rest:tt)*) => { + let $var = $f.local_i64(); + $f.set_const($var, $expr as i64); + $crate::wasm_stmt!($f, $imports, $($rest)*); + }; + + ($f:ident, $imports:ident, let $var:ident = $lit:literal; $($rest:tt)*) => { + let $var = $f.local_i64(); + $f.set_const($var, $lit); + $crate::wasm_stmt!($f, $imports, $($rest)*); + }; + + ($f:ident, $imports:ident, let $var:ident = $src:ident; $($rest:tt)*) => { + let $var = $f.local_i64(); + $f.set_local($var, $src); + $crate::wasm_stmt!($f, $imports, $($rest)*); + }; + + ($f:ident, $imports:ident, let $var:ident = add $a:tt, $b:tt; $($rest:tt)*) => { + let $var = $f.local_i64(); + $f.add_i64($crate::wasm_value!($a), $crate::wasm_value!($b), $var); + $crate::wasm_stmt!($f, $imports, $($rest)*); + }; + + ($f:ident, $imports:ident, let ($($var:ident),+ $(,)?) = call $func:ident ( $($arg:tt)* ); $($rest:tt)*) => { + $(let $var = $f.local_i64();)+ + $f.call($imports.$func, $crate::wasm_args!($($arg)*), &[$($var),+]); + $crate::wasm_stmt!($f, $imports, $($rest)*); + }; + + ($f:ident, $imports:ident, let $var:ident = call $func:ident ( $($arg:tt)* ); $($rest:tt)*) => { + let $var = $f.local_i64(); + $f.call($imports.$func, $crate::wasm_args!($($arg)*), &[$var]); + $crate::wasm_stmt!($f, $imports, $($rest)*); + }; + + ($f:ident, $imports:ident, call $func:ident ( $($arg:tt)* ); $($rest:tt)*) => { + $f.call($imports.$func, $crate::wasm_args!($($arg)*), &[]); + $crate::wasm_stmt!($f, $imports, $($rest)*); + }; + + ($f:ident, $imports:ident, assert_eq $lhs:ident, $rhs:tt; $($rest:tt)*) => { + $f.assert_eq($crate::wasm_value!($lhs), $crate::wasm_value!($rhs)); + $crate::wasm_stmt!($f, $imports, $($rest)*); + }; + + ($f:ident, $imports:ident, if $lhs:ident == $rhs:tt { $($body:tt)* } $($rest:tt)*) => { + $f.if_eq($crate::wasm_value!($lhs), $crate::wasm_value!($rhs), |$f| { + $crate::wasm_stmt!($f, $imports, $($body)*); + }); + $crate::wasm_stmt!($f, $imports, $($rest)*); + }; +} From d8342bf1c0f65c6742c1d174ea802c4f0a4b0fda Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Tue, 27 Jan 2026 11:46:00 -0300 Subject: [PATCH 105/152] add wasm-debugging flag (print the wat of the integration test) Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- interleaving/starstream-runtime/Cargo.toml | 1 + .../starstream-runtime/tests/integration.rs | 34 +++++++++++++++++++ 2 files changed, 35 insertions(+) diff --git a/interleaving/starstream-runtime/Cargo.toml b/interleaving/starstream-runtime/Cargo.toml index 4ea9b921..8f334d44 100644 --- a/interleaving/starstream-runtime/Cargo.toml +++ b/interleaving/starstream-runtime/Cargo.toml @@ -18,3 +18,4 @@ sha2 = "0.10" imbl = "6.1.0" wat = "1.0" wasm-encoder = { workspace = true } +wasmprinter = "0.2" diff --git a/interleaving/starstream-runtime/tests/integration.rs b/interleaving/starstream-runtime/tests/integration.rs index c883a4d1..47b2ee70 100644 --- a/interleaving/starstream-runtime/tests/integration.rs +++ b/interleaving/starstream-runtime/tests/integration.rs @@ -60,6 +60,9 @@ fn test_runtime_simple_effect_handlers() { call uninstall_handler(1, 0, 0, 0); }); + print_wat("simple/utxo", &utxo_bin); + print_wat("simple/coord", &coord_bin); + let programs = vec![utxo_bin, coord_bin.clone()]; let tx = UnprovenTransaction { @@ -80,6 +83,21 @@ fn test_runtime_simple_effect_handlers() { #[test] fn test_runtime_effect_handlers_cross_calls() { + // this test emulates a coordination script acting as a middle-man for a channel-like flow + // + // utxo1 sends numbers, by encoding the request as (1, arg) + // + // the coord script recognizes 1 as a request to forward the message (like + // an enum), and sends the arg utxo2. + // + // utxo2 gets the new message, and answers with x+1 + // + // coord manages the hand-out of that value to utxo1 again + // + // TODO: + // - each coroutine allocates a new ref each time, this is not as efficient + // - coord should check that the answer it receives actually comes from + // the right process (or maybe this should be an optional arg to resume and be enforced by the circuit?) let utxo1_bin = wasm_module!({ let (_init_ref, _caller) = call activation(); @@ -190,6 +208,10 @@ fn test_runtime_effect_handlers_cross_calls() { call uninstall_handler(1, 2, 3, 4); }); + print_wat("cross/utxo1", &utxo1_bin); + print_wat("cross/utxo2", &utxo2_bin); + print_wat("cross/coord", &coord_bin); + let programs = vec![utxo1_bin.clone(), utxo2_bin.clone(), coord_bin.clone()]; let tx = UnprovenTransaction { @@ -209,6 +231,7 @@ fn test_runtime_effect_handlers_cross_calls() { } fn hash_program(utxo_bin: &Vec) -> (i64, i64, i64, i64) { + // TODO: this would be poseidon2 later let mut hasher = Sha256::new(); hasher.update(utxo_bin); let utxo_hash_bytes = hasher.finalize(); @@ -225,3 +248,14 @@ fn hash_program(utxo_bin: &Vec) -> (i64, i64, i64, i64) { utxo_hash_limb_d, ) } + +fn print_wat(name: &str, wasm: &[u8]) { + if std::env::var_os("DEBUG_WAT").is_none() { + return; + } + + match wasmprinter::print_bytes(wasm) { + Ok(wat) => eprintln!("--- WAT: {name} ---\n{wat}"), + Err(err) => eprintln!("--- WAT: {name} (failed: {err}) ---"), + } +} From 67f0067fbb37f2153d4e69f787c0653cd545a468 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Thu, 19 Feb 2026 10:20:05 -0300 Subject: [PATCH 106/152] update Cargo.lock Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- Cargo.lock | 47 +++++++++++++++++++++++++++++++++++------------ 1 file changed, 35 insertions(+), 12 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index effbdc37..c74751ce 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2003,7 +2003,7 @@ dependencies = [ [[package]] name = "neo-ajtai" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=e93ae040e29a3e883d08569a8ccbf79118ebd218#e93ae040e29a3e883d08569a8ccbf79118ebd218" +source = "git+https://github.com/LFDT-Nightstream/Nightstream.git?rev=e93ae040e29a3e883d08569a8ccbf79118ebd218#e93ae040e29a3e883d08569a8ccbf79118ebd218" dependencies = [ "neo-ccs", "neo-math", @@ -2023,7 +2023,7 @@ dependencies = [ [[package]] name = "neo-ccs" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=e93ae040e29a3e883d08569a8ccbf79118ebd218#e93ae040e29a3e883d08569a8ccbf79118ebd218" +source = "git+https://github.com/LFDT-Nightstream/Nightstream.git?rev=e93ae040e29a3e883d08569a8ccbf79118ebd218#e93ae040e29a3e883d08569a8ccbf79118ebd218" dependencies = [ "neo-math", "neo-params", @@ -2044,7 +2044,7 @@ dependencies = [ [[package]] name = "neo-fold" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=e93ae040e29a3e883d08569a8ccbf79118ebd218#e93ae040e29a3e883d08569a8ccbf79118ebd218" +source = "git+https://github.com/LFDT-Nightstream/Nightstream.git?rev=e93ae040e29a3e883d08569a8ccbf79118ebd218#e93ae040e29a3e883d08569a8ccbf79118ebd218" dependencies = [ "neo-ajtai", "neo-ccs", @@ -2068,7 +2068,7 @@ dependencies = [ [[package]] name = "neo-math" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=e93ae040e29a3e883d08569a8ccbf79118ebd218#e93ae040e29a3e883d08569a8ccbf79118ebd218" +source = "git+https://github.com/LFDT-Nightstream/Nightstream.git?rev=e93ae040e29a3e883d08569a8ccbf79118ebd218#e93ae040e29a3e883d08569a8ccbf79118ebd218" dependencies = [ "p3-field", "p3-goldilocks", @@ -2083,7 +2083,7 @@ dependencies = [ [[package]] name = "neo-memory" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=e93ae040e29a3e883d08569a8ccbf79118ebd218#e93ae040e29a3e883d08569a8ccbf79118ebd218" +source = "git+https://github.com/LFDT-Nightstream/Nightstream.git?rev=e93ae040e29a3e883d08569a8ccbf79118ebd218#e93ae040e29a3e883d08569a8ccbf79118ebd218" dependencies = [ "neo-ajtai", "neo-ccs", @@ -2102,7 +2102,7 @@ dependencies = [ [[package]] name = "neo-params" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=e93ae040e29a3e883d08569a8ccbf79118ebd218#e93ae040e29a3e883d08569a8ccbf79118ebd218" +source = "git+https://github.com/LFDT-Nightstream/Nightstream.git?rev=e93ae040e29a3e883d08569a8ccbf79118ebd218#e93ae040e29a3e883d08569a8ccbf79118ebd218" dependencies = [ "serde", "thiserror 2.0.17", @@ -2111,7 +2111,7 @@ dependencies = [ [[package]] name = "neo-reductions" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=e93ae040e29a3e883d08569a8ccbf79118ebd218#e93ae040e29a3e883d08569a8ccbf79118ebd218" +source = "git+https://github.com/LFDT-Nightstream/Nightstream.git?rev=e93ae040e29a3e883d08569a8ccbf79118ebd218#e93ae040e29a3e883d08569a8ccbf79118ebd218" dependencies = [ "bincode", "blake3", @@ -2135,7 +2135,7 @@ dependencies = [ [[package]] name = "neo-transcript" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=e93ae040e29a3e883d08569a8ccbf79118ebd218#e93ae040e29a3e883d08569a8ccbf79118ebd218" +source = "git+https://github.com/LFDT-Nightstream/Nightstream.git?rev=e93ae040e29a3e883d08569a8ccbf79118ebd218#e93ae040e29a3e883d08569a8ccbf79118ebd218" dependencies = [ "neo-ccs", "neo-math", @@ -2151,7 +2151,7 @@ dependencies = [ [[package]] name = "neo-vm-trace" version = "0.1.0" -source = "git+https://github.com/nicarq/Nightstream.git?rev=e93ae040e29a3e883d08569a8ccbf79118ebd218#e93ae040e29a3e883d08569a8ccbf79118ebd218" +source = "git+https://github.com/LFDT-Nightstream/Nightstream.git?rev=e93ae040e29a3e883d08569a8ccbf79118ebd218#e93ae040e29a3e883d08569a8ccbf79118ebd218" dependencies = [ "serde", "thiserror 2.0.17", @@ -3253,7 +3253,9 @@ dependencies = [ "starstream-interleaving-proof", "starstream-interleaving-spec", "thiserror 2.0.17", + "wasm-encoder 0.240.0", "wasmi", + "wasmprinter 0.2.80", "wat", ] @@ -3268,7 +3270,7 @@ dependencies = [ "starstream-compiler", "starstream-to-wasm", "termcolor", - "wasmprinter", + "wasmprinter 0.240.0", "wit-component", ] @@ -3282,7 +3284,7 @@ dependencies = [ "starstream-types", "thiserror 2.0.17", "wasm-encoder 0.240.0", - "wasmprinter", + "wasmprinter 0.240.0", "wasmtime", "wit-component", ] @@ -3967,6 +3969,17 @@ dependencies = [ "wasmi_core", ] +[[package]] +name = "wasmparser" +version = "0.121.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9dbe55c8f9d0dbd25d9447a5a889ff90c0cc3feaa7395310d3d826b2c703eaab" +dependencies = [ + "bitflags 2.9.4", + "indexmap 2.11.4", + "semver", +] + [[package]] name = "wasmparser" version = "0.228.0" @@ -4001,6 +4014,16 @@ dependencies = [ "semver", ] +[[package]] +name = "wasmprinter" +version = "0.2.80" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60e73986a6b7fdfedb7c5bf9e7eb71135486507c8fbc4c0c42cffcb6532988b7" +dependencies = [ + "anyhow", + "wasmparser 0.121.2", +] + [[package]] name = "wasmprinter" version = "0.240.0" @@ -4092,7 +4115,7 @@ dependencies = [ "target-lexicon", "wasm-encoder 0.240.0", "wasmparser 0.240.0", - "wasmprinter", + "wasmprinter 0.240.0", "wasmtime-internal-component-util", ] From 456e7acebeaffc2776b96072ff53ace3929082c6 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Tue, 27 Jan 2026 11:48:15 -0300 Subject: [PATCH 107/152] cargo fmt wasm_dsl Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .../starstream-runtime/tests/wasm_dsl.rs | 25 +++++++------------ 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/interleaving/starstream-runtime/tests/wasm_dsl.rs b/interleaving/starstream-runtime/tests/wasm_dsl.rs index 840c8aa1..3756866f 100644 --- a/interleaving/starstream-runtime/tests/wasm_dsl.rs +++ b/interleaving/starstream-runtime/tests/wasm_dsl.rs @@ -208,12 +208,7 @@ impl ModuleBuilder { "env", "starstream_get_program_hash", &[ValType::I64], - &[ - ValType::I64, - ValType::I64, - ValType::I64, - ValType::I64, - ], + &[ValType::I64, ValType::I64, ValType::I64, ValType::I64], ); let get_handler_for = self.import_func( "env", @@ -233,8 +228,12 @@ impl ModuleBuilder { &[ValType::I64, ValType::I64, ValType::I64, ValType::I64], &[], ); - let new_ref = - self.import_func("env", "starstream_new_ref", &[ValType::I64], &[ValType::I64]); + let new_ref = self.import_func( + "env", + "starstream_new_ref", + &[ValType::I64], + &[ValType::I64], + ); let ref_push = self.import_func( "env", "starstream_ref_push", @@ -300,12 +299,7 @@ impl ModuleBuilder { let burn = self.import_func("env", "starstream_burn", &[ValType::I64], &[]); let bind = self.import_func("env", "starstream_bind", &[ValType::I64], &[]); let unbind = self.import_func("env", "starstream_unbind", &[ValType::I64], &[]); - let init = self.import_func( - "env", - "starstream_init", - &[], - &[ValType::I64, ValType::I64], - ); + let init = self.import_func("env", "starstream_init", &[], &[ValType::I64, ValType::I64]); Imports { activation, @@ -360,8 +354,7 @@ impl ModuleBuilder { self.functions.function(type_idx); self.codes.function(&func.finish()); let start_idx = self.import_count; - self.exports - .export("_start", ExportKind::Func, start_idx); + self.exports.export("_start", ExportKind::Func, start_idx); let mut module = Module::new(); module.section(&self.types); From 20c1b071938b6c533f6b73837aa93a4fd9ab36b1 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Tue, 27 Jan 2026 12:03:30 -0300 Subject: [PATCH 108/152] fix the nebula tests Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .../starstream-interleaving-proof/src/memory/nebula/tracer.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/interleaving/starstream-interleaving-proof/src/memory/nebula/tracer.rs b/interleaving/starstream-interleaving-proof/src/memory/nebula/tracer.rs index 8df17b62..91fcfcdc 100644 --- a/interleaving/starstream-interleaving-proof/src/memory/nebula/tracer.rs +++ b/interleaving/starstream-interleaving-proof/src/memory/nebula/tracer.rs @@ -174,7 +174,9 @@ impl IVCMemory for NebulaMemory Self::Allocator { let mut ic_is_fs = ICPlain::zero(); - let padding_required = SCAN_BATCH_SIZE - (self.is.len() % SCAN_BATCH_SIZE); + // Only pad when there is a remainder; avoid adding a full extra batch. + let rem = self.is.len() % SCAN_BATCH_SIZE; + let padding_required = (SCAN_BATCH_SIZE - rem) % SCAN_BATCH_SIZE; let mut max_address = self.is.keys().next_back().unwrap().clone(); From e76d91bb8bfceefceeb116e153b60fc5f960bbbc Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Tue, 27 Jan 2026 12:05:43 -0300 Subject: [PATCH 109/152] ignore the test_runtime_effect_handlers_cross_calls integration test for the CI it may be possible to run it later after some optimizations, but right now it's still a bit expensive. Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- interleaving/starstream-runtime/tests/integration.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/interleaving/starstream-runtime/tests/integration.rs b/interleaving/starstream-runtime/tests/integration.rs index 47b2ee70..66b96f14 100644 --- a/interleaving/starstream-runtime/tests/integration.rs +++ b/interleaving/starstream-runtime/tests/integration.rs @@ -82,6 +82,7 @@ fn test_runtime_simple_effect_handlers() { } #[test] +#[ignore = "this test is still quite expensive to run in the CI (it generates like a 100 folding steps)"] fn test_runtime_effect_handlers_cross_calls() { // this test emulates a coordination script acting as a middle-man for a channel-like flow // From 466dbac4050c21bf07d22e8c05fcab3b162a7305 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Tue, 27 Jan 2026 12:23:04 -0300 Subject: [PATCH 110/152] rename Get opcode to RefGet Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .../starstream-interleaving-proof/src/abi.rs | 6 +++--- .../starstream-interleaving-proof/src/circuit.rs | 10 +++++----- .../src/circuit_test.rs | 8 ++++---- .../src/ledger_operation.rs | 2 +- .../src/ref_arena_gadget.rs | 2 +- interleaving/starstream-interleaving-spec/README.md | 8 ++++---- .../src/mocked_verifier.rs | 8 ++++---- .../src/transaction_effects/witness.rs | 6 +++--- interleaving/starstream-runtime/src/lib.rs | 8 ++++---- interleaving/starstream-runtime/tests/integration.rs | 12 ++++++------ interleaving/starstream-runtime/tests/wasm_dsl.rs | 8 ++++---- 11 files changed, 39 insertions(+), 39 deletions(-) diff --git a/interleaving/starstream-interleaving-proof/src/abi.rs b/interleaving/starstream-interleaving-proof/src/abi.rs index e9b7269e..ee8d43d9 100644 --- a/interleaving/starstream-interleaving-proof/src/abi.rs +++ b/interleaving/starstream-interleaving-proof/src/abi.rs @@ -145,7 +145,7 @@ pub(crate) fn ledger_operation_from_wit(op: &WitLedgerEffect) -> LedgerOperation WitLedgerEffect::RefPush { vals } => LedgerOperation::RefPush { vals: vals.map(value_to_field), }, - WitLedgerEffect::Get { reff, offset, ret } => LedgerOperation::Get { + WitLedgerEffect::RefGet { reff, offset, ret } => LedgerOperation::RefGet { reff: F::from(reff.0), offset: F::from(*offset as u64), ret: ret.unwrap().map(value_to_field), @@ -181,7 +181,7 @@ pub(crate) fn opcode_discriminant(op: &LedgerOperation) -> F { LedgerOperation::Unbind { .. } => F::from(EffectDiscriminant::Unbind as u64), LedgerOperation::NewRef { .. } => F::from(EffectDiscriminant::NewRef as u64), LedgerOperation::RefPush { .. } => F::from(EffectDiscriminant::RefPush as u64), - LedgerOperation::Get { .. } => F::from(EffectDiscriminant::Get as u64), + LedgerOperation::RefGet { .. } => F::from(EffectDiscriminant::RefGet as u64), LedgerOperation::InstallHandler { .. } => { F::from(EffectDiscriminant::InstallHandler as u64) } @@ -270,7 +270,7 @@ pub(crate) fn opcode_args(op: &LedgerOperation) -> [F; OPCODE_ARG_COUNT] { args[ArgName::PackedRef5.idx()] = vals[5]; args[ArgName::PackedRef6.idx()] = vals[6]; } - LedgerOperation::Get { reff, offset, ret } => { + LedgerOperation::RefGet { reff, offset, ret } => { args[ArgName::Val.idx()] = *reff; args[ArgName::Offset.idx()] = *offset; diff --git a/interleaving/starstream-interleaving-proof/src/circuit.rs b/interleaving/starstream-interleaving-proof/src/circuit.rs index 1826b67e..4bfca066 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit.rs @@ -316,7 +316,7 @@ impl ExecutionSwitches { (unbind, EffectDiscriminant::Unbind as u64), (new_ref, EffectDiscriminant::NewRef as u64), (ref_push, EffectDiscriminant::RefPush as u64), - (get, EffectDiscriminant::Get as u64), + (get, EffectDiscriminant::RefGet as u64), (install_handler, EffectDiscriminant::InstallHandler as u64), ( uninstall_handler, @@ -971,7 +971,7 @@ impl LedgerOperation { LedgerOperation::RefPush { .. } => { config.execution_switches.ref_push = true; } - LedgerOperation::Get { .. } => { + LedgerOperation::RefGet { .. } => { config.execution_switches.get = true; } LedgerOperation::InstallHandler { .. } => { @@ -1156,7 +1156,7 @@ impl> StepCircuitBuilder { let next_wires = self.visit_unbind(next_wires)?; let next_wires = self.visit_new_ref(next_wires)?; let next_wires = self.visit_ref_push(next_wires)?; - let next_wires = self.visit_get_ref(next_wires)?; + let next_wires = self.visit_ref_get(next_wires)?; let next_wires = self.visit_install_handler(next_wires)?; let next_wires = self.visit_uninstall_handler(next_wires)?; let next_wires = self.visit_get_handler_for(next_wires)?; @@ -1688,7 +1688,7 @@ impl> StepCircuitBuilder { switches: ExecutionSwitches::ref_push(), ..default }, - LedgerOperation::Get { .. } => PreWires { + LedgerOperation::RefGet { .. } => PreWires { switches: ExecutionSwitches::get(), ..default }, @@ -2101,7 +2101,7 @@ impl> StepCircuitBuilder { } #[tracing::instrument(target = "gr1cs", skip_all)] - fn visit_get_ref(&self, wires: Wires) -> Result { + fn visit_ref_get(&self, wires: Wires) -> Result { let switch = &wires.switches.get; let expected = [ diff --git a/interleaving/starstream-interleaving-proof/src/circuit_test.rs b/interleaving/starstream-interleaving-proof/src/circuit_test.rs index fb930c45..91c29c85 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit_test.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit_test.rs @@ -80,7 +80,7 @@ fn test_circuit_many_steps() { val: ref_4.into(), caller: p2.into(), }, - WitLedgerEffect::Get { + WitLedgerEffect::RefGet { reff: ref_4, offset: 0, ret: v5_from_value(val_4).into(), @@ -105,7 +105,7 @@ fn test_circuit_many_steps() { val: ref_1.into(), caller: p2.into(), }, - WitLedgerEffect::Get { + WitLedgerEffect::RefGet { reff: ref_1, offset: 0, ret: v5_from_value(val_1).into(), @@ -375,12 +375,12 @@ fn prove_ref_non_multiple( }, WitLedgerEffect::RefPush { vals: push1_vals }, WitLedgerEffect::RefPush { vals: push2_vals }, - WitLedgerEffect::Get { + WitLedgerEffect::RefGet { ret: first_get_ret.into(), reff: ref_0.into(), offset: 0, }, - WitLedgerEffect::Get { + WitLedgerEffect::RefGet { ret: last_get_ret.into(), reff: ref_0.into(), offset: last_get_offset, diff --git a/interleaving/starstream-interleaving-proof/src/ledger_operation.rs b/interleaving/starstream-interleaving-proof/src/ledger_operation.rs index 135f3d11..f468bbe6 100644 --- a/interleaving/starstream-interleaving-proof/src/ledger_operation.rs +++ b/interleaving/starstream-interleaving-proof/src/ledger_operation.rs @@ -65,7 +65,7 @@ pub enum LedgerOperation { RefPush { vals: [F; REF_PUSH_BATCH_SIZE], }, - Get { + RefGet { reff: F, offset: F, ret: [F; REF_GET_BATCH_SIZE], diff --git a/interleaving/starstream-interleaving-proof/src/ref_arena_gadget.rs b/interleaving/starstream-interleaving-proof/src/ref_arena_gadget.rs index 94f645bd..53013b58 100644 --- a/interleaving/starstream-interleaving-proof/src/ref_arena_gadget.rs +++ b/interleaving/starstream-interleaving-proof/src/ref_arena_gadget.rs @@ -47,7 +47,7 @@ pub(crate) fn trace_ref_arena_ops>( ref_push_vals = *vals; ref_push = true; } - LedgerOperation::Get { + LedgerOperation::RefGet { reff, offset, ret: _, diff --git a/interleaving/starstream-interleaving-spec/README.md b/interleaving/starstream-interleaving-spec/README.md index 3545f6a0..5a54f183 100644 --- a/interleaving/starstream-interleaving-spec/README.md +++ b/interleaving/starstream-interleaving-spec/README.md @@ -568,12 +568,12 @@ Rule: RefPush 3. counters'[id_curr] += 1 ``` -## Get +## RefGet ```text -Rule: Get +Rule: RefGet ============== - op = Get(ref, offset) -> vals[5] + op = RefGet(ref, offset) -> vals[5] 1. let size = ref_sizes[ref] 2. for i in 0..4: @@ -585,7 +585,7 @@ Rule: Get 2. let t = CC[id_curr] in c = counters[id_curr] in - t[c] == + t[c] == (Host call lookup condition) ----------------------------------------------------------------------- diff --git a/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs b/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs index a8941faa..26d1422c 100644 --- a/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs +++ b/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs @@ -195,8 +195,8 @@ pub enum InterleavingError { #[error("RefPush called but full (pid={pid} size={size})")] RefPushOutOfBounds { pid: ProcessId, size: usize }, - #[error("Get offset out of bounds: ref={0:?} offset={1} len={2}")] - GetOutOfBounds(Ref, usize, usize), + #[error("RefGet offset out of bounds: ref={0:?} offset={1} len={2}")] + RefGetOutOfBounds(Ref, usize, usize), #[error("NewRef result mismatch. Got: {0:?}. Expected: {0:?}")] RefInitializationMismatch(Ref, Ref), @@ -737,7 +737,7 @@ pub fn state_transition( } } - WitLedgerEffect::Get { reff, offset, ret } => { + WitLedgerEffect::RefGet { reff, offset, ret } => { let vec = state .ref_store .get(&reff) @@ -755,7 +755,7 @@ pub fn state_transition( } } if val != ret.unwrap() { - return Err(InterleavingError::Shape("Get result mismatch")); + return Err(InterleavingError::Shape("RefGet result mismatch")); } } diff --git a/interleaving/starstream-interleaving-spec/src/transaction_effects/witness.rs b/interleaving/starstream-interleaving-spec/src/transaction_effects/witness.rs index f11fcdd0..cf12d806 100644 --- a/interleaving/starstream-interleaving-spec/src/transaction_effects/witness.rs +++ b/interleaving/starstream-interleaving-spec/src/transaction_effects/witness.rs @@ -18,7 +18,7 @@ pub enum EffectDiscriminant { Init = 9, NewRef = 10, RefPush = 11, - Get = 12, + RefGet = 12, Bind = 13, Unbind = 14, ProgramHash = 15, @@ -128,7 +128,7 @@ pub enum WitLedgerEffect { // out // does not return anything }, - Get { + RefGet { // in reff: Ref, offset: usize, @@ -198,7 +198,7 @@ impl From for EffectDiscriminant { 9 => EffectDiscriminant::Init, 10 => EffectDiscriminant::NewRef, 11 => EffectDiscriminant::RefPush, - 12 => EffectDiscriminant::Get, + 12 => EffectDiscriminant::RefGet, 13 => EffectDiscriminant::Bind, 14 => EffectDiscriminant::Unbind, 15 => EffectDiscriminant::ProgramHash, diff --git a/interleaving/starstream-runtime/src/lib.rs b/interleaving/starstream-runtime/src/lib.rs index 74cef15a..df1fe90a 100644 --- a/interleaving/starstream-runtime/src/lib.rs +++ b/interleaving/starstream-runtime/src/lib.rs @@ -68,7 +68,7 @@ fn effect_result_arity(effect: &WitLedgerEffect) -> usize { | WitLedgerEffect::NewCoord { .. } | WitLedgerEffect::GetHandlerFor { .. } | WitLedgerEffect::NewRef { .. } => 1, - WitLedgerEffect::Get { .. } => 5, + WitLedgerEffect::RefGet { .. } => 5, WitLedgerEffect::InstallHandler { .. } | WitLedgerEffect::UninstallHandler { .. } | WitLedgerEffect::Burn { .. } @@ -527,7 +527,7 @@ impl Runtime { linker .func_wrap( "env", - "starstream_get", + "starstream_ref_get", |mut caller: Caller<'_, RuntimeState>, reff: u64, offset: u64| @@ -553,7 +553,7 @@ impl Runtime { } suspend_with_effect( &mut caller, - WitLedgerEffect::Get { + WitLedgerEffect::RefGet { reff: ref_id, offset, ret: WitEffectOutput::Resolved(ret), @@ -942,7 +942,7 @@ impl UnprovenTransaction { WitLedgerEffect::NewRef { ret, .. } => { next_args = [ret.unwrap().0, 0, 0, 0, 0]; } - WitLedgerEffect::Get { ret, .. } => { + WitLedgerEffect::RefGet { ret, .. } => { let ret = ret.unwrap(); next_args = [ret[0].0, ret[1].0, ret[2].0, ret[3].0, ret[4].0]; } diff --git a/interleaving/starstream-runtime/tests/integration.rs b/interleaving/starstream-runtime/tests/integration.rs index 66b96f14..6b3644e8 100644 --- a/interleaving/starstream-runtime/tests/integration.rs +++ b/interleaving/starstream-runtime/tests/integration.rs @@ -23,7 +23,7 @@ fn test_runtime_simple_effect_handlers() { call ref_push(42, 0, 0, 0, 0, 0, 0); let (resp, _caller) = call resume(handler_id, req); - let (resp_val, _b, _c, _d, _e) = call get(resp, 0); + let (resp_val, _b, _c, _d, _e) = call ref_get(resp, 0); assert_eq resp_val, 1; let (_req2, _caller2) = call yield_(resp); @@ -48,7 +48,7 @@ fn test_runtime_simple_effect_handlers() { ); let (req, _caller) = call resume(0, init_val); - let (req_val, _b, _c, _d, _e) = call get(req, 0); + let (req_val, _b, _c, _d, _e) = call ref_get(req, 0); assert_eq req_val, 42; @@ -117,7 +117,7 @@ fn test_runtime_effect_handlers_cross_calls() { call ref_push(1, x, 0, 0, 0, 0, 0); let (resp, _caller2) = call resume(handler_id, req); - let (y, _b, _c, _d, _e) = call get(resp, 0); + let (y, _b, _c, _d, _e) = call ref_get(resp, 0); let expected = add x, 1; assert_eq y, expected; @@ -139,7 +139,7 @@ fn test_runtime_effect_handlers_cross_calls() { // Serve x -> x+1 for each incoming request. loop { - let (x, _b, _c, _d, _e) = call get(req, 0); + let (x, _b, _c, _d, _e) = call ref_get(req, 0); let y = add x, 1; let resp = call new_ref(1); call ref_push(y, 0, 0, 0, 0, 0, 0); @@ -183,7 +183,7 @@ fn test_runtime_effect_handlers_cross_calls() { let caller1 = caller0; loop { - let (disc, x, _c, _d, _e) = call get(req, 0); + let (disc, x, _c, _d, _e) = call ref_get(req, 0); if disc == 2 { let back = call new_ref(1); call ref_push(x, 0, 0, 0, 0, 0, 0); @@ -195,7 +195,7 @@ fn test_runtime_effect_handlers_cross_calls() { let msg = call new_ref(1); call ref_push(x, 0, 0, 0, 0, 0, 0); let (resp2, _caller2) = call resume(utxo_id2, msg); - let (y, _b2, _c2, _d2, _e2) = call get(resp2, 0); + let (y, _b2, _c2, _d2, _e2) = call ref_get(resp2, 0); // coord -> utxo1, which will resume the handler again let back = call new_ref(1); diff --git a/interleaving/starstream-runtime/tests/wasm_dsl.rs b/interleaving/starstream-runtime/tests/wasm_dsl.rs index 3756866f..2f8a4ee1 100644 --- a/interleaving/starstream-runtime/tests/wasm_dsl.rs +++ b/interleaving/starstream-runtime/tests/wasm_dsl.rs @@ -165,7 +165,7 @@ pub struct Imports { pub uninstall_handler: FuncRef, pub new_ref: FuncRef, pub ref_push: FuncRef, - pub get: FuncRef, + pub ref_get: FuncRef, pub resume: FuncRef, pub yield_: FuncRef, pub new_utxo: FuncRef, @@ -248,9 +248,9 @@ impl ModuleBuilder { ], &[], ); - let get = self.import_func( + let ref_get = self.import_func( "env", - "starstream_get", + "starstream_ref_get", &[ValType::I64, ValType::I64], &[ ValType::I64, @@ -309,7 +309,7 @@ impl ModuleBuilder { uninstall_handler, new_ref, ref_push, - get, + ref_get, resume, yield_, new_utxo, From d87e28b6770505bbf545d831329f1698ee6d1bc0 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Tue, 27 Jan 2026 13:12:29 -0300 Subject: [PATCH 111/152] add RefWrite opcode for mutation Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .../starstream-interleaving-proof/src/abi.rs | 27 ++++ .../src/circuit.rs | 33 +++- .../src/circuit_test.rs | 84 ++++++++++ .../src/ledger_operation.rs | 7 + .../src/memory/twist_and_shout/mod.rs | 18 ++- .../starstream-interleaving-proof/src/neo.rs | 4 +- .../src/ref_arena_gadget.rs | 145 +++++++++++++++++- .../starstream-interleaving-spec/src/lib.rs | 3 +- .../src/mocked_verifier.rs | 34 +++- .../src/transaction_effects/witness.rs | 12 ++ interleaving/starstream-runtime/src/lib.rs | 61 +++++++- .../starstream-runtime/tests/integration.rs | 38 +++-- .../starstream-runtime/tests/wasm_dsl.rs | 16 ++ 13 files changed, 449 insertions(+), 33 deletions(-) diff --git a/interleaving/starstream-interleaving-proof/src/abi.rs b/interleaving/starstream-interleaving-proof/src/abi.rs index ee8d43d9..8cc3f893 100644 --- a/interleaving/starstream-interleaving-proof/src/abi.rs +++ b/interleaving/starstream-interleaving-proof/src/abi.rs @@ -150,6 +150,17 @@ pub(crate) fn ledger_operation_from_wit(op: &WitLedgerEffect) -> LedgerOperation offset: F::from(*offset as u64), ret: ret.unwrap().map(value_to_field), }, + WitLedgerEffect::RefWrite { + reff, + offset, + len, + vals, + } => LedgerOperation::RefWrite { + reff: F::from(reff.0), + offset: F::from(*offset as u64), + len: F::from(*len as u64), + vals: vals.map(value_to_field), + }, WitLedgerEffect::InstallHandler { interface_id } => LedgerOperation::InstallHandler { interface_id: F::from(interface_id.0[0] as u64), }, @@ -182,6 +193,7 @@ pub(crate) fn opcode_discriminant(op: &LedgerOperation) -> F { LedgerOperation::NewRef { .. } => F::from(EffectDiscriminant::NewRef as u64), LedgerOperation::RefPush { .. } => F::from(EffectDiscriminant::RefPush as u64), LedgerOperation::RefGet { .. } => F::from(EffectDiscriminant::RefGet as u64), + LedgerOperation::RefWrite { .. } => F::from(EffectDiscriminant::RefWrite as u64), LedgerOperation::InstallHandler { .. } => { F::from(EffectDiscriminant::InstallHandler as u64) } @@ -281,6 +293,21 @@ pub(crate) fn opcode_args(op: &LedgerOperation) -> [F; OPCODE_ARG_COUNT] { args[ArgName::PackedRef5.idx()] = ret[3]; args[ArgName::PackedRef6.idx()] = ret[4]; } + LedgerOperation::RefWrite { + reff, + offset, + len, + vals, + } => { + args[ArgName::Val.idx()] = *reff; + args[ArgName::Offset.idx()] = *offset; + args[ArgName::PackedRef0.idx()] = *len; + // Avoid collisions with Val(idx=1) and Offset(idx=3). + args[ArgName::PackedRef2.idx()] = vals[0]; + args[ArgName::PackedRef4.idx()] = vals[1]; + args[ArgName::PackedRef5.idx()] = vals[2]; + args[ArgName::PackedRef6.idx()] = vals[3]; + } LedgerOperation::InstallHandler { interface_id } | LedgerOperation::UninstallHandler { interface_id } => { args[ArgName::InterfaceId.idx()] = *interface_id; diff --git a/interleaving/starstream-interleaving-proof/src/circuit.rs b/interleaving/starstream-interleaving-proof/src/circuit.rs index 4bfca066..f0d2e923 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit.rs @@ -7,7 +7,8 @@ use crate::program_state::{ trace_program_state_reads, trace_program_state_writes, }; use crate::ref_arena_gadget::{ - ref_arena_get_read_wires, ref_arena_new_ref_wires, ref_arena_push_wires, trace_ref_arena_ops, + ref_arena_get_read_wires, ref_arena_new_ref_wires, ref_arena_push_wires, ref_arena_write_wires, + trace_ref_arena_ops, }; use crate::switchboard::{ HandlerSwitchboard, HandlerSwitchboardWires, MemSwitchboard, MemSwitchboardWires, @@ -111,6 +112,7 @@ pub(crate) struct ExecutionSwitches { pub(crate) new_ref: T, pub(crate) ref_push: T, pub(crate) get: T, + pub(crate) ref_write: T, pub(crate) install_handler: T, pub(crate) uninstall_handler: T, pub(crate) get_handler_for: T, @@ -215,6 +217,13 @@ impl ExecutionSwitches { } } + fn ref_write() -> Self { + Self { + ref_write: true, + ..Self::default() + } + } + fn install_handler() -> Self { Self { install_handler: true, @@ -257,6 +266,7 @@ impl ExecutionSwitches { self.new_ref, self.ref_push, self.get, + self.ref_write, self.install_handler, self.uninstall_handler, self.get_handler_for, @@ -295,6 +305,7 @@ impl ExecutionSwitches { new_ref, ref_push, get, + ref_write, install_handler, uninstall_handler, get_handler_for, @@ -317,6 +328,7 @@ impl ExecutionSwitches { (new_ref, EffectDiscriminant::NewRef as u64), (ref_push, EffectDiscriminant::RefPush as u64), (get, EffectDiscriminant::RefGet as u64), + (ref_write, EffectDiscriminant::RefWrite as u64), (install_handler, EffectDiscriminant::InstallHandler as u64), ( uninstall_handler, @@ -346,6 +358,7 @@ impl ExecutionSwitches { new_ref: new_ref.clone(), ref_push: ref_push.clone(), get: get.clone(), + ref_write: ref_write.clone(), install_handler: install_handler.clone(), uninstall_handler: uninstall_handler.clone(), get_handler_for: get_handler_for.clone(), @@ -369,6 +382,7 @@ impl Default for ExecutionSwitches { new_ref: false, ref_push: false, get: false, + ref_write: false, install_handler: false, uninstall_handler: false, get_handler_for: false, @@ -745,6 +759,8 @@ impl Wires { )?; ref_arena_new_ref_wires(cs.clone(), rm, &switches, &opcode_args)?; + let _ref_write_lane_switches = + ref_arena_write_wires(cs.clone(), rm, &switches, &opcode_args, &val, &offset)?; (ref_push_lane_switches, ref_arena_read, get_lane_switches) }; @@ -974,6 +990,9 @@ impl LedgerOperation { LedgerOperation::RefGet { .. } => { config.execution_switches.get = true; } + LedgerOperation::RefWrite { .. } => { + config.execution_switches.ref_write = true; + } LedgerOperation::InstallHandler { .. } => { config.execution_switches.install_handler = true; config.rom_switches.read_is_utxo_curr = true; @@ -1157,6 +1176,7 @@ impl> StepCircuitBuilder { let next_wires = self.visit_new_ref(next_wires)?; let next_wires = self.visit_ref_push(next_wires)?; let next_wires = self.visit_ref_get(next_wires)?; + let next_wires = self.visit_ref_write(next_wires)?; let next_wires = self.visit_install_handler(next_wires)?; let next_wires = self.visit_uninstall_handler(next_wires)?; let next_wires = self.visit_get_handler_for(next_wires)?; @@ -1692,6 +1712,10 @@ impl> StepCircuitBuilder { switches: ExecutionSwitches::get(), ..default }, + LedgerOperation::RefWrite { .. } => PreWires { + switches: ExecutionSwitches::ref_write(), + ..default + }, LedgerOperation::InstallHandler { .. } => PreWires { switches: ExecutionSwitches::install_handler(), ..default @@ -2124,6 +2148,13 @@ impl> StepCircuitBuilder { Ok(wires) } + #[tracing::instrument(target = "gr1cs", skip_all)] + fn visit_ref_write(&self, wires: Wires) -> Result { + // Plumbing only: circuit semantics for in-place ref writes are not enforced yet. + let _switch = &wires.switches.ref_write; + Ok(wires) + } + #[tracing::instrument(target = "gr1cs", skip_all)] fn visit_program_hash(&self, wires: Wires) -> Result { let switch = &wires.switches.program_hash; diff --git a/interleaving/starstream-interleaving-proof/src/circuit_test.rs b/interleaving/starstream-interleaving-proof/src/circuit_test.rs index 91c29c85..368aa7fb 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit_test.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit_test.rs @@ -414,6 +414,90 @@ fn prove_ref_non_multiple( prove(instance, wit).map(|_| ()) } +#[test] +fn test_ref_write_basic_sat() { + setup_logger(); + + let coord_id = 0; + let p0 = ProcessId(coord_id); + let ref_0 = Ref(0); + + let initial = Value(41); + let updated = Value(99); + + let initial_get = [ + initial, + Value::nil(), + Value::nil(), + Value::nil(), + Value::nil(), + ]; + let updated_get = [ + updated, + Value::nil(), + Value::nil(), + Value::nil(), + Value::nil(), + ]; + + let coord_trace = vec![ + WitLedgerEffect::NewRef { + size: 7, + ret: ref_0.into(), + }, + WitLedgerEffect::RefPush { + vals: [ + initial, + Value::nil(), + Value::nil(), + Value::nil(), + Value::nil(), + Value::nil(), + Value::nil(), + ], + }, + WitLedgerEffect::RefGet { + ret: initial_get.into(), + reff: ref_0.into(), + offset: 0, + }, + WitLedgerEffect::RefWrite { + reff: ref_0, + offset: 0, + len: 1, + vals: [updated, Value::nil(), Value::nil(), Value::nil()], + }, + WitLedgerEffect::RefGet { + ret: updated_get.into(), + reff: ref_0.into(), + offset: 0, + }, + ]; + + let traces = vec![coord_trace]; + let trace_lens = traces.iter().map(|t| t.len() as u32).collect::>(); + let host_calls_roots = host_calls_roots(&traces); + + let instance = InterleavingInstance { + n_inputs: 0, + n_new: 0, + n_coords: 1, + entrypoint: p0, + process_table: vec![h(0)], + is_utxo: vec![false], + must_burn: vec![false], + ownership_in: vec![None], + ownership_out: vec![None], + host_calls_roots, + host_calls_lens: trace_lens, + input_states: vec![], + }; + + let wit = InterleavingWitness { traces }; + let result = prove(instance, wit); + assert!(result.is_ok()); +} + #[test] fn test_ref_non_multiple_sat() { setup_logger(); diff --git a/interleaving/starstream-interleaving-proof/src/ledger_operation.rs b/interleaving/starstream-interleaving-proof/src/ledger_operation.rs index f468bbe6..e62e15dd 100644 --- a/interleaving/starstream-interleaving-proof/src/ledger_operation.rs +++ b/interleaving/starstream-interleaving-proof/src/ledger_operation.rs @@ -3,6 +3,7 @@ use ark_ff::PrimeField; pub const REF_PUSH_BATCH_SIZE: usize = 7; pub const REF_GET_BATCH_SIZE: usize = 5; +pub const REF_WRITE_BATCH_SIZE: usize = 4; #[derive(Debug, Clone)] pub enum LedgerOperation { @@ -70,6 +71,12 @@ pub enum LedgerOperation { offset: F, ret: [F; REF_GET_BATCH_SIZE], }, + RefWrite { + reff: F, + offset: F, + len: F, + vals: [F; REF_WRITE_BATCH_SIZE], + }, InstallHandler { interface_id: F, }, diff --git a/interleaving/starstream-interleaving-proof/src/memory/twist_and_shout/mod.rs b/interleaving/starstream-interleaving-proof/src/memory/twist_and_shout/mod.rs index c25ab0dd..7d4ebecb 100644 --- a/interleaving/starstream-interleaving-proof/src/memory/twist_and_shout/mod.rs +++ b/interleaving/starstream-interleaving-proof/src/memory/twist_and_shout/mod.rs @@ -487,12 +487,18 @@ impl TSMemoryConstraints { kind: TwistOpKind, ) -> Result<(F, F, F), SynthesisError> { let (ra, rv) = { - let mut event = self - .twist_events - .get_mut(address) - .unwrap() - .pop_front() - .unwrap(); + let queue = self.twist_events.get_mut(address).unwrap_or_else(|| { + panic!( + "missing twist events for address {:?} kind {:?} lane {}", + address, kind, lane + ) + }); + let mut event = queue.pop_front().unwrap_or_else(|| { + panic!( + "empty twist event queue for address {:?} kind {:?} lane {}", + address, kind, lane + ) + }); event.lane.replace(lane); diff --git a/interleaving/starstream-interleaving-proof/src/neo.rs b/interleaving/starstream-interleaving-proof/src/neo.rs index f6dbfe25..b29d5484 100644 --- a/interleaving/starstream-interleaving-proof/src/neo.rs +++ b/interleaving/starstream-interleaving-proof/src/neo.rs @@ -15,8 +15,8 @@ use p3_field::PrimeCharacteristicRing; use std::collections::HashMap; // TODO: benchmark properly -pub(crate) const CHUNK_SIZE: usize = 5; -const PER_STEP_COLS: usize = 1566; +pub(crate) const CHUNK_SIZE: usize = 1; +const PER_STEP_COLS: usize = 2097; const BASE_INSTANCE_COLS: usize = 1; const EXTRA_INSTANCE_COLS: usize = IvcWireLayout::FIELD_COUNT * 2; const M_IN: usize = BASE_INSTANCE_COLS + EXTRA_INSTANCE_COLS; diff --git a/interleaving/starstream-interleaving-proof/src/ref_arena_gadget.rs b/interleaving/starstream-interleaving-proof/src/ref_arena_gadget.rs index 53013b58..d4e69a1b 100644 --- a/interleaving/starstream-interleaving-proof/src/ref_arena_gadget.rs +++ b/interleaving/starstream-interleaving-proof/src/ref_arena_gadget.rs @@ -4,7 +4,7 @@ use crate::{ F, LedgerOperation, abi::{ArgName, OPCODE_ARG_COUNT}, circuit::MemoryTag, - ledger_operation::{REF_GET_BATCH_SIZE, REF_PUSH_BATCH_SIZE}, + ledger_operation::{REF_GET_BATCH_SIZE, REF_PUSH_BATCH_SIZE, REF_WRITE_BATCH_SIZE}, memory::{Address, IVCMemory, IVCMemoryAllocated}, }; use crate::{circuit::ExecutionSwitches, rem_wires_gadget::alloc_rem_one_hot_selectors}; @@ -29,10 +29,15 @@ pub(crate) fn trace_ref_arena_ops>( let mut ref_push_vals = std::array::from_fn(|_| F::ZERO); let mut ref_push = false; let mut ref_get = false; + let mut ref_write = false; let mut new_ref = false; let mut ref_get_ref = F::ZERO; let mut ref_get_offset = F::ZERO; + let mut ref_write_ref = F::ZERO; + let mut ref_write_offset = F::ZERO; + let mut ref_write_len = 0usize; + let mut ref_write_vals = std::array::from_fn(|_| F::ZERO); match instr { LedgerOperation::NewRef { size, ret } => { @@ -57,6 +62,18 @@ pub(crate) fn trace_ref_arena_ops>( ref_get_ref = *reff; ref_get_offset = *offset; } + LedgerOperation::RefWrite { + reff, + offset, + len, + vals, + } => { + ref_write = true; + ref_write_ref = *reff; + ref_write_offset = *offset; + ref_write_len = len.into_bigint().0[0] as usize; + ref_write_vals = *vals; + } _ => {} }; @@ -76,6 +93,21 @@ pub(crate) fn trace_ref_arena_ops>( addr: ref_get_ref.into_bigint().0[0], }, ); + mb.conditional_read( + ref_write, + Address { + tag: MemoryTag::RefSizes.into(), + addr: ref_write_ref.into_bigint().0[0], + }, + ); + mb.conditional_write( + false, + Address { + tag: MemoryTag::RefSizes.into(), + addr: 0, + }, + vec![F::ZERO], + ); let remaining = ref_building_remaining.into_bigint().0[0] as usize; let to_write = remaining.min(REF_PUSH_BATCH_SIZE); @@ -130,6 +162,36 @@ pub(crate) fn trace_ref_arena_ops>( }, ); } + + let write_size = ref_sizes + .get(&ref_write_ref.into_bigint().0[0]) + .copied() + .unwrap_or(0); + let write_offset = ref_write_offset.into_bigint().0[0]; + let write_remaining = write_size.saturating_sub(write_offset) as usize; + let to_write = write_remaining.min(ref_write_len).min(REF_WRITE_BATCH_SIZE); + for (i, val) in ref_write_vals.iter().enumerate().take(REF_WRITE_BATCH_SIZE) { + let should_write = ref_write && i < to_write; + let addr = ref_write_ref.into_bigint().0[0] + write_offset + i as u64; + mb.conditional_write( + should_write, + Address { + tag: MemoryTag::RefArena.into(), + addr, + }, + vec![*val], + ); + } + + for _ in 0..REF_WRITE_BATCH_SIZE { + mb.conditional_read( + false, + Address { + tag: MemoryTag::RefArena.into(), + addr: 0, + }, + ); + } } pub(crate) fn ref_arena_new_ref_wires>( @@ -248,3 +310,84 @@ pub(crate) fn ref_arena_push_wires>( Ok(ref_push_lane_switches) } + +pub(crate) fn ref_arena_write_wires>( + cs: ConstraintSystemRef, + rm: &mut M, + switches: &ExecutionSwitches>, + opcode_args: &[FpVar; OPCODE_ARG_COUNT], + val: &FpVar, + offset: &FpVar, +) -> Result<[Boolean; REF_WRITE_BATCH_SIZE], SynthesisError> { + let ref_size_read = rm.conditional_read( + &switches.ref_write, + &Address { + tag: MemoryTag::RefSizes.allocate(cs.clone())?, + addr: val.clone(), + }, + )?[0] + .clone(); + + let ref_size_sel = switches.ref_write.select(&ref_size_read, &FpVar::zero())?; + let offset_sel = switches.ref_write.select(offset, &FpVar::zero())?; + let len_sel = switches + .ref_write + .select(&opcode_args[ArgName::PackedRef0.idx()], &FpVar::zero())?; + + let (ref_size_u32, _) = UInt::<32, u32, F>::from_fp(&ref_size_sel)?; + let (offset_u32, _) = UInt::<32, u32, F>::from_fp(&offset_sel)?; + let (len_u32, _) = UInt::<32, u32, F>::from_fp(&len_sel)?; + + let size_ge_offset = ref_size_u32.is_ge(&offset_u32)?; + let remaining = size_ge_offset.select(&(&ref_size_sel - &offset_sel), &FpVar::zero())?; + + let remaining_lane_switches = + alloc_rem_one_hot_selectors::(&cs, &remaining, &switches.ref_write)?; + + let write_base_addr = val + offset; + for i in 0..REF_WRITE_BATCH_SIZE { + let i_const = UInt::<32, u32, F>::constant(i as u32); + let len_gt_i = len_u32.is_gt(&i_const)?; + let should_write = remaining_lane_switches[i].clone() & len_gt_i; + + let offset = FpVar::new_constant(cs.clone(), F::from(i as u64))?; + let write_addr = &write_base_addr + offset; + let write_val = match i { + 0 => opcode_args[ArgName::PackedRef2.idx()].clone(), + 1 => opcode_args[ArgName::PackedRef4.idx()].clone(), + 2 => opcode_args[ArgName::PackedRef5.idx()].clone(), + 3 => opcode_args[ArgName::PackedRef6.idx()].clone(), + _ => unreachable!(), + }; + + rm.conditional_write( + &should_write, + &Address { + tag: MemoryTag::RefArena.allocate(cs.clone())?, + addr: write_addr, + }, + &[write_val], + )?; + } + + for _ in 0..REF_WRITE_BATCH_SIZE { + let _ = rm.conditional_read( + &Boolean::FALSE, + &Address { + tag: MemoryTag::RefArena.allocate(cs.clone())?, + addr: FpVar::zero(), + }, + )?; + } + + rm.conditional_write( + &Boolean::FALSE, + &Address { + tag: MemoryTag::RefSizes.allocate(cs.clone())?, + addr: FpVar::zero(), + }, + &[FpVar::zero()], + )?; + + Ok(remaining_lane_switches) +} diff --git a/interleaving/starstream-interleaving-spec/src/lib.rs b/interleaving/starstream-interleaving-spec/src/lib.rs index c9a4c7f0..c408e2c3 100644 --- a/interleaving/starstream-interleaving-spec/src/lib.rs +++ b/interleaving/starstream-interleaving-spec/src/lib.rs @@ -17,7 +17,8 @@ pub use transaction_effects::{ InterfaceId, instance::InterleavingInstance, witness::{ - EffectDiscriminant, REF_GET_WIDTH, REF_PUSH_WIDTH, WitEffectOutput, WitLedgerEffect, + EffectDiscriminant, REF_GET_WIDTH, REF_PUSH_WIDTH, REF_WRITE_WIDTH, WitEffectOutput, + WitLedgerEffect, }, }; diff --git a/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs b/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs index 26d1422c..03eb50b0 100644 --- a/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs +++ b/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs @@ -10,7 +10,10 @@ use crate::{ Hash, InterleavingInstance, REF_GET_WIDTH, Ref, Value, WasmModule, - transaction_effects::{InterfaceId, ProcessId, witness::WitLedgerEffect}, + transaction_effects::{ + InterfaceId, ProcessId, + witness::{REF_WRITE_WIDTH, WitLedgerEffect}, + }, }; use ark_ff::Zero; use ark_goldilocks::FpGoldilocks; @@ -759,6 +762,35 @@ pub fn state_transition( } } + WitLedgerEffect::RefWrite { + reff, + offset, + len, + vals, + } => { + if len > REF_WRITE_WIDTH { + return Err(InterleavingError::Shape("RefWrite len too large")); + } + + let vec = state + .ref_store + .get_mut(&reff) + .ok_or(InterleavingError::RefNotFound(reff))?; + let size = state + .ref_sizes + .get(&reff) + .copied() + .ok_or(InterleavingError::RefNotFound(reff))?; + + if offset + len > size { + return Err(InterleavingError::Shape("RefWrite out of bounds")); + } + + for (i, val) in vals.iter().enumerate().take(len) { + vec[offset + i] = *val; + } + } + WitLedgerEffect::Burn { ret } => { if !rom.is_utxo[id_curr.0] { return Err(InterleavingError::UtxoOnly(id_curr)); diff --git a/interleaving/starstream-interleaving-spec/src/transaction_effects/witness.rs b/interleaving/starstream-interleaving-spec/src/transaction_effects/witness.rs index cf12d806..88346990 100644 --- a/interleaving/starstream-interleaving-spec/src/transaction_effects/witness.rs +++ b/interleaving/starstream-interleaving-spec/src/transaction_effects/witness.rs @@ -22,10 +22,12 @@ pub enum EffectDiscriminant { Bind = 13, Unbind = 14, ProgramHash = 15, + RefWrite = 16, } pub const REF_PUSH_WIDTH: usize = 7; pub const REF_GET_WIDTH: usize = 5; +pub const REF_WRITE_WIDTH: usize = 4; // Both used to indicate which fields are outputs, and to have a placeholder // value for the runtime executor (trace generator) @@ -136,6 +138,15 @@ pub enum WitLedgerEffect { // out ret: WitEffectOutput<[Value; REF_GET_WIDTH]>, }, + RefWrite { + // in + reff: Ref, + offset: usize, + len: usize, + vals: [Value; REF_WRITE_WIDTH], + // out + // does not return anything + }, // Tokens Bind { @@ -202,6 +213,7 @@ impl From for EffectDiscriminant { 13 => EffectDiscriminant::Bind, 14 => EffectDiscriminant::Unbind, 15 => EffectDiscriminant::ProgramHash, + 16 => EffectDiscriminant::RefWrite, _ => todo!(), } } diff --git a/interleaving/starstream-runtime/src/lib.rs b/interleaving/starstream-runtime/src/lib.rs index df1fe90a..c317a487 100644 --- a/interleaving/starstream-runtime/src/lib.rs +++ b/interleaving/starstream-runtime/src/lib.rs @@ -74,7 +74,8 @@ fn effect_result_arity(effect: &WitLedgerEffect) -> usize { | WitLedgerEffect::Burn { .. } | WitLedgerEffect::Bind { .. } | WitLedgerEffect::Unbind { .. } - | WitLedgerEffect::RefPush { .. } => 0, + | WitLedgerEffect::RefPush { .. } + | WitLedgerEffect::RefWrite { .. } => 0, } } @@ -524,6 +525,61 @@ impl Runtime { ) .unwrap(); + linker + .func_wrap( + "env", + "starstream_ref_write", + |mut caller: Caller<'_, RuntimeState>, + reff: u64, + offset: u64, + len: u64, + val_0: u64, + val_1: u64, + val_2: u64, + val_3: u64| + -> Result<(), wasmi::Error> { + let ref_id = Ref(reff); + let offset = offset as usize; + let len = len as usize; + + if len > starstream_interleaving_spec::REF_WRITE_WIDTH { + return Err(wasmi::Error::new("ref write len too large")); + } + + let size = *caller + .data() + .ref_sizes + .get(&ref_id) + .ok_or(wasmi::Error::new("ref size not found"))?; + + if offset + len > size { + return Err(wasmi::Error::new("ref write overflow")); + } + + let vals = [Value(val_0), Value(val_1), Value(val_2), Value(val_3)]; + let store = caller + .data_mut() + .ref_store + .get_mut(&ref_id) + .ok_or(wasmi::Error::new("ref not found"))?; + + for (i, val) in vals.iter().enumerate().take(len) { + store[offset + i] = *val; + } + + suspend_with_effect( + &mut caller, + WitLedgerEffect::RefWrite { + reff: ref_id, + offset, + len, + vals, + }, + ) + }, + ) + .unwrap(); + linker .func_wrap( "env", @@ -946,6 +1002,9 @@ impl UnprovenTransaction { let ret = ret.unwrap(); next_args = [ret[0].0, ret[1].0, ret[2].0, ret[3].0, ret[4].0]; } + WitLedgerEffect::RefWrite { .. } => { + next_args = [0; 5]; + } WitLedgerEffect::ProgramHash { program_hash, .. } => { let limbs = program_hash.unwrap().0; next_args = [ diff --git a/interleaving/starstream-runtime/tests/integration.rs b/interleaving/starstream-runtime/tests/integration.rs index 6b3644e8..23313028 100644 --- a/interleaving/starstream-runtime/tests/integration.rs +++ b/interleaving/starstream-runtime/tests/integration.rs @@ -113,8 +113,12 @@ fn test_runtime_effect_handlers_cross_calls() { loop { break_if i == n; - let req = call new_ref(2); - call ref_push(1, x, 0, 0, 0, 0, 0); + // Allocate a ref for the number, then send a nested ref message (disc, num_ref). + let num_ref = call new_ref(7); + call ref_push(x, 0, 0, 0, 0, 0, 0); + + let req = call new_ref(7); + call ref_push(1, num_ref, 0, 0, 0, 0, 0); let (resp, _caller2) = call resume(handler_id, req); let (y, _b, _c, _d, _e) = call ref_get(resp, 0); @@ -126,8 +130,10 @@ fn test_runtime_effect_handlers_cross_calls() { continue; } - let stop = call new_ref(2); - call ref_push(2, x, 0, 0, 0, 0, 0); + let stop_num_ref = call new_ref(7); + call ref_push(x, 0, 0, 0, 0, 0, 0); + let stop = call new_ref(7); + call ref_push(2, stop_num_ref, 0, 0, 0, 0, 0); let (_resp_stop, _caller_stop) = call resume(handler_id, stop); let (_req3, _caller3) = call yield_(stop); @@ -137,13 +143,12 @@ fn test_runtime_effect_handlers_cross_calls() { let (init_ref, _caller) = call activation(); let req = init_ref; - // Serve x -> x+1 for each incoming request. + // Serve x -> x+1 for each incoming request, writing back into the same ref. loop { let (x, _b, _c, _d, _e) = call ref_get(req, 0); let y = add x, 1; - let resp = call new_ref(1); - call ref_push(y, 0, 0, 0, 0, 0, 0); - let (next_req, _caller2) = call yield_(resp); + call ref_write(req, 0, 1, y, 0, 0, 0); + let (next_req, _caller2) = call yield_(req); set req = next_req; continue; } @@ -183,24 +188,17 @@ fn test_runtime_effect_handlers_cross_calls() { let caller1 = caller0; loop { - let (disc, x, _c, _d, _e) = call ref_get(req, 0); + let (disc, num_ref, _c, _d, _e) = call ref_get(req, 0); if disc == 2 { - let back = call new_ref(1); - call ref_push(x, 0, 0, 0, 0, 0, 0); - let (_ret_stop, _caller_stop) = call resume(caller1, back); + let (_ret_stop, _caller_stop) = call resume(caller1, num_ref); } break_if disc == 2; - // coord -> utxo2 - let msg = call new_ref(1); - call ref_push(x, 0, 0, 0, 0, 0, 0); - let (resp2, _caller2) = call resume(utxo_id2, msg); - let (y, _b2, _c2, _d2, _e2) = call ref_get(resp2, 0); + // coord -> utxo2 (mutates num_ref in place) + let (resp2, _caller2) = call resume(utxo_id2, num_ref); // coord -> utxo1, which will resume the handler again - let back = call new_ref(1); - call ref_push(y, 0, 0, 0, 0, 0, 0); - let (req_next, caller_next) = call resume(caller1, back); + let (req_next, caller_next) = call resume(caller1, resp2); set req = req_next; set caller1 = caller_next; continue; diff --git a/interleaving/starstream-runtime/tests/wasm_dsl.rs b/interleaving/starstream-runtime/tests/wasm_dsl.rs index 2f8a4ee1..32c9d511 100644 --- a/interleaving/starstream-runtime/tests/wasm_dsl.rs +++ b/interleaving/starstream-runtime/tests/wasm_dsl.rs @@ -166,6 +166,7 @@ pub struct Imports { pub new_ref: FuncRef, pub ref_push: FuncRef, pub ref_get: FuncRef, + pub ref_write: FuncRef, pub resume: FuncRef, pub yield_: FuncRef, pub new_utxo: FuncRef, @@ -260,6 +261,20 @@ impl ModuleBuilder { ValType::I64, ], ); + let ref_write = self.import_func( + "env", + "starstream_ref_write", + &[ + ValType::I64, + ValType::I64, + ValType::I64, + ValType::I64, + ValType::I64, + ValType::I64, + ValType::I64, + ], + &[], + ); let resume = self.import_func( "env", "starstream_resume", @@ -310,6 +325,7 @@ impl ModuleBuilder { new_ref, ref_push, ref_get, + ref_write, resume, yield_, new_utxo, From d2185c11ed590801fa21e14a5b99f1b142605fc6 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Wed, 28 Jan 2026 02:51:40 -0300 Subject: [PATCH 112/152] simplify shared-buffer opcodes (fix lengths and switch to aligned reads/writes) this reduces the need for lookups and range-checks Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- Cargo.toml | 14 +- .../starstream-interleaving-proof/src/abi.rs | 34 +- .../src/circuit.rs | 68 ++-- .../src/circuit_test.rs | 314 +-------------- .../src/ledger_operation.rs | 5 +- .../starstream-interleaving-proof/src/lib.rs | 1 - .../src/memory/twist_and_shout/mod.rs | 12 +- .../starstream-interleaving-proof/src/neo.rs | 4 +- .../src/ref_arena_gadget.rs | 367 +++++++----------- .../src/rem_wires_gadget.rs | 139 ------- .../starstream-interleaving-spec/README.md | 61 ++- .../src/mocked_verifier.rs | 61 +-- .../starstream-interleaving-spec/src/tests.rs | 34 +- .../src/transaction_effects/witness.rs | 8 +- interleaving/starstream-runtime/src/lib.rs | 85 ++-- .../starstream-runtime/tests/integration.rs | 42 +- .../starstream-runtime/tests/wasm_dsl.rs | 19 +- 17 files changed, 361 insertions(+), 907 deletions(-) delete mode 100644 interleaving/starstream-interleaving-proof/src/rem_wires_gadget.rs diff --git a/Cargo.toml b/Cargo.toml index 65a80dea..86a0b42f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -44,13 +44,13 @@ wasm-encoder = "0.240.0" wasmprinter = "0.240.0" wit-component = "0.240.0" -neo-fold = { git = "https://github.com/LFDT-Nightstream/Nightstream.git", rev = "e93ae040e29a3e883d08569a8ccbf79118ebd218" } -neo-math = { git = "https://github.com/LFDT-Nightstream/Nightstream.git", rev = "e93ae040e29a3e883d08569a8ccbf79118ebd218" } -neo-ccs = { git = "https://github.com/LFDT-Nightstream/Nightstream.git", rev = "e93ae040e29a3e883d08569a8ccbf79118ebd218" } -neo-ajtai = { git = "https://github.com/LFDT-Nightstream/Nightstream.git", rev = "e93ae040e29a3e883d08569a8ccbf79118ebd218" } -neo-params = { git = "https://github.com/LFDT-Nightstream/Nightstream.git", rev = "e93ae040e29a3e883d08569a8ccbf79118ebd218" } -neo-vm-trace = { git = "https://github.com/LFDT-Nightstream/Nightstream.git", rev = "e93ae040e29a3e883d08569a8ccbf79118ebd218" } -neo-memory = { git = "https://github.com/LFDT-Nightstream/Nightstream.git", rev = "e93ae040e29a3e883d08569a8ccbf79118ebd218" } +neo-fold = { git = "https://github.com/LFDT-Nightstream/Nightstream.git", rev = "f6e80467807967735a16293ec04d5ee5a36d984e" } +neo-math = { git = "https://github.com/LFDT-Nightstream/Nightstream.git", rev = "f6e80467807967735a16293ec04d5ee5a36d984e" } +neo-ccs = { git = "https://github.com/LFDT-Nightstream/Nightstream.git", rev = "f6e80467807967735a16293ec04d5ee5a36d984e" } +neo-ajtai = { git = "https://github.com/LFDT-Nightstream/Nightstream.git", rev = "f6e80467807967735a16293ec04d5ee5a36d984e" } +neo-params = { git = "https://github.com/LFDT-Nightstream/Nightstream.git", rev = "f6e80467807967735a16293ec04d5ee5a36d984e" } +neo-vm-trace = { git = "https://github.com/LFDT-Nightstream/Nightstream.git", rev = "f6e80467807967735a16293ec04d5ee5a36d984e" } +neo-memory = { git = "https://github.com/LFDT-Nightstream/Nightstream.git", rev = "f6e80467807967735a16293ec04d5ee5a36d984e" } [profile.dev.package] insta.opt-level = 3 diff --git a/interleaving/starstream-interleaving-proof/src/abi.rs b/interleaving/starstream-interleaving-proof/src/abi.rs index 8cc3f893..431cd8b7 100644 --- a/interleaving/starstream-interleaving-proof/src/abi.rs +++ b/interleaving/starstream-interleaving-proof/src/abi.rs @@ -44,7 +44,6 @@ pub enum ArgName { PackedRef3, PackedRef4, PackedRef5, - PackedRef6, } impl ArgName { @@ -62,14 +61,13 @@ impl ArgName { ArgName::ProgramHash2 => 5, ArgName::ProgramHash3 => 6, - // Packed ref args for RefPush (full width). + // Packed ref args for RefPush/RefGet/RefWrite. ArgName::PackedRef0 => 0, ArgName::PackedRef1 => 1, ArgName::PackedRef2 => 2, ArgName::PackedRef3 => 3, ArgName::PackedRef4 => 4, ArgName::PackedRef5 => 5, - ArgName::PackedRef6 => 6, } } } @@ -150,15 +148,9 @@ pub(crate) fn ledger_operation_from_wit(op: &WitLedgerEffect) -> LedgerOperation offset: F::from(*offset as u64), ret: ret.unwrap().map(value_to_field), }, - WitLedgerEffect::RefWrite { - reff, - offset, - len, - vals, - } => LedgerOperation::RefWrite { + WitLedgerEffect::RefWrite { reff, offset, vals } => LedgerOperation::RefWrite { reff: F::from(reff.0), offset: F::from(*offset as u64), - len: F::from(*len as u64), vals: vals.map(value_to_field), }, WitLedgerEffect::InstallHandler { interface_id } => LedgerOperation::InstallHandler { @@ -278,35 +270,25 @@ pub(crate) fn opcode_args(op: &LedgerOperation) -> [F; OPCODE_ARG_COUNT] { args[ArgName::PackedRef1.idx()] = vals[1]; args[ArgName::PackedRef2.idx()] = vals[2]; args[ArgName::PackedRef3.idx()] = vals[3]; - args[ArgName::PackedRef4.idx()] = vals[4]; - args[ArgName::PackedRef5.idx()] = vals[5]; - args[ArgName::PackedRef6.idx()] = vals[6]; } LedgerOperation::RefGet { reff, offset, ret } => { args[ArgName::Val.idx()] = *reff; args[ArgName::Offset.idx()] = *offset; - // Pack 5 return values, leaving slots 1 and 3 for reff/offset. + // Pack 4 return values, leaving slots 1 and 3 for reff/offset. args[ArgName::PackedRef0.idx()] = ret[0]; args[ArgName::PackedRef2.idx()] = ret[1]; args[ArgName::PackedRef4.idx()] = ret[2]; args[ArgName::PackedRef5.idx()] = ret[3]; - args[ArgName::PackedRef6.idx()] = ret[4]; } - LedgerOperation::RefWrite { - reff, - offset, - len, - vals, - } => { + LedgerOperation::RefWrite { reff, offset, vals } => { args[ArgName::Val.idx()] = *reff; args[ArgName::Offset.idx()] = *offset; - args[ArgName::PackedRef0.idx()] = *len; // Avoid collisions with Val(idx=1) and Offset(idx=3). - args[ArgName::PackedRef2.idx()] = vals[0]; - args[ArgName::PackedRef4.idx()] = vals[1]; - args[ArgName::PackedRef5.idx()] = vals[2]; - args[ArgName::PackedRef6.idx()] = vals[3]; + args[ArgName::PackedRef0.idx()] = vals[0]; + args[ArgName::PackedRef2.idx()] = vals[1]; + args[ArgName::PackedRef4.idx()] = vals[2]; + args[ArgName::PackedRef5.idx()] = vals[3]; } LedgerOperation::InstallHandler { interface_id } | LedgerOperation::UninstallHandler { interface_id } => { diff --git a/interleaving/starstream-interleaving-proof/src/circuit.rs b/interleaving/starstream-interleaving-proof/src/circuit.rs index f0d2e923..c5357d70 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit.rs @@ -6,10 +6,7 @@ use crate::program_state::{ ProgramState, ProgramStateWires, program_state_read_wires, program_state_write_wires, trace_program_state_reads, trace_program_state_writes, }; -use crate::ref_arena_gadget::{ - ref_arena_get_read_wires, ref_arena_new_ref_wires, ref_arena_push_wires, ref_arena_write_wires, - trace_ref_arena_ops, -}; +use crate::ref_arena_gadget::{ref_arena_access_wires, ref_arena_read_size, trace_ref_arena_ops}; use crate::switchboard::{ HandlerSwitchboard, HandlerSwitchboardWires, MemSwitchboard, MemSwitchboardWires, RomSwitchboard, RomSwitchboardWires, @@ -417,7 +414,6 @@ pub struct Wires { ref_building_remaining: FpVar, ref_building_ptr: FpVar, - ref_push_lanes: [Boolean; REF_PUSH_BATCH_SIZE], switches: ExecutionSwitches>, @@ -431,7 +427,6 @@ pub struct Wires { target_write_wires: ProgramStateWires, ref_arena_read: [FpVar; REF_GET_BATCH_SIZE], - get_lane_switches: [Boolean; REF_GET_BATCH_SIZE], handler_state: HandlerState, // ROM lookup results @@ -745,24 +740,20 @@ impl Wires { }; // ref arena wires - let (ref_push_lane_switches, ref_arena_read, get_lane_switches) = { - let (ref_arena_read, get_lane_switches) = - ref_arena_get_read_wires(cs.clone(), rm, &switches, val.clone(), offset.clone())?; + let ref_arena_read = { + let ref_size_read = ref_arena_read_size(cs.clone(), rm, &switches, &opcode_args, &val)?; - let ref_push_lane_switches = ref_arena_push_wires( + ref_arena_access_wires( cs.clone(), rm, &switches, &opcode_args, &ref_building_ptr, &ref_building_remaining, - )?; - - ref_arena_new_ref_wires(cs.clone(), rm, &switches, &opcode_args)?; - let _ref_write_lane_switches = - ref_arena_write_wires(cs.clone(), rm, &switches, &opcode_args, &val, &offset)?; - - (ref_push_lane_switches, ref_arena_read, get_lane_switches) + &val, + &offset, + &ref_size_read, + )? }; let should_trace = switches.nop.clone().not(); @@ -783,8 +774,6 @@ impl Wires { ref_building_remaining, ref_building_ptr, - ref_push_lanes: ref_push_lane_switches, - switches, constant_false, @@ -805,7 +794,6 @@ impl Wires { must_burn_curr, rom_program_hash, ref_arena_read, - get_lane_switches, handler_state, }) } @@ -1158,7 +1146,9 @@ impl> StepCircuitBuilder { tracing::info_span!("make_step_circuit", i = i, pid = ?irw.id_curr, op = ?self.ops[i]) .entered(); - tracing::info!("synthesizing step"); + if !matches!(&self.ops[i], &LedgerOperation::Nop {}) { + tracing::info!("synthesizing step"); + } let wires_in = self.allocate_vars(i, rm, &irw)?; let next_wires = wires_in.clone(); @@ -1354,10 +1344,12 @@ impl> StepCircuitBuilder { let mut ref_building_id = F::ZERO; let mut ref_building_offset = F::ZERO; let mut ref_building_remaining = F::ZERO; - let mut ref_sizes: BTreeMap = BTreeMap::new(); for instr in &self.ops { - tracing::info!("mem tracing instr {:?}", &instr); + if !matches!(instr, LedgerOperation::Nop {}) { + tracing::info!("mem tracing instr {:?}", &instr); + } + let config = instr.get_config(); trace_ic(irw.id_curr.into_bigint().0[0] as usize, &mut mb, &config); @@ -1469,7 +1461,6 @@ impl> StepCircuitBuilder { &mut ref_building_id, &mut ref_building_offset, &mut ref_building_remaining, - &mut ref_sizes, instr, ); @@ -2088,8 +2079,10 @@ impl> StepCircuitBuilder { switch.select(&wires.arg(ArgName::Ret), &wires.ref_building_ptr)?; // 4. Increment stack ptr by size + let size = wires.arg(ArgName::Size); wires.ref_arena_stack_ptr = switch.select( - &(&wires.ref_arena_stack_ptr + &wires.arg(ArgName::Size)), + &(&wires.ref_arena_stack_ptr + + size * FpVar::Constant(F::from(REF_PUSH_BATCH_SIZE as u64))), &wires.ref_arena_stack_ptr, )?; @@ -2104,21 +2097,14 @@ impl> StepCircuitBuilder { is_building.conditional_enforce_equal(&Boolean::TRUE, switch)?; // Update state - // remaining -= lane_count - let mut next_remaining = wires.ref_building_remaining.clone(); - for lane in wires.ref_push_lanes.iter() { - let dec = lane.select(&FpVar::one(), &FpVar::zero())?; - next_remaining = &next_remaining - dec; - } + // remaining -= 1 word + let next_remaining = &wires.ref_building_remaining - FpVar::one(); wires.ref_building_remaining = switch.select(&next_remaining, &wires.ref_building_remaining)?; - // ptr += lane_count - let mut next_ptr = wires.ref_building_ptr.clone(); - for lane in wires.ref_push_lanes.iter() { - let inc = lane.select(&FpVar::one(), &FpVar::zero())?; - next_ptr = &next_ptr + inc; - } + // ptr += 4 elems + let inc = FpVar::one() + FpVar::one() + FpVar::one() + FpVar::one(); + let next_ptr = &wires.ref_building_ptr + inc; wires.ref_building_ptr = switch.select(&next_ptr, &wires.ref_building_ptr)?; Ok(wires) @@ -2133,16 +2119,10 @@ impl> StepCircuitBuilder { wires.opcode_args[ArgName::PackedRef2.idx()].clone(), wires.opcode_args[ArgName::PackedRef4.idx()].clone(), wires.opcode_args[ArgName::PackedRef5.idx()].clone(), - wires.opcode_args[ArgName::PackedRef6.idx()].clone(), ]; for i in 0..REF_GET_BATCH_SIZE { - expected[i] - .conditional_enforce_equal(&wires.ref_arena_read[i], &wires.get_lane_switches[i])?; - - let lane_off = wires.get_lane_switches[i].clone().not(); - let lane_off_when_get = switch & &lane_off; - expected[i].conditional_enforce_equal(&FpVar::zero(), &lane_off_when_get)?; + expected[i].conditional_enforce_equal(&wires.ref_arena_read[i], switch)?; } Ok(wires) diff --git a/interleaving/starstream-interleaving-proof/src/circuit_test.rs b/interleaving/starstream-interleaving-proof/src/circuit_test.rs index 368aa7fb..e69ebb34 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit_test.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit_test.rs @@ -1,5 +1,4 @@ use crate::{logging::setup_logger, prove}; -use ark_relations::gr1cs::SynthesisError; use starstream_interleaving_spec::{ Hash, InterleavingInstance, InterleavingWitness, LedgerEffectsCommitment, ProcessId, Ref, Value, WitEffectOutput, WitLedgerEffect, @@ -20,24 +19,15 @@ pub fn v(data: &[u8]) -> Value { Value(u64::from_le_bytes(bytes)) } -fn v5_from_value(val: Value) -> [Value; 5] { - let mut out = [Value::nil(); 5]; +fn v4_from_value(val: Value) -> [Value; 4] { + let mut out = [Value::nil(); 4]; out[0] = val; - out[4] = val; out } fn ref_push1(val: Value) -> WitLedgerEffect { WitLedgerEffect::RefPush { - vals: [ - val, - Value::nil(), - Value::nil(), - Value::nil(), - val, - Value::nil(), - Value::nil(), - ], + vals: [val, Value::nil(), Value::nil(), Value::nil()], } } @@ -72,8 +62,8 @@ fn test_circuit_many_steps() { let val_4 = v(&[4]); let ref_0 = Ref(0); - let ref_1 = Ref(7); - let ref_4 = Ref(14); + let ref_1 = Ref(4); + let ref_4 = Ref(8); let utxo_trace = vec![ WitLedgerEffect::Init { @@ -83,7 +73,7 @@ fn test_circuit_many_steps() { WitLedgerEffect::RefGet { reff: ref_4, offset: 0, - ret: v5_from_value(val_4).into(), + ret: v4_from_value(val_4).into(), }, WitLedgerEffect::Activation { val: ref_0.into(), @@ -108,7 +98,7 @@ fn test_circuit_many_steps() { WitLedgerEffect::RefGet { reff: ref_1, offset: 0, - ret: v5_from_value(val_1).into(), + ret: v4_from_value(val_1).into(), }, WitLedgerEffect::Activation { val: ref_0.into(), @@ -124,17 +114,17 @@ fn test_circuit_many_steps() { let coord_trace = vec![ WitLedgerEffect::NewRef { - size: 7, + size: 1, ret: ref_0.into(), }, ref_push1(val_0), WitLedgerEffect::NewRef { - size: 7, + size: 1, ret: ref_1.into(), }, ref_push1(val_1.clone()), WitLedgerEffect::NewRef { - size: 7, + size: 1, ret: ref_4.into(), }, ref_push1(val_4.clone()), @@ -217,7 +207,7 @@ fn test_circuit_small() { let coord_trace = vec![ WitLedgerEffect::NewRef { - size: 7, + size: 1, ret: ref_0.into(), }, ref_push1(val_0), @@ -286,7 +276,7 @@ fn test_circuit_resumer_mismatch() { let coord_a_trace = vec![ WitLedgerEffect::NewRef { - size: 7, + size: 1, ret: ref_0.into(), }, ref_push1(val_0), @@ -348,72 +338,6 @@ fn test_circuit_resumer_mismatch() { assert!(result.is_err()); } -fn prove_ref_non_multiple( - size: usize, - push1_vals: [Value; 7], - push2_vals: [Value; 7], - first_get_ret: [Value; 5], - last_get_offset: usize, - last_get_ret: [Value; 5], -) -> Result<(), SynthesisError> { - let coord_id = 0; - - let p0 = ProcessId(coord_id); - - let coord_trace = { - let size = size; - let push2_vals = push2_vals; - let first_get_ret = first_get_ret; - let last_get_offset = last_get_offset; - let last_get_ret = last_get_ret; - let ref_0 = Ref(0); - - vec![ - WitLedgerEffect::NewRef { - size, - ret: ref_0.into(), - }, - WitLedgerEffect::RefPush { vals: push1_vals }, - WitLedgerEffect::RefPush { vals: push2_vals }, - WitLedgerEffect::RefGet { - ret: first_get_ret.into(), - reff: ref_0.into(), - offset: 0, - }, - WitLedgerEffect::RefGet { - ret: last_get_ret.into(), - reff: ref_0.into(), - offset: last_get_offset, - }, - ] - }; - - let traces = vec![coord_trace]; - - let trace_lens = traces.iter().map(|t| t.len() as u32).collect::>(); - - let host_calls_roots = host_calls_roots(&traces); - - let instance = InterleavingInstance { - n_inputs: 0, - n_new: 0, - n_coords: 1, - entrypoint: p0, - process_table: vec![h(0)], - is_utxo: vec![false], - must_burn: vec![false], - ownership_in: vec![None], - ownership_out: vec![None], - host_calls_roots, - host_calls_lens: trace_lens, - input_states: vec![], - }; - - let wit = InterleavingWitness { traces }; - - prove(instance, wit).map(|_| ()) -} - #[test] fn test_ref_write_basic_sat() { setup_logger(); @@ -425,36 +349,16 @@ fn test_ref_write_basic_sat() { let initial = Value(41); let updated = Value(99); - let initial_get = [ - initial, - Value::nil(), - Value::nil(), - Value::nil(), - Value::nil(), - ]; - let updated_get = [ - updated, - Value::nil(), - Value::nil(), - Value::nil(), - Value::nil(), - ]; + let initial_get = [initial, Value::nil(), Value::nil(), Value::nil()]; + let updated_get = [updated, Value::nil(), Value::nil(), Value::nil()]; let coord_trace = vec![ WitLedgerEffect::NewRef { - size: 7, + size: 1, ret: ref_0.into(), }, WitLedgerEffect::RefPush { - vals: [ - initial, - Value::nil(), - Value::nil(), - Value::nil(), - Value::nil(), - Value::nil(), - Value::nil(), - ], + vals: [initial, Value::nil(), Value::nil(), Value::nil()], }, WitLedgerEffect::RefGet { ret: initial_get.into(), @@ -464,7 +368,6 @@ fn test_ref_write_basic_sat() { WitLedgerEffect::RefWrite { reff: ref_0, offset: 0, - len: 1, vals: [updated, Value::nil(), Value::nil(), Value::nil()], }, WitLedgerEffect::RefGet { @@ -497,188 +400,3 @@ fn test_ref_write_basic_sat() { let result = prove(instance, wit); assert!(result.is_ok()); } - -#[test] -fn test_ref_non_multiple_sat() { - setup_logger(); - - let val_0 = v(&[100]); - let val_1 = v(&[42]); - - let result = prove_ref_non_multiple( - 9, - [ - val_0, - Value::nil(), - Value::nil(), - Value::nil(), - val_0, - Value::nil(), - Value::nil(), - ], - [ - val_0, - val_1, - Value::nil(), // from here it's just padding - Value::nil(), - Value::nil(), - Value::nil(), - Value::nil(), - ], - { - let mut out = [Value::nil(); 5]; - out[0] = val_0; - out[4] = val_0; - out - }, - 5, - [Value::nil(), Value::nil(), val_0, val_1, Value::nil()], - ); - assert!(result.is_ok()); -} - -#[test] -#[should_panic] -fn test_ref_non_multiple_unsat() { - setup_logger(); - - let val_0 = v(&[100]); - let val_1 = v(&[42]); - - let result = prove_ref_non_multiple( - 9, - [ - val_0, - Value::nil(), - Value::nil(), - Value::nil(), - val_0, - Value::nil(), - Value::nil(), - ], - [ - val_0, - val_1, - Value::nil(), // from here it's just padding - Value::nil(), - Value::nil(), - Value::nil(), - Value::nil(), - ], - v5_from_value(val_0), - 5, - [Value::nil(), Value::nil(), val_0, val_0, Value::nil()], - ); - assert!(result.is_ok()); -} - -#[test] -#[should_panic] -fn test_ref_non_multiple_value_mismatch_unsat() { - setup_logger(); - - let val_0 = v(&[100]); - let val_1 = v(&[42]); - - let result = prove_ref_non_multiple( - 9, - [ - val_0, - Value::nil(), - Value::nil(), - Value::nil(), - val_0, - Value::nil(), - Value::nil(), - ], - [ - val_0, - val_1, - Value::nil(), // from here it's just padding - Value::nil(), - Value::nil(), - Value::nil(), - Value::nil(), - ], - [val_1, Value::nil(), Value::nil(), Value::nil(), val_0], - 5, - [Value::nil(), Value::nil(), val_0, val_1, Value::nil()], - ); - - assert!(result.is_ok()); -} - -#[test] -#[should_panic] -fn test_ref_non_multiple_refpush_oob_unsat() { - setup_logger(); - - let val_0 = v(&[100]); - let val_1 = v(&[42]); - - let result = prove_ref_non_multiple( - 9, - [ - val_0, - Value::nil(), - Value::nil(), - Value::nil(), - val_0, - Value::nil(), - Value::nil(), - ], - [ - val_0, - val_1, - val_1, // would land out-of-bounds after the first 7-slot push - Value::nil(), - Value::nil(), - Value::nil(), - Value::nil(), - ], - [val_0, Value::nil(), Value::nil(), Value::nil(), val_0], - 5, - [val_0, Value::nil(), Value::nil(), Value::nil(), val_0], - ); - assert!(result.is_ok()); -} - -#[test] -#[should_panic] -fn test_ref_non_multiple_get_oob_unsat() { - setup_logger(); - - let val_0 = v(&[100]); - - let result = prove_ref_non_multiple( - 9, - [ - val_0, - Value::nil(), - Value::nil(), - Value::nil(), - val_0, - Value::nil(), - Value::nil(), - ], - [ - val_0, - val_0, - Value::nil(), // padding - Value::nil(), - Value::nil(), - Value::nil(), - Value::nil(), - ], - [val_0, Value::nil(), Value::nil(), Value::nil(), val_0], - 9, - [ - val_0, - Value::nil(), - Value::nil(), - Value::nil(), - Value::nil(), - ], - ); - assert!(result.is_ok()); -} diff --git a/interleaving/starstream-interleaving-proof/src/ledger_operation.rs b/interleaving/starstream-interleaving-proof/src/ledger_operation.rs index e62e15dd..05b20819 100644 --- a/interleaving/starstream-interleaving-proof/src/ledger_operation.rs +++ b/interleaving/starstream-interleaving-proof/src/ledger_operation.rs @@ -1,8 +1,8 @@ use crate::optional::OptionalF; use ark_ff::PrimeField; -pub const REF_PUSH_BATCH_SIZE: usize = 7; -pub const REF_GET_BATCH_SIZE: usize = 5; +pub const REF_PUSH_BATCH_SIZE: usize = 4; +pub const REF_GET_BATCH_SIZE: usize = 4; pub const REF_WRITE_BATCH_SIZE: usize = 4; #[derive(Debug, Clone)] @@ -74,7 +74,6 @@ pub enum LedgerOperation { RefWrite { reff: F, offset: F, - len: F, vals: [F; REF_WRITE_BATCH_SIZE], }, InstallHandler { diff --git a/interleaving/starstream-interleaving-proof/src/lib.rs b/interleaving/starstream-interleaving-proof/src/lib.rs index 715f3a42..3acc0b43 100644 --- a/interleaving/starstream-interleaving-proof/src/lib.rs +++ b/interleaving/starstream-interleaving-proof/src/lib.rs @@ -10,7 +10,6 @@ mod neo; mod optional; mod program_state; mod ref_arena_gadget; -mod rem_wires_gadget; mod switchboard; use crate::circuit::{InterRoundWires, IvcWireLayout}; diff --git a/interleaving/starstream-interleaving-proof/src/memory/twist_and_shout/mod.rs b/interleaving/starstream-interleaving-proof/src/memory/twist_and_shout/mod.rs index 7d4ebecb..a6787f3e 100644 --- a/interleaving/starstream-interleaving-proof/src/memory/twist_and_shout/mod.rs +++ b/interleaving/starstream-interleaving-proof/src/memory/twist_and_shout/mod.rs @@ -169,7 +169,7 @@ impl IVCMemory for TSMemory { fn conditional_read(&mut self, cond: bool, address: Address) -> Vec { *self.current_step_read_lanes.entry(address.tag).or_default() += 1; - if let Some(&(_, _, MemType::Rom, _)) = self.mems.get(&address.tag) { + if let Some(&(_, _, MemType::Rom, debug_name)) = self.mems.get(&address.tag) { if cond { let value = self.init.get(&address).unwrap().clone(); let shout_event = ShoutEvent { @@ -177,6 +177,16 @@ impl IVCMemory for TSMemory { key: address.addr, value: value[0].into_bigint().as_ref()[0], }; + + if address.tag == 20 { + tracing::info!( + "traced rom read from address {} in table {} with value {:?}", + address.addr, + debug_name, + value + ); + } + let shout_events = self.shout_events.entry(address.clone()).or_default(); shout_events.push_back(shout_event); value diff --git a/interleaving/starstream-interleaving-proof/src/neo.rs b/interleaving/starstream-interleaving-proof/src/neo.rs index b29d5484..ed6614d0 100644 --- a/interleaving/starstream-interleaving-proof/src/neo.rs +++ b/interleaving/starstream-interleaving-proof/src/neo.rs @@ -15,8 +15,8 @@ use p3_field::PrimeCharacteristicRing; use std::collections::HashMap; // TODO: benchmark properly -pub(crate) const CHUNK_SIZE: usize = 1; -const PER_STEP_COLS: usize = 2097; +pub(crate) const CHUNK_SIZE: usize = 40; +const PER_STEP_COLS: usize = 1079; const BASE_INSTANCE_COLS: usize = 1; const EXTRA_INSTANCE_COLS: usize = IvcWireLayout::FIELD_COUNT * 2; const M_IN: usize = BASE_INSTANCE_COLS + EXTRA_INSTANCE_COLS; diff --git a/interleaving/starstream-interleaving-proof/src/ref_arena_gadget.rs b/interleaving/starstream-interleaving-proof/src/ref_arena_gadget.rs index d4e69a1b..1bd9ca66 100644 --- a/interleaving/starstream-interleaving-proof/src/ref_arena_gadget.rs +++ b/interleaving/starstream-interleaving-proof/src/ref_arena_gadget.rs @@ -1,5 +1,4 @@ -use std::collections::BTreeMap; - +use crate::circuit::ExecutionSwitches; use crate::{ F, LedgerOperation, abi::{ArgName, OPCODE_ARG_COUNT}, @@ -7,14 +6,13 @@ use crate::{ ledger_operation::{REF_GET_BATCH_SIZE, REF_PUSH_BATCH_SIZE, REF_WRITE_BATCH_SIZE}, memory::{Address, IVCMemory, IVCMemoryAllocated}, }; -use crate::{circuit::ExecutionSwitches, rem_wires_gadget::alloc_rem_one_hot_selectors}; -use ark_ff::{AdditiveGroup as _, Field as _, PrimeField as _}; +use ark_ff::{AdditiveGroup, PrimeField as _}; use ark_r1cs_std::{ + GR1CSVar as _, alloc::AllocVar as _, - cmp::CmpGadget as _, + eq::EqGadget, fields::{FieldVar as _, fp::FpVar}, prelude::Boolean, - uint::UInt, }; use ark_relations::gr1cs::{ConstraintSystemRef, SynthesisError}; @@ -23,10 +21,10 @@ pub(crate) fn trace_ref_arena_ops>( ref_building_id: &mut F, ref_building_offset: &mut F, ref_building_remaining: &mut F, - ref_sizes: &mut BTreeMap, instr: &LedgerOperation, ) { let mut ref_push_vals = std::array::from_fn(|_| F::ZERO); + let mut ref_write_vals = std::array::from_fn(|_| F::ZERO); let mut ref_push = false; let mut ref_get = false; let mut ref_write = false; @@ -36,15 +34,11 @@ pub(crate) fn trace_ref_arena_ops>( let mut ref_get_offset = F::ZERO; let mut ref_write_ref = F::ZERO; let mut ref_write_offset = F::ZERO; - let mut ref_write_len = 0usize; - let mut ref_write_vals = std::array::from_fn(|_| F::ZERO); - match instr { LedgerOperation::NewRef { size, ret } => { *ref_building_id = *ret; *ref_building_offset = F::ZERO; *ref_building_remaining = *size; - ref_sizes.insert(ret.into_bigint().0[0], size.into_bigint().0[0]); new_ref = true; } @@ -62,16 +56,10 @@ pub(crate) fn trace_ref_arena_ops>( ref_get_ref = *reff; ref_get_offset = *offset; } - LedgerOperation::RefWrite { - reff, - offset, - len, - vals, - } => { + LedgerOperation::RefWrite { reff, offset, vals } => { ref_write = true; ref_write_ref = *reff; ref_write_offset = *offset; - ref_write_len = len.into_bigint().0[0] as usize; ref_write_vals = *vals; } _ => {} @@ -86,64 +74,30 @@ pub(crate) fn trace_ref_arena_ops>( vec![*ref_building_remaining], ); + let ref_sizes_read = ref_get || ref_write; + let ref_sizes_ref_id = if ref_get { + ref_get_ref + } else if ref_write { + ref_write_ref + } else { + F::ZERO + }; + mb.conditional_read( - ref_get, - Address { - tag: MemoryTag::RefSizes.into(), - addr: ref_get_ref.into_bigint().0[0], - }, - ); - mb.conditional_read( - ref_write, + ref_sizes_read, Address { tag: MemoryTag::RefSizes.into(), - addr: ref_write_ref.into_bigint().0[0], + addr: ref_sizes_ref_id.into_bigint().0[0], }, ); - mb.conditional_write( - false, - Address { - tag: MemoryTag::RefSizes.into(), - addr: 0, - }, - vec![F::ZERO], - ); - - let remaining = ref_building_remaining.into_bigint().0[0] as usize; - let to_write = remaining.min(REF_PUSH_BATCH_SIZE); - - for (i, val) in ref_push_vals.iter().enumerate() { - let should_write = i < to_write && ref_push; - let addr = ref_building_id.into_bigint().0[0] + ref_building_offset.into_bigint().0[0]; - - mb.conditional_write( - should_write, - Address { - tag: MemoryTag::RefArena.into(), - addr, - }, - vec![*val], - ); - if should_write { - *ref_building_offset += F::ONE; - } - } + let offset = ref_get_offset.into_bigint().0[0]; - if ref_push { - *ref_building_remaining = F::from(remaining.saturating_sub(to_write) as u64); - } + let base = ref_get_ref.into_bigint().0[0] + (offset * REF_GET_BATCH_SIZE as u64); - let size = ref_sizes - .get(&ref_get_ref.into_bigint().0[0]) - .copied() - .unwrap_or(0); - let offset = ref_get_offset.into_bigint().0[0]; - let remaining = size.saturating_sub(offset); - let to_read = remaining.min(REF_GET_BATCH_SIZE as u64); for i in 0..REF_GET_BATCH_SIZE { - let addr = ref_get_ref.into_bigint().0[0] + offset + i as u64; - let should_read = (i as u64) < to_read && ref_get; + let addr = base + i as u64; + let should_read = ref_get; mb.conditional_read( should_read, Address { @@ -153,26 +107,25 @@ pub(crate) fn trace_ref_arena_ops>( ); } - for _ in 0..REF_PUSH_BATCH_SIZE - REF_GET_BATCH_SIZE { - mb.conditional_read( - false, - Address { - tag: MemoryTag::RefArena.into(), - addr: 0, - }, - ); - } - - let write_size = ref_sizes - .get(&ref_write_ref.into_bigint().0[0]) - .copied() - .unwrap_or(0); let write_offset = ref_write_offset.into_bigint().0[0]; - let write_remaining = write_size.saturating_sub(write_offset) as usize; - let to_write = write_remaining.min(ref_write_len).min(REF_WRITE_BATCH_SIZE); - for (i, val) in ref_write_vals.iter().enumerate().take(REF_WRITE_BATCH_SIZE) { - let should_write = ref_write && i < to_write; - let addr = ref_write_ref.into_bigint().0[0] + write_offset + i as u64; + let write_base = + ref_write_ref.into_bigint().0[0] + (write_offset * REF_WRITE_BATCH_SIZE as u64); + let push_base = ref_building_id.into_bigint().0[0] + ref_building_offset.into_bigint().0[0]; + let should_write = ref_push || ref_write; + let write_base = if ref_push { + push_base + } else if ref_write { + write_base + } else { + 0 + }; + let write_vals = if ref_push { + ref_push_vals + } else { + ref_write_vals + }; + for (i, val) in write_vals.iter().enumerate().take(REF_WRITE_BATCH_SIZE) { + let addr = write_base + i as u64; mb.conditional_write( should_write, Address { @@ -183,24 +136,20 @@ pub(crate) fn trace_ref_arena_ops>( ); } - for _ in 0..REF_WRITE_BATCH_SIZE { - mb.conditional_read( - false, - Address { - tag: MemoryTag::RefArena.into(), - addr: 0, - }, - ); + let remaining = ref_building_remaining.into_bigint().0[0] as usize; + if ref_push { + *ref_building_offset += F::from(REF_PUSH_BATCH_SIZE as u64); + *ref_building_remaining = F::from(remaining.saturating_sub(1) as u64); } } -pub(crate) fn ref_arena_new_ref_wires>( +pub(crate) fn ref_arena_read_size>( cs: ConstraintSystemRef, rm: &mut M, switches: &ExecutionSwitches>, - opcode_args: &[FpVar; OPCODE_ARG_COUNT], -) -> Result<(), SynthesisError> { + addr: &FpVar, +) -> Result, SynthesisError> { rm.conditional_write( &switches.new_ref, &Address { @@ -210,50 +159,75 @@ pub(crate) fn ref_arena_new_ref_wires>( &[opcode_args[ArgName::Size.idx()].clone()], )?; - Ok(()) -} + let read_switch = &switches.get | &switches.ref_write; + let read_addr = read_switch.select(addr, &FpVar::zero())?; -pub(crate) fn ref_arena_get_read_wires>( - cs: ConstraintSystemRef, - rm: &mut M, - switches: &ExecutionSwitches>, - val: FpVar, - offset: FpVar, -) -> Result< - ( - [FpVar; REF_GET_BATCH_SIZE], - [Boolean; REF_GET_BATCH_SIZE], - ), - SynthesisError, -> { let ref_size_read = rm.conditional_read( - &switches.get, + &read_switch, &Address { tag: MemoryTag::RefSizes.allocate(cs.clone())?, - addr: val.clone(), + addr: read_addr, }, )?[0] .clone(); - let ref_size_sel = switches.get.select(&ref_size_read, &FpVar::zero())?; - let offset_sel = switches.get.select(&offset, &FpVar::zero())?; - - let (ref_size_u32, _) = UInt::<32, u32, F>::from_fp(&ref_size_sel)?; - let (offset_u32, _) = UInt::<32, u32, F>::from_fp(&offset_sel)?; - let size_ge_offset = ref_size_u32.is_ge(&offset_u32)?; - let remaining = size_ge_offset.select(&(&ref_size_sel - &offset_sel), &FpVar::zero())?; - - let get_lane_switches = - alloc_rem_one_hot_selectors::(&cs, &remaining, &switches.get)?; + Ok(ref_size_read) +} - // addr = ref + offset, read a packed batch (5) to match trace_ref_arena_ops - let get_base_addr = &val + &offset; +pub(crate) fn ref_arena_access_wires>( + cs: ConstraintSystemRef, + rm: &mut M, + switches: &ExecutionSwitches>, + opcode_args: &[FpVar; OPCODE_ARG_COUNT], + ref_building_ptr: &FpVar, + ref_building_remaining: &FpVar, + val: &FpVar, + offset: &FpVar, + ref_size_read: &FpVar, +) -> Result<[FpVar; REF_GET_BATCH_SIZE], SynthesisError> { + let _ = ref_building_remaining; + + let ref_push_vals = [ + opcode_args[ArgName::PackedRef0.idx()].clone(), + opcode_args[ArgName::PackedRef1.idx()].clone(), + opcode_args[ArgName::PackedRef2.idx()].clone(), + opcode_args[ArgName::PackedRef3.idx()].clone(), + ]; + let ref_write_vals = [ + opcode_args[ArgName::PackedRef0.idx()].clone(), + opcode_args[ArgName::PackedRef2.idx()].clone(), + opcode_args[ArgName::PackedRef4.idx()].clone(), + opcode_args[ArgName::PackedRef5.idx()].clone(), + ]; + + let size_sel_get = switches.get.select(ref_size_read, &FpVar::zero())?; + let offset_sel_get = switches.get.select(offset, &FpVar::zero())?; + let one_if_on_get = switches.get.select(&FpVar::one(), &FpVar::zero())?; + let offset_plus_one_get = &offset_sel_get + one_if_on_get; + let diff_get = &size_sel_get - &offset_plus_one_get; + + range_check_u16(cs.clone(), &switches.get, &size_sel_get)?; + range_check_u16(cs.clone(), &switches.get, &offset_sel_get)?; + range_check_u16(cs.clone(), &switches.get, &diff_get)?; + + let size_sel_write = switches.ref_write.select(ref_size_read, &FpVar::zero())?; + let offset_sel_write = switches.ref_write.select(offset, &FpVar::zero())?; + let one_if_on_write = switches.ref_write.select(&FpVar::one(), &FpVar::zero())?; + let offset_plus_one_write = &offset_sel_write + one_if_on_write; + let diff_write = &size_sel_write - &offset_plus_one_write; + + range_check_u16(cs.clone(), &switches.ref_write, &size_sel_write)?; + range_check_u16(cs.clone(), &switches.ref_write, &offset_sel_write)?; + range_check_u16(cs.clone(), &switches.ref_write, &diff_write)?; + + let scale = FpVar::new_constant(cs.clone(), F::from(REF_GET_BATCH_SIZE as u64))?; + let get_base_addr = val + (offset * scale); let mut ref_arena_read_vec = Vec::with_capacity(REF_GET_BATCH_SIZE); for i in 0..REF_GET_BATCH_SIZE { let offset = FpVar::new_constant(cs.clone(), F::from(i as u64))?; let get_addr = &get_base_addr + offset; let read = rm.conditional_read( - &get_lane_switches[i], + &switches.get, &Address { tag: MemoryTag::RefArena.allocate(cs.clone())?, addr: get_addr, @@ -263,131 +237,60 @@ pub(crate) fn ref_arena_get_read_wires>( ref_arena_read_vec.push(read); } - // we need the same number of reads from the RefArena as we do writes we do - // more writes than reads, so we need to pad the rest. - for _ in 0..REF_PUSH_BATCH_SIZE - REF_GET_BATCH_SIZE { - let _ = rm.conditional_read( - &Boolean::FALSE, - &Address { - tag: MemoryTag::RefArena.allocate(cs.clone())?, - addr: FpVar::zero(), - }, - )?; - } - let ref_arena_read: [FpVar; REF_GET_BATCH_SIZE] = ref_arena_read_vec .try_into() .expect("ref arena read batch length"); - Ok((ref_arena_read, get_lane_switches)) -} + let scale = FpVar::new_constant(cs.clone(), F::from(REF_WRITE_BATCH_SIZE as u64))?; + let write_base_push = ref_building_ptr.clone(); + let write_base_write = val + (offset * scale); + let write_cond = &switches.ref_push | &switches.ref_write; + let write_base_sel = switches + .ref_push + .select(&write_base_push, &write_base_write)?; + let write_base = write_cond.select(&write_base_sel, &FpVar::zero())?; -pub(crate) fn ref_arena_push_wires>( - cs: ConstraintSystemRef, - rm: &mut M, - switches: &ExecutionSwitches>, - opcode_args: &[FpVar; OPCODE_ARG_COUNT], - ref_building_ptr: &FpVar, - ref_building_remaining: &FpVar, -) -> Result<[Boolean; REF_PUSH_BATCH_SIZE], SynthesisError> { - let ref_push_lane_switches = - alloc_rem_one_hot_selectors(&cs, &ref_building_remaining, &switches.ref_push)?; - - // We also need to write for RefPush. - for (i, ref_val) in opcode_args.iter().enumerate() { + for i in 0..REF_WRITE_BATCH_SIZE { let offset = FpVar::new_constant(cs.clone(), F::from(i as u64))?; - let push_addr = ref_building_ptr + offset; + let write_addr = &write_base + offset; + let push_val = ref_push_vals[i].clone(); + let write_val = ref_write_vals[i].clone(); + let val_sel = switches.ref_push.select(&push_val, &write_val)?; + let val = write_cond.select(&val_sel, &FpVar::zero())?; rm.conditional_write( - &ref_push_lane_switches[i], + &write_cond, &Address { tag: MemoryTag::RefArena.allocate(cs.clone())?, - addr: push_addr, + addr: write_addr, }, - &[ref_val.clone()], + &[val], )?; } - Ok(ref_push_lane_switches) + Ok(ref_arena_read) } -pub(crate) fn ref_arena_write_wires>( +fn range_check_u16( cs: ConstraintSystemRef, - rm: &mut M, - switches: &ExecutionSwitches>, - opcode_args: &[FpVar; OPCODE_ARG_COUNT], - val: &FpVar, - offset: &FpVar, -) -> Result<[Boolean; REF_WRITE_BATCH_SIZE], SynthesisError> { - let ref_size_read = rm.conditional_read( - &switches.ref_write, - &Address { - tag: MemoryTag::RefSizes.allocate(cs.clone())?, - addr: val.clone(), - }, - )?[0] - .clone(); - - let ref_size_sel = switches.ref_write.select(&ref_size_read, &FpVar::zero())?; - let offset_sel = switches.ref_write.select(offset, &FpVar::zero())?; - let len_sel = switches - .ref_write - .select(&opcode_args[ArgName::PackedRef0.idx()], &FpVar::zero())?; - - let (ref_size_u32, _) = UInt::<32, u32, F>::from_fp(&ref_size_sel)?; - let (offset_u32, _) = UInt::<32, u32, F>::from_fp(&offset_sel)?; - let (len_u32, _) = UInt::<32, u32, F>::from_fp(&len_sel)?; - - let size_ge_offset = ref_size_u32.is_ge(&offset_u32)?; - let remaining = size_ge_offset.select(&(&ref_size_sel - &offset_sel), &FpVar::zero())?; - - let remaining_lane_switches = - alloc_rem_one_hot_selectors::(&cs, &remaining, &switches.ref_write)?; - - let write_base_addr = val + offset; - for i in 0..REF_WRITE_BATCH_SIZE { - let i_const = UInt::<32, u32, F>::constant(i as u32); - let len_gt_i = len_u32.is_gt(&i_const)?; - let should_write = remaining_lane_switches[i].clone() & len_gt_i; - - let offset = FpVar::new_constant(cs.clone(), F::from(i as u64))?; - let write_addr = &write_base_addr + offset; - let write_val = match i { - 0 => opcode_args[ArgName::PackedRef2.idx()].clone(), - 1 => opcode_args[ArgName::PackedRef4.idx()].clone(), - 2 => opcode_args[ArgName::PackedRef5.idx()].clone(), - 3 => opcode_args[ArgName::PackedRef6.idx()].clone(), - _ => unreachable!(), - }; - - rm.conditional_write( - &should_write, - &Address { - tag: MemoryTag::RefArena.allocate(cs.clone())?, - addr: write_addr, - }, - &[write_val], - )?; + switch: &Boolean, + value: &FpVar, +) -> Result<(), SynthesisError> { + let value_u64 = value.value().unwrap().into_bigint().as_ref()[0] & 0xFFFF; + let mut bits = Vec::with_capacity(16); + for i in 0..16 { + let bit = Boolean::new_witness(cs.clone(), || Ok(((value_u64 >> i) & 1) == 1))?; + bits.push(bit); } - for _ in 0..REF_WRITE_BATCH_SIZE { - let _ = rm.conditional_read( - &Boolean::FALSE, - &Address { - tag: MemoryTag::RefArena.allocate(cs.clone())?, - addr: FpVar::zero(), - }, - )?; + let mut recomposed = FpVar::zero(); + for (i, bit) in bits.iter().enumerate() { + let coeff = FpVar::new_constant(cs.clone(), F::from(1u64 << i))?; + let term = bit.select(&coeff, &FpVar::zero())?; + recomposed += term; } - rm.conditional_write( - &Boolean::FALSE, - &Address { - tag: MemoryTag::RefSizes.allocate(cs.clone())?, - addr: FpVar::zero(), - }, - &[FpVar::zero()], - )?; + recomposed.conditional_enforce_equal(value, switch)?; - Ok(remaining_lane_switches) + Ok(()) } diff --git a/interleaving/starstream-interleaving-proof/src/rem_wires_gadget.rs b/interleaving/starstream-interleaving-proof/src/rem_wires_gadget.rs deleted file mode 100644 index 96bc0f9c..00000000 --- a/interleaving/starstream-interleaving-proof/src/rem_wires_gadget.rs +++ /dev/null @@ -1,139 +0,0 @@ -use crate::F; -use ark_ff::PrimeField as _; -use ark_r1cs_std::{ - GR1CSVar as _, - alloc::AllocVar as _, - eq::EqGadget as _, - fields::{FieldVar as _, fp::FpVar}, - prelude::{Boolean, ToBitsGadget as _}, -}; -use ark_relations::gr1cs::{ConstraintSystemRef, SynthesisError}; -use std::ops::Not; - -pub(crate) fn alloc_rem_one_hot_selectors( - cs: &ConstraintSystemRef, - dividend: &FpVar, - switch: &Boolean, -) -> Result<[Boolean; DIVISOR], SynthesisError> { - let d_val = dividend.value()?.into_bigint().0[0]; - - let divisor = FpVar::new_constant(cs.clone(), F::from(DIVISOR as u64))?; - - let quotient = FpVar::new_witness(cs.clone(), || Ok(F::from(d_val / DIVISOR as u64)))?; - let remainder = FpVar::new_witness(cs.clone(), || Ok(F::from(d_val % DIVISOR as u64)))?; - - let recomposed = "ient * &divisor + &remainder; - - recomposed.conditional_enforce_equal(dividend, &switch)?; - - let quotient_nonzero = quotient.is_zero()?.not(); - - enforce_32_bit(dividend, &switch)?; - enforce_32_bit("ient, &switch)?; - - let r_eq: [Boolean; DIVISOR] = std::array::from_fn(|i| { - let c = FpVar::new_constant(cs.clone(), F::from(i as u64)).unwrap(); - - (&remainder - c).is_zero().unwrap() - }); - - let r_eq_any = Boolean::kary_or(&r_eq)?; - r_eq_any.conditional_enforce_equal(&Boolean::TRUE, &switch)?; - - let ref_push_lane_switches = std::array::from_fn(|i| { - let mut r_gt = Boolean::FALSE; - - // we set index 0 if - // - // r == 1, which is r_eq[1] == true - // r == 2, which is r_eq[2] == true - // - // and so on - for k in (i + 1)..DIVISOR { - r_gt = &r_gt | &r_eq[k]; - } - - // but we only filter when the quotient is nonzero, since otherwise we - // still have elements - let in_range = "ient_nonzero | &r_gt; - - switch & &in_range - }); - - Ok(ref_push_lane_switches) -} - -fn enforce_32_bit(var: &FpVar, switch: &Boolean) -> Result<(), SynthesisError> { - let bits = var.to_bits_le()?; - for bit in bits.iter().skip(32) { - bit.conditional_enforce_equal(&Boolean::FALSE, switch)?; - } - Ok(()) -} - -#[cfg(test)] -mod tests { - use super::*; - - #[test] - pub fn test_rem_one_hot_5_mod_7() { - use ark_relations::gr1cs::ConstraintSystem; - - let cs = ConstraintSystem::::new_ref(); - - let dividend = FpVar::new_witness(cs.clone(), || Ok(F::from(5))).unwrap(); - - let res = alloc_rem_one_hot_selectors::<7>(&cs, ÷nd, &Boolean::TRUE).unwrap(); - - assert_eq!(res[0].value().unwrap(), true); - assert_eq!(res[1].value().unwrap(), true); - assert_eq!(res[2].value().unwrap(), true); - assert_eq!(res[3].value().unwrap(), true); - assert_eq!(res[4].value().unwrap(), true); - - assert_eq!(res[5].value().unwrap(), false); - assert_eq!(res[6].value().unwrap(), false); - - assert_eq!(res.len(), 7); - } - - #[test] - pub fn test_rem_one_hot_7_mod_7() { - use ark_relations::gr1cs::ConstraintSystem; - - let cs = ConstraintSystem::::new_ref(); - - let dividend = FpVar::new_witness(cs.clone(), || Ok(F::from(7))).unwrap(); - - let res = alloc_rem_one_hot_selectors::<7>(&cs, ÷nd, &Boolean::TRUE).unwrap(); - - assert_eq!(res[0].value().unwrap(), true); - assert_eq!(res[1].value().unwrap(), true); - assert_eq!(res[2].value().unwrap(), true); - assert_eq!(res[3].value().unwrap(), true); - assert_eq!(res[4].value().unwrap(), true); - assert_eq!(res[5].value().unwrap(), true); - assert_eq!(res[6].value().unwrap(), true); - - assert_eq!(res.len(), 7); - } - - #[test] - pub fn test_rem_one_hot_3_mod_5() { - use ark_relations::gr1cs::ConstraintSystem; - - let cs = ConstraintSystem::::new_ref(); - - let dividend = FpVar::new_witness(cs.clone(), || Ok(F::from(3))).unwrap(); - - let res = alloc_rem_one_hot_selectors::<5>(&cs, ÷nd, &Boolean::TRUE).unwrap(); - - assert_eq!(res[0].value().unwrap(), true); - assert_eq!(res[1].value().unwrap(), true); - assert_eq!(res[2].value().unwrap(), true); - assert_eq!(res[3].value().unwrap(), false); - assert_eq!(res[4].value().unwrap(), false); - - assert_eq!(res.len(), 5); - } -} diff --git a/interleaving/starstream-interleaving-spec/README.md b/interleaving/starstream-interleaving-spec/README.md index 5a54f183..7a986056 100644 --- a/interleaving/starstream-interleaving-spec/README.md +++ b/interleaving/starstream-interleaving-spec/README.md @@ -521,12 +521,12 @@ Rule: Unbind (owner calls) ## NewRef -Allocates a new reference with a specific size. +Allocates a new reference with a specific size (in 4-value words). ```text Rule: NewRef ============== - op = NewRef(size) -> ref + op = NewRef(size_words) -> ref 1. let t = CC[id_curr] in @@ -536,10 +536,10 @@ Rule: NewRef (Host call lookup condition) ----------------------------------------------------------------------- 1. size fits in 32 bits - 2. ref_store'[ref] <- [uninitialized; size] (conceptually) - 3. ref_sizes'[ref] <- size + 2. ref_store'[ref] <- [uninitialized; size_words * 4] (conceptually) + 3. ref_sizes'[ref] <- size_words 4. counters'[id_curr] += 1 - 5. ref_state[id_curr] <- (ref, 0, size) // storing the ref being built, current offset, and total size + 5. ref_state[id_curr] <- (ref, 0, size_words) // storing the ref being built, current word offset, and total size ``` ## RefPush @@ -549,22 +549,21 @@ Appends data to the currently building reference. ```text Rule: RefPush ============== - op = RefPush(vals[7]) + op = RefPush(vals[4]) - 1. let (ref, offset, size) = ref_state[id_curr] - 2. offset < size + 1. let (ref, offset_words, size_words) = ref_state[id_curr] + 2. offset_words < size_words 3. let t = CC[id_curr] in c = counters[id_curr] in - t[c] == + t[c] == (Host call lookup condition) ----------------------------------------------------------------------- - 1. for i in 0..6: - if offset + i < size: - ref_store'[ref][offset + i] <- vals[i] - 2. ref_state[id_curr] <- (ref, offset + min(7, size - offset), size) + 1. for i in 0..3: + ref_store'[ref][(offset_words * 4) + i] <- vals[i] + 2. ref_state[id_curr] <- (ref, offset_words + 1, size_words) 3. counters'[id_curr] += 1 ``` @@ -573,25 +572,45 @@ Rule: RefPush ```text Rule: RefGet ============== - op = RefGet(ref, offset) -> vals[5] + op = RefGet(ref, offset_words) -> vals[4] - 1. let size = ref_sizes[ref] - 2. for i in 0..4: - if offset + i < size: - vals[i] == ref_store[ref][offset + i] - else: - vals[i] == 0 + 1. let size_words = ref_sizes[ref] + 2. offset_words < size_words + 3. for i in 0..3: + vals[i] == ref_store[ref][(offset_words * 4) + i] 2. let t = CC[id_curr] in c = counters[id_curr] in - t[c] == + t[c] == (Host call lookup condition) ----------------------------------------------------------------------- 1. counters'[id_curr] += 1 ``` +## RefWrite + +```text +Rule: RefWrite +============== + op = RefWrite(ref, offset_words, vals[4]) + + 1. let size_words = ref_sizes[ref] + 2. offset_words < size_words + + 3. let + t = CC[id_curr] in + c = counters[id_curr] in + t[c] == + + (Host call lookup condition) +----------------------------------------------------------------------- + 1. for i in 0..3: + ref_store'[ref][(offset_words * 4) + i] <- vals[i] + 2. counters'[id_curr] += 1 +``` + # Verification To verify the transaction, the following additional conditions need to be met: diff --git a/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs b/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs index 03eb50b0..20f037ab 100644 --- a/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs +++ b/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs @@ -9,7 +9,7 @@ //! It's mainly a direct translation of the algorithm in the README use crate::{ - Hash, InterleavingInstance, REF_GET_WIDTH, Ref, Value, WasmModule, + Hash, InterleavingInstance, REF_GET_WIDTH, REF_PUSH_WIDTH, Ref, Value, WasmModule, transaction_effects::{ InterfaceId, ProcessId, witness::{REF_WRITE_WIDTH, WitLedgerEffect}, @@ -700,25 +700,27 @@ pub fn state_transition( return Err(InterleavingError::BuildingRefButCalledOther(id_curr)); } let new_ref = Ref(state.ref_counter); - state.ref_counter += size as u64; + let size_words = size; + let size_elems = size_words * REF_PUSH_WIDTH; + state.ref_counter += size_elems as u64; if new_ref != ret.unwrap() { return Err(InterleavingError::RefInitializationMismatch( ret.unwrap(), new_ref, )); } - state.ref_store.insert(new_ref, vec![Value(0); size]); - state.ref_sizes.insert(new_ref, size); - state.ref_building.insert(id_curr, (new_ref, 0, size)); + state.ref_store.insert(new_ref, vec![Value(0); size_elems]); + state.ref_sizes.insert(new_ref, size_words); + state.ref_building.insert(id_curr, (new_ref, 0, size_words)); } WitLedgerEffect::RefPush { vals } => { - let (reff, offset, size) = state + let (reff, offset_words, size_words) = state .ref_building .remove(&id_curr) .ok_or(InterleavingError::RefPushNotBuilding(id_curr))?; - let new_offset = offset + vals.len(); + let new_offset = offset_words + 1; let vec = state .ref_store @@ -726,17 +728,23 @@ pub fn state_transition( .ok_or(InterleavingError::RefNotFound(reff))?; for (i, val) in vals.iter().enumerate() { - if offset + i > size && *val != Value::nil() { - return Err(InterleavingError::RefPushOutOfBounds { pid: id_curr, size }); + let pos = (offset_words * REF_PUSH_WIDTH) + i; + if pos >= size_words * REF_PUSH_WIDTH && *val != Value::nil() { + return Err(InterleavingError::RefPushOutOfBounds { + pid: id_curr, + size: size_words, + }); } - if let Some(pos) = vec.get_mut(offset + i) { + if let Some(pos) = vec.get_mut(pos) { *pos = *val; } } - if new_offset < size { - state.ref_building.insert(id_curr, (reff, new_offset, size)); + if new_offset < size_words { + state + .ref_building + .insert(id_curr, (reff, new_offset, size_words)); } } @@ -745,15 +753,18 @@ pub fn state_transition( .ref_store .get(&reff) .ok_or(InterleavingError::RefNotFound(reff))?; - let size = state + let size_words = state .ref_sizes .get(&reff) .copied() .ok_or(InterleavingError::RefNotFound(reff))?; + if offset >= size_words { + return Err(InterleavingError::Shape("RefGet out of bounds")); + } let mut val = [Value::nil(); REF_GET_WIDTH]; for (i, slot) in val.iter_mut().enumerate() { - let idx = offset + i; - if idx < size { + let idx = (offset * REF_GET_WIDTH) + i; + if idx < size_words * REF_GET_WIDTH { *slot = vec[idx]; } } @@ -762,32 +773,24 @@ pub fn state_transition( } } - WitLedgerEffect::RefWrite { - reff, - offset, - len, - vals, - } => { - if len > REF_WRITE_WIDTH { - return Err(InterleavingError::Shape("RefWrite len too large")); - } - + WitLedgerEffect::RefWrite { reff, offset, vals } => { let vec = state .ref_store .get_mut(&reff) .ok_or(InterleavingError::RefNotFound(reff))?; - let size = state + let size_words = state .ref_sizes .get(&reff) .copied() .ok_or(InterleavingError::RefNotFound(reff))?; - if offset + len > size { + if offset >= size_words { return Err(InterleavingError::Shape("RefWrite out of bounds")); } - for (i, val) in vals.iter().enumerate().take(len) { - vec[offset + i] = *val; + for (i, val) in vals.iter().enumerate() { + let idx = (offset * REF_WRITE_WIDTH) + i; + vec[idx] = *val; } } diff --git a/interleaving/starstream-interleaving-spec/src/tests.rs b/interleaving/starstream-interleaving-spec/src/tests.rs index adc9c991..2462ea2e 100644 --- a/interleaving/starstream-interleaving-spec/src/tests.rs +++ b/interleaving/starstream-interleaving-spec/src/tests.rs @@ -197,7 +197,7 @@ fn test_transaction_with_coord_and_utxos() { let coord_trace = vec![ WitLedgerEffect::NewRef { - size: REF_PUSH_WIDTH, + size: 1, ret: init_a_ref.into(), }, WitLedgerEffect::RefPush { @@ -209,7 +209,7 @@ fn test_transaction_with_coord_and_utxos() { id: ProcessId(2).into(), }, WitLedgerEffect::NewRef { - size: REF_PUSH_WIDTH, + size: 1, ret: init_b_ref.into(), }, WitLedgerEffect::RefPush { @@ -221,14 +221,14 @@ fn test_transaction_with_coord_and_utxos() { id: ProcessId(3).into(), }, WitLedgerEffect::NewRef { - size: REF_PUSH_WIDTH, + size: 1, ret: spend_input_1_ref.into(), }, WitLedgerEffect::RefPush { vals: v7(b"spend_input_1"), }, WitLedgerEffect::NewRef { - size: REF_PUSH_WIDTH, + size: 1, ret: continued_1_ref.into(), }, WitLedgerEffect::RefPush { @@ -241,14 +241,14 @@ fn test_transaction_with_coord_and_utxos() { id_prev: Some(ProcessId(0)).into(), }, WitLedgerEffect::NewRef { - size: REF_PUSH_WIDTH, + size: 1, ret: spend_input_2_ref.into(), }, WitLedgerEffect::RefPush { vals: v7(b"spend_input_2"), }, WitLedgerEffect::NewRef { - size: REF_PUSH_WIDTH, + size: 1, ret: burned_2_ref.into(), }, WitLedgerEffect::RefPush { @@ -261,7 +261,7 @@ fn test_transaction_with_coord_and_utxos() { id_prev: Some(ProcessId(1)).into(), }, WitLedgerEffect::NewRef { - size: REF_PUSH_WIDTH, + size: 1, ret: done_a_ref.into(), }, WitLedgerEffect::RefPush { @@ -274,7 +274,7 @@ fn test_transaction_with_coord_and_utxos() { id_prev: Some(ProcessId(2)).into(), }, WitLedgerEffect::NewRef { - size: REF_PUSH_WIDTH, + size: 1, ret: done_b_ref.into(), }, WitLedgerEffect::RefPush { @@ -351,7 +351,7 @@ fn test_effect_handlers() { handler_id: ProcessId(1).into(), }, WitLedgerEffect::NewRef { - size: REF_PUSH_WIDTH, + size: 1, ret: ref_gen.get("effect_request").into(), }, WitLedgerEffect::RefPush { @@ -375,7 +375,7 @@ fn test_effect_handlers() { interface_id: interface_id.clone(), }, WitLedgerEffect::NewRef { - size: REF_PUSH_WIDTH, + size: 1, ret: ref_gen.get("init_utxo").into(), }, WitLedgerEffect::RefPush { @@ -393,14 +393,14 @@ fn test_effect_handlers() { id_prev: WitEffectOutput::Resolved(None), }, WitLedgerEffect::NewRef { - size: REF_PUSH_WIDTH, + size: 1, ret: ref_gen.get("effect_request_response").into(), }, WitLedgerEffect::RefPush { vals: v7(b"Interface::EffectResponse(43)"), }, WitLedgerEffect::NewRef { - size: REF_PUSH_WIDTH, + size: 1, ret: ref_gen.get("utxo_final").into(), }, WitLedgerEffect::RefPush { @@ -455,7 +455,7 @@ fn test_burn_with_continuation_fails() { }), vec![ WitLedgerEffect::NewRef { - size: REF_PUSH_WIDTH, + size: 1, ret: Ref(0).into(), }, WitLedgerEffect::RefPush { @@ -484,7 +484,7 @@ fn test_utxo_resumes_utxo_fails() { None, vec![ WitLedgerEffect::NewRef { - size: REF_PUSH_WIDTH, + size: 1, ret: Ref(0).into(), }, WitLedgerEffect::RefPush { vals: v7(b"") }, @@ -602,8 +602,8 @@ fn test_duplicate_input_utxo_fails() { None, vec![ WitLedgerEffect::NewRef { - size: REF_PUSH_WIDTH, - ret: Ref(7).into(), + size: 1, + ret: Ref(4).into(), }, WitLedgerEffect::RefPush { vals: v7(b"") }, WitLedgerEffect::Burn { ret: Ref(0) }, @@ -613,7 +613,7 @@ fn test_duplicate_input_utxo_fails() { coord_hash, vec![ WitLedgerEffect::NewRef { - size: REF_PUSH_WIDTH, + size: 1, ret: Ref(0).into(), }, WitLedgerEffect::RefPush { vals: v7(b"") }, diff --git a/interleaving/starstream-interleaving-spec/src/transaction_effects/witness.rs b/interleaving/starstream-interleaving-spec/src/transaction_effects/witness.rs index 88346990..0f658f88 100644 --- a/interleaving/starstream-interleaving-spec/src/transaction_effects/witness.rs +++ b/interleaving/starstream-interleaving-spec/src/transaction_effects/witness.rs @@ -25,8 +25,8 @@ pub enum EffectDiscriminant { RefWrite = 16, } -pub const REF_PUSH_WIDTH: usize = 7; -pub const REF_GET_WIDTH: usize = 5; +pub const REF_PUSH_WIDTH: usize = 4; +pub const REF_GET_WIDTH: usize = 4; pub const REF_WRITE_WIDTH: usize = 4; // Both used to indicate which fields are outputs, and to have a placeholder @@ -120,6 +120,7 @@ pub enum WitLedgerEffect { NewRef { // in + // Size is in 4-value words. size: usize, // out ret: WitEffectOutput, @@ -133,6 +134,7 @@ pub enum WitLedgerEffect { RefGet { // in reff: Ref, + // Offset is in 4-value words. offset: usize, // out @@ -141,8 +143,8 @@ pub enum WitLedgerEffect { RefWrite { // in reff: Ref, + // Offset is in 4-value words. offset: usize, - len: usize, vals: [Value; REF_WRITE_WIDTH], // out // does not return anything diff --git a/interleaving/starstream-runtime/src/lib.rs b/interleaving/starstream-runtime/src/lib.rs index c317a487..ef5b7d4a 100644 --- a/interleaving/starstream-runtime/src/lib.rs +++ b/interleaving/starstream-runtime/src/lib.rs @@ -68,7 +68,7 @@ fn effect_result_arity(effect: &WitLedgerEffect) -> usize { | WitLedgerEffect::NewCoord { .. } | WitLedgerEffect::GetHandlerFor { .. } | WitLedgerEffect::NewRef { .. } => 1, - WitLedgerEffect::RefGet { .. } => 5, + WitLedgerEffect::RefGet { .. } => 4, WitLedgerEffect::InstallHandler { .. } | WitLedgerEffect::UninstallHandler { .. } | WitLedgerEffect::Burn { .. } @@ -95,7 +95,7 @@ pub struct RuntimeState { pub handler_stack: HashMap>, pub ref_store: HashMap>, pub ref_sizes: HashMap, - pub ref_state: HashMap, // (ref, offset, size) + pub ref_state: HashMap, // (ref, elem_offset, size_words) pub next_ref: u64, pub pending_activation: HashMap, @@ -449,24 +449,27 @@ impl Runtime { "starstream_new_ref", |mut caller: Caller<'_, RuntimeState>, size: u64| -> Result { let current_pid = caller.data().current_process; - let size = size as usize; + let size_words = size as usize; + let size_elems = size_words + .checked_mul(starstream_interleaving_spec::REF_PUSH_WIDTH) + .ok_or(wasmi::Error::new("ref size overflow"))?; let ref_id = Ref(caller.data().next_ref); - caller.data_mut().next_ref += size as u64; + caller.data_mut().next_ref += size_elems as u64; caller .data_mut() .ref_store - .insert(ref_id, vec![Value(0); size]); - caller.data_mut().ref_sizes.insert(ref_id, size); + .insert(ref_id, vec![Value(0); size_elems]); + caller.data_mut().ref_sizes.insert(ref_id, size_words); caller .data_mut() .ref_state - .insert(current_pid, (ref_id, 0, size)); + .insert(current_pid, (ref_id, 0, size_words)); suspend_with_effect( &mut caller, WitLedgerEffect::NewRef { - size, + size: size_words, ret: WitEffectOutput::Resolved(ref_id), }, ) @@ -482,22 +485,11 @@ impl Runtime { val_0: u64, val_1: u64, val_2: u64, - val_3: u64, - val_4: u64, - val_5: u64, - val_6: u64| + val_3: u64| -> Result<(), wasmi::Error> { let current_pid = caller.data().current_process; - let vals = [ - Value(val_0), - Value(val_1), - Value(val_2), - Value(val_3), - Value(val_4), - Value(val_5), - Value(val_6), - ]; - let (ref_id, offset, size) = *caller + let vals = [Value(val_0), Value(val_1), Value(val_2), Value(val_3)]; + let (ref_id, offset, size_words) = *caller .data() .ref_state .get(¤t_pid) @@ -509,16 +501,21 @@ impl Runtime { .get_mut(&ref_id) .ok_or(wasmi::Error::new("ref not found"))?; + let elem_offset = offset; for (i, val) in vals.iter().enumerate() { - if let Some(pos) = store.get_mut(offset + i) { + if let Some(pos) = store.get_mut(elem_offset + i) { *pos = *val; } } - caller - .data_mut() - .ref_state - .insert(current_pid, (ref_id, offset + vals.len(), size)); + caller.data_mut().ref_state.insert( + current_pid, + ( + ref_id, + elem_offset + starstream_interleaving_spec::REF_PUSH_WIDTH, + size_words, + ), + ); suspend_with_effect(&mut caller, WitLedgerEffect::RefPush { vals }) }, @@ -532,19 +529,13 @@ impl Runtime { |mut caller: Caller<'_, RuntimeState>, reff: u64, offset: u64, - len: u64, val_0: u64, val_1: u64, val_2: u64, val_3: u64| -> Result<(), wasmi::Error> { let ref_id = Ref(reff); - let offset = offset as usize; - let len = len as usize; - - if len > starstream_interleaving_spec::REF_WRITE_WIDTH { - return Err(wasmi::Error::new("ref write len too large")); - } + let offset_words = offset as usize; let size = *caller .data() @@ -552,7 +543,7 @@ impl Runtime { .get(&ref_id) .ok_or(wasmi::Error::new("ref size not found"))?; - if offset + len > size { + if offset_words >= size { return Err(wasmi::Error::new("ref write overflow")); } @@ -563,16 +554,16 @@ impl Runtime { .get_mut(&ref_id) .ok_or(wasmi::Error::new("ref not found"))?; - for (i, val) in vals.iter().enumerate().take(len) { - store[offset + i] = *val; + let elem_offset = offset_words * starstream_interleaving_spec::REF_WRITE_WIDTH; + for (i, val) in vals.iter().enumerate() { + store[elem_offset + i] = *val; } suspend_with_effect( &mut caller, WitLedgerEffect::RefWrite { reff: ref_id, - offset, - len, + offset: offset_words, vals, }, ) @@ -587,9 +578,9 @@ impl Runtime { |mut caller: Caller<'_, RuntimeState>, reff: u64, offset: u64| - -> Result<(i64, i64, i64, i64, i64), wasmi::Error> { + -> Result<(i64, i64, i64, i64), wasmi::Error> { let ref_id = Ref(reff); - let offset = offset as usize; + let offset_words = offset as usize; let store = caller .data() .ref_store @@ -600,10 +591,13 @@ impl Runtime { .ref_sizes .get(&ref_id) .ok_or(wasmi::Error::new("ref size not found"))?; + if offset_words >= size { + return Err(wasmi::Error::new("ref get overflow")); + } let mut ret = [Value::nil(); starstream_interleaving_spec::REF_GET_WIDTH]; for (i, slot) in ret.iter_mut().enumerate() { - let idx = offset + i; - if idx < size { + let idx = (offset_words * starstream_interleaving_spec::REF_GET_WIDTH) + i; + if idx < size * starstream_interleaving_spec::REF_GET_WIDTH { *slot = store[idx]; } } @@ -611,7 +605,7 @@ impl Runtime { &mut caller, WitLedgerEffect::RefGet { reff: ref_id, - offset, + offset: offset_words, ret: WitEffectOutput::Resolved(ret), }, )?; @@ -620,7 +614,6 @@ impl Runtime { ret[1].0 as i64, ret[2].0 as i64, ret[3].0 as i64, - ret[4].0 as i64, )) }, ) @@ -1000,7 +993,7 @@ impl UnprovenTransaction { } WitLedgerEffect::RefGet { ret, .. } => { let ret = ret.unwrap(); - next_args = [ret[0].0, ret[1].0, ret[2].0, ret[3].0, ret[4].0]; + next_args = [ret[0].0, ret[1].0, ret[2].0, ret[3].0, 0]; } WitLedgerEffect::RefWrite { .. } => { next_args = [0; 5]; diff --git a/interleaving/starstream-runtime/tests/integration.rs b/interleaving/starstream-runtime/tests/integration.rs index 23313028..f78635d3 100644 --- a/interleaving/starstream-runtime/tests/integration.rs +++ b/interleaving/starstream-runtime/tests/integration.rs @@ -19,11 +19,11 @@ fn test_runtime_simple_effect_handlers() { assert_eq caller_hash_d, script_hash_d; let handler_id = call get_handler_for(1, 0, 0, 0); - let req = call new_ref(7); - call ref_push(42, 0, 0, 0, 0, 0, 0); + let req = call new_ref(1); + call ref_push(42, 0, 0, 0); let (resp, _caller) = call resume(handler_id, req); - let (resp_val, _b, _c, _d, _e) = call ref_get(resp, 0); + let (resp_val, _b, _c, _d) = call ref_get(resp, 0); assert_eq resp_val, 1; let (_req2, _caller2) = call yield_(resp); @@ -35,9 +35,9 @@ fn test_runtime_simple_effect_handlers() { let coord_bin = wasm_module!({ call install_handler(1, 0, 0, 0); - let init_val = call new_ref(7); + let init_val = call new_ref(1); - call ref_push(0, 0, 0, 0, 0, 0, 0); + call ref_push(0, 0, 0, 0); let _utxo_id = call new_utxo( const(utxo_hash_limb_a), @@ -48,12 +48,12 @@ fn test_runtime_simple_effect_handlers() { ); let (req, _caller) = call resume(0, init_val); - let (req_val, _b, _c, _d, _e) = call ref_get(req, 0); + let (req_val, _b, _c, _d) = call ref_get(req, 0); assert_eq req_val, 42; - let resp = call new_ref(7); - call ref_push(1, 0, 0, 0, 0, 0, 0); + let resp = call new_ref(1); + call ref_push(1, 0, 0, 0); let (_ret, _caller2) = call resume(0, resp); @@ -114,14 +114,14 @@ fn test_runtime_effect_handlers_cross_calls() { break_if i == n; // Allocate a ref for the number, then send a nested ref message (disc, num_ref). - let num_ref = call new_ref(7); - call ref_push(x, 0, 0, 0, 0, 0, 0); + let num_ref = call new_ref(1); + call ref_push(x, 0, 0, 0); - let req = call new_ref(7); - call ref_push(1, num_ref, 0, 0, 0, 0, 0); + let req = call new_ref(1); + call ref_push(1, num_ref, 0, 0); let (resp, _caller2) = call resume(handler_id, req); - let (y, _b, _c, _d, _e) = call ref_get(resp, 0); + let (y, _b, _c, _d) = call ref_get(resp, 0); let expected = add x, 1; assert_eq y, expected; @@ -130,10 +130,10 @@ fn test_runtime_effect_handlers_cross_calls() { continue; } - let stop_num_ref = call new_ref(7); - call ref_push(x, 0, 0, 0, 0, 0, 0); - let stop = call new_ref(7); - call ref_push(2, stop_num_ref, 0, 0, 0, 0, 0); + let stop_num_ref = call new_ref(1); + call ref_push(x, 0, 0, 0); + let stop = call new_ref(1); + call ref_push(2, stop_num_ref, 0, 0); let (_resp_stop, _caller_stop) = call resume(handler_id, stop); let (_req3, _caller3) = call yield_(stop); @@ -145,9 +145,9 @@ fn test_runtime_effect_handlers_cross_calls() { // Serve x -> x+1 for each incoming request, writing back into the same ref. loop { - let (x, _b, _c, _d, _e) = call ref_get(req, 0); + let (x, _b, _c, _d) = call ref_get(req, 0); let y = add x, 1; - call ref_write(req, 0, 1, y, 0, 0, 0); + call ref_write(req, 0, y, 0, 0, 0); let (next_req, _caller2) = call yield_(req); set req = next_req; continue; @@ -164,7 +164,7 @@ fn test_runtime_effect_handlers_cross_calls() { call install_handler(1, 2, 3, 4); let init_val = call new_ref(1); - call ref_push(0, 0, 0, 0, 0, 0, 0); + call ref_push(0, 0, 0, 0); let utxo_id1 = call new_utxo( const(utxo1_hash_limb_a), @@ -188,7 +188,7 @@ fn test_runtime_effect_handlers_cross_calls() { let caller1 = caller0; loop { - let (disc, num_ref, _c, _d, _e) = call ref_get(req, 0); + let (disc, num_ref, _c, _d) = call ref_get(req, 0); if disc == 2 { let (_ret_stop, _caller_stop) = call resume(caller1, num_ref); } diff --git a/interleaving/starstream-runtime/tests/wasm_dsl.rs b/interleaving/starstream-runtime/tests/wasm_dsl.rs index 32c9d511..dd0a2c95 100644 --- a/interleaving/starstream-runtime/tests/wasm_dsl.rs +++ b/interleaving/starstream-runtime/tests/wasm_dsl.rs @@ -238,28 +238,14 @@ impl ModuleBuilder { let ref_push = self.import_func( "env", "starstream_ref_push", - &[ - ValType::I64, - ValType::I64, - ValType::I64, - ValType::I64, - ValType::I64, - ValType::I64, - ValType::I64, - ], + &[ValType::I64, ValType::I64, ValType::I64, ValType::I64], &[], ); let ref_get = self.import_func( "env", "starstream_ref_get", &[ValType::I64, ValType::I64], - &[ - ValType::I64, - ValType::I64, - ValType::I64, - ValType::I64, - ValType::I64, - ], + &[ValType::I64, ValType::I64, ValType::I64, ValType::I64], ); let ref_write = self.import_func( "env", @@ -271,7 +257,6 @@ impl ModuleBuilder { ValType::I64, ValType::I64, ValType::I64, - ValType::I64, ], &[], ); From 836adf5cc1d19e483a552e7e946fb3b89f77d406 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Wed, 28 Jan 2026 23:15:26 -0300 Subject: [PATCH 113/152] update Cargo.lock (nighstream version bump) Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- Cargo.lock | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c74751ce..2820402a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1477,9 +1477,11 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd" dependencies = [ "cfg-if", + "js-sys", "libc", "r-efi", "wasip2", + "wasm-bindgen", ] [[package]] @@ -2003,7 +2005,7 @@ dependencies = [ [[package]] name = "neo-ajtai" version = "0.1.0" -source = "git+https://github.com/LFDT-Nightstream/Nightstream.git?rev=e93ae040e29a3e883d08569a8ccbf79118ebd218#e93ae040e29a3e883d08569a8ccbf79118ebd218" +source = "git+https://github.com/LFDT-Nightstream/Nightstream.git?rev=f6e80467807967735a16293ec04d5ee5a36d984e#f6e80467807967735a16293ec04d5ee5a36d984e" dependencies = [ "neo-ccs", "neo-math", @@ -2023,7 +2025,7 @@ dependencies = [ [[package]] name = "neo-ccs" version = "0.1.0" -source = "git+https://github.com/LFDT-Nightstream/Nightstream.git?rev=e93ae040e29a3e883d08569a8ccbf79118ebd218#e93ae040e29a3e883d08569a8ccbf79118ebd218" +source = "git+https://github.com/LFDT-Nightstream/Nightstream.git?rev=f6e80467807967735a16293ec04d5ee5a36d984e#f6e80467807967735a16293ec04d5ee5a36d984e" dependencies = [ "neo-math", "neo-params", @@ -2044,8 +2046,10 @@ dependencies = [ [[package]] name = "neo-fold" version = "0.1.0" -source = "git+https://github.com/LFDT-Nightstream/Nightstream.git?rev=e93ae040e29a3e883d08569a8ccbf79118ebd218#e93ae040e29a3e883d08569a8ccbf79118ebd218" +source = "git+https://github.com/LFDT-Nightstream/Nightstream.git?rev=f6e80467807967735a16293ec04d5ee5a36d984e#f6e80467807967735a16293ec04d5ee5a36d984e" dependencies = [ + "getrandom 0.3.4", + "js-sys", "neo-ajtai", "neo-ccs", "neo-math", @@ -2068,14 +2072,13 @@ dependencies = [ [[package]] name = "neo-math" version = "0.1.0" -source = "git+https://github.com/LFDT-Nightstream/Nightstream.git?rev=e93ae040e29a3e883d08569a8ccbf79118ebd218#e93ae040e29a3e883d08569a8ccbf79118ebd218" +source = "git+https://github.com/LFDT-Nightstream/Nightstream.git?rev=f6e80467807967735a16293ec04d5ee5a36d984e#f6e80467807967735a16293ec04d5ee5a36d984e" dependencies = [ "p3-field", "p3-goldilocks", "p3-matrix", "rand 0.9.2", "rand_chacha 0.9.0", - "rayon", "subtle", "thiserror 2.0.17", ] @@ -2083,7 +2086,7 @@ dependencies = [ [[package]] name = "neo-memory" version = "0.1.0" -source = "git+https://github.com/LFDT-Nightstream/Nightstream.git?rev=e93ae040e29a3e883d08569a8ccbf79118ebd218#e93ae040e29a3e883d08569a8ccbf79118ebd218" +source = "git+https://github.com/LFDT-Nightstream/Nightstream.git?rev=f6e80467807967735a16293ec04d5ee5a36d984e#f6e80467807967735a16293ec04d5ee5a36d984e" dependencies = [ "neo-ajtai", "neo-ccs", @@ -2102,7 +2105,7 @@ dependencies = [ [[package]] name = "neo-params" version = "0.1.0" -source = "git+https://github.com/LFDT-Nightstream/Nightstream.git?rev=e93ae040e29a3e883d08569a8ccbf79118ebd218#e93ae040e29a3e883d08569a8ccbf79118ebd218" +source = "git+https://github.com/LFDT-Nightstream/Nightstream.git?rev=f6e80467807967735a16293ec04d5ee5a36d984e#f6e80467807967735a16293ec04d5ee5a36d984e" dependencies = [ "serde", "thiserror 2.0.17", @@ -2111,7 +2114,7 @@ dependencies = [ [[package]] name = "neo-reductions" version = "0.1.0" -source = "git+https://github.com/LFDT-Nightstream/Nightstream.git?rev=e93ae040e29a3e883d08569a8ccbf79118ebd218#e93ae040e29a3e883d08569a8ccbf79118ebd218" +source = "git+https://github.com/LFDT-Nightstream/Nightstream.git?rev=f6e80467807967735a16293ec04d5ee5a36d984e#f6e80467807967735a16293ec04d5ee5a36d984e" dependencies = [ "bincode", "blake3", @@ -2135,7 +2138,7 @@ dependencies = [ [[package]] name = "neo-transcript" version = "0.1.0" -source = "git+https://github.com/LFDT-Nightstream/Nightstream.git?rev=e93ae040e29a3e883d08569a8ccbf79118ebd218#e93ae040e29a3e883d08569a8ccbf79118ebd218" +source = "git+https://github.com/LFDT-Nightstream/Nightstream.git?rev=f6e80467807967735a16293ec04d5ee5a36d984e#f6e80467807967735a16293ec04d5ee5a36d984e" dependencies = [ "neo-ccs", "neo-math", @@ -2151,7 +2154,7 @@ dependencies = [ [[package]] name = "neo-vm-trace" version = "0.1.0" -source = "git+https://github.com/LFDT-Nightstream/Nightstream.git?rev=e93ae040e29a3e883d08569a8ccbf79118ebd218#e93ae040e29a3e883d08569a8ccbf79118ebd218" +source = "git+https://github.com/LFDT-Nightstream/Nightstream.git?rev=f6e80467807967735a16293ec04d5ee5a36d984e#f6e80467807967735a16293ec04d5ee5a36d984e" dependencies = [ "serde", "thiserror 2.0.17", From dda31f5382e9971f85885bd81497a4ee367bc26f Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Thu, 29 Jan 2026 13:37:28 -0300 Subject: [PATCH 114/152] add OpcodeDsl to reduce tracing/synthesis duplication (only in ref arena opcodes for now) Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .../starstream-interleaving-proof/src/lib.rs | 1 + .../src/opcode_dsl.rs | 196 +++++++++++++ .../src/ref_arena_gadget.rs | 271 +++++++++--------- .../starstream-interleaving-spec/README.md | 1 + 4 files changed, 339 insertions(+), 130 deletions(-) create mode 100644 interleaving/starstream-interleaving-proof/src/opcode_dsl.rs diff --git a/interleaving/starstream-interleaving-proof/src/lib.rs b/interleaving/starstream-interleaving-proof/src/lib.rs index 3acc0b43..c9538487 100644 --- a/interleaving/starstream-interleaving-proof/src/lib.rs +++ b/interleaving/starstream-interleaving-proof/src/lib.rs @@ -7,6 +7,7 @@ mod logging; mod memory; mod memory_tags; mod neo; +mod opcode_dsl; mod optional; mod program_state; mod ref_arena_gadget; diff --git a/interleaving/starstream-interleaving-proof/src/opcode_dsl.rs b/interleaving/starstream-interleaving-proof/src/opcode_dsl.rs new file mode 100644 index 00000000..0e6b5a93 --- /dev/null +++ b/interleaving/starstream-interleaving-proof/src/opcode_dsl.rs @@ -0,0 +1,196 @@ +use crate::F; +use crate::circuit::MemoryTag; +use crate::memory::{Address, IVCMemory, IVCMemoryAllocated}; +use ark_ff::{AdditiveGroup as _, PrimeField as _}; +use ark_r1cs_std::{ + alloc::AllocVar as _, + fields::{FieldVar as _, fp::FpVar}, + prelude::Boolean, +}; +use ark_relations::gr1cs::{ConstraintSystemRef, SynthesisError}; +use std::convert::Infallible; + +// a higher level DSL on top of arkworks and the MCC api +// +// in most cases the memory tracing logic mirrors the circuit synthesis logic. +// +// the idea of this trait is that we can then provide two backends +// +// one that works out-of-circuit, whose only purpose is to feed the memory +// tracer with the right values, and another backend that just re-uses those +// values for witness assignment, and emits the constraints for r1cs shape +// construction. +// +// NOTE: not all the circuit is currently using this yet +// NOTE: after we get all the opcodes to use this abstraction (which may require +// more changes), we may also replace the arkworks DSL entirely. +pub trait OpcodeDsl { + type Bool; + type Val: std::fmt::Debug; + type Error; + + fn zero(&self) -> Self::Val; + fn const_u64(&self, val: u64) -> Result; + fn add(&self, lhs: &Self::Val, rhs: &Self::Val) -> Result; + fn mul(&self, lhs: &Self::Val, rhs: &Self::Val) -> Result; + fn select( + &self, + cond: &Self::Bool, + t: &Self::Val, + f: &Self::Val, + ) -> Result; + fn read( + &mut self, + cond: &Self::Bool, + tag: MemoryTag, + addr: &Self::Val, + ) -> Result; + fn write( + &mut self, + cond: &Self::Bool, + tag: MemoryTag, + addr: &Self::Val, + val: &Self::Val, + ) -> Result<(), Self::Error>; +} + +pub struct OpcodeTraceDsl<'a, M> { + pub mb: &'a mut M, +} + +impl<'a, M: IVCMemory> OpcodeDsl for OpcodeTraceDsl<'a, M> { + type Bool = bool; + type Val = F; + type Error = Infallible; + + fn zero(&self) -> Self::Val { + F::ZERO + } + + fn const_u64(&self, val: u64) -> Result { + Ok(F::from(val)) + } + + fn add(&self, lhs: &Self::Val, rhs: &Self::Val) -> Result { + Ok(*lhs + *rhs) + } + + fn mul(&self, lhs: &Self::Val, rhs: &Self::Val) -> Result { + Ok(*lhs * *rhs) + } + + fn select( + &self, + cond: &Self::Bool, + t: &Self::Val, + f: &Self::Val, + ) -> Result { + Ok(if *cond { *t } else { *f }) + } + + fn read( + &mut self, + cond: &Self::Bool, + tag: MemoryTag, + addr: &Self::Val, + ) -> Result { + let addr_u64 = addr.into_bigint().0[0]; + let read = self.mb.conditional_read( + *cond, + Address { + tag: tag.into(), + addr: addr_u64, + }, + ); + Ok(read[0]) + } + + fn write( + &mut self, + cond: &Self::Bool, + tag: MemoryTag, + addr: &Self::Val, + val: &Self::Val, + ) -> Result<(), Self::Error> { + let addr_u64 = addr.into_bigint().0[0]; + self.mb.conditional_write( + *cond, + Address { + tag: tag.into(), + addr: addr_u64, + }, + vec![*val], + ); + Ok(()) + } +} + +pub struct OpcodeSynthDsl<'a, M> { + pub cs: ConstraintSystemRef, + pub rm: &'a mut M, +} + +impl<'a, M: IVCMemoryAllocated> OpcodeDsl for OpcodeSynthDsl<'a, M> { + type Bool = Boolean; + type Val = FpVar; + type Error = SynthesisError; + + fn zero(&self) -> Self::Val { + FpVar::zero() + } + + fn const_u64(&self, val: u64) -> Result { + FpVar::new_constant(self.cs.clone(), F::from(val)) + } + + fn add(&self, lhs: &Self::Val, rhs: &Self::Val) -> Result { + Ok(lhs + rhs) + } + + fn mul(&self, lhs: &Self::Val, rhs: &Self::Val) -> Result { + Ok(lhs * rhs) + } + + fn select( + &self, + cond: &Self::Bool, + t: &Self::Val, + f: &Self::Val, + ) -> Result { + cond.select(t, f) + } + + fn read( + &mut self, + cond: &Self::Bool, + tag: MemoryTag, + addr: &Self::Val, + ) -> Result { + let read = self.rm.conditional_read( + cond, + &Address { + tag: tag.allocate(self.cs.clone())?, + addr: addr.clone(), + }, + )?[0] + .clone(); + Ok(read) + } + + fn write( + &mut self, + cond: &Self::Bool, + tag: MemoryTag, + addr: &Self::Val, + val: &Self::Val, + ) -> Result<(), Self::Error> { + self.rm.conditional_write( + cond, + &Address { + tag: tag.allocate(self.cs.clone())?, + addr: addr.clone(), + }, + &[val.clone()], + ) + } +} diff --git a/interleaving/starstream-interleaving-proof/src/ref_arena_gadget.rs b/interleaving/starstream-interleaving-proof/src/ref_arena_gadget.rs index 1bd9ca66..3b731842 100644 --- a/interleaving/starstream-interleaving-proof/src/ref_arena_gadget.rs +++ b/interleaving/starstream-interleaving-proof/src/ref_arena_gadget.rs @@ -1,21 +1,83 @@ -use crate::circuit::ExecutionSwitches; +use crate::circuit::{ExecutionSwitches, MemoryTag}; +use crate::opcode_dsl::{OpcodeDsl, OpcodeSynthDsl, OpcodeTraceDsl}; use crate::{ F, LedgerOperation, abi::{ArgName, OPCODE_ARG_COUNT}, - circuit::MemoryTag, ledger_operation::{REF_GET_BATCH_SIZE, REF_PUSH_BATCH_SIZE, REF_WRITE_BATCH_SIZE}, - memory::{Address, IVCMemory, IVCMemoryAllocated}, + memory::{IVCMemory, IVCMemoryAllocated}, }; -use ark_ff::{AdditiveGroup, PrimeField as _}; +use ark_ff::{AdditiveGroup as _, PrimeField as _}; +use ark_r1cs_std::alloc::AllocVar as _; use ark_r1cs_std::{ GR1CSVar as _, - alloc::AllocVar as _, eq::EqGadget, fields::{FieldVar as _, fp::FpVar}, prelude::Boolean, }; use ark_relations::gr1cs::{ConstraintSystemRef, SynthesisError}; +struct RefArenaSwitches { + get: B, + ref_push: B, + ref_write: B, +} + +fn ref_sizes_access_ops( + dsl: &mut D, + write_cond: &D::Bool, + write_addr: &D::Val, + write_val: &D::Val, + read_cond: &D::Bool, + read_addr: &D::Val, +) -> Result { + dsl.write(write_cond, MemoryTag::RefSizes, write_addr, write_val)?; + dsl.read(read_cond, MemoryTag::RefSizes, read_addr) +} + +fn ref_arena_access_ops( + dsl: &mut D, + switches: &RefArenaSwitches, + write_cond: &D::Bool, + push_vals: &[D::Val; REF_PUSH_BATCH_SIZE], + write_vals: &[D::Val; REF_WRITE_BATCH_SIZE], + ref_building_ptr: &D::Val, + val: &D::Val, + offset: &D::Val, +) -> Result<[D::Val; REF_GET_BATCH_SIZE], D::Error> { + let scale_get = dsl.const_u64(REF_GET_BATCH_SIZE as u64)?; + let offset_scaled_get = dsl.mul(offset, &scale_get)?; + let get_base_addr = dsl.add(val, &offset_scaled_get)?; + + let mut ref_arena_read_vec = Vec::with_capacity(REF_GET_BATCH_SIZE); + for i in 0..REF_GET_BATCH_SIZE { + let off = dsl.const_u64(i as u64)?; + let addr = dsl.add(&get_base_addr, &off)?; + let read = dsl.read(&switches.get, MemoryTag::RefArena, &addr)?; + ref_arena_read_vec.push(read); + } + + let scale_write = dsl.const_u64(REF_WRITE_BATCH_SIZE as u64)?; + let offset_scaled_write = dsl.mul(offset, &scale_write)?; + let write_base_write = dsl.add(val, &offset_scaled_write)?; + let write_base_sel = dsl.select(&switches.ref_push, ref_building_ptr, &write_base_write)?; + let zero = dsl.zero(); + let write_base = dsl.select(write_cond, &write_base_sel, &zero)?; + + for i in 0..REF_WRITE_BATCH_SIZE { + let off = dsl.const_u64(i as u64)?; + let addr = dsl.add(&write_base, &off)?; + let val_sel = dsl.select(&switches.ref_push, &push_vals[i], &write_vals[i])?; + let val = dsl.select(write_cond, &val_sel, &zero)?; + dsl.write(write_cond, MemoryTag::RefArena, &addr, &val)?; + } + + let ref_arena_read: [D::Val; REF_GET_BATCH_SIZE] = ref_arena_read_vec + .try_into() + .expect("ref arena read batch length"); + + Ok(ref_arena_read) +} + pub(crate) fn trace_ref_arena_ops>( mb: &mut M, ref_building_id: &mut F, @@ -65,15 +127,6 @@ pub(crate) fn trace_ref_arena_ops>( _ => {} }; - mb.conditional_write( - new_ref, - Address { - tag: MemoryTag::RefSizes.into(), - addr: ref_building_id.into_bigint().0[0], - }, - vec![*ref_building_remaining], - ); - let ref_sizes_read = ref_get || ref_write; let ref_sizes_ref_id = if ref_get { ref_get_ref @@ -83,60 +136,55 @@ pub(crate) fn trace_ref_arena_ops>( F::ZERO }; - mb.conditional_read( - ref_sizes_read, - Address { - tag: MemoryTag::RefSizes.into(), - addr: ref_sizes_ref_id.into_bigint().0[0], - }, - ); - - let offset = ref_get_offset.into_bigint().0[0]; - - let base = ref_get_ref.into_bigint().0[0] + (offset * REF_GET_BATCH_SIZE as u64); - - for i in 0..REF_GET_BATCH_SIZE { - let addr = base + i as u64; - let should_read = ref_get; - mb.conditional_read( - should_read, - Address { - tag: MemoryTag::RefArena.into(), - addr, - }, - ); - } - - let write_offset = ref_write_offset.into_bigint().0[0]; - let write_base = - ref_write_ref.into_bigint().0[0] + (write_offset * REF_WRITE_BATCH_SIZE as u64); - let push_base = ref_building_id.into_bigint().0[0] + ref_building_offset.into_bigint().0[0]; - let should_write = ref_push || ref_write; - let write_base = if ref_push { - push_base + let mut dsl = OpcodeTraceDsl { mb }; + let _ = ref_sizes_access_ops( + &mut dsl, + &new_ref, + ref_building_id, + ref_building_remaining, + &ref_sizes_read, + &ref_sizes_ref_id, + ) + .expect("trace ref sizes access"); + + let op_val = if ref_get { + ref_get_ref } else if ref_write { - write_base + ref_write_ref } else { - 0 + F::ZERO }; - let write_vals = if ref_push { - ref_push_vals + let op_offset = if ref_get { + ref_get_offset + } else if ref_write { + ref_write_offset } else { - ref_write_vals + F::ZERO + }; + + let switches = RefArenaSwitches { + get: ref_get, + ref_push, + ref_write, }; - for (i, val) in write_vals.iter().enumerate().take(REF_WRITE_BATCH_SIZE) { - let addr = write_base + i as u64; - mb.conditional_write( - should_write, - Address { - tag: MemoryTag::RefArena.into(), - addr, - }, - vec![*val], - ); - } + + let write_cond = ref_push || ref_write; + + let push_ptr = *ref_building_id + *ref_building_offset; + let _ = ref_arena_access_ops( + &mut dsl, + &switches, + &write_cond, + &ref_push_vals, + &ref_write_vals, + &push_ptr, + &op_val, + &op_offset, + ) + .expect("trace ref arena access"); let remaining = ref_building_remaining.into_bigint().0[0] as usize; + if ref_push { *ref_building_offset += F::from(REF_PUSH_BATCH_SIZE as u64); *ref_building_remaining = F::from(remaining.saturating_sub(1) as u64); @@ -150,28 +198,22 @@ pub(crate) fn ref_arena_read_size>( opcode_args: &[FpVar; OPCODE_ARG_COUNT], addr: &FpVar, ) -> Result, SynthesisError> { - rm.conditional_write( - &switches.new_ref, - &Address { - tag: MemoryTag::RefSizes.allocate(cs.clone())?, - addr: opcode_args[ArgName::Ret.idx()].clone(), - }, - &[opcode_args[ArgName::Size.idx()].clone()], - )?; - - let read_switch = &switches.get | &switches.ref_write; - let read_addr = read_switch.select(addr, &FpVar::zero())?; - - let ref_size_read = rm.conditional_read( - &read_switch, - &Address { - tag: MemoryTag::RefSizes.allocate(cs.clone())?, - addr: read_addr, - }, - )?[0] - .clone(); - - Ok(ref_size_read) + let write_cond = switches.new_ref.clone(); + let write_addr = opcode_args[ArgName::Ret.idx()].clone(); + let write_val = opcode_args[ArgName::Size.idx()].clone(); + + let read_cond = &switches.get | &switches.ref_write; + let read_addr = read_cond.select(addr, &FpVar::zero())?; + + let mut dsl = OpcodeSynthDsl { cs, rm }; + ref_sizes_access_ops( + &mut dsl, + &write_cond, + &write_addr, + &write_val, + &read_cond, + &read_addr, + ) } pub(crate) fn ref_arena_access_wires>( @@ -220,55 +262,24 @@ pub(crate) fn ref_arena_access_wires>( range_check_u16(cs.clone(), &switches.ref_write, &offset_sel_write)?; range_check_u16(cs.clone(), &switches.ref_write, &diff_write)?; - let scale = FpVar::new_constant(cs.clone(), F::from(REF_GET_BATCH_SIZE as u64))?; - let get_base_addr = val + (offset * scale); - let mut ref_arena_read_vec = Vec::with_capacity(REF_GET_BATCH_SIZE); - for i in 0..REF_GET_BATCH_SIZE { - let offset = FpVar::new_constant(cs.clone(), F::from(i as u64))?; - let get_addr = &get_base_addr + offset; - let read = rm.conditional_read( - &switches.get, - &Address { - tag: MemoryTag::RefArena.allocate(cs.clone())?, - addr: get_addr, - }, - )?[0] - .clone(); - ref_arena_read_vec.push(read); - } - - let ref_arena_read: [FpVar; REF_GET_BATCH_SIZE] = ref_arena_read_vec - .try_into() - .expect("ref arena read batch length"); - - let scale = FpVar::new_constant(cs.clone(), F::from(REF_WRITE_BATCH_SIZE as u64))?; - let write_base_push = ref_building_ptr.clone(); - let write_base_write = val + (offset * scale); + let switches = RefArenaSwitches { + get: switches.get.clone(), + ref_push: switches.ref_push.clone(), + ref_write: switches.ref_write.clone(), + }; let write_cond = &switches.ref_push | &switches.ref_write; - let write_base_sel = switches - .ref_push - .select(&write_base_push, &write_base_write)?; - let write_base = write_cond.select(&write_base_sel, &FpVar::zero())?; - - for i in 0..REF_WRITE_BATCH_SIZE { - let offset = FpVar::new_constant(cs.clone(), F::from(i as u64))?; - let write_addr = &write_base + offset; - let push_val = ref_push_vals[i].clone(); - let write_val = ref_write_vals[i].clone(); - let val_sel = switches.ref_push.select(&push_val, &write_val)?; - let val = write_cond.select(&val_sel, &FpVar::zero())?; - - rm.conditional_write( - &write_cond, - &Address { - tag: MemoryTag::RefArena.allocate(cs.clone())?, - addr: write_addr, - }, - &[val], - )?; - } - Ok(ref_arena_read) + let mut dsl = OpcodeSynthDsl { cs: cs.clone(), rm }; + ref_arena_access_ops( + &mut dsl, + &switches, + &write_cond, + &ref_push_vals, + &ref_write_vals, + ref_building_ptr, + val, + offset, + ) } fn range_check_u16( diff --git a/interleaving/starstream-interleaving-spec/README.md b/interleaving/starstream-interleaving-spec/README.md index 7a986056..2dd7caa0 100644 --- a/interleaving/starstream-interleaving-spec/README.md +++ b/interleaving/starstream-interleaving-spec/README.md @@ -494,6 +494,7 @@ Rule: Bind (token calls) ## Unbind +```text Rule: Unbind (owner calls) ========================== op = Unbind(token_id) From 811618e921ef64d9671faa09a9cdf18464e6cb63 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Thu, 29 Jan 2026 15:37:10 -0300 Subject: [PATCH 115/152] extract install_handler opcodes to a module + use opcode dsl Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .../src/circuit.rs | 158 ++---------------- .../src/circuit_test.rs | 54 ++++++ .../src/handler_stack_gadget.rs | 143 ++++++++++++++++ .../starstream-interleaving-proof/src/lib.rs | 1 + 4 files changed, 214 insertions(+), 142 deletions(-) create mode 100644 interleaving/starstream-interleaving-proof/src/handler_stack_gadget.rs diff --git a/interleaving/starstream-interleaving-proof/src/circuit.rs b/interleaving/starstream-interleaving-proof/src/circuit.rs index c5357d70..18aba76e 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit.rs @@ -6,6 +6,7 @@ use crate::program_state::{ ProgramState, ProgramStateWires, program_state_read_wires, program_state_write_wires, trace_program_state_reads, trace_program_state_writes, }; +use crate::handler_stack_gadget::{handler_stack_access_wires, trace_handler_stack_ops}; use crate::ref_arena_gadget::{ref_arena_access_wires, ref_arena_read_size, trace_ref_arena_ops}; use crate::switchboard::{ HandlerSwitchboard, HandlerSwitchboardWires, MemSwitchboard, MemSwitchboardWires, @@ -663,80 +664,18 @@ impl Wires { let interface_index_var = FpVar::new_witness(cs.clone(), || Ok(vals.interface_index))?; - let interface_rom_read = rm.conditional_read( - &handler_switches.read_interface, - &Address { - tag: MemoryTag::Interfaces.allocate(cs.clone())?, - addr: interface_index_var.clone(), - }, - )?[0] - .clone(); - - let handler_stack_head_read = rm.conditional_read( - &handler_switches.read_head, - &Address { - tag: MemoryTag::HandlerStackHeads.allocate(cs.clone())?, - addr: interface_index_var.clone(), - }, - )?[0] - .clone(); - - let handler_stack_node_process = rm.conditional_read( - &handler_switches.read_node, - &Address { - tag: MemoryTag::HandlerStackArenaProcess.allocate(cs.clone())?, - addr: handler_stack_head_read.clone(), - }, - )?[0] - .clone(); - - let handler_stack_node_next = rm.conditional_read( - &handler_switches.read_node, - &Address { - tag: MemoryTag::HandlerStackArenaNextPtr.allocate(cs.clone())?, - addr: handler_stack_head_read.clone(), - }, - )?[0] - .clone(); - - rm.conditional_write( - &handler_switches.write_node, - &Address { - tag: MemoryTag::HandlerStackArenaProcess.allocate(cs.clone())?, - addr: handler_stack_counter.clone(), - }, - &[handler_switches - .write_node - .select(&id_curr, &FpVar::new_constant(cs.clone(), F::ZERO)?)?], // process_id - )?; - - rm.conditional_write( - &handler_switches.write_node, - &Address { - tag: MemoryTag::HandlerStackArenaNextPtr.allocate(cs.clone())?, - addr: handler_stack_counter.clone(), - }, - &[handler_switches.write_node.select( - &handler_stack_head_read, - &FpVar::new_constant(cs.clone(), F::ZERO)?, - )?], // next_ptr (old head) - )?; - - rm.conditional_write( - &handler_switches.write_head, - &Address { - tag: MemoryTag::HandlerStackHeads.allocate(cs.clone())?, - addr: interface_index_var.clone(), - }, - &[handler_switches.write_node.select( - &handler_stack_counter, // install: new node becomes head - &handler_stack_node_next, - )?], + let handler_reads = handler_stack_access_wires( + cs.clone(), + rm, + &handler_switches, + &interface_index_var, + &handler_stack_counter, + &id_curr, )?; let handler_state = HandlerState { - handler_stack_node_process, - interface_rom_read: interface_rom_read.clone(), + handler_stack_node_process: handler_reads.handler_stack_node_process, + interface_rom_read: handler_reads.interface_rom_read, }; // ref arena wires @@ -1379,77 +1318,12 @@ impl> StepCircuitBuilder { _ => F::ZERO, }; - mb.conditional_read( - handler_switches.read_interface, - Address { - tag: MemoryTag::Interfaces.into(), - addr: interface_index.into_bigint().0[0], - }, - ); - - let current_head = mb.conditional_read( - handler_switches.read_head, - Address { - tag: MemoryTag::HandlerStackHeads.into(), - addr: interface_index.into_bigint().0[0], - }, - )[0]; - - let _node_process = mb.conditional_read( - handler_switches.read_node, - Address { - tag: MemoryTag::HandlerStackArenaProcess.into(), - addr: current_head.into_bigint().0[0], - }, - )[0]; - - let node_next = mb.conditional_read( - handler_switches.read_node, - Address { - tag: MemoryTag::HandlerStackArenaNextPtr.into(), - addr: current_head.into_bigint().0[0], - }, - )[0]; - - mb.conditional_write( - handler_switches.write_node, - Address { - tag: MemoryTag::HandlerStackArenaProcess.into(), - addr: irw.handler_stack_counter.into_bigint().0[0], - }, - if handler_switches.write_node { - vec![irw.id_curr] - } else { - vec![F::ZERO] - }, - ); - - mb.conditional_write( - handler_switches.write_node, - Address { - tag: MemoryTag::HandlerStackArenaNextPtr.into(), - addr: irw.handler_stack_counter.into_bigint().0[0], - }, - if handler_switches.write_node { - vec![current_head] - } else { - vec![F::ZERO] - }, - ); - - mb.conditional_write( - handler_switches.write_head, - Address { - tag: MemoryTag::HandlerStackHeads.into(), - addr: interface_index.into_bigint().0[0], - }, - vec![if handler_switches.write_node { - irw.handler_stack_counter - } else if handler_switches.write_head { - node_next - } else { - F::ZERO - }], + let _handler_reads = trace_handler_stack_ops( + &mut mb, + &handler_switches, + &interface_index, + &irw.handler_stack_counter, + &irw.id_curr, ); if config.execution_switches.install_handler { diff --git a/interleaving/starstream-interleaving-proof/src/circuit_test.rs b/interleaving/starstream-interleaving-proof/src/circuit_test.rs index e69ebb34..fe97df0a 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit_test.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit_test.rs @@ -400,3 +400,57 @@ fn test_ref_write_basic_sat() { let result = prove(instance, wit); assert!(result.is_ok()); } + +#[test] +fn test_install_handler_get_sat() { + test_install_handler_get(ProcessId(0)); +} + +#[test] +#[should_panic] +fn test_install_handler_get_unsat() { + test_install_handler_get(ProcessId(1)); +} + +fn test_install_handler_get(exp: ProcessId) { + setup_logger(); + + let coord_id = 0; + let p0 = ProcessId(coord_id); + + let coord_trace = vec![ + WitLedgerEffect::InstallHandler { + interface_id: h(100), + }, + WitLedgerEffect::InstallHandler { + interface_id: h(105), + }, + WitLedgerEffect::GetHandlerFor { + interface_id: h(100), + handler_id: exp.into(), + }, + ]; + + let traces = vec![coord_trace]; + let trace_lens = traces.iter().map(|t| t.len() as u32).collect::>(); + let host_calls_roots = host_calls_roots(&traces); + + let instance = InterleavingInstance { + n_inputs: 0, + n_new: 0, + n_coords: 1, + entrypoint: p0, + process_table: vec![h(0)], + is_utxo: vec![false], + must_burn: vec![false], + ownership_in: vec![None], + ownership_out: vec![None], + host_calls_roots, + host_calls_lens: trace_lens, + input_states: vec![], + }; + + let wit = InterleavingWitness { traces }; + let result = prove(instance, wit); + assert!(result.is_ok()); +} diff --git a/interleaving/starstream-interleaving-proof/src/handler_stack_gadget.rs b/interleaving/starstream-interleaving-proof/src/handler_stack_gadget.rs new file mode 100644 index 00000000..6e1d2519 --- /dev/null +++ b/interleaving/starstream-interleaving-proof/src/handler_stack_gadget.rs @@ -0,0 +1,143 @@ +use crate::F; +use crate::opcode_dsl::{OpcodeDsl, OpcodeSynthDsl, OpcodeTraceDsl}; +use crate::switchboard::{HandlerSwitchboard, HandlerSwitchboardWires}; +use crate::{circuit::MemoryTag, memory::IVCMemory, memory::IVCMemoryAllocated}; +use ark_r1cs_std::prelude::Boolean; +use ark_relations::gr1cs::{ConstraintSystemRef, SynthesisError}; + +#[derive(Clone)] +pub struct HandlerSwitches { + pub read_interface: B, + pub read_head: B, + pub read_node: B, + pub write_node: B, + pub write_head: B, +} + +impl From<&HandlerSwitchboard> for HandlerSwitches { + fn from(s: &HandlerSwitchboard) -> Self { + Self { + read_interface: s.read_interface, + read_head: s.read_head, + read_node: s.read_node, + write_node: s.write_node, + write_head: s.write_head, + } + } +} + +impl From<&HandlerSwitchboardWires> for HandlerSwitches> { + fn from(s: &HandlerSwitchboardWires) -> Self { + Self { + read_interface: s.read_interface.clone(), + read_head: s.read_head.clone(), + read_node: s.read_node.clone(), + write_node: s.write_node.clone(), + write_head: s.write_head.clone(), + } + } +} + +pub struct HandlerStackReads { + pub interface_rom_read: V, + pub handler_stack_head_read: V, + pub handler_stack_node_process: V, + pub handler_stack_node_next: V, +} + +fn handler_stack_ops( + dsl: &mut D, + switches: &HandlerSwitches, + interface_index: &D::Val, + handler_stack_counter: &D::Val, + id_curr: &D::Val, +) -> Result, D::Error> { + let interface_rom_read = + dsl.read(&switches.read_interface, MemoryTag::Interfaces, interface_index)?; + let handler_stack_head_read = + dsl.read(&switches.read_head, MemoryTag::HandlerStackHeads, interface_index)?; + let handler_stack_node_process = dsl.read( + &switches.read_node, + MemoryTag::HandlerStackArenaProcess, + &handler_stack_head_read, + )?; + let handler_stack_node_next = dsl.read( + &switches.read_node, + MemoryTag::HandlerStackArenaNextPtr, + &handler_stack_head_read, + )?; + + let zero = dsl.zero(); + let node_process = dsl.select(&switches.write_node, id_curr, &zero)?; + dsl.write( + &switches.write_node, + MemoryTag::HandlerStackArenaProcess, + handler_stack_counter, + &node_process, + )?; + + let node_next = dsl.select(&switches.write_node, &handler_stack_head_read, &zero)?; + dsl.write( + &switches.write_node, + MemoryTag::HandlerStackArenaNextPtr, + handler_stack_counter, + &node_next, + )?; + + let head_val = dsl.select( + &switches.write_node, + handler_stack_counter, + &handler_stack_node_next, + )?; + dsl.write( + &switches.write_head, + MemoryTag::HandlerStackHeads, + interface_index, + &head_val, + )?; + + Ok(HandlerStackReads { + interface_rom_read, + handler_stack_head_read, + handler_stack_node_process, + handler_stack_node_next, + }) +} + +pub fn trace_handler_stack_ops>( + mb: &mut M, + switches: &HandlerSwitchboard, + interface_index: &F, + handler_stack_counter: &F, + id_curr: &F, +) -> HandlerStackReads { + let mut dsl = OpcodeTraceDsl { mb }; + let switches = HandlerSwitches::from(switches); + handler_stack_ops( + &mut dsl, + &switches, + interface_index, + handler_stack_counter, + id_curr, + ) + .expect("trace handler stack ops") +} + +pub fn handler_stack_access_wires>( + cs: ConstraintSystemRef, + rm: &mut M, + switches: &HandlerSwitchboardWires, + interface_index: &ark_r1cs_std::fields::fp::FpVar, + handler_stack_counter: &ark_r1cs_std::fields::fp::FpVar, + id_curr: &ark_r1cs_std::fields::fp::FpVar, +) -> Result>, SynthesisError> { + let mut dsl = OpcodeSynthDsl { cs, rm }; + let switches = HandlerSwitches::from(switches); + handler_stack_ops( + &mut dsl, + &switches, + interface_index, + handler_stack_counter, + id_curr, + ) +} diff --git a/interleaving/starstream-interleaving-proof/src/lib.rs b/interleaving/starstream-interleaving-proof/src/lib.rs index c9538487..19d75ff7 100644 --- a/interleaving/starstream-interleaving-proof/src/lib.rs +++ b/interleaving/starstream-interleaving-proof/src/lib.rs @@ -2,6 +2,7 @@ mod abi; mod circuit; #[cfg(test)] mod circuit_test; +mod handler_stack_gadget; mod ledger_operation; mod logging; mod memory; From a09285bd541b95141d017a4f0dc2ba52b053703f Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Thu, 29 Jan 2026 15:38:08 -0300 Subject: [PATCH 116/152] add ref arena switchboard to the opcode config Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .../src/circuit.rs | 30 ++++- .../src/handler_stack_gadget.rs | 18 +-- .../starstream-interleaving-proof/src/neo.rs | 2 +- .../src/ref_arena_gadget.rs | 117 ++++++++---------- .../src/switchboard.rs | 35 ++++++ 5 files changed, 124 insertions(+), 78 deletions(-) diff --git a/interleaving/starstream-interleaving-proof/src/circuit.rs b/interleaving/starstream-interleaving-proof/src/circuit.rs index 18aba76e..85cced27 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit.rs @@ -1,4 +1,5 @@ use crate::abi::{self, ArgName, OPCODE_ARG_COUNT}; +use crate::handler_stack_gadget::{handler_stack_access_wires, trace_handler_stack_ops}; use crate::ledger_operation::{REF_GET_BATCH_SIZE, REF_PUSH_BATCH_SIZE}; use crate::memory::{self, Address, IVCMemory, MemType}; pub use crate::memory_tags::MemoryTag; @@ -6,11 +7,10 @@ use crate::program_state::{ ProgramState, ProgramStateWires, program_state_read_wires, program_state_write_wires, trace_program_state_reads, trace_program_state_writes, }; -use crate::handler_stack_gadget::{handler_stack_access_wires, trace_handler_stack_ops}; use crate::ref_arena_gadget::{ref_arena_access_wires, ref_arena_read_size, trace_ref_arena_ops}; use crate::switchboard::{ HandlerSwitchboard, HandlerSwitchboardWires, MemSwitchboard, MemSwitchboardWires, - RomSwitchboard, RomSwitchboardWires, + RefArenaSwitchboard, RefArenaSwitchboardWires, RomSwitchboard, RomSwitchboardWires, }; use crate::{ F, OptionalF, OptionalFpVar, ledger_operation::LedgerOperation, memory::IVCMemoryAllocated, @@ -90,6 +90,7 @@ struct OpcodeConfig { mem_switches_target: MemSwitchboard, rom_switches: RomSwitchboard, handler_switches: HandlerSwitchboard, + ref_arena_switches: RefArenaSwitchboard, execution_switches: ExecutionSwitches, opcode_args: [F; OPCODE_ARG_COUNT], opcode_discriminant: F, @@ -397,6 +398,7 @@ pub struct StepCircuitBuilder { mem_switches: Vec<(MemSwitchboard, MemSwitchboard)>, rom_switches: Vec, handler_switches: Vec, + ref_arena_switches: Vec, interface_resolver: InterfaceResolver, mem: PhantomData, @@ -453,6 +455,7 @@ pub struct PreWires { target_mem_switches: MemSwitchboard, rom_switches: RomSwitchboard, handler_switches: HandlerSwitchboard, + ref_arena_switches: RefArenaSwitchboard, irw: InterRoundWires, ret_is_some: bool, @@ -661,6 +664,8 @@ impl Wires { let handler_switches = HandlerSwitchboardWires::allocate(cs.clone(), &vals.handler_switches)?; + let ref_arena_switches = + RefArenaSwitchboardWires::allocate(cs.clone(), &vals.ref_arena_switches)?; let interface_index_var = FpVar::new_witness(cs.clone(), || Ok(vals.interface_index))?; @@ -680,12 +685,13 @@ impl Wires { // ref arena wires let ref_arena_read = { - let ref_size_read = ref_arena_read_size(cs.clone(), rm, &switches, &opcode_args, &val)?; + let ref_size_read = + ref_arena_read_size(cs.clone(), rm, &ref_arena_switches, &opcode_args, &val)?; ref_arena_access_wires( cs.clone(), rm, - &switches, + &ref_arena_switches, &opcode_args, &ref_building_ptr, &ref_building_remaining, @@ -798,6 +804,7 @@ impl LedgerOperation { mem_switches_target: MemSwitchboard::default(), rom_switches: RomSwitchboard::default(), handler_switches: HandlerSwitchboard::default(), + ref_arena_switches: RefArenaSwitchboard::default(), execution_switches: ExecutionSwitches::default(), opcode_args: [F::ZERO; OPCODE_ARG_COUNT], opcode_discriminant: F::ZERO, @@ -910,15 +917,22 @@ impl LedgerOperation { } LedgerOperation::NewRef { .. } => { config.execution_switches.new_ref = true; + config.ref_arena_switches.ref_sizes_write = true; } LedgerOperation::RefPush { .. } => { config.execution_switches.ref_push = true; + config.ref_arena_switches.ref_arena_write = true; + config.ref_arena_switches.ref_arena_write_is_push = true; } LedgerOperation::RefGet { .. } => { config.execution_switches.get = true; + config.ref_arena_switches.ref_sizes_read = true; + config.ref_arena_switches.ref_arena_read = true; } LedgerOperation::RefWrite { .. } => { config.execution_switches.ref_write = true; + config.ref_arena_switches.ref_sizes_read = true; + config.ref_arena_switches.ref_arena_write = true; } LedgerOperation::InstallHandler { .. } => { config.execution_switches.install_handler = true; @@ -1057,6 +1071,7 @@ impl> StepCircuitBuilder { mem_switches: vec![], rom_switches: vec![], handler_switches: vec![], + ref_arena_switches: vec![], interface_resolver, mem: PhantomData, instance, @@ -1297,12 +1312,14 @@ impl> StepCircuitBuilder { let target_switches = config.mem_switches_target; let rom_switches = config.rom_switches; let handler_switches = config.handler_switches; + let ref_arena_switches = config.ref_arena_switches; self.mem_switches .push((curr_switches.clone(), target_switches.clone())); self.rom_switches.push(rom_switches.clone()); self.handler_switches.push(handler_switches.clone()); + self.ref_arena_switches.push(ref_arena_switches.clone()); // Get interface index for handler operations let interface_index = match instr { @@ -1335,6 +1352,7 @@ impl> StepCircuitBuilder { &mut ref_building_id, &mut ref_building_offset, &mut ref_building_remaining, + &ref_arena_switches, instr, ); @@ -1493,6 +1511,7 @@ impl> StepCircuitBuilder { let (curr_mem_switches, target_mem_switches) = &self.mem_switches[i]; let rom_switches = &self.rom_switches[i]; let handler_switches = &self.handler_switches[i]; + let ref_arena_switches = &self.ref_arena_switches[i]; // Compute interface index for handler operations let interface_index = match instruction { @@ -1514,6 +1533,7 @@ impl> StepCircuitBuilder { target_mem_switches.clone(), rom_switches.clone(), handler_switches.clone(), + ref_arena_switches.clone(), interface_index, abi::opcode_discriminant(instruction), ); @@ -2241,6 +2261,7 @@ impl PreWires { target_mem_switches: MemSwitchboard, rom_switches: RomSwitchboard, handler_switches: HandlerSwitchboard, + ref_arena_switches: RefArenaSwitchboard, interface_index: F, opcode_discriminant: F, ) -> Self { @@ -2255,6 +2276,7 @@ impl PreWires { target_mem_switches, rom_switches, handler_switches, + ref_arena_switches, } } diff --git a/interleaving/starstream-interleaving-proof/src/handler_stack_gadget.rs b/interleaving/starstream-interleaving-proof/src/handler_stack_gadget.rs index 6e1d2519..08e5e58f 100644 --- a/interleaving/starstream-interleaving-proof/src/handler_stack_gadget.rs +++ b/interleaving/starstream-interleaving-proof/src/handler_stack_gadget.rs @@ -40,9 +40,7 @@ impl From<&HandlerSwitchboardWires> for HandlerSwitches> { pub struct HandlerStackReads { pub interface_rom_read: V, - pub handler_stack_head_read: V, pub handler_stack_node_process: V, - pub handler_stack_node_next: V, } fn handler_stack_ops( @@ -52,10 +50,16 @@ fn handler_stack_ops( handler_stack_counter: &D::Val, id_curr: &D::Val, ) -> Result, D::Error> { - let interface_rom_read = - dsl.read(&switches.read_interface, MemoryTag::Interfaces, interface_index)?; - let handler_stack_head_read = - dsl.read(&switches.read_head, MemoryTag::HandlerStackHeads, interface_index)?; + let interface_rom_read = dsl.read( + &switches.read_interface, + MemoryTag::Interfaces, + interface_index, + )?; + let handler_stack_head_read = dsl.read( + &switches.read_head, + MemoryTag::HandlerStackHeads, + interface_index, + )?; let handler_stack_node_process = dsl.read( &switches.read_node, MemoryTag::HandlerStackArenaProcess, @@ -98,9 +102,7 @@ fn handler_stack_ops( Ok(HandlerStackReads { interface_rom_read, - handler_stack_head_read, handler_stack_node_process, - handler_stack_node_next, }) } diff --git a/interleaving/starstream-interleaving-proof/src/neo.rs b/interleaving/starstream-interleaving-proof/src/neo.rs index ed6614d0..8b7bec94 100644 --- a/interleaving/starstream-interleaving-proof/src/neo.rs +++ b/interleaving/starstream-interleaving-proof/src/neo.rs @@ -16,7 +16,7 @@ use std::collections::HashMap; // TODO: benchmark properly pub(crate) const CHUNK_SIZE: usize = 40; -const PER_STEP_COLS: usize = 1079; +const PER_STEP_COLS: usize = 1083; const BASE_INSTANCE_COLS: usize = 1; const EXTRA_INSTANCE_COLS: usize = IvcWireLayout::FIELD_COUNT * 2; const M_IN: usize = BASE_INSTANCE_COLS + EXTRA_INSTANCE_COLS; diff --git a/interleaving/starstream-interleaving-proof/src/ref_arena_gadget.rs b/interleaving/starstream-interleaving-proof/src/ref_arena_gadget.rs index 3b731842..6fb2472f 100644 --- a/interleaving/starstream-interleaving-proof/src/ref_arena_gadget.rs +++ b/interleaving/starstream-interleaving-proof/src/ref_arena_gadget.rs @@ -1,5 +1,6 @@ -use crate::circuit::{ExecutionSwitches, MemoryTag}; +use crate::circuit::MemoryTag; use crate::opcode_dsl::{OpcodeDsl, OpcodeSynthDsl, OpcodeTraceDsl}; +use crate::switchboard::{RefArenaSwitchboard, RefArenaSwitchboardWires}; use crate::{ F, LedgerOperation, abi::{ArgName, OPCODE_ARG_COUNT}, @@ -15,12 +16,7 @@ use ark_r1cs_std::{ prelude::Boolean, }; use ark_relations::gr1cs::{ConstraintSystemRef, SynthesisError}; - -struct RefArenaSwitches { - get: B, - ref_push: B, - ref_write: B, -} +use std::ops::Not; fn ref_sizes_access_ops( dsl: &mut D, @@ -36,8 +32,9 @@ fn ref_sizes_access_ops( fn ref_arena_access_ops( dsl: &mut D, - switches: &RefArenaSwitches, + read_cond: &D::Bool, write_cond: &D::Bool, + write_is_push: &D::Bool, push_vals: &[D::Val; REF_PUSH_BATCH_SIZE], write_vals: &[D::Val; REF_WRITE_BATCH_SIZE], ref_building_ptr: &D::Val, @@ -52,21 +49,21 @@ fn ref_arena_access_ops( for i in 0..REF_GET_BATCH_SIZE { let off = dsl.const_u64(i as u64)?; let addr = dsl.add(&get_base_addr, &off)?; - let read = dsl.read(&switches.get, MemoryTag::RefArena, &addr)?; + let read = dsl.read(read_cond, MemoryTag::RefArena, &addr)?; ref_arena_read_vec.push(read); } let scale_write = dsl.const_u64(REF_WRITE_BATCH_SIZE as u64)?; let offset_scaled_write = dsl.mul(offset, &scale_write)?; let write_base_write = dsl.add(val, &offset_scaled_write)?; - let write_base_sel = dsl.select(&switches.ref_push, ref_building_ptr, &write_base_write)?; + let write_base_sel = dsl.select(write_is_push, ref_building_ptr, &write_base_write)?; let zero = dsl.zero(); let write_base = dsl.select(write_cond, &write_base_sel, &zero)?; for i in 0..REF_WRITE_BATCH_SIZE { let off = dsl.const_u64(i as u64)?; let addr = dsl.add(&write_base, &off)?; - let val_sel = dsl.select(&switches.ref_push, &push_vals[i], &write_vals[i])?; + let val_sel = dsl.select(write_is_push, &push_vals[i], &write_vals[i])?; let val = dsl.select(write_cond, &val_sel, &zero)?; dsl.write(write_cond, MemoryTag::RefArena, &addr, &val)?; } @@ -83,14 +80,16 @@ pub(crate) fn trace_ref_arena_ops>( ref_building_id: &mut F, ref_building_offset: &mut F, ref_building_remaining: &mut F, + switches: &RefArenaSwitchboard, instr: &LedgerOperation, ) { let mut ref_push_vals = std::array::from_fn(|_| F::ZERO); let mut ref_write_vals = std::array::from_fn(|_| F::ZERO); - let mut ref_push = false; - let mut ref_get = false; - let mut ref_write = false; - let mut new_ref = false; + let ref_sizes_write = switches.ref_sizes_write; + let ref_sizes_read = switches.ref_sizes_read; + let ref_arena_read = switches.ref_arena_read; + let ref_arena_write = switches.ref_arena_write; + let write_is_push = switches.ref_arena_write_is_push; let mut ref_get_ref = F::ZERO; let mut ref_get_offset = F::ZERO; @@ -101,25 +100,19 @@ pub(crate) fn trace_ref_arena_ops>( *ref_building_id = *ret; *ref_building_offset = F::ZERO; *ref_building_remaining = *size; - - new_ref = true; } LedgerOperation::RefPush { vals } => { ref_push_vals = *vals; - ref_push = true; } LedgerOperation::RefGet { reff, offset, ret: _, } => { - ref_get = true; - ref_get_ref = *reff; ref_get_offset = *offset; } LedgerOperation::RefWrite { reff, offset, vals } => { - ref_write = true; ref_write_ref = *reff; ref_write_offset = *offset; ref_write_vals = *vals; @@ -127,10 +120,9 @@ pub(crate) fn trace_ref_arena_ops>( _ => {} }; - let ref_sizes_read = ref_get || ref_write; - let ref_sizes_ref_id = if ref_get { + let ref_sizes_ref_id = if ref_arena_read { ref_get_ref - } else if ref_write { + } else if ref_arena_write && !write_is_push { ref_write_ref } else { F::ZERO @@ -139,7 +131,7 @@ pub(crate) fn trace_ref_arena_ops>( let mut dsl = OpcodeTraceDsl { mb }; let _ = ref_sizes_access_ops( &mut dsl, - &new_ref, + &ref_sizes_write, ref_building_id, ref_building_remaining, &ref_sizes_read, @@ -147,34 +139,27 @@ pub(crate) fn trace_ref_arena_ops>( ) .expect("trace ref sizes access"); - let op_val = if ref_get { + let op_val = if ref_arena_read { ref_get_ref - } else if ref_write { + } else if ref_arena_write && !write_is_push { ref_write_ref } else { F::ZERO }; - let op_offset = if ref_get { + let op_offset = if ref_arena_read { ref_get_offset - } else if ref_write { + } else if ref_arena_write && !write_is_push { ref_write_offset } else { F::ZERO }; - let switches = RefArenaSwitches { - get: ref_get, - ref_push, - ref_write, - }; - - let write_cond = ref_push || ref_write; - let push_ptr = *ref_building_id + *ref_building_offset; let _ = ref_arena_access_ops( &mut dsl, - &switches, - &write_cond, + &ref_arena_read, + &ref_arena_write, + &write_is_push, &ref_push_vals, &ref_write_vals, &push_ptr, @@ -185,7 +170,7 @@ pub(crate) fn trace_ref_arena_ops>( let remaining = ref_building_remaining.into_bigint().0[0] as usize; - if ref_push { + if ref_arena_write && write_is_push { *ref_building_offset += F::from(REF_PUSH_BATCH_SIZE as u64); *ref_building_remaining = F::from(remaining.saturating_sub(1) as u64); } @@ -194,15 +179,15 @@ pub(crate) fn trace_ref_arena_ops>( pub(crate) fn ref_arena_read_size>( cs: ConstraintSystemRef, rm: &mut M, - switches: &ExecutionSwitches>, + switches: &RefArenaSwitchboardWires, opcode_args: &[FpVar; OPCODE_ARG_COUNT], addr: &FpVar, ) -> Result, SynthesisError> { - let write_cond = switches.new_ref.clone(); + let write_cond = switches.ref_sizes_write.clone(); let write_addr = opcode_args[ArgName::Ret.idx()].clone(); let write_val = opcode_args[ArgName::Size.idx()].clone(); - let read_cond = &switches.get | &switches.ref_write; + let read_cond = switches.ref_sizes_read.clone(); let read_addr = read_cond.select(addr, &FpVar::zero())?; let mut dsl = OpcodeSynthDsl { cs, rm }; @@ -219,7 +204,7 @@ pub(crate) fn ref_arena_read_size>( pub(crate) fn ref_arena_access_wires>( cs: ConstraintSystemRef, rm: &mut M, - switches: &ExecutionSwitches>, + switches: &RefArenaSwitchboardWires, opcode_args: &[FpVar; OPCODE_ARG_COUNT], ref_building_ptr: &FpVar, ref_building_remaining: &FpVar, @@ -242,38 +227,40 @@ pub(crate) fn ref_arena_access_wires>( opcode_args[ArgName::PackedRef5.idx()].clone(), ]; - let size_sel_get = switches.get.select(ref_size_read, &FpVar::zero())?; - let offset_sel_get = switches.get.select(offset, &FpVar::zero())?; - let one_if_on_get = switches.get.select(&FpVar::one(), &FpVar::zero())?; + let size_sel_get = switches + .ref_arena_read + .select(ref_size_read, &FpVar::zero())?; + let offset_sel_get = switches.ref_arena_read.select(offset, &FpVar::zero())?; + let one_if_on_get = switches + .ref_arena_read + .select(&FpVar::one(), &FpVar::zero())?; let offset_plus_one_get = &offset_sel_get + one_if_on_get; let diff_get = &size_sel_get - &offset_plus_one_get; - range_check_u16(cs.clone(), &switches.get, &size_sel_get)?; - range_check_u16(cs.clone(), &switches.get, &offset_sel_get)?; - range_check_u16(cs.clone(), &switches.get, &diff_get)?; + range_check_u16(cs.clone(), &switches.ref_arena_read, &size_sel_get)?; + range_check_u16(cs.clone(), &switches.ref_arena_read, &offset_sel_get)?; + range_check_u16(cs.clone(), &switches.ref_arena_read, &diff_get)?; - let size_sel_write = switches.ref_write.select(ref_size_read, &FpVar::zero())?; - let offset_sel_write = switches.ref_write.select(offset, &FpVar::zero())?; - let one_if_on_write = switches.ref_write.select(&FpVar::one(), &FpVar::zero())?; + let write_check_cond = + &switches.ref_arena_write & switches.ref_arena_write_is_push.clone().not(); + + let size_sel_write = write_check_cond.select(ref_size_read, &FpVar::zero())?; + let offset_sel_write = write_check_cond.select(offset, &FpVar::zero())?; + let one_if_on_write = write_check_cond.select(&FpVar::one(), &FpVar::zero())?; let offset_plus_one_write = &offset_sel_write + one_if_on_write; let diff_write = &size_sel_write - &offset_plus_one_write; - range_check_u16(cs.clone(), &switches.ref_write, &size_sel_write)?; - range_check_u16(cs.clone(), &switches.ref_write, &offset_sel_write)?; - range_check_u16(cs.clone(), &switches.ref_write, &diff_write)?; - - let switches = RefArenaSwitches { - get: switches.get.clone(), - ref_push: switches.ref_push.clone(), - ref_write: switches.ref_write.clone(), - }; - let write_cond = &switches.ref_push | &switches.ref_write; + range_check_u16(cs.clone(), &write_check_cond, &size_sel_write)?; + range_check_u16(cs.clone(), &write_check_cond, &offset_sel_write)?; + range_check_u16(cs.clone(), &write_check_cond, &diff_write)?; let mut dsl = OpcodeSynthDsl { cs: cs.clone(), rm }; + ref_arena_access_ops( &mut dsl, - &switches, - &write_cond, + &switches.ref_arena_read, + &switches.ref_arena_write, + &switches.ref_arena_write_is_push, &ref_push_vals, &ref_write_vals, ref_building_ptr, diff --git a/interleaving/starstream-interleaving-proof/src/switchboard.rs b/interleaving/starstream-interleaving-proof/src/switchboard.rs index 21f94c5d..e5d7fa13 100644 --- a/interleaving/starstream-interleaving-proof/src/switchboard.rs +++ b/interleaving/starstream-interleaving-proof/src/switchboard.rs @@ -54,6 +54,15 @@ pub struct HandlerSwitchboard { pub write_head: bool, } +#[derive(Clone, Debug, Default)] +pub struct RefArenaSwitchboard { + pub ref_sizes_write: bool, + pub ref_sizes_read: bool, + pub ref_arena_read: bool, + pub ref_arena_write: bool, + pub ref_arena_write_is_push: bool, +} + #[derive(Clone)] pub struct HandlerSwitchboardWires { pub read_interface: Boolean, @@ -63,6 +72,15 @@ pub struct HandlerSwitchboardWires { pub write_head: Boolean, } +#[derive(Clone)] +pub struct RefArenaSwitchboardWires { + pub ref_sizes_write: Boolean, + pub ref_sizes_read: Boolean, + pub ref_arena_read: Boolean, + pub ref_arena_write: Boolean, + pub ref_arena_write_is_push: Boolean, +} + impl MemSwitchboardWires { pub fn allocate( cs: ConstraintSystemRef, @@ -116,3 +134,20 @@ impl HandlerSwitchboardWires { }) } } + +impl RefArenaSwitchboardWires { + pub fn allocate( + cs: ConstraintSystemRef, + switches: &RefArenaSwitchboard, + ) -> Result { + Ok(Self { + ref_sizes_write: Boolean::new_witness(cs.clone(), || Ok(switches.ref_sizes_write))?, + ref_sizes_read: Boolean::new_witness(cs.clone(), || Ok(switches.ref_sizes_read))?, + ref_arena_read: Boolean::new_witness(cs.clone(), || Ok(switches.ref_arena_read))?, + ref_arena_write: Boolean::new_witness(cs.clone(), || Ok(switches.ref_arena_write))?, + ref_arena_write_is_push: Boolean::new_witness(cs, || { + Ok(switches.ref_arena_write_is_push) + })?, + }) + } +} From 056e6805c57aa5c9ddd9e2e1fad7cd1b189fe2fc Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Thu, 29 Jan 2026 15:43:13 -0300 Subject: [PATCH 117/152] extract InterfaceResolver to handler_stack_gadget.rs Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .../src/circuit.rs | 60 +----------------- .../src/handler_stack_gadget.rs | 61 ++++++++++++++++++- 2 files changed, 63 insertions(+), 58 deletions(-) diff --git a/interleaving/starstream-interleaving-proof/src/circuit.rs b/interleaving/starstream-interleaving-proof/src/circuit.rs index 85cced27..c2852f5c 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit.rs @@ -1,5 +1,7 @@ use crate::abi::{self, ArgName, OPCODE_ARG_COUNT}; -use crate::handler_stack_gadget::{handler_stack_access_wires, trace_handler_stack_ops}; +use crate::handler_stack_gadget::{ + HandlerState, InterfaceResolver, handler_stack_access_wires, trace_handler_stack_ops, +}; use crate::ledger_operation::{REF_GET_BATCH_SIZE, REF_PUSH_BATCH_SIZE}; use crate::memory::{self, Address, IVCMemory, MemType}; pub use crate::memory_tags::MemoryTag; @@ -25,66 +27,10 @@ use ark_relations::{ ns, }; use starstream_interleaving_spec::{EffectDiscriminant, InterleavingInstance}; -use std::collections::{BTreeMap, BTreeSet}; use std::marker::PhantomData; use std::ops::Not; use tracing::debug_span; -#[derive(Debug, Clone)] -struct InterfaceResolver { - mapping: BTreeMap, -} - -impl InterfaceResolver { - fn new(ops: &[LedgerOperation]) -> Self { - let mut unique_interfaces = BTreeSet::new(); - for op in ops.iter() { - match op { - LedgerOperation::InstallHandler { interface_id } => { - unique_interfaces.insert(*interface_id); - } - LedgerOperation::UninstallHandler { interface_id } => { - unique_interfaces.insert(*interface_id); - } - LedgerOperation::GetHandlerFor { interface_id, .. } => { - unique_interfaces.insert(*interface_id); - } - _ => (), - } - } - - let mapping = unique_interfaces - .iter() - .enumerate() - .map(|(index, interface_id)| (*interface_id, index)) - .collect(); - - Self { mapping } - } - - fn get_index(&self, interface_id: F) -> usize { - *self.mapping.get(&interface_id).unwrap_or(&0) - } - - fn get_interface_index_field(&self, interface_id: F) -> F { - F::from(self.get_index(interface_id) as u64) - } - - fn interfaces(&self) -> Vec { - let mut interfaces = vec![F::ZERO; self.mapping.len()]; - for (interface_id, index) in &self.mapping { - interfaces[*index] = *interface_id; - } - interfaces - } -} - -#[derive(Clone)] -struct HandlerState { - handler_stack_node_process: FpVar, - interface_rom_read: FpVar, -} - struct OpcodeConfig { mem_switches_curr: MemSwitchboard, mem_switches_target: MemSwitchboard, diff --git a/interleaving/starstream-interleaving-proof/src/handler_stack_gadget.rs b/interleaving/starstream-interleaving-proof/src/handler_stack_gadget.rs index 08e5e58f..51cdedb1 100644 --- a/interleaving/starstream-interleaving-proof/src/handler_stack_gadget.rs +++ b/interleaving/starstream-interleaving-proof/src/handler_stack_gadget.rs @@ -1,7 +1,11 @@ -use crate::F; +use std::collections::{BTreeMap, BTreeSet}; + use crate::opcode_dsl::{OpcodeDsl, OpcodeSynthDsl, OpcodeTraceDsl}; use crate::switchboard::{HandlerSwitchboard, HandlerSwitchboardWires}; +use crate::{F, LedgerOperation}; use crate::{circuit::MemoryTag, memory::IVCMemory, memory::IVCMemoryAllocated}; +use ark_ff::AdditiveGroup as _; +use ark_r1cs_std::fields::fp::FpVar; use ark_r1cs_std::prelude::Boolean; use ark_relations::gr1cs::{ConstraintSystemRef, SynthesisError}; @@ -143,3 +147,58 @@ pub fn handler_stack_access_wires>( id_curr, ) } + +#[derive(Debug, Clone)] +pub(crate) struct InterfaceResolver { + mapping: BTreeMap, +} + +impl InterfaceResolver { + pub(crate) fn new(ops: &[LedgerOperation]) -> Self { + let mut unique_interfaces = BTreeSet::new(); + for op in ops.iter() { + match op { + LedgerOperation::InstallHandler { interface_id } => { + unique_interfaces.insert(*interface_id); + } + LedgerOperation::UninstallHandler { interface_id } => { + unique_interfaces.insert(*interface_id); + } + LedgerOperation::GetHandlerFor { interface_id, .. } => { + unique_interfaces.insert(*interface_id); + } + _ => (), + } + } + + let mapping = unique_interfaces + .iter() + .enumerate() + .map(|(index, interface_id)| (*interface_id, index)) + .collect(); + + Self { mapping } + } + + pub(crate) fn get_index(&self, interface_id: F) -> usize { + *self.mapping.get(&interface_id).unwrap_or(&0) + } + + pub(crate) fn get_interface_index_field(&self, interface_id: F) -> F { + F::from(self.get_index(interface_id) as u64) + } + + pub(crate) fn interfaces(&self) -> Vec { + let mut interfaces = vec![F::ZERO; self.mapping.len()]; + for (interface_id, index) in &self.mapping { + interfaces[*index] = *interface_id; + } + interfaces + } +} + +#[derive(Clone)] +pub(crate) struct HandlerState { + pub(crate) handler_stack_node_process: FpVar, + pub(crate) interface_rom_read: FpVar, +} From 5a4d32b81aec6fdd0c90a2fbe2f381445d9c2301 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Thu, 29 Jan 2026 15:47:33 -0300 Subject: [PATCH 118/152] extract ExecutionSwitches to execution_switches.rs Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .../src/circuit.rs | 299 +---------------- .../src/execution_switches.rs | 305 ++++++++++++++++++ .../starstream-interleaving-proof/src/lib.rs | 1 + 3 files changed, 309 insertions(+), 296 deletions(-) create mode 100644 interleaving/starstream-interleaving-proof/src/execution_switches.rs diff --git a/interleaving/starstream-interleaving-proof/src/circuit.rs b/interleaving/starstream-interleaving-proof/src/circuit.rs index c2852f5c..3857b82e 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit.rs @@ -1,4 +1,5 @@ use crate::abi::{self, ArgName, OPCODE_ARG_COUNT}; +use crate::execution_switches::ExecutionSwitches; use crate::handler_stack_gadget::{ HandlerState, InterfaceResolver, handler_stack_access_wires, trace_handler_stack_ops, }; @@ -23,10 +24,10 @@ use ark_r1cs_std::{ GR1CSVar as _, alloc::AllocVar as _, eq::EqGadget, fields::fp::FpVar, prelude::Boolean, }; use ark_relations::{ - gr1cs::{ConstraintSystemRef, LinearCombination, SynthesisError, Variable}, + gr1cs::{ConstraintSystemRef, SynthesisError}, ns, }; -use starstream_interleaving_spec::{EffectDiscriminant, InterleavingInstance}; +use starstream_interleaving_spec::InterleavingInstance; use std::marker::PhantomData; use std::ops::Not; use tracing::debug_span; @@ -42,300 +43,6 @@ struct OpcodeConfig { opcode_discriminant: F, } -#[derive(Clone)] -pub(crate) struct ExecutionSwitches { - pub(crate) resume: T, - pub(crate) yield_op: T, - pub(crate) burn: T, - pub(crate) program_hash: T, - pub(crate) new_utxo: T, - pub(crate) new_coord: T, - pub(crate) activation: T, - pub(crate) init: T, - pub(crate) bind: T, - pub(crate) unbind: T, - pub(crate) new_ref: T, - pub(crate) ref_push: T, - pub(crate) get: T, - pub(crate) ref_write: T, - pub(crate) install_handler: T, - pub(crate) uninstall_handler: T, - pub(crate) get_handler_for: T, - pub(crate) nop: T, -} -impl ExecutionSwitches { - fn nop() -> Self { - Self { - nop: true, - ..Self::default() - } - } - - fn resume() -> Self { - Self { - resume: true, - ..Self::default() - } - } - - fn yield_op() -> Self { - Self { - yield_op: true, - ..Self::default() - } - } - - fn burn() -> Self { - Self { - burn: true, - ..Self::default() - } - } - - fn program_hash() -> Self { - Self { - program_hash: true, - ..Self::default() - } - } - - fn new_utxo() -> Self { - Self { - new_utxo: true, - ..Self::default() - } - } - - fn new_coord() -> Self { - Self { - new_coord: true, - ..Self::default() - } - } - - fn activation() -> Self { - Self { - activation: true, - ..Self::default() - } - } - - fn init() -> Self { - Self { - init: true, - ..Self::default() - } - } - - fn bind() -> Self { - Self { - bind: true, - ..Self::default() - } - } - - fn unbind() -> Self { - Self { - unbind: true, - ..Self::default() - } - } - - fn new_ref() -> Self { - Self { - new_ref: true, - ..Self::default() - } - } - - fn ref_push() -> Self { - Self { - ref_push: true, - ..Self::default() - } - } - - fn get() -> Self { - Self { - get: true, - ..Self::default() - } - } - - fn ref_write() -> Self { - Self { - ref_write: true, - ..Self::default() - } - } - - fn install_handler() -> Self { - Self { - install_handler: true, - ..Self::default() - } - } - - fn uninstall_handler() -> Self { - Self { - uninstall_handler: true, - ..Self::default() - } - } - - fn get_handler_for() -> Self { - Self { - get_handler_for: true, - ..Self::default() - } - } - - /// Allocates circuit variables for the switches and enforces exactly one is true - fn allocate_and_constrain( - &self, - cs: ConstraintSystemRef, - opcode_discriminant: &FpVar, - ) -> Result>, SynthesisError> { - let switches = [ - self.resume, - self.yield_op, - self.nop, - self.burn, - self.program_hash, - self.new_utxo, - self.new_coord, - self.activation, - self.init, - self.bind, - self.unbind, - self.new_ref, - self.ref_push, - self.get, - self.ref_write, - self.install_handler, - self.uninstall_handler, - self.get_handler_for, - ]; - - let allocated_switches: Vec<_> = switches - .iter() - .map(|val| Boolean::new_witness(cs.clone(), || Ok(*val)).unwrap()) - .collect(); - - // Enforce exactly one switch is true - cs.enforce_r1cs_constraint( - || { - allocated_switches - .iter() - .fold(LinearCombination::new(), |acc, switch| acc + switch.lc()) - .clone() - }, - || LinearCombination::new() + Variable::one(), - || LinearCombination::new() + Variable::one(), - ) - .unwrap(); - - let [ - resume, - yield_op, - nop, - burn, - program_hash, - new_utxo, - new_coord, - activation, - init, - bind, - unbind, - new_ref, - ref_push, - get, - ref_write, - install_handler, - uninstall_handler, - get_handler_for, - ] = allocated_switches.as_slice() - else { - unreachable!() - }; - - let terms = [ - (resume, EffectDiscriminant::Resume as u64), - (yield_op, EffectDiscriminant::Yield as u64), - (burn, EffectDiscriminant::Burn as u64), - (program_hash, EffectDiscriminant::ProgramHash as u64), - (new_utxo, EffectDiscriminant::NewUtxo as u64), - (new_coord, EffectDiscriminant::NewCoord as u64), - (activation, EffectDiscriminant::Activation as u64), - (init, EffectDiscriminant::Init as u64), - (bind, EffectDiscriminant::Bind as u64), - (unbind, EffectDiscriminant::Unbind as u64), - (new_ref, EffectDiscriminant::NewRef as u64), - (ref_push, EffectDiscriminant::RefPush as u64), - (get, EffectDiscriminant::RefGet as u64), - (ref_write, EffectDiscriminant::RefWrite as u64), - (install_handler, EffectDiscriminant::InstallHandler as u64), - ( - uninstall_handler, - EffectDiscriminant::UninstallHandler as u64, - ), - (get_handler_for, EffectDiscriminant::GetHandlerFor as u64), - ]; - - let expected_opcode = terms.iter().fold(FpVar::zero(), |acc, (switch, disc)| { - acc + FpVar::from((*switch).clone()) * F::from(*disc) - }); - - expected_opcode.enforce_equal(opcode_discriminant)?; - - Ok(ExecutionSwitches { - resume: resume.clone(), - yield_op: yield_op.clone(), - nop: nop.clone(), - burn: burn.clone(), - program_hash: program_hash.clone(), - new_utxo: new_utxo.clone(), - new_coord: new_coord.clone(), - activation: activation.clone(), - init: init.clone(), - bind: bind.clone(), - unbind: unbind.clone(), - new_ref: new_ref.clone(), - ref_push: ref_push.clone(), - get: get.clone(), - ref_write: ref_write.clone(), - install_handler: install_handler.clone(), - uninstall_handler: uninstall_handler.clone(), - get_handler_for: get_handler_for.clone(), - }) - } -} - -impl Default for ExecutionSwitches { - fn default() -> Self { - Self { - resume: false, - yield_op: false, - burn: false, - program_hash: false, - new_utxo: false, - new_coord: false, - activation: false, - init: false, - bind: false, - unbind: false, - new_ref: false, - ref_push: false, - get: false, - ref_write: false, - install_handler: false, - uninstall_handler: false, - get_handler_for: false, - nop: false, - } - } -} - pub struct StepCircuitBuilder { pub instance: InterleavingInstance, pub last_yield: Vec, diff --git a/interleaving/starstream-interleaving-proof/src/execution_switches.rs b/interleaving/starstream-interleaving-proof/src/execution_switches.rs new file mode 100644 index 00000000..e8c5dbbf --- /dev/null +++ b/interleaving/starstream-interleaving-proof/src/execution_switches.rs @@ -0,0 +1,305 @@ +use ark_r1cs_std::{ + alloc::AllocVar as _, + eq::EqGadget as _, + fields::{FieldVar as _, fp::FpVar}, + prelude::Boolean, +}; +use ark_relations::gr1cs::{ConstraintSystemRef, LinearCombination, SynthesisError, Variable}; +use starstream_interleaving_spec::EffectDiscriminant; + +use crate::F; + +#[derive(Clone)] +pub(crate) struct ExecutionSwitches { + pub(crate) resume: T, + pub(crate) yield_op: T, + pub(crate) burn: T, + pub(crate) program_hash: T, + pub(crate) new_utxo: T, + pub(crate) new_coord: T, + pub(crate) activation: T, + pub(crate) init: T, + pub(crate) bind: T, + pub(crate) unbind: T, + pub(crate) new_ref: T, + pub(crate) ref_push: T, + pub(crate) get: T, + pub(crate) ref_write: T, + pub(crate) install_handler: T, + pub(crate) uninstall_handler: T, + pub(crate) get_handler_for: T, + pub(crate) nop: T, +} + +impl ExecutionSwitches { + /// Allocates circuit variables for the switches and enforces exactly one is true + pub(crate) fn allocate_and_constrain( + &self, + cs: ConstraintSystemRef, + opcode_discriminant: &FpVar, + ) -> Result>, SynthesisError> { + let switches = [ + self.resume, + self.yield_op, + self.nop, + self.burn, + self.program_hash, + self.new_utxo, + self.new_coord, + self.activation, + self.init, + self.bind, + self.unbind, + self.new_ref, + self.ref_push, + self.get, + self.ref_write, + self.install_handler, + self.uninstall_handler, + self.get_handler_for, + ]; + + let allocated_switches: Vec<_> = switches + .iter() + .map(|val| Boolean::new_witness(cs.clone(), || Ok(*val)).unwrap()) + .collect(); + + // Enforce exactly one switch is true + cs.enforce_r1cs_constraint( + || { + allocated_switches + .iter() + .fold(LinearCombination::new(), |acc, switch| acc + switch.lc()) + .clone() + }, + || LinearCombination::new() + Variable::one(), + || LinearCombination::new() + Variable::one(), + ) + .unwrap(); + + let [ + resume, + yield_op, + nop, + burn, + program_hash, + new_utxo, + new_coord, + activation, + init, + bind, + unbind, + new_ref, + ref_push, + get, + ref_write, + install_handler, + uninstall_handler, + get_handler_for, + ] = allocated_switches.as_slice() + else { + unreachable!() + }; + + let terms = [ + (resume, EffectDiscriminant::Resume as u64), + (yield_op, EffectDiscriminant::Yield as u64), + (burn, EffectDiscriminant::Burn as u64), + (program_hash, EffectDiscriminant::ProgramHash as u64), + (new_utxo, EffectDiscriminant::NewUtxo as u64), + (new_coord, EffectDiscriminant::NewCoord as u64), + (activation, EffectDiscriminant::Activation as u64), + (init, EffectDiscriminant::Init as u64), + (bind, EffectDiscriminant::Bind as u64), + (unbind, EffectDiscriminant::Unbind as u64), + (new_ref, EffectDiscriminant::NewRef as u64), + (ref_push, EffectDiscriminant::RefPush as u64), + (get, EffectDiscriminant::RefGet as u64), + (ref_write, EffectDiscriminant::RefWrite as u64), + (install_handler, EffectDiscriminant::InstallHandler as u64), + ( + uninstall_handler, + EffectDiscriminant::UninstallHandler as u64, + ), + (get_handler_for, EffectDiscriminant::GetHandlerFor as u64), + ]; + + let expected_opcode = terms.iter().fold(FpVar::zero(), |acc, (switch, disc)| { + acc + FpVar::from((*switch).clone()) * F::from(*disc) + }); + + expected_opcode.enforce_equal(opcode_discriminant)?; + + Ok(ExecutionSwitches { + resume: resume.clone(), + yield_op: yield_op.clone(), + nop: nop.clone(), + burn: burn.clone(), + program_hash: program_hash.clone(), + new_utxo: new_utxo.clone(), + new_coord: new_coord.clone(), + activation: activation.clone(), + init: init.clone(), + bind: bind.clone(), + unbind: unbind.clone(), + new_ref: new_ref.clone(), + ref_push: ref_push.clone(), + get: get.clone(), + ref_write: ref_write.clone(), + install_handler: install_handler.clone(), + uninstall_handler: uninstall_handler.clone(), + get_handler_for: get_handler_for.clone(), + }) + } + + pub(crate) fn nop() -> Self { + Self { + nop: true, + ..Self::default() + } + } + + pub(crate) fn resume() -> Self { + Self { + resume: true, + ..Self::default() + } + } + + pub(crate) fn yield_op() -> Self { + Self { + yield_op: true, + ..Self::default() + } + } + + pub(crate) fn burn() -> Self { + Self { + burn: true, + ..Self::default() + } + } + + pub(crate) fn program_hash() -> Self { + Self { + program_hash: true, + ..Self::default() + } + } + + pub(crate) fn new_utxo() -> Self { + Self { + new_utxo: true, + ..Self::default() + } + } + + pub(crate) fn new_coord() -> Self { + Self { + new_coord: true, + ..Self::default() + } + } + + pub(crate) fn activation() -> Self { + Self { + activation: true, + ..Self::default() + } + } + + pub(crate) fn init() -> Self { + Self { + init: true, + ..Self::default() + } + } + + pub(crate) fn bind() -> Self { + Self { + bind: true, + ..Self::default() + } + } + + pub(crate) fn unbind() -> Self { + Self { + unbind: true, + ..Self::default() + } + } + + pub(crate) fn new_ref() -> Self { + Self { + new_ref: true, + ..Self::default() + } + } + + pub(crate) fn ref_push() -> Self { + Self { + ref_push: true, + ..Self::default() + } + } + + pub(crate) fn get() -> Self { + Self { + get: true, + ..Self::default() + } + } + + pub(crate) fn ref_write() -> Self { + Self { + ref_write: true, + ..Self::default() + } + } + + pub(crate) fn install_handler() -> Self { + Self { + install_handler: true, + ..Self::default() + } + } + + pub(crate) fn uninstall_handler() -> Self { + Self { + uninstall_handler: true, + ..Self::default() + } + } + + pub(crate) fn get_handler_for() -> Self { + Self { + get_handler_for: true, + ..Self::default() + } + } +} + +impl Default for ExecutionSwitches { + fn default() -> Self { + Self { + resume: false, + yield_op: false, + burn: false, + program_hash: false, + new_utxo: false, + new_coord: false, + activation: false, + init: false, + bind: false, + unbind: false, + new_ref: false, + ref_push: false, + get: false, + ref_write: false, + install_handler: false, + uninstall_handler: false, + get_handler_for: false, + nop: false, + } + } +} diff --git a/interleaving/starstream-interleaving-proof/src/lib.rs b/interleaving/starstream-interleaving-proof/src/lib.rs index 19d75ff7..4605baa9 100644 --- a/interleaving/starstream-interleaving-proof/src/lib.rs +++ b/interleaving/starstream-interleaving-proof/src/lib.rs @@ -2,6 +2,7 @@ mod abi; mod circuit; #[cfg(test)] mod circuit_test; +mod execution_switches; mod handler_stack_gadget; mod ledger_operation; mod logging; From 6fa713a7c5ebbd1bbc4c44b5bc8530b360c12f60 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Thu, 29 Jan 2026 15:57:43 -0300 Subject: [PATCH 119/152] extract ProgramHash to program_hash_gadget.rs Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .../src/circuit.rs | 40 ++++++------------- .../starstream-interleaving-proof/src/lib.rs | 1 + .../src/program_hash_gadget.rs | 36 +++++++++++++++++ 3 files changed, 49 insertions(+), 28 deletions(-) create mode 100644 interleaving/starstream-interleaving-proof/src/program_hash_gadget.rs diff --git a/interleaving/starstream-interleaving-proof/src/circuit.rs b/interleaving/starstream-interleaving-proof/src/circuit.rs index 3857b82e..282656e0 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit.rs @@ -6,6 +6,7 @@ use crate::handler_stack_gadget::{ use crate::ledger_operation::{REF_GET_BATCH_SIZE, REF_PUSH_BATCH_SIZE}; use crate::memory::{self, Address, IVCMemory, MemType}; pub use crate::memory_tags::MemoryTag; +use crate::program_hash_gadget::{program_hash_access_wires, trace_program_hash_ops}; use crate::program_state::{ ProgramState, ProgramStateWires, program_state_read_wires, program_state_write_wires, trace_program_state_reads, trace_program_state_writes, @@ -296,24 +297,12 @@ impl Wires { )?[0] .clone(); - let mut rom_program_hash_vec = Vec::with_capacity(4); - let process_table_stride = FpVar::new_constant(cs.clone(), F::from(4))?; - for i in 0..4 { - let offset = FpVar::new_constant(cs.clone(), F::from(i as u64))?; - let addr = &target_address * &process_table_stride + offset; - let value = rm.conditional_read( - &rom_switches.read_program_hash_target, - &Address { - addr, - tag: MemoryTag::ProcessTable.allocate(cs.clone())?, - }, - )?[0] - .clone(); - rom_program_hash_vec.push(value); - } - let rom_program_hash: [FpVar; 4] = rom_program_hash_vec - .try_into() - .expect("rom program hash length"); + let rom_program_hash = program_hash_access_wires( + cs.clone(), + rm, + &rom_switches.read_program_hash_target, + &target_address, + )?; let handler_switches = HandlerSwitchboardWires::allocate(cs.clone(), &vals.handler_switches)?; @@ -1048,16 +1037,11 @@ impl> StepCircuitBuilder { }, ); let target_pid_value = target_pid.unwrap_or(0); - for lane in 0..4 { - let addr = (target_pid_value * 4) + lane; - mb.conditional_read( - rom_switches.read_program_hash_target, - Address { - addr: addr as u64, - tag: MemoryTag::ProcessTable.into(), - }, - ); - } + let _ = trace_program_hash_ops( + &mut mb, + rom_switches.read_program_hash_target, + &F::from(target_pid_value), + ); let (curr_write, target_write) = instr.program_state_transitions(curr_read, target_read); diff --git a/interleaving/starstream-interleaving-proof/src/lib.rs b/interleaving/starstream-interleaving-proof/src/lib.rs index 4605baa9..4a7cc29c 100644 --- a/interleaving/starstream-interleaving-proof/src/lib.rs +++ b/interleaving/starstream-interleaving-proof/src/lib.rs @@ -11,6 +11,7 @@ mod memory_tags; mod neo; mod opcode_dsl; mod optional; +mod program_hash_gadget; mod program_state; mod ref_arena_gadget; mod switchboard; diff --git a/interleaving/starstream-interleaving-proof/src/program_hash_gadget.rs b/interleaving/starstream-interleaving-proof/src/program_hash_gadget.rs new file mode 100644 index 00000000..075d80c3 --- /dev/null +++ b/interleaving/starstream-interleaving-proof/src/program_hash_gadget.rs @@ -0,0 +1,36 @@ +use crate::F; +use crate::opcode_dsl::{OpcodeDsl, OpcodeSynthDsl, OpcodeTraceDsl}; +use crate::{circuit::MemoryTag, memory::IVCMemory, memory::IVCMemoryAllocated}; +use ark_r1cs_std::fields::fp::FpVar; +use ark_relations::gr1cs::{ConstraintSystemRef, SynthesisError}; + +fn program_hash_ops( + dsl: &mut D, + read_cond: &D::Bool, + target: &D::Val, +) -> Result<[D::Val; 4], D::Error> { + let mut out = Vec::with_capacity(4); + let stride = dsl.const_u64(4)?; + for i in 0..4 { + let offset = dsl.const_u64(i as u64)?; + let addr = dsl.add(&dsl.mul(target, &stride)?, &offset)?; + let value = dsl.read(read_cond, MemoryTag::ProcessTable, &addr)?; + out.push(value); + } + Ok(out.try_into().expect("program hash length")) +} + +pub fn trace_program_hash_ops>(mb: &mut M, read_cond: bool, target: &F) -> [F; 4] { + let mut dsl = OpcodeTraceDsl { mb }; + program_hash_ops(&mut dsl, &read_cond, target).expect("trace program hash") +} + +pub fn program_hash_access_wires>( + cs: ConstraintSystemRef, + rm: &mut M, + read_cond: &ark_r1cs_std::prelude::Boolean, + target: &FpVar, +) -> Result<[FpVar; 4], SynthesisError> { + let mut dsl = OpcodeSynthDsl { cs, rm }; + program_hash_ops(&mut dsl, read_cond, target) +} From 581e8abdf5b7f0b4f78089a4d252d267c4e03077 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Thu, 29 Jan 2026 17:11:47 -0300 Subject: [PATCH 120/152] more refactors / code deduplication with the new dsl Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .../src/circuit.rs | 65 ++- .../src/coroutine_args_gadget.rs | 40 ++ .../starstream-interleaving-proof/src/lib.rs | 1 + .../src/program_state.rs | 391 +++++++++--------- .../src/switchboard.rs | 36 +- 5 files changed, 269 insertions(+), 264 deletions(-) create mode 100644 interleaving/starstream-interleaving-proof/src/coroutine_args_gadget.rs diff --git a/interleaving/starstream-interleaving-proof/src/circuit.rs b/interleaving/starstream-interleaving-proof/src/circuit.rs index 282656e0..9578692a 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit.rs @@ -1,4 +1,5 @@ use crate::abi::{self, ArgName, OPCODE_ARG_COUNT}; +use crate::coroutine_args_gadget::{check_activation, check_init}; use crate::execution_switches::ExecutionSwitches; use crate::handler_stack_gadget::{ HandlerState, InterfaceResolver, handler_stack_access_wires, trace_handler_stack_ops, @@ -13,7 +14,7 @@ use crate::program_state::{ }; use crate::ref_arena_gadget::{ref_arena_access_wires, ref_arena_read_size, trace_ref_arena_ops}; use crate::switchboard::{ - HandlerSwitchboard, HandlerSwitchboardWires, MemSwitchboard, MemSwitchboardWires, + HandlerSwitchboard, HandlerSwitchboardWires, MemSwitchboardBool, MemSwitchboardWires, RefArenaSwitchboard, RefArenaSwitchboardWires, RomSwitchboard, RomSwitchboardWires, }; use crate::{ @@ -34,8 +35,8 @@ use std::ops::Not; use tracing::debug_span; struct OpcodeConfig { - mem_switches_curr: MemSwitchboard, - mem_switches_target: MemSwitchboard, + mem_switches_curr: MemSwitchboardBool, + mem_switches_target: MemSwitchboardBool, rom_switches: RomSwitchboard, handler_switches: HandlerSwitchboard, ref_arena_switches: RefArenaSwitchboard, @@ -49,7 +50,7 @@ pub struct StepCircuitBuilder { pub last_yield: Vec, pub ops: Vec>, write_ops: Vec<(ProgramState, ProgramState)>, - mem_switches: Vec<(MemSwitchboard, MemSwitchboard)>, + mem_switches: Vec<(MemSwitchboardBool, MemSwitchboardBool)>, rom_switches: Vec, handler_switches: Vec, ref_arena_switches: Vec, @@ -105,8 +106,8 @@ pub struct PreWires { opcode_args: [F; OPCODE_ARG_COUNT], opcode_discriminant: F, - curr_mem_switches: MemSwitchboard, - target_mem_switches: MemSwitchboard, + curr_mem_switches: MemSwitchboardBool, + target_mem_switches: MemSwitchboardBool, rom_switches: RomSwitchboard, handler_switches: HandlerSwitchboard, ref_arena_switches: RefArenaSwitchboard, @@ -256,7 +257,7 @@ impl Wires { rm, &cs, curr_address.clone(), - curr_write_wires.clone(), + &curr_write_wires, &curr_mem_switches, )?; @@ -264,7 +265,7 @@ impl Wires { rm, &cs, target_address.clone(), - target_write_wires.clone(), + &target_write_wires, &target_mem_switches, )?; @@ -442,8 +443,8 @@ impl InterRoundWires { impl LedgerOperation { fn get_config(&self) -> OpcodeConfig { let mut config = OpcodeConfig { - mem_switches_curr: MemSwitchboard::default(), - mem_switches_target: MemSwitchboard::default(), + mem_switches_curr: MemSwitchboardBool::default(), + mem_switches_target: MemSwitchboardBool::default(), rom_switches: RomSwitchboard::default(), handler_switches: HandlerSwitchboard::default(), ref_arena_switches: RefArenaSwitchboard::default(), @@ -1491,19 +1492,13 @@ impl> StepCircuitBuilder { fn visit_activation(&self, wires: Wires) -> Result { let switch = &wires.switches.activation; - // When a process calls `input`, it's reading the argument that was - // passed to it when it was resumed. - - // 1. Check that the value from the opcode matches the value in the `arg` register. - wires - .curr_read_wires - .activation - .conditional_enforce_equal(&wires.arg(ArgName::Val), switch)?; - - // 2. Check that the caller from the opcode matches the `id_prev` IVC variable. - wires - .id_prev_value()? - .conditional_enforce_equal(&wires.arg(ArgName::Caller), switch)?; + check_activation( + switch, + &wires.curr_read_wires.activation, + &wires.arg(ArgName::Val), + &wires.id_prev_value()?, + &wires.arg(ArgName::Caller), + )?; Ok(wires) } @@ -1512,19 +1507,13 @@ impl> StepCircuitBuilder { fn visit_init(&self, wires: Wires) -> Result { let switch = &wires.switches.init; - // When a process calls `input`, it's reading the argument that was - // passed to it when it was resumed. - - // 1. Check that the value from the opcode matches the value in the `arg` register. - wires - .curr_read_wires - .init - .conditional_enforce_equal(&wires.arg(ArgName::Val), switch)?; - - // 2. Check that the caller from the opcode matches the `id_prev` IVC variable. - wires - .id_prev_value()? - .conditional_enforce_equal(&wires.arg(ArgName::Caller), switch)?; + check_init( + switch, + &wires.curr_read_wires.init, + &wires.arg(ArgName::Val), + &wires.id_prev_value()?, + &wires.arg(ArgName::Caller), + )?; Ok(wires) } @@ -1894,8 +1883,8 @@ fn fpvar_witness_index( impl PreWires { pub fn new( irw: InterRoundWires, - curr_mem_switches: MemSwitchboard, - target_mem_switches: MemSwitchboard, + curr_mem_switches: MemSwitchboardBool, + target_mem_switches: MemSwitchboardBool, rom_switches: RomSwitchboard, handler_switches: HandlerSwitchboard, ref_arena_switches: RefArenaSwitchboard, diff --git a/interleaving/starstream-interleaving-proof/src/coroutine_args_gadget.rs b/interleaving/starstream-interleaving-proof/src/coroutine_args_gadget.rs new file mode 100644 index 00000000..dc2d0a1a --- /dev/null +++ b/interleaving/starstream-interleaving-proof/src/coroutine_args_gadget.rs @@ -0,0 +1,40 @@ +use crate::F; +use crate::circuit::MemoryTag; +use crate::opcode_dsl::OpcodeDsl; +use ark_r1cs_std::{eq::EqGadget as _, fields::fp::FpVar, prelude::Boolean}; +use ark_relations::gr1cs::SynthesisError; + +pub fn coroutine_args_ops( + dsl: &mut D, + activation_cond: &D::Bool, + init_cond: &D::Bool, + addr: &D::Val, +) -> Result<(D::Val, D::Val), D::Error> { + let activation = dsl.read(activation_cond, MemoryTag::Activation, addr)?; + let init = dsl.read(init_cond, MemoryTag::Init, addr)?; + Ok((activation, init)) +} + +pub fn check_activation( + switch: &Boolean, + activation: &FpVar, + arg_val: &FpVar, + expected_caller: &FpVar, + arg_caller: &FpVar, +) -> Result<(), SynthesisError> { + activation.conditional_enforce_equal(arg_val, switch)?; + expected_caller.conditional_enforce_equal(arg_caller, switch)?; + Ok(()) +} + +pub fn check_init( + switch: &Boolean, + init: &FpVar, + arg_val: &FpVar, + expected_caller: &FpVar, + arg_caller: &FpVar, +) -> Result<(), SynthesisError> { + init.conditional_enforce_equal(arg_val, switch)?; + expected_caller.conditional_enforce_equal(arg_caller, switch)?; + Ok(()) +} diff --git a/interleaving/starstream-interleaving-proof/src/lib.rs b/interleaving/starstream-interleaving-proof/src/lib.rs index 4a7cc29c..28e52cde 100644 --- a/interleaving/starstream-interleaving-proof/src/lib.rs +++ b/interleaving/starstream-interleaving-proof/src/lib.rs @@ -2,6 +2,7 @@ mod abi; mod circuit; #[cfg(test)] mod circuit_test; +mod coroutine_args_gadget; mod execution_switches; mod handler_stack_gadget; mod ledger_operation; diff --git a/interleaving/starstream-interleaving-proof/src/program_state.rs b/interleaving/starstream-interleaving-proof/src/program_state.rs index ee6d2b01..a154ce9d 100644 --- a/interleaving/starstream-interleaving-proof/src/program_state.rs +++ b/interleaving/starstream-interleaving-proof/src/program_state.rs @@ -1,8 +1,10 @@ use crate::F; -use crate::memory::{Address, IVCMemory, IVCMemoryAllocated}; -use crate::memory_tags::{MemoryTag, ProgramStateTag}; +use crate::coroutine_args_gadget::coroutine_args_ops; +use crate::memory::{IVCMemory, IVCMemoryAllocated}; +use crate::memory_tags::MemoryTag; +use crate::opcode_dsl::{OpcodeSynthDsl, OpcodeTraceDsl}; use crate::optional::{OptionalF, OptionalFpVar}; -use crate::switchboard::{MemSwitchboard, MemSwitchboardWires}; +use crate::switchboard::{MemSwitchboardBool, MemSwitchboardWires}; use ark_ff::{AdditiveGroup, Field}; use ark_r1cs_std::alloc::AllocVar; use ark_r1cs_std::fields::{FieldVar, fp::FpVar}; @@ -36,6 +38,132 @@ pub struct ProgramStateWires { pub ownership: OptionalFpVar, // encoded optional process id } +struct RawProgramState { + expected_input: V, + expected_resumer: V, + activation: V, + init: V, + counters: V, + initialized: V, + finalized: V, + did_burn: V, + ownership: V, +} + +fn program_state_read_ops( + dsl: &mut D, + switches: &crate::switchboard::MemSwitchboard, + addr: &D::Val, +) -> Result, D::Error> { + let expected_input = dsl.read(&switches.expected_input, MemoryTag::ExpectedInput, addr)?; + let expected_resumer = + dsl.read(&switches.expected_resumer, MemoryTag::ExpectedResumer, addr)?; + let (activation, init) = coroutine_args_ops(dsl, &switches.activation, &switches.init, addr)?; + let counters = dsl.read(&switches.counters, MemoryTag::Counters, addr)?; + let initialized = dsl.read(&switches.initialized, MemoryTag::Initialized, addr)?; + let finalized = dsl.read(&switches.finalized, MemoryTag::Finalized, addr)?; + let did_burn = dsl.read(&switches.did_burn, MemoryTag::DidBurn, addr)?; + let ownership = dsl.read(&switches.ownership, MemoryTag::Ownership, addr)?; + + Ok(RawProgramState { + expected_input, + expected_resumer, + activation, + init, + counters, + initialized, + finalized, + did_burn, + ownership, + }) +} + +fn program_state_write_ops( + dsl: &mut D, + switches: &crate::switchboard::MemSwitchboard, + addr: &D::Val, + state: &RawProgramState, +) -> Result<(), D::Error> { + dsl.write( + &switches.expected_input, + MemoryTag::ExpectedInput, + addr, + &state.expected_input, + )?; + dsl.write( + &switches.expected_resumer, + MemoryTag::ExpectedResumer, + addr, + &state.expected_resumer, + )?; + dsl.write( + &switches.activation, + MemoryTag::Activation, + addr, + &state.activation, + )?; + dsl.write(&switches.init, MemoryTag::Init, addr, &state.init)?; + dsl.write( + &switches.counters, + MemoryTag::Counters, + addr, + &state.counters, + )?; + dsl.write( + &switches.initialized, + MemoryTag::Initialized, + addr, + &state.initialized, + )?; + dsl.write( + &switches.finalized, + MemoryTag::Finalized, + addr, + &state.finalized, + )?; + dsl.write( + &switches.did_burn, + MemoryTag::DidBurn, + addr, + &state.did_burn, + )?; + dsl.write( + &switches.ownership, + MemoryTag::Ownership, + addr, + &state.ownership, + )?; + Ok(()) +} + +fn raw_from_state(state: &ProgramState) -> RawProgramState { + RawProgramState { + expected_input: state.expected_input.encoded(), + expected_resumer: state.expected_resumer.encoded(), + activation: state.activation, + init: state.init, + counters: state.counters, + initialized: F::from(state.initialized), + finalized: F::from(state.finalized), + did_burn: F::from(state.did_burn), + ownership: state.ownership.encoded(), + } +} + +fn raw_from_wires(state: &ProgramStateWires) -> RawProgramState> { + RawProgramState { + expected_input: state.expected_input.encoded(), + expected_resumer: state.expected_resumer.encoded(), + activation: state.activation.clone(), + init: state.init.clone(), + counters: state.counters.clone(), + initialized: state.initialized.clone().into(), + finalized: state.finalized.clone().into(), + did_burn: state.did_burn.clone().into(), + ownership: state.ownership.encoded(), + } +} + impl ProgramStateWires { pub fn from_write_values( cs: ConstraintSystemRef, @@ -61,218 +189,75 @@ impl ProgramStateWires { } } -macro_rules! define_program_state_operations { - ($(($field:ident, $tag:ident, $field_type:ident)),* $(,)?) => { - // Out-of-circuit version - pub fn trace_program_state_writes>( - mem: &mut M, - pid: u64, - state: &ProgramState, - switches: &MemSwitchboard, - ) { - $( - mem.conditional_write( - switches.$field, - Address { - addr: pid, - tag: ProgramStateTag::$tag.into(), - }, - [define_program_state_operations!(@convert_to_f state.$field, $field_type)].to_vec(), - ); - )* - } - - // In-circuit version - pub fn program_state_write_wires>( - rm: &mut M, - cs: &ConstraintSystemRef, - address: FpVar, - state: ProgramStateWires, - switches: &MemSwitchboardWires, - ) -> Result<(), SynthesisError> { - $( - rm.conditional_write( - &switches.$field, - &Address { - addr: address.clone(), - tag: MemoryTag::from(ProgramStateTag::$tag).allocate(cs.clone())?, - }, - &[define_program_state_operations!(@convert_to_fpvar state.$field, $field_type)], - )?; - )* - Ok(()) - } - - // Out-of-circuit read version - pub fn trace_program_state_reads>( - mem: &mut M, - pid: u64, - switches: &MemSwitchboard, - ) -> ProgramState { - ProgramState { - $( - $field: define_program_state_operations!(@convert_from_f - mem.conditional_read( - switches.$field, - Address { - addr: pid, - tag: ProgramStateTag::$tag.into(), - }, - )[0], $field_type), - )* - } - } - - // Just a helper for totality checking - // - // this will generate a compiler error if the macro is not called with all variants - #[allow(dead_code)] - fn _check_program_state_totality(tag: ProgramStateTag) { - match tag { - $( - ProgramStateTag::$tag => {}, - )* - } - } - }; +// Out-of-circuit write version. +pub fn trace_program_state_writes>( + mem: &mut M, + pid: u64, + state: &ProgramState, + switches: &MemSwitchboardBool, +) { + let raw = raw_from_state(state); + let mut dsl = OpcodeTraceDsl { mb: mem }; + let addr = F::from(pid); + program_state_write_ops(&mut dsl, switches, &addr, &raw).expect("trace program state writes"); +} - (@convert_to_f $value:expr, field) => { $value }; - (@convert_to_f $value:expr, bool) => { F::from($value) }; - (@convert_to_f $value:expr, optional) => { $value.encoded() }; +// In-circuit write version. +pub fn program_state_write_wires>( + rm: &mut M, + cs: &ConstraintSystemRef, + address: FpVar, + state: &ProgramStateWires, + switches: &MemSwitchboardWires, +) -> Result<(), SynthesisError> { + let raw = raw_from_wires(state); + let mut dsl = OpcodeSynthDsl { cs: cs.clone(), rm }; + program_state_write_ops(&mut dsl, switches, &address, &raw)?; + Ok(()) +} - (@convert_from_f $value:expr, field) => { $value }; - (@convert_from_f $value:expr, bool) => { $value == F::ONE }; - (@convert_from_f $value:expr, optional) => { OptionalF::from_encoded($value) }; +// Out-of-circuit read version. +pub fn trace_program_state_reads>( + mem: &mut M, + pid: u64, + switches: &MemSwitchboardBool, +) -> ProgramState { + let mut dsl = OpcodeTraceDsl { mb: mem }; + let addr = F::from(pid); + let raw = program_state_read_ops(&mut dsl, switches, &addr).expect("trace program state"); - (@convert_to_fpvar $value:expr, field) => { $value.clone().into() }; - (@convert_to_fpvar $value:expr, bool) => { $value.clone().into() }; - (@convert_to_fpvar $value:expr, optional) => { $value.encoded() }; + ProgramState { + expected_input: OptionalF::from_encoded(raw.expected_input), + expected_resumer: OptionalF::from_encoded(raw.expected_resumer), + activation: raw.activation, + init: raw.init, + counters: raw.counters, + initialized: raw.initialized == F::ONE, + finalized: raw.finalized == F::ONE, + did_burn: raw.did_burn == F::ONE, + ownership: OptionalF::from_encoded(raw.ownership), + } } -define_program_state_operations!( - (expected_input, ExpectedInput, optional), - (expected_resumer, ExpectedResumer, optional), - (activation, Activation, field), - (init, Init, field), - (counters, Counters, field), - (initialized, Initialized, bool), - (finalized, Finalized, bool), - (did_burn, DidBurn, bool), - (ownership, Ownership, optional), -); - pub fn program_state_read_wires>( rm: &mut M, cs: &ConstraintSystemRef, address: FpVar, switches: &MemSwitchboardWires, ) -> Result { + let mut dsl = OpcodeSynthDsl { cs: cs.clone(), rm }; + let raw = program_state_read_ops(&mut dsl, switches, &address)?; + Ok(ProgramStateWires { - expected_input: OptionalFpVar::new( - rm.conditional_read( - &switches.expected_input, - &Address { - addr: address.clone(), - tag: MemoryTag::ExpectedInput.allocate(cs.clone())?, - }, - )? - .into_iter() - .next() - .unwrap(), - ), - expected_resumer: OptionalFpVar::new( - rm.conditional_read( - &switches.expected_resumer, - &Address { - addr: address.clone(), - tag: MemoryTag::ExpectedResumer.allocate(cs.clone())?, - }, - )? - .into_iter() - .next() - .unwrap(), - ), - activation: rm - .conditional_read( - &switches.activation, - &Address { - addr: address.clone(), - tag: MemoryTag::Activation.allocate(cs.clone())?, - }, - )? - .into_iter() - .next() - .unwrap(), - init: rm - .conditional_read( - &switches.init, - &Address { - addr: address.clone(), - tag: MemoryTag::Init.allocate(cs.clone())?, - }, - )? - .into_iter() - .next() - .unwrap(), - counters: rm - .conditional_read( - &switches.counters, - &Address { - addr: address.clone(), - tag: MemoryTag::Counters.allocate(cs.clone())?, - }, - )? - .into_iter() - .next() - .unwrap(), - initialized: rm - .conditional_read( - &switches.initialized, - &Address { - addr: address.clone(), - tag: MemoryTag::Initialized.allocate(cs.clone())?, - }, - )? - .into_iter() - .next() - .unwrap() - .is_one()?, - finalized: rm - .conditional_read( - &switches.finalized, - &Address { - addr: address.clone(), - tag: MemoryTag::Finalized.allocate(cs.clone())?, - }, - )? - .into_iter() - .next() - .unwrap() - .is_one()?, - did_burn: rm - .conditional_read( - &switches.did_burn, - &Address { - addr: address.clone(), - tag: MemoryTag::DidBurn.allocate(cs.clone())?, - }, - )? - .into_iter() - .next() - .unwrap() - .is_one()?, - ownership: OptionalFpVar::new( - rm.conditional_read( - &switches.ownership, - &Address { - addr: address.clone(), - tag: MemoryTag::Ownership.allocate(cs.clone())?, - }, - )? - .into_iter() - .next() - .unwrap(), - ), + expected_input: OptionalFpVar::new(raw.expected_input), + expected_resumer: OptionalFpVar::new(raw.expected_resumer), + activation: raw.activation, + init: raw.init, + counters: raw.counters, + initialized: raw.initialized.is_one()?, + finalized: raw.finalized.is_one()?, + did_burn: raw.did_burn.is_one()?, + ownership: OptionalFpVar::new(raw.ownership), }) } diff --git a/interleaving/starstream-interleaving-proof/src/switchboard.rs b/interleaving/starstream-interleaving-proof/src/switchboard.rs index e5d7fa13..932e4a0a 100644 --- a/interleaving/starstream-interleaving-proof/src/switchboard.rs +++ b/interleaving/starstream-interleaving-proof/src/switchboard.rs @@ -20,30 +20,20 @@ pub struct RomSwitchboardWires { } #[derive(Clone, Debug, Default)] -pub struct MemSwitchboard { - pub expected_input: bool, - pub expected_resumer: bool, - pub activation: bool, - pub init: bool, - pub counters: bool, - pub initialized: bool, - pub finalized: bool, - pub did_burn: bool, - pub ownership: bool, +pub struct MemSwitchboard { + pub expected_input: B, + pub expected_resumer: B, + pub activation: B, + pub init: B, + pub counters: B, + pub initialized: B, + pub finalized: B, + pub did_burn: B, + pub ownership: B, } -#[derive(Clone)] -pub struct MemSwitchboardWires { - pub expected_input: Boolean, - pub expected_resumer: Boolean, - pub activation: Boolean, - pub init: Boolean, - pub counters: Boolean, - pub initialized: Boolean, - pub finalized: Boolean, - pub did_burn: Boolean, - pub ownership: Boolean, -} +pub type MemSwitchboardBool = MemSwitchboard; +pub type MemSwitchboardWires = MemSwitchboard>; #[derive(Clone, Debug, Default)] pub struct HandlerSwitchboard { @@ -84,7 +74,7 @@ pub struct RefArenaSwitchboardWires { impl MemSwitchboardWires { pub fn allocate( cs: ConstraintSystemRef, - switches: &MemSwitchboard, + switches: &MemSwitchboardBool, ) -> Result { Ok(Self { expected_input: Boolean::new_witness(cs.clone(), || Ok(switches.expected_input))?, From fc65aaca6578f38fdd417518db1d9d739f37a07c Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Fri, 30 Jan 2026 12:19:48 -0300 Subject: [PATCH 121/152] add missing expected_resumer constraint in visit_yield Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .../src/circuit.rs | 45 +++++++------- .../src/circuit_test.rs | 60 ++++++++++++++++++- .../starstream-interleaving-proof/src/neo.rs | 2 +- .../src/optional.rs | 12 ++++ 4 files changed, 95 insertions(+), 24 deletions(-) diff --git a/interleaving/starstream-interleaving-proof/src/circuit.rs b/interleaving/starstream-interleaving-proof/src/circuit.rs index 9578692a..f7dc1218 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit.rs @@ -1282,18 +1282,16 @@ impl> StepCircuitBuilder { .conditional_enforce_equal(&FpVar::zero(), switch)?; // 5. Claim check: val passed in must match target's expected_input (if set). - let expected_input_is_some = wires.target_read_wires.expected_input.is_some()?; - let expected_input_value = wires.target_read_wires.expected_input.decode_or_zero()?; - expected_input_value.conditional_enforce_equal( - &wires.arg(ArgName::Val), - &(switch & expected_input_is_some), - )?; + wires + .target_read_wires + .expected_input + .conditional_enforce_eq_if_some(switch, &wires.arg(ArgName::Val))?; // 6. Resumer check: current process must match target's expected_resumer (if set). - let expected_resumer_is_some = wires.target_read_wires.expected_resumer.is_some()?; - let expected_resumer_value = wires.target_read_wires.expected_resumer.decode_or_zero()?; - expected_resumer_value - .conditional_enforce_equal(&wires.id_curr, &(switch & expected_resumer_is_some))?; + wires + .target_read_wires + .expected_resumer + .conditional_enforce_eq_if_some(switch, &wires.id_curr)?; // 7. Store expected resumer for the current process. wires @@ -1347,12 +1345,10 @@ impl> StepCircuitBuilder { // 2. Claim check: burned value `ret` must match parent's `expected_input` (if set). // Parent's state is in `target_read_wires`. - let expected_input_is_some = wires.target_read_wires.expected_input.is_some()?; - let expected_input_value = wires.target_read_wires.expected_input.decode_or_zero()?; - expected_input_value.conditional_enforce_equal( - &wires.arg(ArgName::Ret), - &(switch & expected_input_is_some), - )?; + wires + .target_read_wires + .expected_input + .conditional_enforce_eq_if_some(switch, &wires.arg(ArgName::Ret))?; // --- // IVC state updates @@ -1382,12 +1378,16 @@ impl> StepCircuitBuilder { // 2. Claim check: yielded value `val` must match parent's `expected_input`. // The parent's state is in `target_read_wires` because we set `target = irw.id_prev`. - let expected_input_is_some = wires.target_read_wires.expected_input.is_some()?; - let expected_input_value = wires.target_read_wires.expected_input.decode_or_zero()?; - expected_input_value.conditional_enforce_equal( - &wires.arg(ArgName::Val), - &(switch & expected_input_is_some), - )?; + wires + .target_read_wires + .expected_input + .conditional_enforce_eq_if_some(switch, &wires.arg(ArgName::Val))?; + + // 3. Resumer check: parent must expect the current process (if set). + wires + .target_read_wires + .expected_resumer + .conditional_enforce_eq_if_some(switch, &wires.id_curr)?; // --- // State update enforcement @@ -1404,6 +1404,7 @@ impl> StepCircuitBuilder { let new_expected_input_encoded = wires .ret_is_some .select(&(&wires.arg(ArgName::Ret) + FpVar::one()), &FpVar::zero())?; + wires .curr_write_wires .expected_input diff --git a/interleaving/starstream-interleaving-proof/src/circuit_test.rs b/interleaving/starstream-interleaving-proof/src/circuit_test.rs index fe97df0a..a549ddb8 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit_test.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit_test.rs @@ -151,7 +151,7 @@ fn test_circuit_many_steps() { target: p0, val: ref_0, ret: ref_1.into(), - id_prev: Some(p1).into(), + id_prev: Some(p0).into(), }, WitLedgerEffect::UninstallHandler { interface_id: h(100), @@ -454,3 +454,61 @@ fn test_install_handler_get(exp: ProcessId) { let result = prove(instance, wit); assert!(result.is_ok()); } + +#[test] +#[should_panic] +fn test_yield_parent_resumer_mismatch_trace() { + setup_logger(); + + let utxo_id = 0; + let coord_a_id = 1; + let coord_b_id = 2; + + let p0 = ProcessId(utxo_id); + let p1 = ProcessId(coord_a_id); + let p2 = ProcessId(coord_b_id); + + let ref_0 = Ref(0); + let ref_1 = Ref(4); + + // Coord A resumes UTXO but sets its own expected_resumer to Coord B. + // Then UTXO yields back to Coord A. Spec says this should fail. + let utxo_trace = vec![WitLedgerEffect::Yield { + val: ref_1.clone(), + ret: WitEffectOutput::Thunk, + id_prev: Some(p1).into(), + }]; + + let coord_a_trace = vec![WitLedgerEffect::Resume { + target: p0, + val: ref_0.clone(), + ret: ref_1.into(), + id_prev: Some(p2).into(), + }]; + + let coord_b_trace = vec![]; + + let traces = vec![utxo_trace, coord_a_trace, coord_b_trace]; + + let trace_lens = traces.iter().map(|t| t.len() as u32).collect::>(); + let host_calls_roots = host_calls_roots(&traces); + + let instance = InterleavingInstance { + n_inputs: 1, + n_new: 0, + n_coords: 2, + entrypoint: p1, + process_table: vec![h(0), h(1), h(2)], + is_utxo: vec![true, false, false], + must_burn: vec![false, false, false], + ownership_in: vec![None, None, None], + ownership_out: vec![None, None, None], + host_calls_roots, + host_calls_lens: trace_lens, + input_states: vec![], + }; + + let wit = InterleavingWitness { traces }; + + let _result = prove(instance, wit); +} diff --git a/interleaving/starstream-interleaving-proof/src/neo.rs b/interleaving/starstream-interleaving-proof/src/neo.rs index 8b7bec94..85edf1c7 100644 --- a/interleaving/starstream-interleaving-proof/src/neo.rs +++ b/interleaving/starstream-interleaving-proof/src/neo.rs @@ -16,7 +16,7 @@ use std::collections::HashMap; // TODO: benchmark properly pub(crate) const CHUNK_SIZE: usize = 40; -const PER_STEP_COLS: usize = 1083; +const PER_STEP_COLS: usize = 1089; const BASE_INSTANCE_COLS: usize = 1; const EXTRA_INSTANCE_COLS: usize = IvcWireLayout::FIELD_COUNT * 2; const M_IN: usize = BASE_INSTANCE_COLS + EXTRA_INSTANCE_COLS; diff --git a/interleaving/starstream-interleaving-proof/src/optional.rs b/interleaving/starstream-interleaving-proof/src/optional.rs index 25b2d129..ec992717 100644 --- a/interleaving/starstream-interleaving-proof/src/optional.rs +++ b/interleaving/starstream-interleaving-proof/src/optional.rs @@ -2,6 +2,7 @@ use ark_ff::PrimeField; use ark_r1cs_std::{ GR1CSVar, boolean::Boolean, + eq::EqGadget as _, fields::{FieldVar, fp::FpVar}, }; use ark_relations::gr1cs::SynthesisError; @@ -69,6 +70,17 @@ impl OptionalFpVar { is_zero.select(&FpVar::zero(), &value) } + pub fn conditional_enforce_eq_if_some( + &self, + switch: &Boolean, + value: &FpVar, + ) -> Result<(), SynthesisError> { + let is_some = self.is_some()?; + let decoded = self.decode_or_zero()?; + decoded.conditional_enforce_equal(value, &(switch & is_some))?; + Ok(()) + } + pub fn select_encoded( switch: &Boolean, when_true: &OptionalFpVar, From b164f07d6f620f2b644853d218c4b37e9c534a29 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Fri, 30 Jan 2026 13:45:33 -0300 Subject: [PATCH 122/152] spec adjustments and add missing initialized check in visit_burn Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .../src/circuit.rs | 13 +++++++-- .../starstream-interleaving-spec/README.md | 28 ++++++++----------- 2 files changed, 22 insertions(+), 19 deletions(-) diff --git a/interleaving/starstream-interleaving-proof/src/circuit.rs b/interleaving/starstream-interleaving-proof/src/circuit.rs index f7dc1218..cefe836b 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit.rs @@ -496,6 +496,7 @@ impl LedgerOperation { config.mem_switches_curr.finalized = true; config.mem_switches_curr.did_burn = true; config.mem_switches_curr.expected_input = true; + config.mem_switches_curr.initialized = true; config.rom_switches.read_is_utxo_curr = true; config.rom_switches.read_must_burn_curr = true; @@ -1332,18 +1333,24 @@ impl> StepCircuitBuilder { .is_one()? .conditional_enforce_equal(&Boolean::TRUE, switch)?; - // 2. This UTXO must be marked for burning. + // 2. Must be initialized. + wires + .curr_read_wires + .initialized + .conditional_enforce_equal(&Boolean::TRUE, switch)?; + + // 3. This UTXO must be marked for burning. wires .must_burn_curr .is_one()? .conditional_enforce_equal(&Boolean::TRUE, switch)?; - // 3. Parent must exist. + // 4. Parent must exist. wires .id_prev_is_some()? .conditional_enforce_equal(&Boolean::TRUE, switch)?; - // 2. Claim check: burned value `ret` must match parent's `expected_input` (if set). + // 5. Claim check: burned value `ret` must match parent's `expected_input` (if set). // Parent's state is in `target_read_wires`. wires .target_read_wires diff --git a/interleaving/starstream-interleaving-spec/README.md b/interleaving/starstream-interleaving-spec/README.md index 2dd7caa0..c658e018 100644 --- a/interleaving/starstream-interleaving-spec/README.md +++ b/interleaving/starstream-interleaving-spec/README.md @@ -96,11 +96,11 @@ Rule: Resume (No self resume) 2. let val = ref_store[val_ref] in - expected_input[target] == val + if expected_input[target] is set, it must equal val (Check val matches target's previous claim) - 3. expected_resumer[target] == id_curr + 3. if expected_resumer[target] is set, it must equal id_curr (Check that the current process matches the expected resumer for the target) @@ -177,11 +177,11 @@ Rule: Yield (resumed) op = Yield(val_ref) -> (ret_ref, id_prev) 1. let val = ref_store[val_ref] in - expected_input[id_prev] == val + if expected_input[id_prev] is set, it must equal val (Check val matches target's previous claim) - 2. expected_resumer[id_prev] == id_curr + 2. if expected_resumer[id_prev] is set, it must equal id_curr (Check that the current process matches the expected resumer for the parent) @@ -285,11 +285,9 @@ Assigns a new (transaction-local) ID for a UTXO program. (Host call lookup condition) ----------------------------------------------------------------------- - 1. initialized[id] <- True - 2. expected_input[id] <- val - 3. expected_resumer[id] <- id_curr - 4. init'[id] <- Some(val, id_curr) - 5. counters'[id_curr] += 1 + 1. initialized[id] <- True + 2. init'[id] <- Some(val, id_curr) + 3. counters'[id_curr] += 1 ``` ## New Coordination Script (Spawn) @@ -329,11 +327,9 @@ handler) instance. (Host call lookup condition) ----------------------------------------------------------------------- - 1. initialized[id] <- True - 2. expected_input[id] <- val - 3. expected_resumer[id] <- id_curr - 4. init'[id] <- Some(val, id_curr) - 5. counters'[id_curr] += 1 + 1. initialized[id] <- True + 2. init'[id] <- Some(val, id_curr) + 3. counters'[id_curr] += 1 ``` --- @@ -434,7 +430,7 @@ Destroys the UTXO state. 2. is_initialized[id_curr] 3. is_burned[id_curr] - 4. expected_input[id_prev] == ret + 4. if expected_input[id_prev] is set, it must equal ret (Resume receives ret) @@ -536,7 +532,7 @@ Rule: NewRef (Host call lookup condition) ----------------------------------------------------------------------- - 1. size fits in 32 bits + 1. size fits in 16 bits 2. ref_store'[ref] <- [uninitialized; size_words * 4] (conceptually) 3. ref_sizes'[ref] <- size_words 4. counters'[id_curr] += 1 From f77295d63dcfa0a8761293d9823c62b7eda0528e Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Fri, 30 Jan 2026 13:49:45 -0300 Subject: [PATCH 123/152] move design docs to starstream-interleaving-spec Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .../ARCHITECTURE.md} | 4 ++-- .../{README.md => EFFECTS_REFERENCE.md} | 0 .../effect-handlers-codegen-script-non-tail.png | Bin .../effect-handlers-codegen-simple.png | Bin .../graph.png | Bin 5 files changed, 2 insertions(+), 2 deletions(-) rename interleaving/{starstream-interleaving-proof/README.md => starstream-interleaving-spec/ARCHITECTURE.md} (99%) rename interleaving/starstream-interleaving-spec/{README.md => EFFECTS_REFERENCE.md} (100%) rename interleaving/{starstream-interleaving-proof => starstream-interleaving-spec}/effect-handlers-codegen-script-non-tail.png (100%) rename interleaving/{starstream-interleaving-proof => starstream-interleaving-spec}/effect-handlers-codegen-simple.png (100%) rename interleaving/{starstream-interleaving-proof => starstream-interleaving-spec}/graph.png (100%) diff --git a/interleaving/starstream-interleaving-proof/README.md b/interleaving/starstream-interleaving-spec/ARCHITECTURE.md similarity index 99% rename from interleaving/starstream-interleaving-proof/README.md rename to interleaving/starstream-interleaving-spec/ARCHITECTURE.md index 6db22fcd..4d330ed7 100644 --- a/interleaving/starstream-interleaving-proof/README.md +++ b/interleaving/starstream-interleaving-spec/ARCHITECTURE.md @@ -392,7 +392,7 @@ The flow of execution to proving then looks something like this: Note: WASM is an arbitrary trace of wasm opcodes from the corresponding program. -![img](graph-scaled.png) +![img](graph.png) ## Proving algebraic effects @@ -1161,4 +1161,4 @@ script { resume(starstream::new_choord(dynamic_script)); } } -``` \ No newline at end of file +``` diff --git a/interleaving/starstream-interleaving-spec/README.md b/interleaving/starstream-interleaving-spec/EFFECTS_REFERENCE.md similarity index 100% rename from interleaving/starstream-interleaving-spec/README.md rename to interleaving/starstream-interleaving-spec/EFFECTS_REFERENCE.md diff --git a/interleaving/starstream-interleaving-proof/effect-handlers-codegen-script-non-tail.png b/interleaving/starstream-interleaving-spec/effect-handlers-codegen-script-non-tail.png similarity index 100% rename from interleaving/starstream-interleaving-proof/effect-handlers-codegen-script-non-tail.png rename to interleaving/starstream-interleaving-spec/effect-handlers-codegen-script-non-tail.png diff --git a/interleaving/starstream-interleaving-proof/effect-handlers-codegen-simple.png b/interleaving/starstream-interleaving-spec/effect-handlers-codegen-simple.png similarity index 100% rename from interleaving/starstream-interleaving-proof/effect-handlers-codegen-simple.png rename to interleaving/starstream-interleaving-spec/effect-handlers-codegen-simple.png diff --git a/interleaving/starstream-interleaving-proof/graph.png b/interleaving/starstream-interleaving-spec/graph.png similarity index 100% rename from interleaving/starstream-interleaving-proof/graph.png rename to interleaving/starstream-interleaving-spec/graph.png From 9da623278688bf02f60ca5390ba9b6b8b3010631 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Fri, 30 Jan 2026 21:12:06 -0300 Subject: [PATCH 124/152] bump Nightstream to cc2e985: shout tables don't need to be manually padded anymore Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- Cargo.toml | 14 +++++++------- .../starstream-interleaving-proof/src/neo.rs | 12 ++++++++---- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 86a0b42f..064c7037 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -44,13 +44,13 @@ wasm-encoder = "0.240.0" wasmprinter = "0.240.0" wit-component = "0.240.0" -neo-fold = { git = "https://github.com/LFDT-Nightstream/Nightstream.git", rev = "f6e80467807967735a16293ec04d5ee5a36d984e" } -neo-math = { git = "https://github.com/LFDT-Nightstream/Nightstream.git", rev = "f6e80467807967735a16293ec04d5ee5a36d984e" } -neo-ccs = { git = "https://github.com/LFDT-Nightstream/Nightstream.git", rev = "f6e80467807967735a16293ec04d5ee5a36d984e" } -neo-ajtai = { git = "https://github.com/LFDT-Nightstream/Nightstream.git", rev = "f6e80467807967735a16293ec04d5ee5a36d984e" } -neo-params = { git = "https://github.com/LFDT-Nightstream/Nightstream.git", rev = "f6e80467807967735a16293ec04d5ee5a36d984e" } -neo-vm-trace = { git = "https://github.com/LFDT-Nightstream/Nightstream.git", rev = "f6e80467807967735a16293ec04d5ee5a36d984e" } -neo-memory = { git = "https://github.com/LFDT-Nightstream/Nightstream.git", rev = "f6e80467807967735a16293ec04d5ee5a36d984e" } +neo-fold = { git = "https://github.com/LFDT-Nightstream/Nightstream.git", rev = "cc2e9850c97d17316a72590de86b71b84b7e7313" } +neo-math = { git = "https://github.com/LFDT-Nightstream/Nightstream.git", rev = "cc2e9850c97d17316a72590de86b71b84b7e7313" } +neo-ccs = { git = "https://github.com/LFDT-Nightstream/Nightstream.git", rev = "cc2e9850c97d17316a72590de86b71b84b7e7313" } +neo-ajtai = { git = "https://github.com/LFDT-Nightstream/Nightstream.git", rev = "cc2e9850c97d17316a72590de86b71b84b7e7313" } +neo-params = { git = "https://github.com/LFDT-Nightstream/Nightstream.git", rev = "cc2e9850c97d17316a72590de86b71b84b7e7313" } +neo-vm-trace = { git = "https://github.com/LFDT-Nightstream/Nightstream.git", rev = "cc2e9850c97d17316a72590de86b71b84b7e7313" } +neo-memory = { git = "https://github.com/LFDT-Nightstream/Nightstream.git", rev = "cc2e9850c97d17316a72590de86b71b84b7e7313" } [profile.dev.package] insta.opt-level = 3 diff --git a/interleaving/starstream-interleaving-proof/src/neo.rs b/interleaving/starstream-interleaving-proof/src/neo.rs index 85edf1c7..80ca2f34 100644 --- a/interleaving/starstream-interleaving-proof/src/neo.rs +++ b/interleaving/starstream-interleaving-proof/src/neo.rs @@ -101,13 +101,17 @@ impl NeoCircuit for StepCircuitNeo { } fn resources(&self, resources: &mut neo_fold::session::SharedBusResources) { - let max_rom_size = self.ts_mem_init.rom_sizes.values().max(); - for (tag, (_dims, lanes, ty, _)) in &self.ts_mem_init.mems { match ty { crate::memory::MemType::Rom => { - // TODO: could this be avoided? - let size = *max_rom_size.unwrap(); + let size = self + .ts_mem_init + .rom_sizes + .get(tag) + .copied() + // it can't be empty + .unwrap_or(1usize); + let mut dense_content = vec![neo_math::F::ZERO; size]; for (addr, val) in self.get_mem_content_iter(tag) { From bff967a4b5f81bf8e3cff5a4512e48336daa44c4 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Fri, 30 Jan 2026 21:13:19 -0300 Subject: [PATCH 125/152] update Cargo.lock Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- Cargo.lock | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 2820402a..558f08ed 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2005,7 +2005,7 @@ dependencies = [ [[package]] name = "neo-ajtai" version = "0.1.0" -source = "git+https://github.com/LFDT-Nightstream/Nightstream.git?rev=f6e80467807967735a16293ec04d5ee5a36d984e#f6e80467807967735a16293ec04d5ee5a36d984e" +source = "git+https://github.com/LFDT-Nightstream/Nightstream.git?rev=cc2e9850c97d17316a72590de86b71b84b7e7313#cc2e9850c97d17316a72590de86b71b84b7e7313" dependencies = [ "neo-ccs", "neo-math", @@ -2025,7 +2025,7 @@ dependencies = [ [[package]] name = "neo-ccs" version = "0.1.0" -source = "git+https://github.com/LFDT-Nightstream/Nightstream.git?rev=f6e80467807967735a16293ec04d5ee5a36d984e#f6e80467807967735a16293ec04d5ee5a36d984e" +source = "git+https://github.com/LFDT-Nightstream/Nightstream.git?rev=cc2e9850c97d17316a72590de86b71b84b7e7313#cc2e9850c97d17316a72590de86b71b84b7e7313" dependencies = [ "neo-math", "neo-params", @@ -2046,7 +2046,7 @@ dependencies = [ [[package]] name = "neo-fold" version = "0.1.0" -source = "git+https://github.com/LFDT-Nightstream/Nightstream.git?rev=f6e80467807967735a16293ec04d5ee5a36d984e#f6e80467807967735a16293ec04d5ee5a36d984e" +source = "git+https://github.com/LFDT-Nightstream/Nightstream.git?rev=cc2e9850c97d17316a72590de86b71b84b7e7313#cc2e9850c97d17316a72590de86b71b84b7e7313" dependencies = [ "getrandom 0.3.4", "js-sys", @@ -2072,7 +2072,7 @@ dependencies = [ [[package]] name = "neo-math" version = "0.1.0" -source = "git+https://github.com/LFDT-Nightstream/Nightstream.git?rev=f6e80467807967735a16293ec04d5ee5a36d984e#f6e80467807967735a16293ec04d5ee5a36d984e" +source = "git+https://github.com/LFDT-Nightstream/Nightstream.git?rev=cc2e9850c97d17316a72590de86b71b84b7e7313#cc2e9850c97d17316a72590de86b71b84b7e7313" dependencies = [ "p3-field", "p3-goldilocks", @@ -2086,7 +2086,7 @@ dependencies = [ [[package]] name = "neo-memory" version = "0.1.0" -source = "git+https://github.com/LFDT-Nightstream/Nightstream.git?rev=f6e80467807967735a16293ec04d5ee5a36d984e#f6e80467807967735a16293ec04d5ee5a36d984e" +source = "git+https://github.com/LFDT-Nightstream/Nightstream.git?rev=cc2e9850c97d17316a72590de86b71b84b7e7313#cc2e9850c97d17316a72590de86b71b84b7e7313" dependencies = [ "neo-ajtai", "neo-ccs", @@ -2105,7 +2105,7 @@ dependencies = [ [[package]] name = "neo-params" version = "0.1.0" -source = "git+https://github.com/LFDT-Nightstream/Nightstream.git?rev=f6e80467807967735a16293ec04d5ee5a36d984e#f6e80467807967735a16293ec04d5ee5a36d984e" +source = "git+https://github.com/LFDT-Nightstream/Nightstream.git?rev=cc2e9850c97d17316a72590de86b71b84b7e7313#cc2e9850c97d17316a72590de86b71b84b7e7313" dependencies = [ "serde", "thiserror 2.0.17", @@ -2114,7 +2114,7 @@ dependencies = [ [[package]] name = "neo-reductions" version = "0.1.0" -source = "git+https://github.com/LFDT-Nightstream/Nightstream.git?rev=f6e80467807967735a16293ec04d5ee5a36d984e#f6e80467807967735a16293ec04d5ee5a36d984e" +source = "git+https://github.com/LFDT-Nightstream/Nightstream.git?rev=cc2e9850c97d17316a72590de86b71b84b7e7313#cc2e9850c97d17316a72590de86b71b84b7e7313" dependencies = [ "bincode", "blake3", @@ -2138,7 +2138,7 @@ dependencies = [ [[package]] name = "neo-transcript" version = "0.1.0" -source = "git+https://github.com/LFDT-Nightstream/Nightstream.git?rev=f6e80467807967735a16293ec04d5ee5a36d984e#f6e80467807967735a16293ec04d5ee5a36d984e" +source = "git+https://github.com/LFDT-Nightstream/Nightstream.git?rev=cc2e9850c97d17316a72590de86b71b84b7e7313#cc2e9850c97d17316a72590de86b71b84b7e7313" dependencies = [ "neo-ccs", "neo-math", @@ -2154,7 +2154,7 @@ dependencies = [ [[package]] name = "neo-vm-trace" version = "0.1.0" -source = "git+https://github.com/LFDT-Nightstream/Nightstream.git?rev=f6e80467807967735a16293ec04d5ee5a36d984e#f6e80467807967735a16293ec04d5ee5a36d984e" +source = "git+https://github.com/LFDT-Nightstream/Nightstream.git?rev=cc2e9850c97d17316a72590de86b71b84b7e7313#cc2e9850c97d17316a72590de86b71b84b7e7313" dependencies = [ "serde", "thiserror 2.0.17", From 5613035d2f883599936ae9990cba7b6a028bbe68 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Mon, 2 Feb 2026 12:15:37 -0300 Subject: [PATCH 126/152] ci: run tests that make proofs on --release Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .github/workflows/build.yml | 6 +++++- interleaving/starstream-runtime/tests/integration.rs | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 41713097..51634343 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,7 +15,11 @@ jobs: # Enforce lockfile correctness. - run: cargo check --locked # Test all crates, except those that force-target WASM. - - run: cargo test --workspace + # Skip the tests that make proofs, since we'll run those on the release profile + - run: cargo test --workspace -- --skip circuit_test --skip test_runtime + # The tests that do Nightstream proofs are quite slow without --release + - run: cargo test -p starstream-interleaving-proof --release circuit_test + - run: cargo test -p starstream-runtime --release test_runtime # Cosmetic checks. - run: cargo clippy - run: cargo fmt --check diff --git a/interleaving/starstream-runtime/tests/integration.rs b/interleaving/starstream-runtime/tests/integration.rs index f78635d3..72924135 100644 --- a/interleaving/starstream-runtime/tests/integration.rs +++ b/interleaving/starstream-runtime/tests/integration.rs @@ -82,7 +82,6 @@ fn test_runtime_simple_effect_handlers() { } #[test] -#[ignore = "this test is still quite expensive to run in the CI (it generates like a 100 folding steps)"] fn test_runtime_effect_handlers_cross_calls() { // this test emulates a coordination script acting as a middle-man for a channel-like flow // From d75855de4b8985bc7bacb1826b84a7489a7eb6c2 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Thu, 5 Feb 2026 22:52:31 -0300 Subject: [PATCH 127/152] circuit: set non-dummy step_linking Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .../starstream-interleaving-proof/src/lib.rs | 3 +-- .../starstream-interleaving-proof/src/neo.rs | 12 +++++++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/interleaving/starstream-interleaving-proof/src/lib.rs b/interleaving/starstream-interleaving-proof/src/lib.rs index 28e52cde..f888ecc2 100644 --- a/interleaving/starstream-interleaving-proof/src/lib.rs +++ b/interleaving/starstream-interleaving-proof/src/lib.rs @@ -110,8 +110,7 @@ pub fn prove( let mut session = FoldingSession::new(FoldingMode::Optimized, params, committer); - // TODO: not sound, but not important right now - session.set_step_linking(StepLinkingConfig::new(vec![(0, 0)])); + session.set_step_linking(StepLinkingConfig::new(neo::ivc_step_linking_pairs())); let (constraints, shout, twist) = mb.split(); diff --git a/interleaving/starstream-interleaving-proof/src/neo.rs b/interleaving/starstream-interleaving-proof/src/neo.rs index 80ca2f34..f8a77a97 100644 --- a/interleaving/starstream-interleaving-proof/src/neo.rs +++ b/interleaving/starstream-interleaving-proof/src/neo.rs @@ -74,6 +74,16 @@ impl StepCircuitNeo { } } +pub(crate) fn ivc_step_linking_pairs() -> Vec<(usize, usize)> { + // Per-step instance vector is [1, inputs..., outputs...]. + // Enforce prev outputs == next inputs. + let input_base = BASE_INSTANCE_COLS; + let output_base = BASE_INSTANCE_COLS + IvcWireLayout::FIELD_COUNT; + (0..IvcWireLayout::FIELD_COUNT) + .map(|i| (output_base + i, input_base + i)) + .collect() +} + #[derive(Clone)] pub struct CircuitLayout {} @@ -227,7 +237,7 @@ impl NeoCircuit for StepCircuitNeo { let out_instance_col = output_base + field_offset; // This means step_linking in the IVC setup should link pairs: - // (i, i + IvcWireLayout::FIELD_COUNT) + // (output_base + i, input_base + i) cs.r1cs_terms( vec![(in_instance_col, one), (first_chunk_in_col, minus_one)], From f2dd0c3870d535dd98ac93cc78f32188626d2096 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Thu, 5 Feb 2026 23:04:53 -0300 Subject: [PATCH 128/152] mocked_verifier: add missing uninstall handler check Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .../src/mocked_verifier.rs | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs b/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs index 20f037ab..7cee922b 100644 --- a/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs +++ b/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs @@ -113,7 +113,15 @@ pub enum InterleavingError { #[error("utxo-only op used by coord (pid={0})")] UtxoOnly(ProcessId), - #[error("uninstall handler not top: interface={interface_id:?} pid={pid}")] + #[error( + "uninstall handler: only the installing process can uninstall itself (top != current): interface={interface_id:?} pid={pid}" + )] + InstalledHandlerIsNotCurrent { + interface_id: InterfaceId, + pid: ProcessId, + }, + + #[error("uninstall handler not found: interface={interface_id:?} pid={pid}")] HandlerNotFound { interface_id: InterfaceId, pid: ProcessId, @@ -646,6 +654,18 @@ pub fn state_transition( return Err(InterleavingError::CoordOnly(id_curr)); } let stack = state.handler_stack.entry(interface_id.clone()).or_default(); + let Some(top) = stack.last().copied() else { + return Err(InterleavingError::HandlerNotFound { + interface_id, + pid: id_curr, + }); + }; + if top != id_curr { + return Err(InterleavingError::InstalledHandlerIsNotCurrent { + interface_id, + pid: id_curr, + }); + } let Some(_) = stack.pop() else { return Err(InterleavingError::HandlerNotFound { interface_id, From cca6bd05a8ea49799e176eff89b6fe4f6c032996 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Fri, 6 Feb 2026 17:45:05 -0300 Subject: [PATCH 129/152] add test/example with wrapped script + fix control flow limitation in Yield Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .../starstream-interleaving-proof/src/abi.rs | 30 +- .../src/circuit.rs | 143 ++++++++-- .../src/circuit_test.rs | 24 +- .../src/ledger_operation.rs | 4 +- .../starstream-interleaving-proof/src/lib.rs | 11 +- .../src/memory/twist_and_shout/mod.rs | 2 + .../src/memory_tags.rs | 6 + .../starstream-interleaving-proof/src/neo.rs | 2 +- .../src/program_state.rs | 38 +++ .../src/switchboard.rs | 4 + .../ARCHITECTURE.md | 5 + .../EFFECTS_REFERENCE.md | 85 +++--- .../src/mocked_verifier.rs | 26 +- .../starstream-interleaving-spec/src/tests.rs | 26 +- .../src/transaction_effects/witness.rs | 4 +- interleaving/starstream-runtime/src/lib.rs | 64 +++-- .../tests/wrapper_coord_test.rs | 260 ++++++++++++++++++ 17 files changed, 592 insertions(+), 142 deletions(-) create mode 100644 interleaving/starstream-runtime/tests/wrapper_coord_test.rs diff --git a/interleaving/starstream-interleaving-proof/src/abi.rs b/interleaving/starstream-interleaving-proof/src/abi.rs index 431cd8b7..4931989d 100644 --- a/interleaving/starstream-interleaving-proof/src/abi.rs +++ b/interleaving/starstream-interleaving-proof/src/abi.rs @@ -26,14 +26,14 @@ pub enum ArgName { Target, Val, Ret, - IdPrev, + Caller, Offset, Size, ProgramHash0, ProgramHash1, ProgramHash2, ProgramHash3, - Caller, + ActivationCaller, OwnerId, TokenId, InterfaceId, @@ -55,7 +55,7 @@ impl ArgName { ArgName::Target | ArgName::OwnerId | ArgName::TokenId => 0, ArgName::Val | ArgName::InterfaceId => 1, ArgName::Ret => 2, - ArgName::IdPrev | ArgName::Offset | ArgName::Size | ArgName::Caller => 3, + ArgName::Caller | ArgName::Offset | ArgName::Size | ArgName::ActivationCaller => 3, ArgName::ProgramHash0 => 3, ArgName::ProgramHash1 => 4, ArgName::ProgramHash2 => 5, @@ -78,20 +78,20 @@ pub(crate) fn ledger_operation_from_wit(op: &WitLedgerEffect) -> LedgerOperation target, val, ret, - id_prev, + caller, } => LedgerOperation::Resume { target: F::from(target.0 as u64), val: F::from(val.0), ret: ret.to_option().map(|r| F::from(r.0)).unwrap_or_default(), - id_prev: OptionalF::from_option( - id_prev.to_option().flatten().map(|p| F::from(p.0 as u64)), + caller: OptionalF::from_option( + caller.to_option().flatten().map(|p| F::from(p.0 as u64)), ), }, - WitLedgerEffect::Yield { val, ret, id_prev } => LedgerOperation::Yield { + WitLedgerEffect::Yield { val, ret, caller } => LedgerOperation::Yield { val: F::from(val.0), ret: ret.to_option().map(|r| F::from(r.0)), - id_prev: OptionalF::from_option( - id_prev.to_option().flatten().map(|p| F::from(p.0 as u64)), + caller: OptionalF::from_option( + caller.to_option().flatten().map(|p| F::from(p.0 as u64)), ), }, WitLedgerEffect::Burn { ret } => LedgerOperation::Burn { @@ -204,17 +204,17 @@ pub(crate) fn opcode_args(op: &LedgerOperation) -> [F; OPCODE_ARG_COUNT] { target, val, ret, - id_prev, + caller, } => { args[ArgName::Target.idx()] = *target; args[ArgName::Val.idx()] = *val; args[ArgName::Ret.idx()] = *ret; - args[ArgName::IdPrev.idx()] = id_prev.encoded(); + args[ArgName::Caller.idx()] = caller.encoded(); } - LedgerOperation::Yield { val, ret, id_prev } => { + LedgerOperation::Yield { val, ret, caller } => { args[ArgName::Val.idx()] = *val; args[ArgName::Ret.idx()] = ret.unwrap_or_default(); - args[ArgName::IdPrev.idx()] = id_prev.encoded(); + args[ArgName::Caller.idx()] = caller.encoded(); } LedgerOperation::Burn { ret } => { args[ArgName::Target.idx()] = F::zero(); @@ -249,11 +249,11 @@ pub(crate) fn opcode_args(op: &LedgerOperation) -> [F; OPCODE_ARG_COUNT] { } LedgerOperation::Activation { val, caller } => { args[ArgName::Val.idx()] = *val; - args[ArgName::Caller.idx()] = *caller; + args[ArgName::ActivationCaller.idx()] = *caller; } LedgerOperation::Init { val, caller } => { args[ArgName::Val.idx()] = *val; - args[ArgName::Caller.idx()] = *caller; + args[ArgName::ActivationCaller.idx()] = *caller; } LedgerOperation::Bind { owner_id } => { args[ArgName::OwnerId.idx()] = *owner_id; diff --git a/interleaving/starstream-interleaving-proof/src/circuit.rs b/interleaving/starstream-interleaving-proof/src/circuit.rs index cefe836b..027ca684 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit.rs @@ -242,8 +242,8 @@ impl Wires { let curr_read_wires = program_state_read_wires(rm, &cs, curr_address.clone(), &curr_mem_switches)?; - let id_prev_value = id_prev.decode_or_zero()?; - let target_address = switches.yield_op.select(&id_prev_value, &target)?; + let yield_to_value = curr_read_wires.yield_to.decode_or_zero()?; + let target_address = switches.yield_op.select(&yield_to_value, &target)?; let target_read_wires = program_state_read_wires(rm, &cs, target_address.clone(), &target_mem_switches)?; @@ -472,6 +472,8 @@ impl LedgerOperation { config.mem_switches_target.activation = true; config.mem_switches_target.expected_input = true; config.mem_switches_target.expected_resumer = true; + config.mem_switches_target.on_yield = true; + config.mem_switches_target.yield_to = true; config.mem_switches_target.finalized = true; config.mem_switches_target.initialized = true; @@ -484,6 +486,8 @@ impl LedgerOperation { config.mem_switches_curr.activation = true; config.mem_switches_curr.expected_input = true; config.mem_switches_curr.expected_resumer = true; + config.mem_switches_curr.on_yield = true; + config.mem_switches_curr.yield_to = true; config.mem_switches_curr.finalized = true; config.mem_switches_target.expected_input = true; @@ -514,6 +518,8 @@ impl LedgerOperation { config.mem_switches_target.counters = true; config.mem_switches_target.expected_input = true; config.mem_switches_target.expected_resumer = true; + config.mem_switches_target.on_yield = true; + config.mem_switches_target.yield_to = true; config.rom_switches.read_is_utxo_curr = true; config.rom_switches.read_is_utxo_target = true; @@ -527,6 +533,8 @@ impl LedgerOperation { config.mem_switches_target.counters = true; config.mem_switches_target.expected_input = true; config.mem_switches_target.expected_resumer = true; + config.mem_switches_target.on_yield = true; + config.mem_switches_target.yield_to = true; config.rom_switches.read_is_utxo_curr = true; config.rom_switches.read_is_utxo_target = true; @@ -618,6 +626,7 @@ impl LedgerOperation { // new state for each one too. pub fn program_state_transitions( &self, + curr_id: F, curr_read: ProgramState, target_read: ProgramState, ) -> (ProgramState, ProgramState) { @@ -633,25 +642,31 @@ impl LedgerOperation { curr_write.counters -= F::ONE; // revert counter increment } LedgerOperation::Resume { - val, ret, id_prev, .. + val, ret, caller, .. } => { // Current process gives control to target. // It's `arg` is cleared, and its `expected_input` is set to the return value `ret`. curr_write.activation = F::ZERO; // Represents None curr_write.expected_input = OptionalF::new(*ret); - curr_write.expected_resumer = *id_prev; + curr_write.expected_resumer = *caller; // Target process receives control. // Its `arg` is set to `val`, and it is no longer in a `finalized` state. target_write.activation = *val; target_write.finalized = false; + + // If target was in a yield state, record who resumed it and clear the flag. + if target_read.on_yield { + target_write.yield_to = OptionalF::new(curr_id); + } + target_write.on_yield = false; } LedgerOperation::Yield { // The yielded value `val` is checked against the parent's `expected_input`, // but this doesn't change the parent's state itself. val: _, ret, - id_prev, + caller, .. } => { // Current process yields control back to its parent (the target of this operation). @@ -666,7 +681,8 @@ impl LedgerOperation { curr_write.expected_input = OptionalF::none(); curr_write.finalized = true; } - curr_write.expected_resumer = *id_prev; + curr_write.expected_resumer = *caller; + curr_write.on_yield = true; } LedgerOperation::Burn { ret } => { // The current UTXO is burned. @@ -684,6 +700,8 @@ impl LedgerOperation { target_write.counters = F::ZERO; target_write.expected_input = OptionalF::none(); target_write.expected_resumer = OptionalF::none(); + target_write.on_yield = true; + target_write.yield_to = OptionalF::none(); } LedgerOperation::Bind { owner_id } => { curr_write.ownership = OptionalF::new(*owner_id); @@ -861,6 +879,22 @@ impl> StepCircuitBuilder { vec![OptionalF::none().encoded()], ); + mb.init( + Address { + addr: pid as u64, + tag: MemoryTag::OnYield.into(), + }, + vec![F::ONE], // true + ); + + mb.init( + Address { + addr: pid as u64, + tag: MemoryTag::YieldTo.into(), + }, + vec![OptionalF::none().encoded()], + ); + mb.init( Address { addr: pid as u64, @@ -1000,9 +1034,13 @@ impl> StepCircuitBuilder { instr, ); + let curr_read = + trace_program_state_reads(&mut mb, irw.id_curr.into_bigint().0[0], &curr_switches); + let curr_yield_to = curr_read.yield_to; + let target_addr = match instr { LedgerOperation::Resume { target, .. } => Some(*target), - LedgerOperation::Yield { .. } => irw.id_prev.to_option(), + LedgerOperation::Yield { .. } => curr_read.yield_to.to_option(), LedgerOperation::Burn { .. } => irw.id_prev.to_option(), LedgerOperation::NewUtxo { target: id, .. } => Some(*id), LedgerOperation::NewCoord { target: id, .. } => Some(*id), @@ -1010,9 +1048,6 @@ impl> StepCircuitBuilder { _ => None, }; - let curr_read = - trace_program_state_reads(&mut mb, irw.id_curr.into_bigint().0[0], &curr_switches); - let target_pid = target_addr.map(|t| t.into_bigint().0[0]); let target_read = trace_program_state_reads(&mut mb, target_pid.unwrap_or(0), &target_switches); @@ -1046,7 +1081,7 @@ impl> StepCircuitBuilder { ); let (curr_write, target_write) = - instr.program_state_transitions(curr_read, target_read); + instr.program_state_transitions(irw.id_curr, curr_read, target_read); self.write_ops .push((curr_write.clone(), target_write.clone())); @@ -1065,7 +1100,12 @@ impl> StepCircuitBuilder { irw.id_prev = OptionalF::new(irw.id_curr); irw.id_curr = *target; } - LedgerOperation::Yield { .. } | LedgerOperation::Burn { .. } => { + LedgerOperation::Yield { .. } => { + let old_curr = irw.id_curr; + irw.id_curr = curr_yield_to.decode_or_zero(); + irw.id_prev = OptionalF::new(old_curr); + } + LedgerOperation::Burn { .. } => { let old_curr = irw.id_curr; irw.id_curr = irw.id_prev.decode_or_zero(); irw.id_prev = OptionalF::new(old_curr); @@ -1294,12 +1334,32 @@ impl> StepCircuitBuilder { .expected_resumer .conditional_enforce_eq_if_some(switch, &wires.id_curr)?; - // 7. Store expected resumer for the current process. + // 7. If target was in yield state, record yield_to; otherwise keep it unchanged. + let target_on_yield = wires.target_read_wires.on_yield.clone(); + let new_yield_to = OptionalFpVar::select_encoded( + &(switch & target_on_yield.clone()), + &OptionalFpVar::from_pid(&wires.id_curr), + &wires.target_read_wires.yield_to, + )?; + + wires + .target_write_wires + .yield_to + .encoded() + .conditional_enforce_equal(&new_yield_to.encoded(), switch)?; + + // After a resume, the target is no longer in yield state. + wires + .target_write_wires + .on_yield + .conditional_enforce_equal(&Boolean::FALSE, switch)?; + + // 8. Store expected resumer for the current process. wires .curr_write_wires .expected_resumer .encoded() - .conditional_enforce_equal(&wires.arg(ArgName::IdPrev), switch)?; + .conditional_enforce_equal(&wires.arg(ArgName::Caller), switch)?; // --- // IVC state updates @@ -1377,24 +1437,42 @@ impl> StepCircuitBuilder { #[tracing::instrument(target = "gr1cs", skip(self, wires))] fn visit_yield(&self, mut wires: Wires) -> Result { let switch = &wires.switches.yield_op; + let yield_to = wires.curr_read_wires.yield_to.clone(); + let yield_to_is_some = yield_to.is_some()?; - // 1. Must have a parent. - wires - .id_prev_is_some()? - .conditional_enforce_equal(&Boolean::TRUE, switch)?; + // 1. Must have a target to yield to. + yield_to_is_some.conditional_enforce_equal(&Boolean::TRUE, switch)?; // 2. Claim check: yielded value `val` must match parent's `expected_input`. - // The parent's state is in `target_read_wires` because we set `target = irw.id_prev`. + // The parent's state is in `target_read_wires` because we set `target = yield_to`. wires .target_read_wires .expected_input - .conditional_enforce_eq_if_some(switch, &wires.arg(ArgName::Val))?; + .conditional_enforce_eq_if_some( + &(switch & &yield_to_is_some), + &wires.arg(ArgName::Val), + )?; // 3. Resumer check: parent must expect the current process (if set). wires .target_read_wires .expected_resumer - .conditional_enforce_eq_if_some(switch, &wires.id_curr)?; + .conditional_enforce_eq_if_some(&(switch & &yield_to_is_some), &wires.id_curr)?; + + // Target state should be preserved on yield. + wires + .target_write_wires + .expected_input + .encoded() + .conditional_enforce_equal(&wires.target_read_wires.expected_input.encoded(), switch)?; + wires + .target_write_wires + .expected_resumer + .encoded() + .conditional_enforce_equal( + &wires.target_read_wires.expected_resumer.encoded(), + switch, + )?; // --- // State update enforcement @@ -1423,17 +1501,28 @@ impl> StepCircuitBuilder { .curr_write_wires .expected_resumer .encoded() - .conditional_enforce_equal(&wires.arg(ArgName::IdPrev), switch)?; + .conditional_enforce_equal(&wires.arg(ArgName::Caller), switch)?; + + // Mark the current process as in-yield and preserve yield_to. + wires + .curr_write_wires + .on_yield + .conditional_enforce_equal(&Boolean::TRUE, switch)?; + wires + .curr_write_wires + .yield_to + .encoded() + .conditional_enforce_equal(&wires.curr_read_wires.yield_to.encoded(), switch)?; // --- // IVC state updates // --- - // On yield, the current program becomes the parent (old id_prev), + // On yield, the current program becomes the parent (yield_to), // and the new prev program is the one that just yielded. - let prev_value = wires.id_prev_value()?; - let next_id_curr = switch.select(&prev_value, &wires.id_curr)?; + let yield_to_value = yield_to.decode_or_zero()?; + let next_id_curr = (switch & &yield_to_is_some).select(&yield_to_value, &wires.id_curr)?; let next_id_prev = OptionalFpVar::select_encoded( - switch, + &(switch & yield_to_is_some), &OptionalFpVar::from_pid(&wires.id_curr), &wires.id_prev, )?; @@ -1788,6 +1877,8 @@ fn register_memory_segments>(mb: &mut M) { MemType::Ram, "RAM_EXPECTED_RESUMER", ); + mb.register_mem(MemoryTag::OnYield.into(), 1, MemType::Ram, "RAM_ON_YIELD"); + mb.register_mem(MemoryTag::YieldTo.into(), 1, MemType::Ram, "RAM_YIELD_TO"); mb.register_mem( MemoryTag::Activation.into(), 1, diff --git a/interleaving/starstream-interleaving-proof/src/circuit_test.rs b/interleaving/starstream-interleaving-proof/src/circuit_test.rs index a549ddb8..d8dd772a 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit_test.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit_test.rs @@ -86,7 +86,7 @@ fn test_circuit_many_steps() { WitLedgerEffect::Yield { val: ref_1.clone(), // Yielding nothing ret: WitEffectOutput::Thunk, // Not expecting to be resumed again - id_prev: Some(p2).into(), + caller: Some(p2).into(), }, ]; @@ -108,7 +108,7 @@ fn test_circuit_many_steps() { WitLedgerEffect::Yield { val: ref_1.clone(), // Yielding nothing ret: WitEffectOutput::Thunk, // Not expecting to be resumed again - id_prev: Some(p2).into(), + caller: Some(p2).into(), }, ]; @@ -142,7 +142,7 @@ fn test_circuit_many_steps() { target: p1, val: ref_0.clone(), ret: ref_1.clone().into(), - id_prev: WitEffectOutput::Resolved(None), + caller: WitEffectOutput::Resolved(None), }, WitLedgerEffect::InstallHandler { interface_id: h(100), @@ -151,7 +151,7 @@ fn test_circuit_many_steps() { target: p0, val: ref_0, ret: ref_1.into(), - id_prev: Some(p0).into(), + caller: Some(p0).into(), }, WitLedgerEffect::UninstallHandler { interface_id: h(100), @@ -202,7 +202,7 @@ fn test_circuit_small() { let utxo_trace = vec![WitLedgerEffect::Yield { val: ref_0.clone(), // Yielding nothing ret: WitEffectOutput::Thunk, // Not expecting to be resumed again - id_prev: Some(p1).into(), // This should be None actually? + caller: Some(p1).into(), // This should be None actually? }]; let coord_trace = vec![ @@ -220,7 +220,7 @@ fn test_circuit_small() { target: p0, val: ref_0.clone(), ret: ref_0.clone().into(), - id_prev: WitEffectOutput::Resolved(None.into()), + caller: WitEffectOutput::Resolved(None.into()), }, ]; @@ -271,7 +271,7 @@ fn test_circuit_resumer_mismatch() { let utxo_trace = vec![WitLedgerEffect::Yield { val: ref_0.clone(), ret: WitEffectOutput::Thunk, - id_prev: Some(p1).into(), + caller: Some(p1).into(), }]; let coord_a_trace = vec![ @@ -294,13 +294,13 @@ fn test_circuit_resumer_mismatch() { target: p0, val: ref_0.clone(), ret: ref_0.clone().into(), - id_prev: WitEffectOutput::Resolved(None), + caller: WitEffectOutput::Resolved(None), }, WitLedgerEffect::Resume { target: p2, val: ref_0.clone(), ret: ref_0.clone().into(), - id_prev: WitEffectOutput::Resolved(None), + caller: WitEffectOutput::Resolved(None), }, ]; @@ -308,7 +308,7 @@ fn test_circuit_resumer_mismatch() { target: p0, val: ref_0, ret: ref_0.into(), - id_prev: WitEffectOutput::Resolved(None), + caller: WitEffectOutput::Resolved(None), }]; let traces = vec![utxo_trace, coord_a_trace, coord_b_trace]; @@ -476,14 +476,14 @@ fn test_yield_parent_resumer_mismatch_trace() { let utxo_trace = vec![WitLedgerEffect::Yield { val: ref_1.clone(), ret: WitEffectOutput::Thunk, - id_prev: Some(p1).into(), + caller: Some(p1).into(), }]; let coord_a_trace = vec![WitLedgerEffect::Resume { target: p0, val: ref_0.clone(), ret: ref_1.into(), - id_prev: Some(p2).into(), + caller: Some(p2).into(), }]; let coord_b_trace = vec![]; diff --git a/interleaving/starstream-interleaving-proof/src/ledger_operation.rs b/interleaving/starstream-interleaving-proof/src/ledger_operation.rs index 05b20819..8cae63f4 100644 --- a/interleaving/starstream-interleaving-proof/src/ledger_operation.rs +++ b/interleaving/starstream-interleaving-proof/src/ledger_operation.rs @@ -18,14 +18,14 @@ pub enum LedgerOperation { target: F, val: F, ret: F, - id_prev: OptionalF, + caller: OptionalF, }, /// Called by utxo to yield. /// Yield { val: F, ret: Option, - id_prev: OptionalF, + caller: OptionalF, }, ProgramHash { target: F, diff --git a/interleaving/starstream-interleaving-proof/src/lib.rs b/interleaving/starstream-interleaving-proof/src/lib.rs index f888ecc2..ecf58055 100644 --- a/interleaving/starstream-interleaving-proof/src/lib.rs +++ b/interleaving/starstream-interleaving-proof/src/lib.rs @@ -164,6 +164,8 @@ fn make_interleaved_trace( let mut id_curr = inst.entrypoint.0; let mut id_prev: Option = None; let mut counters: HashMap = HashMap::new(); + let mut on_yield = vec![true; inst.process_table.len()]; + let mut yield_to: Vec> = vec![None; inst.process_table.len()]; let expected_len: usize = wit.traces.iter().map(|t| t.len()).sum(); @@ -186,11 +188,18 @@ fn make_interleaved_trace( match instr { starstream_interleaving_spec::WitLedgerEffect::Resume { target, .. } => { + if on_yield[target.0] { + yield_to[target.0] = Some(id_curr); + on_yield[target.0] = false; + } id_prev = Some(id_curr); id_curr = target.0; } starstream_interleaving_spec::WitLedgerEffect::Yield { .. } => { - let parent = id_prev.expect("Yield called without a parent process"); + on_yield[id_curr] = true; + let Some(parent) = yield_to[id_curr] else { + break; + }; let old_id_curr = id_curr; id_curr = parent; id_prev = Some(old_id_curr); diff --git a/interleaving/starstream-interleaving-proof/src/memory/twist_and_shout/mod.rs b/interleaving/starstream-interleaving-proof/src/memory/twist_and_shout/mod.rs index a6787f3e..b8ee7cdb 100644 --- a/interleaving/starstream-interleaving-proof/src/memory/twist_and_shout/mod.rs +++ b/interleaving/starstream-interleaving-proof/src/memory/twist_and_shout/mod.rs @@ -20,6 +20,8 @@ use std::collections::VecDeque; pub const TWIST_DEBUG_FILTER: &[u32] = &[ MemoryTag::ExpectedInput as u32, MemoryTag::ExpectedResumer as u32, + MemoryTag::OnYield as u32, + MemoryTag::YieldTo as u32, MemoryTag::Activation as u32, MemoryTag::Counters as u32, MemoryTag::Initialized as u32, diff --git a/interleaving/starstream-interleaving-proof/src/memory_tags.rs b/interleaving/starstream-interleaving-proof/src/memory_tags.rs index fcc24d5f..8db29fce 100644 --- a/interleaving/starstream-interleaving-proof/src/memory_tags.rs +++ b/interleaving/starstream-interleaving-proof/src/memory_tags.rs @@ -27,6 +27,8 @@ pub enum MemoryTag { HandlerStackHeads = 17, TraceCommitments = 18, ExpectedResumer = 19, + OnYield = 20, + YieldTo = 21, } impl From for u64 { @@ -51,6 +53,8 @@ impl MemoryTag { pub enum ProgramStateTag { ExpectedInput, ExpectedResumer, + OnYield, + YieldTo, Activation, Init, Counters, @@ -65,6 +69,8 @@ impl From for MemoryTag { match tag { ProgramStateTag::ExpectedInput => MemoryTag::ExpectedInput, ProgramStateTag::ExpectedResumer => MemoryTag::ExpectedResumer, + ProgramStateTag::OnYield => MemoryTag::OnYield, + ProgramStateTag::YieldTo => MemoryTag::YieldTo, ProgramStateTag::Activation => MemoryTag::Activation, ProgramStateTag::Init => MemoryTag::Init, ProgramStateTag::Counters => MemoryTag::Counters, diff --git a/interleaving/starstream-interleaving-proof/src/neo.rs b/interleaving/starstream-interleaving-proof/src/neo.rs index f8a77a97..767eac12 100644 --- a/interleaving/starstream-interleaving-proof/src/neo.rs +++ b/interleaving/starstream-interleaving-proof/src/neo.rs @@ -16,7 +16,7 @@ use std::collections::HashMap; // TODO: benchmark properly pub(crate) const CHUNK_SIZE: usize = 40; -const PER_STEP_COLS: usize = 1089; +const PER_STEP_COLS: usize = 1143; const BASE_INSTANCE_COLS: usize = 1; const EXTRA_INSTANCE_COLS: usize = IvcWireLayout::FIELD_COUNT * 2; const M_IN: usize = BASE_INSTANCE_COLS + EXTRA_INSTANCE_COLS; diff --git a/interleaving/starstream-interleaving-proof/src/program_state.rs b/interleaving/starstream-interleaving-proof/src/program_state.rs index a154ce9d..b22af1cd 100644 --- a/interleaving/starstream-interleaving-proof/src/program_state.rs +++ b/interleaving/starstream-interleaving-proof/src/program_state.rs @@ -15,6 +15,8 @@ use ark_relations::gr1cs::{ConstraintSystemRef, SynthesisError}; pub struct ProgramState { pub expected_input: OptionalF, pub expected_resumer: OptionalF, + pub on_yield: bool, + pub yield_to: OptionalF, pub activation: F, pub init: F, pub counters: F, @@ -29,6 +31,8 @@ pub struct ProgramState { pub struct ProgramStateWires { pub expected_input: OptionalFpVar, pub expected_resumer: OptionalFpVar, + pub on_yield: Boolean, + pub yield_to: OptionalFpVar, pub activation: FpVar, pub init: FpVar, pub counters: FpVar, @@ -41,6 +45,8 @@ pub struct ProgramStateWires { struct RawProgramState { expected_input: V, expected_resumer: V, + on_yield: V, + yield_to: V, activation: V, init: V, counters: V, @@ -58,6 +64,8 @@ fn program_state_read_ops( let expected_input = dsl.read(&switches.expected_input, MemoryTag::ExpectedInput, addr)?; let expected_resumer = dsl.read(&switches.expected_resumer, MemoryTag::ExpectedResumer, addr)?; + let on_yield = dsl.read(&switches.on_yield, MemoryTag::OnYield, addr)?; + let yield_to = dsl.read(&switches.yield_to, MemoryTag::YieldTo, addr)?; let (activation, init) = coroutine_args_ops(dsl, &switches.activation, &switches.init, addr)?; let counters = dsl.read(&switches.counters, MemoryTag::Counters, addr)?; let initialized = dsl.read(&switches.initialized, MemoryTag::Initialized, addr)?; @@ -68,6 +76,8 @@ fn program_state_read_ops( Ok(RawProgramState { expected_input, expected_resumer, + on_yield, + yield_to, activation, init, counters, @@ -96,6 +106,18 @@ fn program_state_write_ops( addr, &state.expected_resumer, )?; + dsl.write( + &switches.on_yield, + MemoryTag::OnYield, + addr, + &state.on_yield, + )?; + dsl.write( + &switches.yield_to, + MemoryTag::YieldTo, + addr, + &state.yield_to, + )?; dsl.write( &switches.activation, MemoryTag::Activation, @@ -140,6 +162,8 @@ fn raw_from_state(state: &ProgramState) -> RawProgramState { RawProgramState { expected_input: state.expected_input.encoded(), expected_resumer: state.expected_resumer.encoded(), + on_yield: F::from(state.on_yield), + yield_to: state.yield_to.encoded(), activation: state.activation, init: state.init, counters: state.counters, @@ -154,6 +178,8 @@ fn raw_from_wires(state: &ProgramStateWires) -> RawProgramState> { RawProgramState { expected_input: state.expected_input.encoded(), expected_resumer: state.expected_resumer.encoded(), + on_yield: state.on_yield.clone().into(), + yield_to: state.yield_to.encoded(), activation: state.activation.clone(), init: state.init.clone(), counters: state.counters.clone(), @@ -176,6 +202,10 @@ impl ProgramStateWires { expected_resumer: OptionalFpVar::new(FpVar::new_witness(cs.clone(), || { Ok(write_values.expected_resumer.encoded()) })?), + on_yield: Boolean::new_witness(cs.clone(), || Ok(write_values.on_yield))?, + yield_to: OptionalFpVar::new(FpVar::new_witness(cs.clone(), || { + Ok(write_values.yield_to.encoded()) + })?), activation: FpVar::new_witness(cs.clone(), || Ok(write_values.activation))?, init: FpVar::new_witness(cs.clone(), || Ok(write_values.init))?, counters: FpVar::new_witness(cs.clone(), || Ok(write_values.counters))?, @@ -229,6 +259,8 @@ pub fn trace_program_state_reads>( ProgramState { expected_input: OptionalF::from_encoded(raw.expected_input), expected_resumer: OptionalF::from_encoded(raw.expected_resumer), + on_yield: raw.on_yield == F::ONE, + yield_to: OptionalF::from_encoded(raw.yield_to), activation: raw.activation, init: raw.init, counters: raw.counters, @@ -251,6 +283,8 @@ pub fn program_state_read_wires>( Ok(ProgramStateWires { expected_input: OptionalFpVar::new(raw.expected_input), expected_resumer: OptionalFpVar::new(raw.expected_resumer), + on_yield: raw.on_yield.is_one()?, + yield_to: OptionalFpVar::new(raw.yield_to), activation: raw.activation, init: raw.init, counters: raw.counters, @@ -267,6 +301,8 @@ impl ProgramState { finalized: false, expected_input: OptionalF::none(), expected_resumer: OptionalF::none(), + on_yield: false, + yield_to: OptionalF::none(), activation: F::ZERO, init: F::ZERO, counters: F::ZERO, @@ -279,6 +315,8 @@ impl ProgramState { pub fn debug_print(&self) { tracing::debug!("expected_input={}", self.expected_input.encoded()); tracing::debug!("expected_resumer={}", self.expected_resumer.encoded()); + tracing::debug!("on_yield={}", self.on_yield); + tracing::debug!("yield_to={}", self.yield_to.encoded()); tracing::debug!("activation={}", self.activation); tracing::debug!("init={}", self.init); tracing::debug!("counters={}", self.counters); diff --git a/interleaving/starstream-interleaving-proof/src/switchboard.rs b/interleaving/starstream-interleaving-proof/src/switchboard.rs index 932e4a0a..177730a0 100644 --- a/interleaving/starstream-interleaving-proof/src/switchboard.rs +++ b/interleaving/starstream-interleaving-proof/src/switchboard.rs @@ -23,6 +23,8 @@ pub struct RomSwitchboardWires { pub struct MemSwitchboard { pub expected_input: B, pub expected_resumer: B, + pub on_yield: B, + pub yield_to: B, pub activation: B, pub init: B, pub counters: B, @@ -79,6 +81,8 @@ impl MemSwitchboardWires { Ok(Self { expected_input: Boolean::new_witness(cs.clone(), || Ok(switches.expected_input))?, expected_resumer: Boolean::new_witness(cs.clone(), || Ok(switches.expected_resumer))?, + on_yield: Boolean::new_witness(cs.clone(), || Ok(switches.on_yield))?, + yield_to: Boolean::new_witness(cs.clone(), || Ok(switches.yield_to))?, activation: Boolean::new_witness(cs.clone(), || Ok(switches.activation))?, init: Boolean::new_witness(cs.clone(), || Ok(switches.init))?, counters: Boolean::new_witness(cs.clone(), || Ok(switches.counters))?, diff --git a/interleaving/starstream-interleaving-spec/ARCHITECTURE.md b/interleaving/starstream-interleaving-spec/ARCHITECTURE.md index 4d330ed7..3cc4e52c 100644 --- a/interleaving/starstream-interleaving-spec/ARCHITECTURE.md +++ b/interleaving/starstream-interleaving-spec/ARCHITECTURE.md @@ -42,6 +42,11 @@ coordination script could be a different one. Also because we have algebraic effect handlers, control flow may go to a coordination script that was deeper in the call stack. +To model this, each process keeps a `yield_to` pointer and an `on_yield` flag. +When a process yields, it sets `on_yield = true`. The next resumer records +`yield_to[process] = resumer` and clears `on_yield`. A yield then returns control +to `yield_to[process]`, not necessarily to the most recent resumer in the trace. + As mentioned before, programs are modelled as WASM programs, both in the case of coordination scripts and in the case of utxos. Inter-program communication is expressed as WASM host (imported) function calls. To verify execution, we use a diff --git a/interleaving/starstream-interleaving-spec/EFFECTS_REFERENCE.md b/interleaving/starstream-interleaving-spec/EFFECTS_REFERENCE.md index c658e018..19372ae0 100644 --- a/interleaving/starstream-interleaving-spec/EFFECTS_REFERENCE.md +++ b/interleaving/starstream-interleaving-spec/EFFECTS_REFERENCE.md @@ -29,25 +29,27 @@ The global state of the interleaving machine σ is defined as: ```text Configuration (σ) ================= -σ = (id_curr, id_prev, M, activation, init, ref_store, process_table, host_calls, counters, safe_to_ledger, is_utxo, initialized, handler_stack, ownership, is_burned) +σ = (id_curr, id_prev, M, activation, init, ref_store, process_table, host_calls, counters, on_yield, yield_to, finalized, is_utxo, initialized, handler_stack, ownership, did_burn) Where: id_curr : ID of the currently executing VM. In the range [0..#coord + #utxo] - id_prev : ID of the VM that called the current one (return address). + id_prev : ID of the VM that executed immediately before the current one (trace-local). expected_input : A map {ProcessID -> Ref} expected_resumer : A map {ProcessID -> ProcessID} + on_yield : A map {ProcessID -> Bool} (true if the process most recently yielded) + yield_to : A map {ProcessID -> Option} (who to return to on yield) activation : A map {ProcessID -> Option<(Ref, ProcessID)>} init : A map {ProcessID -> Option<(Value, ProcessID)>} ref_store : A map {Ref -> Value} process_table : Read-only map {ID -> ProgramHash} for attestation. host_calls : A map {ProcessID -> Host-calls lookup table} counters : A map {ProcessID -> Counter} - safe_to_ledger : A map {ProcessID -> Bool} + finalized : A map {ProcessID -> Bool} (true if the process ends the transaction with a final yield) is_utxo : Read-only map {ProcessID -> Bool} initialized : A map {ProcessID -> Bool} handler_stack : A map {InterfaceID -> Stack} ownership : A map {ProcessID -> Option} (token -> owner) - is_burned : A map {ProcessID -> Bool} + did_burn : A map {ProcessID -> Bool} ``` Note that the maps are used here for convenience of notation. In practice they @@ -86,10 +88,14 @@ The primary control flow operation. Transfers control to `target`. It records a Since we are also resuming a currently suspended process, we can only do it if our value matches its claim. +When a process yields, it sets `on_yield = true`. The next resumer records +`yield_to[target] = id_curr` and clears `on_yield`. Subsequent resumes do not +change `yield_to` unless the process yields again. + ```text Rule: Resume ============ - op = Resume(target, val_ref) -> (ret_ref, id_prev) + op = Resume(target, val_ref) -> (ret_ref, caller) 1. id_curr ≠ target @@ -107,7 +113,7 @@ Rule: Resume 4. let t = CC[id_curr] in c = counters[id_curr] in - t[c] == + t[c] == (The opcode matches the host call lookup table used in the wasm proof at the current index) @@ -119,13 +125,15 @@ Rule: Resume (Can't jump to an unitialized process) -------------------------------------------------------------------------------------------- - 1. expected_input[id_curr] <- ret_ref (Claim, needs to be checked later by future resumer) - 2. expected_resumer[id_curr] <- id_prev (Claim, needs to be checked later by future resumer) - 3. counters'[id_curr] += 1 (Keep track of host call index per process) - 4. id_prev' <- id_curr (Save "caller" for yield) - 5. id_curr' <- target (Switch) - 6. safe_to_ledger'[target] <- False (This is not the final yield for this utxo in this transaction) - 7. activation'[target] <- Some(val_ref, id_curr) + 1. expected_input[id_curr] <- ret_ref (Claim, needs to be checked later by future resumer) + 2. expected_resumer[id_curr] <- caller (Claim, needs to be checked later by future resumer) + 3. counters'[id_curr] += 1 (Keep track of host call index per process) + 4. id_prev' <- id_curr (Trace-local previous id) + 5. id_curr' <- target (Switch) + 6. if on_yield[target] then + yield_to'[target] <- Some(id_curr) + on_yield'[target] <- False + 7. activation'[target] <- Some(val_ref, id_curr) ``` ## Activation @@ -169,37 +177,40 @@ This also marks the utxo as **safe** to persist in the ledger. If the utxo is not iterated again in the transaction, the return value is null for this execution (next transaction will have to execute `yield` again, but -with an actual result). In that case, id_prev would be null (or some sentinel). +with an actual result). ```text Rule: Yield (resumed) ============ - op = Yield(val_ref) -> (ret_ref, id_prev) + op = Yield(val_ref) -> (ret_ref, caller) + + 1. yield_to[id_curr] is set - 1. let val = ref_store[val_ref] in - if expected_input[id_prev] is set, it must equal val + 2. let val = ref_store[val_ref] in + if expected_input[yield_to[id_curr]] is set, it must equal val (Check val matches target's previous claim) - 2. if expected_resumer[id_prev] is set, it must equal id_curr + 3. if expected_resumer[yield_to[id_curr]] is set, it must equal id_curr (Check that the current process matches the expected resumer for the parent) - 3. let + 4. let t = CC[id_curr] in c = counters[id_curr] in - t[c] == + t[c] == (The opcode matches the host call lookup table used in the wasm proof at the current index) -------------------------------------------------------------------------------------------- 1. expected_input[id_curr] <- ret_ref (Claim, needs to be checked later by future resumer) - 2. expected_resumer[id_curr] <- id_prev (Claim, needs to be checked later by future resumer) + 2. expected_resumer[id_curr] <- caller (Claim, needs to be checked later by future resumer) 3. counters'[id_curr] += 1 (Keep track of host call index per process) - 4. id_curr' <- id_prev (Switch to parent) - 5. id_prev' <- id_curr (Save "caller") - 6. safe_to_ledger'[id_curr] <- False (This is not the final yield for this utxo in this transaction) - 7. activation'[id_curr] <- None + 4. on_yield'[id_curr] <- True (The next resumer sets yield_to) + 5. id_curr' <- yield_to[id_curr] (Switch to parent) + 6. id_prev' <- id_curr (Trace-local previous id) + 7. finalized'[id_curr] <- False + 8. activation'[id_curr] <- None ``` ```text @@ -207,21 +218,24 @@ Rule: Yield (end transaction) ============================= op = Yield(val_ref) - 3. let + 1. yield_to[id_curr] is set + + 2. let t = CC[id_curr] in c = counters[id_curr] in - t[c] == + t[c] == (Remember, there is no ret value since that won't be known until the next transaction) (The opcode matches the host call lookup table used in the wasm proof at the current index) -------------------------------------------------------------------------------------------- - 1. expected_resumer[id_curr] <- id_prev (Claim, needs to be checked later by future resumer) + 1. expected_resumer[id_curr] <- caller (Claim, needs to be checked later by future resumer) 2. counters'[id_curr] += 1 (Keep track of host call index per process) - 3. id_curr' <- id_prev (Switch to parent) - 4. id_prev' <- id_curr (Save "caller") - 5. safe_to_ledger'[id_curr] <- True (This utxo creates a transacition output) - 6. activation'[id_curr] <- None + 3. on_yield'[id_curr] <- True (The next resumer sets yield_to) + 4. id_curr' <- yield_to[id_curr] (Switch to parent) + 5. id_prev' <- id_curr (Trace-local previous id) + 6. finalized'[id_curr] <- True (This utxo creates a transaction output) + 7. activation'[id_curr] <- None ``` ## Program Hash @@ -428,7 +442,7 @@ Destroys the UTXO state. 1. is_utxo[id_curr] 2. is_initialized[id_curr] - 3. is_burned[id_curr] + 3. did_burn[id_curr] 4. if expected_input[id_prev] is set, it must equal ret @@ -441,7 +455,7 @@ Destroys the UTXO state. (Host call lookup condition) ----------------------------------------------------------------------- - 1. safe_to_ledger'[id_curr] <- True + 1. finalized'[id_curr] <- True 2. id_curr' <- id_prev (Control flow goes to caller) @@ -453,6 +467,7 @@ Destroys the UTXO state. 4. counters'[id_curr] += 1 5. activation'[id_curr] <- None + 6. did_burn'[id_curr] <- True ``` # 6. Tokens @@ -624,7 +639,7 @@ for (process, proof, host_calls) in transaction.proofs: // all the utxos either did `yield` at the end, or called `burn` if is_utxo[process] { - assert(safe_to_ledger[process]) + assert(finalized[process] || did_burn[process]) } assert_not(is_utxo[id_curr]) diff --git a/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs b/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs index 7cee922b..b6c3f5f5 100644 --- a/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs +++ b/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs @@ -232,6 +232,8 @@ pub struct InterleavingState { /// Claims memory: M[pid] = expected argument to next Resume into pid. expected_input: Vec>, expected_resumer: Vec>, + on_yield: Vec, + yield_to: Vec>, activation: Vec>, init: Vec>, @@ -287,6 +289,8 @@ pub fn verify_interleaving_semantics( id_prev: None, expected_input: claims_memory, expected_resumer: vec![None; n], + on_yield: vec![true; n], + yield_to: vec![None; n], activation: vec![None; n], init: vec![None; n], counters: vec![0; n], @@ -448,7 +452,7 @@ pub fn state_transition( target, val, ret, - id_prev, + caller, } => { if id_curr == target { return Err(InterleavingError::SelfResume(id_curr)); @@ -494,7 +498,12 @@ pub fn state_transition( state.activation[target.0] = Some((val, id_curr)); state.expected_input[id_curr.0] = ret.to_option(); - state.expected_resumer[id_curr.0] = id_prev.to_option().flatten(); + state.expected_resumer[id_curr.0] = caller.to_option().flatten(); + + if state.on_yield[target.0] { + state.yield_to[target.0] = Some(id_curr); + state.on_yield[target.0] = false; + } state.id_prev = Some(id_curr); @@ -503,9 +512,11 @@ pub fn state_transition( state.finalized[target.0] = false; } - WitLedgerEffect::Yield { val, ret, id_prev } => { + WitLedgerEffect::Yield { val, ret, caller } => { let parent = state - .id_prev + .yield_to + .get(id_curr.0) + .and_then(|p| *p) .ok_or(InterleavingError::YieldWithNoParent { pid: id_curr })?; let val = state @@ -548,7 +559,8 @@ pub fn state_transition( } } - state.expected_resumer[id_curr.0] = id_prev.to_option().flatten(); + state.expected_resumer[id_curr.0] = caller.to_option().flatten(); + state.on_yield[id_curr.0] = true; state.id_prev = Some(id_curr); state.activation[id_curr.0] = None; state.id_curr = parent; @@ -600,6 +612,8 @@ pub fn state_transition( state.init[id.0] = Some((val.clone(), id_curr)); state.expected_input[id.0] = None; state.expected_resumer[id.0] = None; + state.on_yield[id.0] = true; + state.yield_to[id.0] = None; } WitLedgerEffect::NewCoord { @@ -636,6 +650,8 @@ pub fn state_transition( state.init[id.0] = Some((val.clone(), id_curr)); state.expected_input[id.0] = None; state.expected_resumer[id.0] = None; + state.on_yield[id.0] = true; + state.yield_to[id.0] = None; } WitLedgerEffect::InstallHandler { interface_id } => { diff --git a/interleaving/starstream-interleaving-spec/src/tests.rs b/interleaving/starstream-interleaving-spec/src/tests.rs index 2462ea2e..3c711515 100644 --- a/interleaving/starstream-interleaving-spec/src/tests.rs +++ b/interleaving/starstream-interleaving-spec/src/tests.rs @@ -148,7 +148,7 @@ fn test_transaction_with_coord_and_utxos() { WitLedgerEffect::Yield { val: continued_1_ref, ret: None.into(), - id_prev: Some(ProcessId(4)).into(), + caller: Some(ProcessId(4)).into(), }, ]; @@ -175,7 +175,7 @@ fn test_transaction_with_coord_and_utxos() { WitLedgerEffect::Yield { val: done_a_ref, ret: None.into(), - id_prev: Some(ProcessId(4)).into(), + caller: Some(ProcessId(4)).into(), }, ]; @@ -191,7 +191,7 @@ fn test_transaction_with_coord_and_utxos() { WitLedgerEffect::Yield { val: done_b_ref, ret: None.into(), - id_prev: Some(ProcessId(4)).into(), + caller: Some(ProcessId(4)).into(), }, ]; @@ -238,7 +238,7 @@ fn test_transaction_with_coord_and_utxos() { target: ProcessId(0), val: spend_input_1_ref, ret: continued_1_ref.into(), - id_prev: Some(ProcessId(0)).into(), + caller: Some(ProcessId(0)).into(), }, WitLedgerEffect::NewRef { size: 1, @@ -258,7 +258,7 @@ fn test_transaction_with_coord_and_utxos() { target: ProcessId(1), val: spend_input_2_ref, ret: burned_2_ref.into(), - id_prev: Some(ProcessId(1)).into(), + caller: Some(ProcessId(1)).into(), }, WitLedgerEffect::NewRef { size: 1, @@ -271,7 +271,7 @@ fn test_transaction_with_coord_and_utxos() { target: ProcessId(2), val: init_a_ref, ret: done_a_ref.into(), - id_prev: Some(ProcessId(2)).into(), + caller: Some(ProcessId(2)).into(), }, WitLedgerEffect::NewRef { size: 1, @@ -284,7 +284,7 @@ fn test_transaction_with_coord_and_utxos() { target: ProcessId(3), val: init_b_ref, ret: done_b_ref.into(), - id_prev: Some(ProcessId(3)).into(), + caller: Some(ProcessId(3)).into(), }, ]; @@ -361,12 +361,12 @@ fn test_effect_handlers() { target: ProcessId(1), val: ref_gen.get("effect_request"), ret: ref_gen.get("effect_request_response").into(), - id_prev: Some(ProcessId(1)).into(), + caller: Some(ProcessId(1)).into(), }, WitLedgerEffect::Yield { val: ref_gen.get("utxo_final"), ret: None.into(), - id_prev: Some(ProcessId(1)).into(), + caller: Some(ProcessId(1)).into(), }, ]; @@ -390,7 +390,7 @@ fn test_effect_handlers() { target: ProcessId(0), val: ref_gen.get("init_utxo"), ret: ref_gen.get("effect_request").into(), - id_prev: WitEffectOutput::Resolved(None), + caller: WitEffectOutput::Resolved(None), }, WitLedgerEffect::NewRef { size: 1, @@ -410,7 +410,7 @@ fn test_effect_handlers() { target: ProcessId(0), val: ref_gen.get("effect_request_response"), ret: ref_gen.get("utxo_final").into(), - id_prev: Some(ProcessId(0)).into(), + caller: Some(ProcessId(0)).into(), }, WitLedgerEffect::UninstallHandler { interface_id }, ]; @@ -492,7 +492,7 @@ fn test_utxo_resumes_utxo_fails() { target: ProcessId(1), val: Ref(0), ret: Ref(0).into(), - id_prev: WitEffectOutput::Resolved(None), + caller: WitEffectOutput::Resolved(None), }, ], ) @@ -621,7 +621,7 @@ fn test_duplicate_input_utxo_fails() { target: 0.into(), val: Ref(0), ret: Ref(0).into(), - id_prev: WitEffectOutput::Resolved(None), + caller: WitEffectOutput::Resolved(None), }, ], ) diff --git a/interleaving/starstream-interleaving-spec/src/transaction_effects/witness.rs b/interleaving/starstream-interleaving-spec/src/transaction_effects/witness.rs index 0f658f88..253559f9 100644 --- a/interleaving/starstream-interleaving-spec/src/transaction_effects/witness.rs +++ b/interleaving/starstream-interleaving-spec/src/transaction_effects/witness.rs @@ -49,14 +49,14 @@ pub enum WitLedgerEffect { val: Ref, // out ret: WitEffectOutput, - id_prev: WitEffectOutput>, + caller: WitEffectOutput>, }, Yield { // in val: Ref, // out ret: WitEffectOutput, - id_prev: WitEffectOutput>, + caller: WitEffectOutput>, }, ProgramHash { // in diff --git a/interleaving/starstream-runtime/src/lib.rs b/interleaving/starstream-runtime/src/lib.rs index ef5b7d4a..9fe88ac3 100644 --- a/interleaving/starstream-runtime/src/lib.rs +++ b/interleaving/starstream-runtime/src/lib.rs @@ -6,6 +6,7 @@ use starstream_interleaving_spec::{ Value, WasmModule, WitEffectOutput, WitLedgerEffect, builder::TransactionBuilder, }; use std::collections::{HashMap, HashSet}; +use std::path::PathBuf; use wasmi::{ Caller, Config, Engine, Linker, Memory, Store, TypedResumableCall, TypedResumableCallHostTrap, Val, errors::HostError, @@ -89,7 +90,6 @@ pub struct UnprovenTransaction { pub struct RuntimeState { pub traces: HashMap>, pub current_process: ProcessId, - pub prev_id: Option, pub memories: HashMap, pub handler_stack: HashMap>, @@ -105,7 +105,8 @@ pub struct RuntimeState { pub process_hashes: HashMap>, pub is_utxo: HashMap, pub allocated_processes: HashSet, - pub call_stack: Vec, + pub parent_of: HashMap, + pub on_yield: HashMap, pub must_burn: HashSet, pub n_new: usize, @@ -127,7 +128,6 @@ impl Runtime { let state = RuntimeState { traces: HashMap::new(), current_process: ProcessId(0), - prev_id: None, memories: HashMap::new(), handler_stack: HashMap::new(), ref_store: HashMap::new(), @@ -140,7 +140,8 @@ impl Runtime { process_hashes: HashMap::new(), is_utxo: HashMap::new(), allocated_processes: HashSet::new(), - call_stack: Vec::new(), + parent_of: HashMap::new(), + on_yield: HashMap::new(), must_burn: HashSet::new(), n_new: 0, n_coord: 1, @@ -160,20 +161,30 @@ impl Runtime { let target = ProcessId(target as usize); let val = Ref(val); let ret = WitEffectOutput::Thunk; - let id_prev = caller.data().prev_id; caller .data_mut() .pending_activation .insert(target, (val, current_pid)); + let was_on_yield = caller + .data() + .on_yield + .get(&target) + .copied() + .unwrap_or(true); + if was_on_yield { + caller.data_mut().parent_of.insert(target, current_pid); + caller.data_mut().on_yield.insert(target, false); + } + suspend_with_effect( &mut caller, WitLedgerEffect::Resume { target, val, ret, - id_prev: WitEffectOutput::Resolved(id_prev), + caller: WitEffectOutput::Thunk, }, ) }, @@ -187,13 +198,15 @@ impl Runtime { |mut caller: Caller<'_, RuntimeState>, val: u64| -> Result<(u64, u64), wasmi::Error> { - let id_prev = caller.data().prev_id; + let current_pid = caller.data().current_process; + let parent = caller.data().parent_of.get(¤t_pid).copied(); + caller.data_mut().on_yield.insert(current_pid, true); suspend_with_effect( &mut caller, WitLedgerEffect::Yield { val: Ref(val), ret: WitEffectOutput::Thunk, - id_prev: WitEffectOutput::Resolved(id_prev), + caller: WitEffectOutput::Resolved(parent), }, ) }, @@ -870,7 +883,6 @@ impl UnprovenTransaction { .allocated_processes .insert(current_pid); - let mut prev_id = None; runtime.store.data_mut().current_process = current_pid; // Initial argument? 0? @@ -878,7 +890,6 @@ impl UnprovenTransaction { loop { runtime.store.data_mut().current_process = current_pid; - runtime.store.data_mut().prev_id = prev_id; let result = if let Some(continuation) = resumables.remove(¤t_pid) { let n_results = { @@ -892,17 +903,14 @@ impl UnprovenTransaction { if let Some(trace) = traces.get_mut(¤t_pid) { if let Some(last) = trace.last_mut() { match last { - WitLedgerEffect::Resume { ret, id_prev, .. } => { + WitLedgerEffect::Resume { ret, caller, .. } => { *ret = WitEffectOutput::Resolved(Ref(next_args[0])); - *id_prev = WitEffectOutput::Resolved(Some(ProcessId( + *caller = WitEffectOutput::Resolved(Some(ProcessId( next_args[1] as usize, ))); } - WitLedgerEffect::Yield { ret, id_prev, .. } => { + WitLedgerEffect::Yield { ret, .. } => { *ret = WitEffectOutput::Resolved(Ref(next_args[0])); - *id_prev = WitEffectOutput::Resolved(Some(ProcessId( - next_args[1] as usize, - ))); } _ => {} } @@ -946,30 +954,26 @@ impl UnprovenTransaction { match last_effect { WitLedgerEffect::Resume { target, val, .. } => { - runtime.store.data_mut().call_stack.push(current_pid); - prev_id = Some(current_pid); next_args = [val.0, current_pid.0 as u64, 0, 0, 0]; current_pid = target; } WitLedgerEffect::Yield { val, .. } => { - let caller = runtime + let caller = *runtime .store - .data_mut() - .call_stack - .pop() - .expect("yield on empty stack"); - prev_id = Some(current_pid); + .data() + .parent_of + .get(¤t_pid) + .expect("yield on missing parent"); next_args = [val.0, current_pid.0 as u64, 0, 0, 0]; current_pid = caller; } WitLedgerEffect::Burn { .. } => { - let caller = runtime + let caller = *runtime .store - .data_mut() - .call_stack - .pop() - .expect("burn on empty stack"); - prev_id = Some(current_pid); + .data() + .parent_of + .get(¤t_pid) + .expect("burn on missing parent"); next_args = [0; 5]; current_pid = caller; } diff --git a/interleaving/starstream-runtime/tests/wrapper_coord_test.rs b/interleaving/starstream-runtime/tests/wrapper_coord_test.rs new file mode 100644 index 00000000..2e087af1 --- /dev/null +++ b/interleaving/starstream-runtime/tests/wrapper_coord_test.rs @@ -0,0 +1,260 @@ +#[macro_use] +pub mod wasm_dsl; + +use sha2::{Digest, Sha256}; +use starstream_interleaving_spec::Ledger; +use starstream_runtime::UnprovenTransaction; + +#[test] +fn test_runtime_wrapper_coord_newcoord_handlers() { + // Interface id = (1,2,3,4) + // + // Protocol (request ref, size=1): + // word0 = disc + // word1 = arg1 (cell_ref) + // word2 = arg2 (value) + // + // discs: + // 1 = new_cell + // 2 = write(cell_ref, value) + // 3 = read(cell_ref) + // 4 = end + + let utxo1_bin = wasm_module!({ + let (init_ref, _caller) = call activation(); + let (cell_ref, _b, _c, _d) = call ref_get(init_ref, 0); + + let handler_id = call get_handler_for(1, 2, 3, 4); + + let req = call new_ref(1); + call ref_push(2, cell_ref, 42, 0); + + let (_resp, _caller2) = call resume(handler_id, req); + + let (_req2, _caller3) = call yield_(init_ref); + }); + + let utxo2_bin = wasm_module!({ + let (init_ref, _caller) = call activation(); + let (cell_ref, _b, _c, _d) = call ref_get(init_ref, 0); + + let handler_id = call get_handler_for(1, 2, 3, 4); + + let req = call new_ref(1); + call ref_push(3, cell_ref, 0, 0); + + let (resp, _caller2) = call resume(handler_id, req); + let (val, _b2, _c2, _d2) = call ref_get(resp, 0); + assert_eq val, 42; + + let (_req2, _caller3) = call yield_(init_ref); + }); + + let (utxo1_hash_limb_a, utxo1_hash_limb_b, utxo1_hash_limb_c, utxo1_hash_limb_d) = + hash_program(&utxo1_bin); + let (utxo2_hash_limb_a, utxo2_hash_limb_b, utxo2_hash_limb_c, utxo2_hash_limb_d) = + hash_program(&utxo2_bin); + + let inner_coord_bin = wasm_module!({ + let (init_ref, _caller) = call init(); + let (utxo1_id, utxo2_id, _c, _d) = call ref_get(init_ref, 0); + + let handler_id = call get_handler_for(1, 2, 3, 4); + + // new_cell + let req_new = call new_ref(1); + call ref_push(1, 0, 0, 0); + let (resp_new, _caller2) = call resume(handler_id, req_new); + let (cell_ref, _b2, _c2, _d2) = call ref_get(resp_new, 0); + + let cell_init = call new_ref(1); + call ref_push(cell_ref, 0, 0, 0); + + // utxo1 writes 42 + let (_ret1, _caller3) = call resume(utxo1_id, cell_init); + + // utxo2 reads 42 + let (_ret2, _caller4) = call resume(utxo2_id, cell_init); + + // end + let req_end = call new_ref(1); + call ref_push(4, 0, 0, 0); + let (_resp_end, _caller5) = call resume(handler_id, req_end); + + let (_ret_end, _caller_end) = call yield_(init_ref); + }); + + let (inner_hash_limb_a, inner_hash_limb_b, inner_hash_limb_c, inner_hash_limb_d) = + hash_program(&inner_coord_bin); + + let wrapper_coord_bin = wasm_module!({ + let (init_ref, _caller) = call init(); + let (utxo1_id, utxo2_id, _c, _d) = call ref_get(init_ref, 0); + + let inner_init = call new_ref(1); + call ref_push(utxo1_id, utxo2_id, 0, 0); + + let inner_id = call new_coord( + const(inner_hash_limb_a), + const(inner_hash_limb_b), + const(inner_hash_limb_c), + const(inner_hash_limb_d), + inner_init + ); + + call install_handler(1, 2, 3, 4); + + let (req0, caller0) = call resume(inner_id, inner_init); + let req = req0; + let caller = caller0; + let handled = const(0); + + loop { + set handled = const(0); + let (disc, cell_ref, value, _d2) = call ref_get(req, 0); + + if disc == 4 { + let resp = call new_ref(1); + call ref_push(1, 0, 0, 0); + let (_req_next, _caller_next) = call resume(caller, resp); + set handled = const(2); + } + + if disc == 1 { + let cell = call new_ref(1); + call ref_push(0, 0, 0, 0); + + let resp = call new_ref(1); + call ref_push(cell, 0, 0, 0); + + let (req_next, caller_next) = call resume(caller, resp); + set req = req_next; + set caller = caller_next; + set handled = const(1); + } + + if disc == 2 { + call ref_write(cell_ref, 0, value, 0, 0, 0); + let resp = call new_ref(1); + call ref_push(1, 0, 0, 0); + let (req_next, caller_next) = call resume(caller, resp); + set req = req_next; + set caller = caller_next; + set handled = const(1); + } + + // disc == 3 (read) + if handled == 0 { + let (val, _b3, _c3, _d3) = call ref_get(cell_ref, 0); + let resp = call new_ref(1); + call ref_push(val, 0, 0, 0); + let (req_next, caller_next) = call resume(caller, resp); + set req = req_next; + set caller = caller_next; + set handled = const(1); + } + + break_if handled == 2; + continue_if handled == 1; + } + + call uninstall_handler(1, 2, 3, 4); + }); + + print_wat("wrapper", &wrapper_coord_bin); + + let (wrapper_hash_limb_a, wrapper_hash_limb_b, wrapper_hash_limb_c, wrapper_hash_limb_d) = + hash_program(&wrapper_coord_bin); + + // Patch wrapper hash constants into driver. + let driver_coord_bin = wasm_module!({ + let init_val = call new_ref(1); + call ref_push(0, 0, 0, 0); + + let utxo1_id = call new_utxo( + const(utxo1_hash_limb_a), + const(utxo1_hash_limb_b), + const(utxo1_hash_limb_c), + const(utxo1_hash_limb_d), + init_val + ); + + let utxo2_id = call new_utxo( + const(utxo2_hash_limb_a), + const(utxo2_hash_limb_b), + const(utxo2_hash_limb_c), + const(utxo2_hash_limb_d), + init_val + ); + + let wrapper_init = call new_ref(1); + call ref_push(utxo1_id, utxo2_id, 0, 0); + + let wrapper_id = call new_coord( + const(wrapper_hash_limb_a), + const(wrapper_hash_limb_b), + const(wrapper_hash_limb_c), + const(wrapper_hash_limb_d), + wrapper_init + ); + + let (_ret, _caller) = call resume(wrapper_id, wrapper_init); + }); + + let programs = vec![ + utxo1_bin.clone(), + utxo2_bin.clone(), + inner_coord_bin.clone(), + wrapper_coord_bin.clone(), + driver_coord_bin.clone(), + ]; + + let tx = UnprovenTransaction { + inputs: vec![], + programs, + is_utxo: vec![true, true, false, false, false], + entrypoint: 4, + }; + + let proven_tx = match tx.prove() { + Ok(tx) => tx, + Err(err) => { + if std::env::var_os("DEBUG_TRACE").is_some() { + eprintln!("prove failed: {err:?}"); + } + panic!("{err:?}"); + } + }; + let ledger = Ledger::new(); + let ledger = ledger.apply_transaction(&proven_tx).unwrap(); + assert_eq!(ledger.utxos.len(), 2); +} + +fn hash_program(utxo_bin: &Vec) -> (i64, i64, i64, i64) { + let mut hasher = Sha256::new(); + hasher.update(utxo_bin); + let utxo_hash_bytes = hasher.finalize(); + + let utxo_hash_limb_a = i64::from_le_bytes(utxo_hash_bytes[0..8].try_into().unwrap()); + let utxo_hash_limb_b = i64::from_le_bytes(utxo_hash_bytes[8..8 * 2].try_into().unwrap()); + let utxo_hash_limb_c = i64::from_le_bytes(utxo_hash_bytes[8 * 2..8 * 3].try_into().unwrap()); + let utxo_hash_limb_d = i64::from_le_bytes(utxo_hash_bytes[8 * 3..8 * 4].try_into().unwrap()); + + ( + utxo_hash_limb_a, + utxo_hash_limb_b, + utxo_hash_limb_c, + utxo_hash_limb_d, + ) +} + +fn print_wat(name: &str, wasm: &[u8]) { + if std::env::var_os("DEBUG_WAT").is_none() { + return; + } + + match wasmprinter::print_bytes(wasm) { + Ok(wat) => eprintln!("--- WAT: {name} ---\n{wat}"), + Err(err) => eprintln!("--- WAT: {name} (failed: {err}) ---"), + } +} From f9a8d0bbde12e3e5bc795f63e72673fa307914b7 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Sat, 7 Feb 2026 22:14:58 -0300 Subject: [PATCH 130/152] runtime+circuit: fix Init caller constraint and improve mermaid flow chart Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .../src/circuit.rs | 19 +- .../src/coroutine_args_gadget.rs | 4 +- .../src/memory_tags.rs | 3 + .../starstream-interleaving-proof/src/neo.rs | 2 +- .../src/program_state.rs | 17 + .../src/switchboard.rs | 2 + .../EFFECTS_REFERENCE.md | 7 +- interleaving/starstream-runtime/src/lib.rs | 42 ++- .../starstream-runtime/src/trace_mermaid.rs | 305 ++++++++++++++++++ .../tests/wrapper_coord_test.rs | 57 ++-- 10 files changed, 410 insertions(+), 48 deletions(-) create mode 100644 interleaving/starstream-runtime/src/trace_mermaid.rs diff --git a/interleaving/starstream-interleaving-proof/src/circuit.rs b/interleaving/starstream-interleaving-proof/src/circuit.rs index 027ca684..eff6504a 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit.rs @@ -515,6 +515,7 @@ impl LedgerOperation { config.mem_switches_target.initialized = true; config.mem_switches_target.init = true; + config.mem_switches_target.init_caller = true; config.mem_switches_target.counters = true; config.mem_switches_target.expected_input = true; config.mem_switches_target.expected_resumer = true; @@ -530,6 +531,7 @@ impl LedgerOperation { config.mem_switches_target.initialized = true; config.mem_switches_target.init = true; + config.mem_switches_target.init_caller = true; config.mem_switches_target.counters = true; config.mem_switches_target.expected_input = true; config.mem_switches_target.expected_resumer = true; @@ -549,6 +551,7 @@ impl LedgerOperation { config.execution_switches.init = true; config.mem_switches_curr.init = true; + config.mem_switches_curr.init_caller = true; } LedgerOperation::Bind { .. } => { config.execution_switches.bind = true; @@ -697,6 +700,7 @@ impl LedgerOperation { // The new process (target) is initialized. target_write.initialized = true; target_write.init = *val; + target_write.init_caller = curr_id; target_write.counters = F::ZERO; target_write.expected_input = OptionalF::none(); target_write.expected_resumer = OptionalF::none(); @@ -910,6 +914,13 @@ impl> StepCircuitBuilder { }, vec![F::from(0u64)], // None ); + mb.init( + Address { + addr: pid as u64, + tag: MemoryTag::InitCaller.into(), + }, + vec![F::from(0u64)], + ); for offset in 0..4 { let addr = (pid * 4) + offset; @@ -1608,7 +1619,7 @@ impl> StepCircuitBuilder { switch, &wires.curr_read_wires.init, &wires.arg(ArgName::Val), - &wires.id_prev_value()?, + &wires.curr_read_wires.init_caller, &wires.arg(ArgName::Caller), )?; @@ -1886,6 +1897,12 @@ fn register_memory_segments>(mb: &mut M) { "RAM_ACTIVATION", ); mb.register_mem(MemoryTag::Init.into(), 1, MemType::Ram, "RAM_INIT"); + mb.register_mem( + MemoryTag::InitCaller.into(), + 1, + MemType::Ram, + "RAM_INIT_CALLER", + ); mb.register_mem(MemoryTag::Counters.into(), 1, MemType::Ram, "RAM_COUNTERS"); mb.register_mem( MemoryTag::Initialized.into(), diff --git a/interleaving/starstream-interleaving-proof/src/coroutine_args_gadget.rs b/interleaving/starstream-interleaving-proof/src/coroutine_args_gadget.rs index dc2d0a1a..63e11a9f 100644 --- a/interleaving/starstream-interleaving-proof/src/coroutine_args_gadget.rs +++ b/interleaving/starstream-interleaving-proof/src/coroutine_args_gadget.rs @@ -31,10 +31,10 @@ pub fn check_init( switch: &Boolean, init: &FpVar, arg_val: &FpVar, - expected_caller: &FpVar, + init_caller: &FpVar, arg_caller: &FpVar, ) -> Result<(), SynthesisError> { init.conditional_enforce_equal(arg_val, switch)?; - expected_caller.conditional_enforce_equal(arg_caller, switch)?; + init_caller.conditional_enforce_equal(arg_caller, switch)?; Ok(()) } diff --git a/interleaving/starstream-interleaving-proof/src/memory_tags.rs b/interleaving/starstream-interleaving-proof/src/memory_tags.rs index 8db29fce..cc9bbe40 100644 --- a/interleaving/starstream-interleaving-proof/src/memory_tags.rs +++ b/interleaving/starstream-interleaving-proof/src/memory_tags.rs @@ -29,6 +29,7 @@ pub enum MemoryTag { ExpectedResumer = 19, OnYield = 20, YieldTo = 21, + InitCaller = 22, } impl From for u64 { @@ -57,6 +58,7 @@ pub enum ProgramStateTag { YieldTo, Activation, Init, + InitCaller, Counters, Initialized, Finalized, @@ -73,6 +75,7 @@ impl From for MemoryTag { ProgramStateTag::YieldTo => MemoryTag::YieldTo, ProgramStateTag::Activation => MemoryTag::Activation, ProgramStateTag::Init => MemoryTag::Init, + ProgramStateTag::InitCaller => MemoryTag::InitCaller, ProgramStateTag::Counters => MemoryTag::Counters, ProgramStateTag::Initialized => MemoryTag::Initialized, ProgramStateTag::Finalized => MemoryTag::Finalized, diff --git a/interleaving/starstream-interleaving-proof/src/neo.rs b/interleaving/starstream-interleaving-proof/src/neo.rs index 767eac12..d2d8f076 100644 --- a/interleaving/starstream-interleaving-proof/src/neo.rs +++ b/interleaving/starstream-interleaving-proof/src/neo.rs @@ -16,7 +16,7 @@ use std::collections::HashMap; // TODO: benchmark properly pub(crate) const CHUNK_SIZE: usize = 40; -const PER_STEP_COLS: usize = 1143; +const PER_STEP_COLS: usize = 1162; const BASE_INSTANCE_COLS: usize = 1; const EXTRA_INSTANCE_COLS: usize = IvcWireLayout::FIELD_COUNT * 2; const M_IN: usize = BASE_INSTANCE_COLS + EXTRA_INSTANCE_COLS; diff --git a/interleaving/starstream-interleaving-proof/src/program_state.rs b/interleaving/starstream-interleaving-proof/src/program_state.rs index b22af1cd..3f5282c9 100644 --- a/interleaving/starstream-interleaving-proof/src/program_state.rs +++ b/interleaving/starstream-interleaving-proof/src/program_state.rs @@ -19,6 +19,7 @@ pub struct ProgramState { pub yield_to: OptionalF, pub activation: F, pub init: F, + pub init_caller: F, pub counters: F, pub initialized: bool, pub finalized: bool, @@ -35,6 +36,7 @@ pub struct ProgramStateWires { pub yield_to: OptionalFpVar, pub activation: FpVar, pub init: FpVar, + pub init_caller: FpVar, pub counters: FpVar, pub initialized: Boolean, pub finalized: Boolean, @@ -49,6 +51,7 @@ struct RawProgramState { yield_to: V, activation: V, init: V, + init_caller: V, counters: V, initialized: V, finalized: V, @@ -67,6 +70,7 @@ fn program_state_read_ops( let on_yield = dsl.read(&switches.on_yield, MemoryTag::OnYield, addr)?; let yield_to = dsl.read(&switches.yield_to, MemoryTag::YieldTo, addr)?; let (activation, init) = coroutine_args_ops(dsl, &switches.activation, &switches.init, addr)?; + let init_caller = dsl.read(&switches.init_caller, MemoryTag::InitCaller, addr)?; let counters = dsl.read(&switches.counters, MemoryTag::Counters, addr)?; let initialized = dsl.read(&switches.initialized, MemoryTag::Initialized, addr)?; let finalized = dsl.read(&switches.finalized, MemoryTag::Finalized, addr)?; @@ -80,6 +84,7 @@ fn program_state_read_ops( yield_to, activation, init, + init_caller, counters, initialized, finalized, @@ -125,6 +130,12 @@ fn program_state_write_ops( &state.activation, )?; dsl.write(&switches.init, MemoryTag::Init, addr, &state.init)?; + dsl.write( + &switches.init_caller, + MemoryTag::InitCaller, + addr, + &state.init_caller, + )?; dsl.write( &switches.counters, MemoryTag::Counters, @@ -166,6 +177,7 @@ fn raw_from_state(state: &ProgramState) -> RawProgramState { yield_to: state.yield_to.encoded(), activation: state.activation, init: state.init, + init_caller: state.init_caller, counters: state.counters, initialized: F::from(state.initialized), finalized: F::from(state.finalized), @@ -182,6 +194,7 @@ fn raw_from_wires(state: &ProgramStateWires) -> RawProgramState> { yield_to: state.yield_to.encoded(), activation: state.activation.clone(), init: state.init.clone(), + init_caller: state.init_caller.clone(), counters: state.counters.clone(), initialized: state.initialized.clone().into(), finalized: state.finalized.clone().into(), @@ -208,6 +221,7 @@ impl ProgramStateWires { })?), activation: FpVar::new_witness(cs.clone(), || Ok(write_values.activation))?, init: FpVar::new_witness(cs.clone(), || Ok(write_values.init))?, + init_caller: FpVar::new_witness(cs.clone(), || Ok(write_values.init_caller))?, counters: FpVar::new_witness(cs.clone(), || Ok(write_values.counters))?, initialized: Boolean::new_witness(cs.clone(), || Ok(write_values.initialized))?, finalized: Boolean::new_witness(cs.clone(), || Ok(write_values.finalized))?, @@ -263,6 +277,7 @@ pub fn trace_program_state_reads>( yield_to: OptionalF::from_encoded(raw.yield_to), activation: raw.activation, init: raw.init, + init_caller: raw.init_caller, counters: raw.counters, initialized: raw.initialized == F::ONE, finalized: raw.finalized == F::ONE, @@ -287,6 +302,7 @@ pub fn program_state_read_wires>( yield_to: OptionalFpVar::new(raw.yield_to), activation: raw.activation, init: raw.init, + init_caller: raw.init_caller, counters: raw.counters, initialized: raw.initialized.is_one()?, finalized: raw.finalized.is_one()?, @@ -305,6 +321,7 @@ impl ProgramState { yield_to: OptionalF::none(), activation: F::ZERO, init: F::ZERO, + init_caller: F::ZERO, counters: F::ZERO, initialized: false, did_burn: false, diff --git a/interleaving/starstream-interleaving-proof/src/switchboard.rs b/interleaving/starstream-interleaving-proof/src/switchboard.rs index 177730a0..f653dabc 100644 --- a/interleaving/starstream-interleaving-proof/src/switchboard.rs +++ b/interleaving/starstream-interleaving-proof/src/switchboard.rs @@ -27,6 +27,7 @@ pub struct MemSwitchboard { pub yield_to: B, pub activation: B, pub init: B, + pub init_caller: B, pub counters: B, pub initialized: B, pub finalized: B, @@ -85,6 +86,7 @@ impl MemSwitchboardWires { yield_to: Boolean::new_witness(cs.clone(), || Ok(switches.yield_to))?, activation: Boolean::new_witness(cs.clone(), || Ok(switches.activation))?, init: Boolean::new_witness(cs.clone(), || Ok(switches.init))?, + init_caller: Boolean::new_witness(cs.clone(), || Ok(switches.init_caller))?, counters: Boolean::new_witness(cs.clone(), || Ok(switches.counters))?, initialized: Boolean::new_witness(cs.clone(), || Ok(switches.initialized))?, finalized: Boolean::new_witness(cs.clone(), || Ok(switches.finalized))?, diff --git a/interleaving/starstream-interleaving-spec/EFFECTS_REFERENCE.md b/interleaving/starstream-interleaving-spec/EFFECTS_REFERENCE.md index 19372ae0..d18f3f0c 100644 --- a/interleaving/starstream-interleaving-spec/EFFECTS_REFERENCE.md +++ b/interleaving/starstream-interleaving-spec/EFFECTS_REFERENCE.md @@ -153,13 +153,18 @@ Rule: Activation ## Init +TODO: init should probably only be callable in the tx that creates the utxo +(otherwise we'd need to explicitly store the input in the ledger, even if it's +never used again). + Rule: Init =========== op = Init() -> (val, caller) 1. init[id_curr] == Some(val, caller) + 2. caller is the creator (the process that executed NewUtxo/NewCoord for this id) - 2. let t = CC[id_curr] in + 3. let t = CC[id_curr] in let c = counters[id_curr] in t[c] == diff --git a/interleaving/starstream-runtime/src/lib.rs b/interleaving/starstream-runtime/src/lib.rs index 9fe88ac3..00e63960 100644 --- a/interleaving/starstream-runtime/src/lib.rs +++ b/interleaving/starstream-runtime/src/lib.rs @@ -6,12 +6,13 @@ use starstream_interleaving_spec::{ Value, WasmModule, WitEffectOutput, WitLedgerEffect, builder::TransactionBuilder, }; use std::collections::{HashMap, HashSet}; -use std::path::PathBuf; use wasmi::{ Caller, Config, Engine, Linker, Memory, Store, TypedResumableCall, TypedResumableCallHostTrap, Val, errors::HostError, }; +mod trace_mermaid; + #[derive(thiserror::Error, Debug)] pub enum Error { #[error("invalid proof: {0}")] @@ -89,6 +90,7 @@ pub struct UnprovenTransaction { pub struct RuntimeState { pub traces: HashMap>, + pub interleaving: Vec<(ProcessId, WitLedgerEffect)>, pub current_process: ProcessId, pub memories: HashMap, @@ -105,7 +107,7 @@ pub struct RuntimeState { pub process_hashes: HashMap>, pub is_utxo: HashMap, pub allocated_processes: HashSet, - pub parent_of: HashMap, + pub yield_to: HashMap, pub on_yield: HashMap, pub must_burn: HashSet, @@ -127,6 +129,7 @@ impl Runtime { let state = RuntimeState { traces: HashMap::new(), + interleaving: Vec::new(), current_process: ProcessId(0), memories: HashMap::new(), handler_stack: HashMap::new(), @@ -140,7 +143,7 @@ impl Runtime { process_hashes: HashMap::new(), is_utxo: HashMap::new(), allocated_processes: HashSet::new(), - parent_of: HashMap::new(), + yield_to: HashMap::new(), on_yield: HashMap::new(), must_burn: HashSet::new(), n_new: 0, @@ -167,14 +170,9 @@ impl Runtime { .pending_activation .insert(target, (val, current_pid)); - let was_on_yield = caller - .data() - .on_yield - .get(&target) - .copied() - .unwrap_or(true); + let was_on_yield = caller.data().on_yield.get(&target).copied().unwrap_or(true); if was_on_yield { - caller.data_mut().parent_of.insert(target, current_pid); + caller.data_mut().yield_to.insert(target, current_pid); caller.data_mut().on_yield.insert(target, false); } @@ -199,14 +197,13 @@ impl Runtime { val: u64| -> Result<(u64, u64), wasmi::Error> { let current_pid = caller.data().current_process; - let parent = caller.data().parent_of.get(¤t_pid).copied(); caller.data_mut().on_yield.insert(current_pid, true); suspend_with_effect( &mut caller, WitLedgerEffect::Yield { val: Ref(val), ret: WitEffectOutput::Thunk, - caller: WitEffectOutput::Resolved(parent), + caller: WitEffectOutput::Thunk, }, ) }, @@ -715,6 +712,8 @@ impl UnprovenTransaction { let proof = starstream_interleaving_proof::prove(instance.clone(), witness.clone()) .map_err(|e| Error::RuntimeError(e.to_string()))?; + trace_mermaid::emit_trace_mermaid(&instance, &state); + let mut builder = TransactionBuilder::new(); builder = builder.with_entrypoint(self.entrypoint); @@ -909,8 +908,11 @@ impl UnprovenTransaction { next_args[1] as usize, ))); } - WitLedgerEffect::Yield { ret, .. } => { + WitLedgerEffect::Yield { ret, caller, .. } => { *ret = WitEffectOutput::Resolved(Ref(next_args[0])); + *caller = WitEffectOutput::Resolved(Some(ProcessId( + next_args[1] as usize, + ))); } _ => {} } @@ -950,6 +952,12 @@ impl UnprovenTransaction { trace.last().expect("trace not empty after suspend").clone() }; + runtime + .store + .data_mut() + .interleaving + .push((current_pid, last_effect.clone())); + resumables.insert(current_pid, invocation); match last_effect { @@ -961,9 +969,9 @@ impl UnprovenTransaction { let caller = *runtime .store .data() - .parent_of + .yield_to .get(¤t_pid) - .expect("yield on missing parent"); + .expect("yield on missing yield_to"); next_args = [val.0, current_pid.0 as u64, 0, 0, 0]; current_pid = caller; } @@ -971,9 +979,9 @@ impl UnprovenTransaction { let caller = *runtime .store .data() - .parent_of + .yield_to .get(¤t_pid) - .expect("burn on missing parent"); + .expect("burn on missing yield_to"); next_args = [0; 5]; current_pid = caller; } diff --git a/interleaving/starstream-runtime/src/trace_mermaid.rs b/interleaving/starstream-runtime/src/trace_mermaid.rs new file mode 100644 index 00000000..556efcf0 --- /dev/null +++ b/interleaving/starstream-runtime/src/trace_mermaid.rs @@ -0,0 +1,305 @@ +use crate::RuntimeState; +use starstream_interleaving_spec::{ + InterleavingInstance, ProcessId, REF_PUSH_WIDTH, REF_WRITE_WIDTH, Ref, Value, WitEffectOutput, + WitLedgerEffect, +}; +use std::collections::HashMap; +use std::path::PathBuf; +use std::process::{Command, Stdio}; +use std::{env, fs, time}; + +#[derive(Clone, Copy, Debug, PartialEq, Eq)] +enum DecodeMode { + None, + ResponseOnly, + RequestAndResponse, +} + +pub fn emit_trace_mermaid(instance: &InterleavingInstance, state: &RuntimeState) { + if env::var("STARSTREAM_RUNTIME_TRACE_MERMAID") + .ok() + .filter(|v| v != "0") + .is_none() + { + return; + } + + if state.interleaving.is_empty() { + return; + } + + let labels = build_process_labels(&instance.is_utxo); + let mut out = String::new(); + out.push_str("sequenceDiagram\n"); + for label in &labels { + out.push_str(&format!(" participant {label}\n")); + } + + let mut ref_store: HashMap> = HashMap::new(); + let mut ref_state: HashMap = HashMap::new(); + let mut handler_targets: HashMap = HashMap::new(); + + for (idx, (pid, effect)) in state.interleaving.iter().enumerate() { + if let Some(line) = format_edge_line( + idx, + &labels, + &instance.is_utxo, + *pid, + effect, + &ref_store, + &handler_targets, + &state.interleaving, + ) { + out.push_str(" "); + out.push_str(&line); + out.push('\n'); + } + + apply_ref_mutations(*pid, effect, &mut ref_store, &mut ref_state); + update_handler_targets(*pid, effect, &mut handler_targets); + } + + let ts = time::SystemTime::now() + .duration_since(time::UNIX_EPOCH) + .unwrap_or_default() + .as_millis(); + let mmd_path = env::temp_dir().join(format!("starstream_trace_{ts}.mmd")); + if let Err(err) = fs::write(&mmd_path, out) { + eprintln!("mermaid: failed to write {}: {err}", mmd_path.display()); + return; + } + + let svg_path = PathBuf::from(mmd_path.with_extension("svg")); + if mmdc_available() { + let puppeteer_config_path = env::temp_dir().join(format!("starstream_mmdc_{ts}.json")); + let puppeteer_config = r#"{"args":["--no-sandbox","--disable-setuid-sandbox"]}"#; + let _ = fs::write(&puppeteer_config_path, puppeteer_config); + + match Command::new("mmdc") + .arg("-p") + .arg(&puppeteer_config_path) + .arg("-i") + .arg(&mmd_path) + .arg("-o") + .arg(&svg_path) + .stdout(Stdio::null()) + .stderr(Stdio::null()) + .status() + { + Ok(status) if status.success() => { + println!("mermaid svg: {}", svg_path.display()); + return; + } + Ok(status) => { + eprintln!( + "mermaid: mmdc failed (exit={})", + status.code().unwrap_or(-1) + ); + } + Err(err) => { + eprintln!("mermaid: failed to run mmdc: {err}"); + } + } + } + + println!("mermaid mmd: {}", mmd_path.display()); +} + +fn mmdc_available() -> bool { + Command::new("mmdc") + .arg("--version") + .output() + .map(|o| o.status.success()) + .unwrap_or(false) +} + +fn build_process_labels(is_utxo: &[bool]) -> Vec { + let mut labels = Vec::with_capacity(is_utxo.len()); + let mut utxo_idx = 0usize; + let mut coord_idx = 0usize; + for (_pid, is_u) in is_utxo.iter().enumerate() { + if *is_u { + labels.push(format!("utxo{utxo_idx}")); + utxo_idx += 1; + } else { + labels.push(format!("coord{coord_idx}")); + coord_idx += 1; + } + } + labels +} + +fn format_edge_line( + idx: usize, + labels: &[String], + is_utxo: &[bool], + pid: ProcessId, + effect: &WitLedgerEffect, + ref_store: &HashMap>, + handler_targets: &HashMap, + interleaving: &[(ProcessId, WitLedgerEffect)], +) -> Option { + let from = labels.get(pid.0)?; + match effect { + WitLedgerEffect::Resume { target, val, .. } => { + let decode_mode = if handler_targets.get(&pid) == Some(target) { + DecodeMode::RequestAndResponse + } else if handler_targets.get(target) == Some(&pid) { + DecodeMode::ResponseOnly + } else if is_utxo.get(target.0).copied().unwrap_or(false) { + DecodeMode::ResponseOnly + } else { + DecodeMode::None + }; + let label = format!( + "resume
{}", + format_ref_with_value(ref_store, *val, decode_mode) + ); + let to = labels.get(target.0)?; + Some(format!("{from} ->> {to}: {label}")) + } + WitLedgerEffect::Yield { val, .. } => { + let next_pid = interleaving.get(idx + 1).map(|(p, _)| *p)?; + let label = format!( + "yield
{}", + format_ref_with_value(ref_store, *val, DecodeMode::None) + ); + let to = labels.get(next_pid.0)?; + Some(format!("{from} -->> {to}: {label}")) + } + WitLedgerEffect::NewUtxo { val, id, .. } => { + let WitEffectOutput::Resolved(pid) = id else { + return None; + }; + let created = labels.get(pid.0)?; + let label = format!("new_utxo
{}", format_ref_with_values(ref_store, *val)); + Some(format!("{from} ->> {created}: {label}")) + } + WitLedgerEffect::NewCoord { val, id, .. } => { + let WitEffectOutput::Resolved(pid) = id else { + return None; + }; + let created = labels.get(pid.0)?; + let label = format!("new_coord
{}", format_ref_with_values(ref_store, *val)); + Some(format!("{from} ->> {created}: {label}")) + } + _ => None, + } +} + +fn format_ref_with_value( + ref_store: &HashMap>, + reff: Ref, + decode_mode: DecodeMode, +) -> String { + let mut out = format!("ref={}", reff.0); + if decode_mode == DecodeMode::None { + return out; + } + if let Some(values) = ref_store.get(&reff) { + if let Some(extra) = decode_cell_protocol(values, decode_mode) { + out.push(' '); + out.push('['); + out.push_str(&extra); + out.push(']'); + } + } + out +} + +fn format_ref_with_values(ref_store: &HashMap>, reff: Ref) -> String { + let mut out = format!("ref={}", reff.0); + if let Some(values) = ref_store.get(&reff) { + let v0 = values.get(0).map(|v| v.0).unwrap_or(0); + let v1 = values.get(1).map(|v| v.0).unwrap_or(0); + let v2 = values.get(2).map(|v| v.0).unwrap_or(0); + let v3 = values.get(3).map(|v| v.0).unwrap_or(0); + out.push(' '); + out.push('['); + out.push_str(&format!("vals={v0},{v1},{v2},{v3}")); + out.push(']'); + } + out +} + +fn decode_cell_protocol(values: &[Value], decode_mode: DecodeMode) -> Option { + let disc = values.get(0)?.0; + let v1 = values.get(1).map(|v| v.0).unwrap_or(0); + let v2 = values.get(2).map(|v| v.0).unwrap_or(0); + let is_request = matches!(disc, 1 | 2 | 3 | 4); + let is_response = matches!(disc, 10 | 11 | 12 | 13); + if is_request && decode_mode == DecodeMode::ResponseOnly { + return None; + } + if decode_mode == DecodeMode::RequestAndResponse + || (decode_mode == DecodeMode::ResponseOnly && is_response) + { + let label = match disc { + 1 => "disc=new_cell".to_string(), + 2 => format!("disc=write cell={v1} value={v2}"), + 3 => format!("disc=read cell={v1}"), + 4 => "disc=end".to_string(), + 10 => "disc=ack".to_string(), + 11 => format!("disc=new_cell_resp cell={v1}"), + 12 => format!("disc=read_resp value={v1}"), + 13 => "disc=end_ack".to_string(), + _ => return None, + }; + return Some(label); + } + None +} + +fn apply_ref_mutations( + pid: ProcessId, + effect: &WitLedgerEffect, + ref_store: &mut HashMap>, + ref_state: &mut HashMap, +) { + match effect { + WitLedgerEffect::NewRef { size, ret } => { + if let WitEffectOutput::Resolved(ref_id) = ret { + let size_words = *size; + let size_elems = size_words * REF_PUSH_WIDTH; + ref_store.insert(*ref_id, vec![Value(0); size_elems]); + ref_state.insert(pid, (*ref_id, 0, size_words)); + } + } + WitLedgerEffect::RefPush { vals } => { + if let Some((ref_id, offset, _size_words)) = ref_state.get_mut(&pid) { + if let Some(store) = ref_store.get_mut(ref_id) { + let elem_offset = *offset; + for (i, val) in vals.iter().enumerate() { + if let Some(pos) = store.get_mut(elem_offset + i) { + *pos = *val; + } + } + *offset = elem_offset + REF_PUSH_WIDTH; + } + } + } + WitLedgerEffect::RefWrite { reff, offset, vals } => { + if let Some(store) = ref_store.get_mut(reff) { + let elem_offset = offset * REF_WRITE_WIDTH; + for (i, val) in vals.iter().enumerate() { + if let Some(slot) = store.get_mut(elem_offset + i) { + *slot = *val; + } + } + } + } + _ => {} + } +} + +fn update_handler_targets( + pid: ProcessId, + effect: &WitLedgerEffect, + handler_targets: &mut HashMap, +) { + if let WitLedgerEffect::GetHandlerFor { handler_id, .. } = effect { + if let WitEffectOutput::Resolved(handler_id) = handler_id { + handler_targets.insert(pid, *handler_id); + } + } +} diff --git a/interleaving/starstream-runtime/tests/wrapper_coord_test.rs b/interleaving/starstream-runtime/tests/wrapper_coord_test.rs index 2e087af1..2718f6e5 100644 --- a/interleaving/starstream-runtime/tests/wrapper_coord_test.rs +++ b/interleaving/starstream-runtime/tests/wrapper_coord_test.rs @@ -14,11 +14,17 @@ fn test_runtime_wrapper_coord_newcoord_handlers() { // word1 = arg1 (cell_ref) // word2 = arg2 (value) // - // discs: + // request discs: // 1 = new_cell // 2 = write(cell_ref, value) // 3 = read(cell_ref) // 4 = end + // + // response discs: + // 10 = ack + // 11 = new_cell_resp(cell_ref) + // 12 = read_resp(value) + // 13 = end_ack let utxo1_bin = wasm_module!({ let (init_ref, _caller) = call activation(); @@ -44,7 +50,7 @@ fn test_runtime_wrapper_coord_newcoord_handlers() { call ref_push(3, cell_ref, 0, 0); let (resp, _caller2) = call resume(handler_id, req); - let (val, _b2, _c2, _d2) = call ref_get(resp, 0); + let (_disc, val, _c2, _d2) = call ref_get(resp, 0); assert_eq val, 42; let (_req2, _caller3) = call yield_(init_ref); @@ -65,7 +71,7 @@ fn test_runtime_wrapper_coord_newcoord_handlers() { let req_new = call new_ref(1); call ref_push(1, 0, 0, 0); let (resp_new, _caller2) = call resume(handler_id, req_new); - let (cell_ref, _b2, _c2, _d2) = call ref_get(resp_new, 0); + let (_disc, cell_ref, _c2, _d2) = call ref_get(resp_new, 0); let cell_init = call new_ref(1); call ref_push(cell_ref, 0, 0, 0); @@ -89,25 +95,17 @@ fn test_runtime_wrapper_coord_newcoord_handlers() { let wrapper_coord_bin = wasm_module!({ let (init_ref, _caller) = call init(); - let (utxo1_id, utxo2_id, _c, _d) = call ref_get(init_ref, 0); - - let inner_init = call new_ref(1); - call ref_push(utxo1_id, utxo2_id, 0, 0); - - let inner_id = call new_coord( - const(inner_hash_limb_a), - const(inner_hash_limb_b), - const(inner_hash_limb_c), - const(inner_hash_limb_d), - inner_init - ); + let (inner_id, inner_init, _c, _d) = call ref_get(init_ref, 0); call install_handler(1, 2, 3, 4); - let (req0, caller0) = call resume(inner_id, inner_init); + let (req0, caller0) = call resume(inner_id, 0); let req = req0; let caller = caller0; let handled = const(0); + let cell_val = const(0); + // Single-cell wrapper for this test: ignore cell_ref and return a fixed cell id. + let cell_id = const(1); loop { set handled = const(0); @@ -115,17 +113,14 @@ fn test_runtime_wrapper_coord_newcoord_handlers() { if disc == 4 { let resp = call new_ref(1); - call ref_push(1, 0, 0, 0); + call ref_push(13, 0, 0, 0); let (_req_next, _caller_next) = call resume(caller, resp); set handled = const(2); } if disc == 1 { - let cell = call new_ref(1); - call ref_push(0, 0, 0, 0); - let resp = call new_ref(1); - call ref_push(cell, 0, 0, 0); + call ref_push(11, cell_id, 0, 0); let (req_next, caller_next) = call resume(caller, resp); set req = req_next; @@ -134,9 +129,9 @@ fn test_runtime_wrapper_coord_newcoord_handlers() { } if disc == 2 { - call ref_write(cell_ref, 0, value, 0, 0, 0); + set cell_val = value; let resp = call new_ref(1); - call ref_push(1, 0, 0, 0); + call ref_push(10, 0, 0, 0); let (req_next, caller_next) = call resume(caller, resp); set req = req_next; set caller = caller_next; @@ -145,9 +140,8 @@ fn test_runtime_wrapper_coord_newcoord_handlers() { // disc == 3 (read) if handled == 0 { - let (val, _b3, _c3, _d3) = call ref_get(cell_ref, 0); let resp = call new_ref(1); - call ref_push(val, 0, 0, 0); + call ref_push(12, cell_val, 0, 0); let (req_next, caller_next) = call resume(caller, resp); set req = req_next; set caller = caller_next; @@ -187,9 +181,20 @@ fn test_runtime_wrapper_coord_newcoord_handlers() { init_val ); - let wrapper_init = call new_ref(1); + let inner_init = call new_ref(1); call ref_push(utxo1_id, utxo2_id, 0, 0); + let inner_id = call new_coord( + const(inner_hash_limb_a), + const(inner_hash_limb_b), + const(inner_hash_limb_c), + const(inner_hash_limb_d), + inner_init + ); + + let wrapper_init = call new_ref(1); + call ref_push(inner_id, inner_init, 0, 0); + let wrapper_id = call new_coord( const(wrapper_hash_limb_a), const(wrapper_hash_limb_b), From f141fe245e5f37d3f584c564288d3829624aba5b Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Sat, 7 Feb 2026 23:34:45 -0300 Subject: [PATCH 131/152] add mermaid-chart debug labels for the other integration tests Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- interleaving/starstream-runtime/src/lib.rs | 1 + .../starstream-runtime/src/trace_mermaid.rs | 99 ++++++++------- .../starstream-runtime/tests/integration.rs | 28 ++++- .../tests/wrapper_coord_test.rs | 113 ++++++++++++++---- 4 files changed, 175 insertions(+), 66 deletions(-) diff --git a/interleaving/starstream-runtime/src/lib.rs b/interleaving/starstream-runtime/src/lib.rs index 00e63960..229aa9aa 100644 --- a/interleaving/starstream-runtime/src/lib.rs +++ b/interleaving/starstream-runtime/src/lib.rs @@ -12,6 +12,7 @@ use wasmi::{ }; mod trace_mermaid; +pub use trace_mermaid::register_mermaid_decoder; #[derive(thiserror::Error, Debug)] pub enum Error { diff --git a/interleaving/starstream-runtime/src/trace_mermaid.rs b/interleaving/starstream-runtime/src/trace_mermaid.rs index 556efcf0..b3fede74 100644 --- a/interleaving/starstream-runtime/src/trace_mermaid.rs +++ b/interleaving/starstream-runtime/src/trace_mermaid.rs @@ -1,11 +1,12 @@ use crate::RuntimeState; use starstream_interleaving_spec::{ - InterleavingInstance, ProcessId, REF_PUSH_WIDTH, REF_WRITE_WIDTH, Ref, Value, WitEffectOutput, - WitLedgerEffect, + InterfaceId, InterleavingInstance, ProcessId, REF_PUSH_WIDTH, REF_WRITE_WIDTH, Ref, Value, + WitEffectOutput, WitLedgerEffect, }; use std::collections::HashMap; use std::path::PathBuf; use std::process::{Command, Stdio}; +use std::sync::{Arc, Mutex, OnceLock}; use std::{env, fs, time}; #[derive(Clone, Copy, Debug, PartialEq, Eq)] @@ -15,6 +16,19 @@ enum DecodeMode { RequestAndResponse, } +type MermaidDecoder = Arc Option + Send + Sync + 'static>; + +static MERMAID_DECODERS: OnceLock>> = OnceLock::new(); + +pub fn register_mermaid_decoder( + interface_id: InterfaceId, + decoder: impl Fn(&[Value]) -> Option + Send + Sync + 'static, +) { + let map = MERMAID_DECODERS.get_or_init(|| Mutex::new(HashMap::new())); + let mut map = map.lock().expect("mermaid decoder lock poisoned"); + map.insert(interface_id, Arc::new(decoder)); +} + pub fn emit_trace_mermaid(instance: &InterleavingInstance, state: &RuntimeState) { if env::var("STARSTREAM_RUNTIME_TRACE_MERMAID") .ok() @@ -38,6 +52,7 @@ pub fn emit_trace_mermaid(instance: &InterleavingInstance, state: &RuntimeState) let mut ref_store: HashMap> = HashMap::new(); let mut ref_state: HashMap = HashMap::new(); let mut handler_targets: HashMap = HashMap::new(); + let mut handler_interfaces: HashMap = HashMap::new(); for (idx, (pid, effect)) in state.interleaving.iter().enumerate() { if let Some(line) = format_edge_line( @@ -48,6 +63,7 @@ pub fn emit_trace_mermaid(instance: &InterleavingInstance, state: &RuntimeState) effect, &ref_store, &handler_targets, + &handler_interfaces, &state.interleaving, ) { out.push_str(" "); @@ -56,7 +72,7 @@ pub fn emit_trace_mermaid(instance: &InterleavingInstance, state: &RuntimeState) } apply_ref_mutations(*pid, effect, &mut ref_store, &mut ref_state); - update_handler_targets(*pid, effect, &mut handler_targets); + update_handler_targets(*pid, effect, &mut handler_targets, &mut handler_interfaces); } let ts = time::SystemTime::now() @@ -137,11 +153,15 @@ fn format_edge_line( effect: &WitLedgerEffect, ref_store: &HashMap>, handler_targets: &HashMap, + handler_interfaces: &HashMap, interleaving: &[(ProcessId, WitLedgerEffect)], ) -> Option { let from = labels.get(pid.0)?; match effect { WitLedgerEffect::Resume { target, val, .. } => { + let interface_id = handler_interfaces + .get(target) + .or_else(|| handler_interfaces.get(&pid)); let decode_mode = if handler_targets.get(&pid) == Some(target) { DecodeMode::RequestAndResponse } else if handler_targets.get(target) == Some(&pid) { @@ -153,7 +173,7 @@ fn format_edge_line( }; let label = format!( "resume
{}", - format_ref_with_value(ref_store, *val, decode_mode) + format_ref_with_value(ref_store, *val, interface_id, decode_mode) ); let to = labels.get(target.0)?; Some(format!("{from} ->> {to}: {label}")) @@ -162,7 +182,7 @@ fn format_edge_line( let next_pid = interleaving.get(idx + 1).map(|(p, _)| *p)?; let label = format!( "yield
{}", - format_ref_with_value(ref_store, *val, DecodeMode::None) + format_ref_with_value(ref_store, *val, None, DecodeMode::None) ); let to = labels.get(next_pid.0)?; Some(format!("{from} -->> {to}: {label}")) @@ -190,19 +210,18 @@ fn format_edge_line( fn format_ref_with_value( ref_store: &HashMap>, reff: Ref, + interface_id: Option<&InterfaceId>, decode_mode: DecodeMode, ) -> String { let mut out = format!("ref={}", reff.0); - if decode_mode == DecodeMode::None { - return out; - } if let Some(values) = ref_store.get(&reff) { - if let Some(extra) = decode_cell_protocol(values, decode_mode) { - out.push(' '); - out.push('['); - out.push_str(&extra); - out.push(']'); - } + let extra = interface_id + .and_then(|id| decode_with_registry(id, values, decode_mode)) + .unwrap_or_else(|| format_raw_values(values)); + out.push(' '); + out.push('['); + out.push_str(&extra); + out.push(']'); } out } @@ -210,44 +229,34 @@ fn format_ref_with_value( fn format_ref_with_values(ref_store: &HashMap>, reff: Ref) -> String { let mut out = format!("ref={}", reff.0); if let Some(values) = ref_store.get(&reff) { - let v0 = values.get(0).map(|v| v.0).unwrap_or(0); - let v1 = values.get(1).map(|v| v.0).unwrap_or(0); - let v2 = values.get(2).map(|v| v.0).unwrap_or(0); - let v3 = values.get(3).map(|v| v.0).unwrap_or(0); out.push(' '); out.push('['); - out.push_str(&format!("vals={v0},{v1},{v2},{v3}")); + out.push_str(&format_raw_values(values)); out.push(']'); } out } -fn decode_cell_protocol(values: &[Value], decode_mode: DecodeMode) -> Option { - let disc = values.get(0)?.0; +fn format_raw_values(values: &[Value]) -> String { + let v0 = values.get(0).map(|v| v.0).unwrap_or(0); let v1 = values.get(1).map(|v| v.0).unwrap_or(0); let v2 = values.get(2).map(|v| v.0).unwrap_or(0); - let is_request = matches!(disc, 1 | 2 | 3 | 4); - let is_response = matches!(disc, 10 | 11 | 12 | 13); - if is_request && decode_mode == DecodeMode::ResponseOnly { + let v3 = values.get(3).map(|v| v.0).unwrap_or(0); + format!("vals={v0},{v1},{v2},{v3}") +} + +fn decode_with_registry( + interface_id: &InterfaceId, + values: &[Value], + decode_mode: DecodeMode, +) -> Option { + if decode_mode == DecodeMode::None { return None; } - if decode_mode == DecodeMode::RequestAndResponse - || (decode_mode == DecodeMode::ResponseOnly && is_response) - { - let label = match disc { - 1 => "disc=new_cell".to_string(), - 2 => format!("disc=write cell={v1} value={v2}"), - 3 => format!("disc=read cell={v1}"), - 4 => "disc=end".to_string(), - 10 => "disc=ack".to_string(), - 11 => format!("disc=new_cell_resp cell={v1}"), - 12 => format!("disc=read_resp value={v1}"), - 13 => "disc=end_ack".to_string(), - _ => return None, - }; - return Some(label); - } - None + let map = MERMAID_DECODERS.get_or_init(|| Mutex::new(HashMap::new())); + let map = map.lock().ok()?; + let decoder = map.get(interface_id)?.clone(); + decoder(values) } fn apply_ref_mutations( @@ -296,10 +305,16 @@ fn update_handler_targets( pid: ProcessId, effect: &WitLedgerEffect, handler_targets: &mut HashMap, + handler_interfaces: &mut HashMap, ) { - if let WitLedgerEffect::GetHandlerFor { handler_id, .. } = effect { + if let WitLedgerEffect::GetHandlerFor { + handler_id, + interface_id, + } = effect + { if let WitEffectOutput::Resolved(handler_id) = handler_id { handler_targets.insert(pid, *handler_id); + handler_interfaces.insert(*handler_id, interface_id.clone()); } } } diff --git a/interleaving/starstream-runtime/tests/integration.rs b/interleaving/starstream-runtime/tests/integration.rs index 72924135..3508a2a8 100644 --- a/interleaving/starstream-runtime/tests/integration.rs +++ b/interleaving/starstream-runtime/tests/integration.rs @@ -2,11 +2,25 @@ pub mod wasm_dsl; use sha2::{Digest, Sha256}; -use starstream_interleaving_spec::Ledger; -use starstream_runtime::UnprovenTransaction; +use starstream_interleaving_spec::{Hash, InterfaceId, Ledger}; +use starstream_runtime::{UnprovenTransaction, register_mermaid_decoder}; +use std::marker::PhantomData; + +fn interface_id(a: u64, b: u64, c: u64, d: u64) -> InterfaceId { + let mut buffer = [0u8; 32]; + buffer[0..8].copy_from_slice(&a.to_le_bytes()); + buffer[8..16].copy_from_slice(&b.to_le_bytes()); + buffer[16..24].copy_from_slice(&c.to_le_bytes()); + buffer[24..32].copy_from_slice(&d.to_le_bytes()); + Hash(buffer, PhantomData) +} #[test] fn test_runtime_simple_effect_handlers() { + register_mermaid_decoder(interface_id(1, 0, 0, 0), |values| { + let v0 = values.get(0)?.0; + Some(format!("val={v0}")) + }); let utxo_bin = wasm_module!({ let (_init_ref, caller) = call activation(); @@ -83,6 +97,16 @@ fn test_runtime_simple_effect_handlers() { #[test] fn test_runtime_effect_handlers_cross_calls() { + register_mermaid_decoder(interface_id(1, 2, 3, 4), |values| { + let disc = values.get(0)?.0; + let v1 = values.get(1).map(|v| v.0).unwrap_or(0); + let label = match disc { + 1 => format!("disc=forward num_ref={v1}"), + 2 => format!("disc=stop num_ref={v1}"), + _ => return None, + }; + Some(label) + }); // this test emulates a coordination script acting as a middle-man for a channel-like flow // // utxo1 sends numbers, by encoding the request as (1, arg) diff --git a/interleaving/starstream-runtime/tests/wrapper_coord_test.rs b/interleaving/starstream-runtime/tests/wrapper_coord_test.rs index 2718f6e5..1a517658 100644 --- a/interleaving/starstream-runtime/tests/wrapper_coord_test.rs +++ b/interleaving/starstream-runtime/tests/wrapper_coord_test.rs @@ -2,29 +2,85 @@ pub mod wasm_dsl; use sha2::{Digest, Sha256}; -use starstream_interleaving_spec::Ledger; -use starstream_runtime::UnprovenTransaction; +use starstream_interleaving_spec::{Hash, InterfaceId, Ledger}; +use starstream_runtime::{UnprovenTransaction, register_mermaid_decoder}; +use std::marker::PhantomData; + +// this tests tries to encode something like a coordination script that provides a Cell interface +// +// we have the Cell implementation +// +// fn wrapper(inner: Coroutine) { +// let cells = []; +// +// try { +// resume(inner, ()); +// } +// with Cell { +// fn new(): CellId { +// cells.push(F::ZERO); // note however that the test is simplified to a single cell to avoid needing an array +// resume cells.len(); +// } +// +// fn write(cell: CellId, val: Val) { +// cells[cell] = val; +// +// resume (); +// } +// +// fn read(cell: CellId): Val { +// resume cells[cell]; +// } +// } +// } +// +// fn inner(utxo1: Utxo1, utxo2: Utxo2) { +// let cell = raise Cell::new(); +// +// utxo1.foo(cell); +// utxo2.bar(cell); +// } +// +// utxo Utxo1 { +// fn foo(cell: CellId) / { Cell } { +// raise Cell::write(cell, 42); +// } +// } +// +// utxo Utxo2 { +// fn bar(cell: CellId) / { Cell } { +// let v = raise Cell::read(cell); +// } +// } +// +// fn main() { +// let utxo1 = Utxo1::new(); +// let utxo2 = Utxo2::new(); +// +// wrapper { +// inner(utxo1, utxo2) +// } +// } #[test] fn test_runtime_wrapper_coord_newcoord_handlers() { - // Interface id = (1,2,3,4) - // - // Protocol (request ref, size=1): - // word0 = disc - // word1 = arg1 (cell_ref) - // word2 = arg2 (value) - // - // request discs: - // 1 = new_cell - // 2 = write(cell_ref, value) - // 3 = read(cell_ref) - // 4 = end - // - // response discs: - // 10 = ack - // 11 = new_cell_resp(cell_ref) - // 12 = read_resp(value) - // 13 = end_ack + register_mermaid_decoder(interface_id(1, 2, 3, 4), |values| { + let disc = values.get(0)?.0; + let v1 = values.get(1).map(|v| v.0).unwrap_or(0); + let v2 = values.get(2).map(|v| v.0).unwrap_or(0); + let label = match disc { + 1 => "disc=new_cell".to_string(), + 2 => format!("disc=write cell={v1} value={v2}"), + 3 => format!("disc=read cell={v1}"), + 4 => "disc=end".to_string(), + 10 => "disc=ack".to_string(), + 11 => format!("disc=new_cell_resp cell={v1}"), + 12 => format!("disc=read_resp value={v1}"), + 13 => "disc=end_ack".to_string(), + _ => return None, + }; + Some(label) + }); let utxo1_bin = wasm_module!({ let (init_ref, _caller) = call activation(); @@ -37,7 +93,9 @@ fn test_runtime_wrapper_coord_newcoord_handlers() { let (_resp, _caller2) = call resume(handler_id, req); - let (_req2, _caller3) = call yield_(init_ref); + let done = call new_ref(1); + call ref_push(0, 0, 0, 0); + let (_req2, _caller3) = call yield_(done); }); let utxo2_bin = wasm_module!({ @@ -53,7 +111,9 @@ fn test_runtime_wrapper_coord_newcoord_handlers() { let (_disc, val, _c2, _d2) = call ref_get(resp, 0); assert_eq val, 42; - let (_req2, _caller3) = call yield_(init_ref); + let done = call new_ref(1); + call ref_push(0, 0, 0, 0); + let (_req2, _caller3) = call yield_(done); }); let (utxo1_hash_limb_a, utxo1_hash_limb_b, utxo1_hash_limb_c, utxo1_hash_limb_d) = @@ -263,3 +323,12 @@ fn print_wat(name: &str, wasm: &[u8]) { Err(err) => eprintln!("--- WAT: {name} (failed: {err}) ---"), } } + +fn interface_id(a: u64, b: u64, c: u64, d: u64) -> InterfaceId { + let mut buffer = [0u8; 32]; + buffer[0..8].copy_from_slice(&a.to_le_bytes()); + buffer[8..16].copy_from_slice(&b.to_le_bytes()); + buffer[16..24].copy_from_slice(&c.to_le_bytes()); + buffer[24..32].copy_from_slice(&d.to_le_bytes()); + Hash(buffer, PhantomData) +} From 6f5398fbfae59623c89027ba0ca156956430e613 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Mon, 9 Feb 2026 17:43:41 -0300 Subject: [PATCH 132/152] remove TWIST_DEBUG_FILTER feature was useful in the past when debugging the middleware, but now it's just annoying Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .../src/memory/twist_and_shout/mod.rs | 84 ++++++------------- .../starstream-interleaving-proof/src/neo.rs | 8 +- 2 files changed, 25 insertions(+), 67 deletions(-) diff --git a/interleaving/starstream-interleaving-proof/src/memory/twist_and_shout/mod.rs b/interleaving/starstream-interleaving-proof/src/memory/twist_and_shout/mod.rs index b8ee7cdb..cb10aa05 100644 --- a/interleaving/starstream-interleaving-proof/src/memory/twist_and_shout/mod.rs +++ b/interleaving/starstream-interleaving-proof/src/memory/twist_and_shout/mod.rs @@ -1,7 +1,6 @@ use super::Address; use super::IVCMemory; use super::IVCMemoryAllocated; -use crate::circuit::MemoryTag; use crate::memory::AllocatedAddress; use crate::memory::MemType; use ark_ff::PrimeField; @@ -17,26 +16,6 @@ use neo_vm_trace::{Shout, Twist, TwistId, TwistOpKind}; use std::collections::BTreeMap; use std::collections::VecDeque; -pub const TWIST_DEBUG_FILTER: &[u32] = &[ - MemoryTag::ExpectedInput as u32, - MemoryTag::ExpectedResumer as u32, - MemoryTag::OnYield as u32, - MemoryTag::YieldTo as u32, - MemoryTag::Activation as u32, - MemoryTag::Counters as u32, - MemoryTag::Initialized as u32, - MemoryTag::Finalized as u32, - MemoryTag::DidBurn as u32, - MemoryTag::Ownership as u32, - MemoryTag::Init as u32, - MemoryTag::RefArena as u32, - MemoryTag::RefSizes as u32, - MemoryTag::HandlerStackArenaProcess as u32, - MemoryTag::HandlerStackArenaNextPtr as u32, - MemoryTag::HandlerStackHeads as u32, - MemoryTag::TraceCommitments as u32, -]; - #[derive(Debug, Clone)] pub struct ShoutCpuBinding { pub has_lookup: usize, @@ -322,19 +301,13 @@ impl TSMemory { let mut init = BTreeMap::>::new(); for (address, val) in &self.init { - let is_rom = if let Some((_, _, MemType::Rom, _)) = self.mems.get(&address.tag) { + if let Some((_, _, MemType::Rom, _)) = self.mems.get(&address.tag) { *rom_sizes.entry(address.tag).or_insert(0) += 1; - - true - } else { - false - }; - - if is_rom || TWIST_DEBUG_FILTER.contains(&(address.tag as u32)) { - init.entry(address.tag) - .or_default() - .insert(address.addr, val[0]); } + + init.entry(address.tag) + .or_default() + .insert(address.addr, val[0]); } TSMemInitTables { @@ -461,9 +434,7 @@ impl TSMemoryConstraints { complete.push(p.to_complete()); } - if TWIST_DEBUG_FILTER.contains(&(*tag as u32)) { - twist_bindings.insert(*tag, complete); - } + twist_bindings.insert(*tag, complete); } TSMemLayouts { @@ -516,9 +487,7 @@ impl TSMemoryConstraints { assert_eq!(event.op, kind); - if TWIST_DEBUG_FILTER.contains(&event.twist_id) { - self.step_events_twist.push(event.clone()); - } + self.step_events_twist.push(event.clone()); (F::from(event.addr), F::from(event.val)) }; @@ -636,16 +605,14 @@ impl TSMemoryConstraints { let (has_read_val, ra_val, rv_val) = if cond_val { self.get_twist_traced_values(&address_val, lane, TwistOpKind::Read)? } else { - if TWIST_DEBUG_FILTER.contains(&(twist_id as u32)) { - self.step_events_twist.push(TwistEvent { - twist_id: twist_id as u32, - addr: 0, - val: 0, - op: TwistOpKind::Write, - cond: cond_val, - lane: Some(lane), - }); - } + self.step_events_twist.push(TwistEvent { + twist_id: twist_id as u32, + addr: 0, + val: 0, + op: TwistOpKind::Write, + cond: cond_val, + lane: Some(lane), + }); (F::ZERO, F::ZERO, F::ZERO) }; @@ -660,7 +627,6 @@ impl TSMemoryConstraints { if let Some(&(_, _lanes, MemType::Ram, _)) = self.mems.get(&tag) && self.is_first_step - && TWIST_DEBUG_FILTER.contains(&(tag as u32)) { self.update_partial_twist_bindings_read(tag, base_index, lane as usize); } @@ -765,16 +731,14 @@ impl IVCMemoryAllocated for TSMemoryConstraints { let (has_write_val, wa_val, wv_val) = if cond_val { self.get_twist_traced_values(&address_cpu, lane, TwistOpKind::Write)? } else { - if TWIST_DEBUG_FILTER.contains(&(twist_id as u32)) { - self.step_events_twist.push(TwistEvent { - twist_id: twist_id as u32, - addr: 0, - val: 0, - op: TwistOpKind::Write, - cond: cond_val, - lane: Some(lane), - }); - } + self.step_events_twist.push(TwistEvent { + twist_id: twist_id as u32, + addr: 0, + val: 0, + op: TwistOpKind::Write, + cond: cond_val, + lane: Some(lane), + }); ( F::ZERO, @@ -787,7 +751,7 @@ impl IVCMemoryAllocated for TSMemoryConstraints { let wa = FpVar::new_witness(cs.clone(), || Ok(wa_val))?; let wv = FpVar::new_witness(cs.clone(), || Ok(wv_val))?; - if self.is_first_step && TWIST_DEBUG_FILTER.contains(&(address_cpu.tag as u32)) { + if self.is_first_step { self.update_partial_twist_bindings_write(mem_tag, base_index, lane as usize); } diff --git a/interleaving/starstream-interleaving-proof/src/neo.rs b/interleaving/starstream-interleaving-proof/src/neo.rs index d2d8f076..c2994a97 100644 --- a/interleaving/starstream-interleaving-proof/src/neo.rs +++ b/interleaving/starstream-interleaving-proof/src/neo.rs @@ -1,9 +1,7 @@ use crate::{ ccs_step_shape, circuit::{InterRoundWires, IvcWireLayout, StepCircuitBuilder}, - memory::twist_and_shout::{ - TSMemInitTables, TSMemLayouts, TSMemory, TSMemoryConstraints, TWIST_DEBUG_FILTER, - }, + memory::twist_and_shout::{TSMemInitTables, TSMemLayouts, TSMemory, TSMemoryConstraints}, }; use ark_ff::PrimeField; use ark_goldilocks::FpGoldilocks; @@ -134,10 +132,6 @@ impl NeoCircuit for StepCircuitNeo { .padded_binary_table(dense_content); } crate::memory::MemType::Ram => { - if !TWIST_DEBUG_FILTER.iter().any(|f| *tag == *f as u64) { - continue; - } - let twist_id = *tag as u32; let k = 256usize; // TODO: hardcoded number assert!(k > 0, "set_binary_mem_layout: k must be > 0"); From 4574773c92c0752c06d8d6b530252effd4fd541c Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Mon, 9 Feb 2026 17:58:25 -0300 Subject: [PATCH 133/152] clippy fix starstream-runtime Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- interleaving/starstream-runtime/src/lib.rs | 132 ++++++++++-------- .../starstream-runtime/src/trace_mermaid.rs | 121 ++++++++-------- .../starstream-runtime/tests/integration.rs | 4 +- .../starstream-runtime/tests/wasm_dsl.rs | 22 ++- .../tests/wrapper_coord_test.rs | 2 +- 5 files changed, 157 insertions(+), 124 deletions(-) diff --git a/interleaving/starstream-runtime/src/lib.rs b/interleaving/starstream-runtime/src/lib.rs index 229aa9aa..3f3ce338 100644 --- a/interleaving/starstream-runtime/src/lib.rs +++ b/interleaving/starstream-runtime/src/lib.rs @@ -122,6 +122,12 @@ pub struct Runtime { pub store: Store, } +impl Default for Runtime { + fn default() -> Self { + Self::new() + } +} + impl Runtime { pub fn new() -> Self { let config = Config::default(); @@ -230,17 +236,14 @@ impl Runtime { let limit = caller.data().process_hashes.len(); for i in 0..limit { let pid = ProcessId(i); - if !caller.data().allocated_processes.contains(&pid) { - if let Some(ph) = caller.data().process_hashes.get(&pid) { - if *ph == h { - if let Some(&is_u) = caller.data().is_utxo.get(&pid) { - if is_u { - found_id = Some(pid); - break; - } - } - } - } + if !caller.data().allocated_processes.contains(&pid) + && let Some(ph) = caller.data().process_hashes.get(&pid) + && *ph == h + && let Some(&is_u) = caller.data().is_utxo.get(&pid) + && is_u + { + found_id = Some(pid); + break; } } let id = found_id.ok_or(wasmi::Error::new("no matching utxo process found"))?; @@ -283,17 +286,14 @@ impl Runtime { let limit = caller.data().process_hashes.len(); for i in 0..limit { let pid = ProcessId(i); - if !caller.data().allocated_processes.contains(&pid) { - if let Some(ph) = caller.data().process_hashes.get(&pid) { - if *ph == h { - if let Some(&is_u) = caller.data().is_utxo.get(&pid) { - if !is_u { - found_id = Some(pid); - break; - } - } - } - } + if !caller.data().allocated_processes.contains(&pid) + && let Some(ph) = caller.data().process_hashes.get(&pid) + && *ph == h + && let Some(&is_u) = caller.data().is_utxo.get(&pid) + && !is_u + { + found_id = Some(pid); + break; } } let id = @@ -333,7 +333,7 @@ impl Runtime { caller .data_mut() .handler_stack - .entry(interface_id.clone()) + .entry(interface_id) .or_default() .push(current_pid); suspend_with_effect( @@ -653,7 +653,12 @@ impl Runtime { |mut caller: Caller<'_, RuntimeState>, token_id: u64| -> Result<(), wasmi::Error> { let current_pid = caller.data().current_process; let token_id = ProcessId(token_id as usize); - if caller.data().ownership.get(&token_id) != Some(&Some(current_pid)) {} + if caller.data().ownership.get(&token_id) != Some(&Some(current_pid)) { + eprintln!( + "unbind called by non-owner: token_id={}, current_pid={}", + token_id.0, current_pid.0 + ); + } caller.data_mut().ownership.insert(token_id, None); suspend_with_effect(&mut caller, WitLedgerEffect::Unbind { token_id }) }, @@ -680,12 +685,11 @@ impl Runtime { target_pid: u64| -> Result<(u64, u64, u64, u64), wasmi::Error> { let target = ProcessId(target_pid as usize); - let program_hash = caller + let program_hash = *caller .data() .process_hashes .get(&target) - .ok_or(wasmi::Error::new("process hash not found"))? - .clone(); + .ok_or(wasmi::Error::new("process hash not found"))?; suspend_with_effect( &mut caller, @@ -730,8 +734,8 @@ impl UnprovenTransaction { let traces = &witness.traces; // Inputs - for i in 0..n_inputs { - let trace = traces[i].clone(); + for (i, trace) in traces.iter().enumerate().take(n_inputs) { + let trace = trace.clone(); let utxo_id = self.inputs[i].clone(); let host_calls_root = instance.host_calls_roots[i].clone(); @@ -751,10 +755,15 @@ impl UnprovenTransaction { } // New Outputs - for i in n_inputs..(n_inputs + instance.n_new) { - let trace = traces[i].clone(); + for (i, trace) in traces + .iter() + .enumerate() + .skip(n_inputs) + .take(instance.n_new) + { + let trace = trace.clone(); let last_yield = self.get_last_yield(i, &state)?; - let contract_hash = state.process_hashes[&ProcessId(i)].clone(); + let contract_hash = state.process_hashes[&ProcessId(i)]; let host_calls_root = instance.host_calls_roots[i].clone(); builder = builder.with_fresh_output_and_trace_commitment( @@ -768,9 +777,14 @@ impl UnprovenTransaction { } // Coords - for i in (n_inputs + instance.n_new)..(n_inputs + instance.n_new + instance.n_coords) { - let trace = traces[i].clone(); - let contract_hash = state.process_hashes[&ProcessId(i)].clone(); + for (i, trace) in traces + .iter() + .enumerate() + .skip(n_inputs + instance.n_new) + .take(instance.n_coords) + { + let trace = trace.clone(); + let contract_hash = state.process_hashes[&ProcessId(i)]; let host_calls_root = instance.host_calls_roots[i].clone(); builder = builder.with_coord_script_and_trace_commitment( contract_hash, @@ -842,7 +856,7 @@ impl UnprovenTransaction { .store .data_mut() .process_hashes - .insert(ProcessId(pid), hash.clone()); + .insert(ProcessId(pid), hash); // Populate is_utxo map runtime @@ -859,14 +873,14 @@ impl UnprovenTransaction { .instantiate_and_start(&mut runtime.store, &module)?; // Store memory in RuntimeState for hash reading - if let Some(extern_) = instance.get_export(&runtime.store, "memory") { - if let Some(memory) = extern_.into_memory() { - runtime - .store - .data_mut() - .memories - .insert(ProcessId(pid), memory); - } + if let Some(extern_) = instance.get_export(&runtime.store, "memory") + && let Some(memory) = extern_.into_memory() + { + runtime + .store + .data_mut() + .memories + .insert(ProcessId(pid), memory); } instances.push(instance); @@ -900,23 +914,21 @@ impl UnprovenTransaction { // Update previous effect with return value let traces = &mut runtime.store.data_mut().traces; - if let Some(trace) = traces.get_mut(¤t_pid) { - if let Some(last) = trace.last_mut() { - match last { - WitLedgerEffect::Resume { ret, caller, .. } => { - *ret = WitEffectOutput::Resolved(Ref(next_args[0])); - *caller = WitEffectOutput::Resolved(Some(ProcessId( - next_args[1] as usize, - ))); - } - WitLedgerEffect::Yield { ret, caller, .. } => { - *ret = WitEffectOutput::Resolved(Ref(next_args[0])); - *caller = WitEffectOutput::Resolved(Some(ProcessId( - next_args[1] as usize, - ))); - } - _ => {} + if let Some(trace) = traces.get_mut(¤t_pid) + && let Some(last) = trace.last_mut() + { + match last { + WitLedgerEffect::Resume { ret, caller, .. } => { + *ret = WitEffectOutput::Resolved(Ref(next_args[0])); + *caller = + WitEffectOutput::Resolved(Some(ProcessId(next_args[1] as usize))); + } + WitLedgerEffect::Yield { ret, caller, .. } => { + *ret = WitEffectOutput::Resolved(Ref(next_args[0])); + *caller = + WitEffectOutput::Resolved(Some(ProcessId(next_args[1] as usize))); } + _ => {} } } diff --git a/interleaving/starstream-runtime/src/trace_mermaid.rs b/interleaving/starstream-runtime/src/trace_mermaid.rs index b3fede74..ed836cc4 100644 --- a/interleaving/starstream-runtime/src/trace_mermaid.rs +++ b/interleaving/starstream-runtime/src/trace_mermaid.rs @@ -4,7 +4,6 @@ use starstream_interleaving_spec::{ WitEffectOutput, WitLedgerEffect, }; use std::collections::HashMap; -use std::path::PathBuf; use std::process::{Command, Stdio}; use std::sync::{Arc, Mutex, OnceLock}; use std::{env, fs, time}; @@ -55,17 +54,16 @@ pub fn emit_trace_mermaid(instance: &InterleavingInstance, state: &RuntimeState) let mut handler_interfaces: HashMap = HashMap::new(); for (idx, (pid, effect)) in state.interleaving.iter().enumerate() { - if let Some(line) = format_edge_line( - idx, - &labels, - &instance.is_utxo, - *pid, - effect, - &ref_store, - &handler_targets, - &handler_interfaces, - &state.interleaving, - ) { + let ctx = EdgeContext { + labels: &labels, + is_utxo: &instance.is_utxo, + ref_store: &ref_store, + handler_targets: &handler_targets, + handler_interfaces: &handler_interfaces, + interleaving: &state.interleaving, + }; + + if let Some(line) = format_edge_line(idx, &ctx, *pid, effect) { out.push_str(" "); out.push_str(&line); out.push('\n'); @@ -85,7 +83,7 @@ pub fn emit_trace_mermaid(instance: &InterleavingInstance, state: &RuntimeState) return; } - let svg_path = PathBuf::from(mmd_path.with_extension("svg")); + let svg_path = mmd_path.with_extension("svg"); if mmdc_available() { let puppeteer_config_path = env::temp_dir().join(format!("starstream_mmdc_{ts}.json")); let puppeteer_config = r#"{"args":["--no-sandbox","--disable-setuid-sandbox"]}"#; @@ -133,7 +131,7 @@ fn build_process_labels(is_utxo: &[bool]) -> Vec { let mut labels = Vec::with_capacity(is_utxo.len()); let mut utxo_idx = 0usize; let mut coord_idx = 0usize; - for (_pid, is_u) in is_utxo.iter().enumerate() { + for is_u in is_utxo.iter() { if *is_u { labels.push(format!("utxo{utxo_idx}")); utxo_idx += 1; @@ -145,62 +143,73 @@ fn build_process_labels(is_utxo: &[bool]) -> Vec { labels } +struct EdgeContext<'a> { + labels: &'a [String], + is_utxo: &'a [bool], + ref_store: &'a HashMap>, + handler_targets: &'a HashMap, + handler_interfaces: &'a HashMap, + interleaving: &'a [(ProcessId, WitLedgerEffect)], +} + fn format_edge_line( idx: usize, - labels: &[String], - is_utxo: &[bool], + ctx: &EdgeContext<'_>, pid: ProcessId, effect: &WitLedgerEffect, - ref_store: &HashMap>, - handler_targets: &HashMap, - handler_interfaces: &HashMap, - interleaving: &[(ProcessId, WitLedgerEffect)], ) -> Option { - let from = labels.get(pid.0)?; + let from = ctx.labels.get(pid.0)?; match effect { WitLedgerEffect::Resume { target, val, .. } => { - let interface_id = handler_interfaces + let interface_id = ctx + .handler_interfaces .get(target) - .or_else(|| handler_interfaces.get(&pid)); - let decode_mode = if handler_targets.get(&pid) == Some(target) { + .or_else(|| ctx.handler_interfaces.get(&pid)); + let decode_mode = if ctx.handler_targets.get(&pid) == Some(target) { DecodeMode::RequestAndResponse - } else if handler_targets.get(target) == Some(&pid) { - DecodeMode::ResponseOnly - } else if is_utxo.get(target.0).copied().unwrap_or(false) { + } else if ctx.handler_targets.get(target) == Some(&pid) + || ctx.is_utxo.get(target.0).copied().unwrap_or(false) + { DecodeMode::ResponseOnly } else { DecodeMode::None }; let label = format!( "resume
{}", - format_ref_with_value(ref_store, *val, interface_id, decode_mode) + format_ref_with_value(ctx.ref_store, *val, interface_id, decode_mode) ); - let to = labels.get(target.0)?; + let to = ctx.labels.get(target.0)?; Some(format!("{from} ->> {to}: {label}")) } WitLedgerEffect::Yield { val, .. } => { - let next_pid = interleaving.get(idx + 1).map(|(p, _)| *p)?; + let next_pid = ctx.interleaving.get(idx + 1).map(|(p, _)| *p)?; let label = format!( "yield
{}", - format_ref_with_value(ref_store, *val, None, DecodeMode::None) + format_ref_with_value(ctx.ref_store, *val, None, DecodeMode::None) ); - let to = labels.get(next_pid.0)?; + let to = ctx.labels.get(next_pid.0)?; Some(format!("{from} -->> {to}: {label}")) } WitLedgerEffect::NewUtxo { val, id, .. } => { let WitEffectOutput::Resolved(pid) = id else { return None; }; - let created = labels.get(pid.0)?; - let label = format!("new_utxo
{}", format_ref_with_values(ref_store, *val)); + let created = ctx.labels.get(pid.0)?; + let label = format!( + "new_utxo
{}", + format_ref_with_values(ctx.ref_store, *val) + ); Some(format!("{from} ->> {created}: {label}")) } WitLedgerEffect::NewCoord { val, id, .. } => { let WitEffectOutput::Resolved(pid) = id else { return None; }; - let created = labels.get(pid.0)?; - let label = format!("new_coord
{}", format_ref_with_values(ref_store, *val)); + let created = ctx.labels.get(pid.0)?; + let label = format!( + "new_coord
{}", + format_ref_with_values(ctx.ref_store, *val) + ); Some(format!("{from} ->> {created}: {label}")) } _ => None, @@ -238,7 +247,7 @@ fn format_ref_with_values(ref_store: &HashMap>, reff: Ref) -> St } fn format_raw_values(values: &[Value]) -> String { - let v0 = values.get(0).map(|v| v.0).unwrap_or(0); + let v0 = values.first().map(|v| v.0).unwrap_or(0); let v1 = values.get(1).map(|v| v.0).unwrap_or(0); let v2 = values.get(2).map(|v| v.0).unwrap_or(0); let v3 = values.get(3).map(|v| v.0).unwrap_or(0); @@ -266,25 +275,26 @@ fn apply_ref_mutations( ref_state: &mut HashMap, ) { match effect { - WitLedgerEffect::NewRef { size, ret } => { - if let WitEffectOutput::Resolved(ref_id) = ret { - let size_words = *size; - let size_elems = size_words * REF_PUSH_WIDTH; - ref_store.insert(*ref_id, vec![Value(0); size_elems]); - ref_state.insert(pid, (*ref_id, 0, size_words)); - } + WitLedgerEffect::NewRef { + size, + ret: WitEffectOutput::Resolved(ref_id), + } => { + let size_words = *size; + let size_elems = size_words * REF_PUSH_WIDTH; + ref_store.insert(*ref_id, vec![Value(0); size_elems]); + ref_state.insert(pid, (*ref_id, 0, size_words)); } WitLedgerEffect::RefPush { vals } => { - if let Some((ref_id, offset, _size_words)) = ref_state.get_mut(&pid) { - if let Some(store) = ref_store.get_mut(ref_id) { - let elem_offset = *offset; - for (i, val) in vals.iter().enumerate() { - if let Some(pos) = store.get_mut(elem_offset + i) { - *pos = *val; - } + if let Some((ref_id, offset, _size_words)) = ref_state.get_mut(&pid) + && let Some(store) = ref_store.get_mut(ref_id) + { + let elem_offset = *offset; + for (i, val) in vals.iter().enumerate() { + if let Some(pos) = store.get_mut(elem_offset + i) { + *pos = *val; } - *offset = elem_offset + REF_PUSH_WIDTH; } + *offset = elem_offset + REF_PUSH_WIDTH; } } WitLedgerEffect::RefWrite { reff, offset, vals } => { @@ -311,10 +321,9 @@ fn update_handler_targets( handler_id, interface_id, } = effect + && let WitEffectOutput::Resolved(handler_id) = handler_id { - if let WitEffectOutput::Resolved(handler_id) = handler_id { - handler_targets.insert(pid, *handler_id); - handler_interfaces.insert(*handler_id, interface_id.clone()); - } + handler_targets.insert(pid, *handler_id); + handler_interfaces.insert(*handler_id, *interface_id); } } diff --git a/interleaving/starstream-runtime/tests/integration.rs b/interleaving/starstream-runtime/tests/integration.rs index 3508a2a8..e8399451 100644 --- a/interleaving/starstream-runtime/tests/integration.rs +++ b/interleaving/starstream-runtime/tests/integration.rs @@ -18,7 +18,7 @@ fn interface_id(a: u64, b: u64, c: u64, d: u64) -> InterfaceId { #[test] fn test_runtime_simple_effect_handlers() { register_mermaid_decoder(interface_id(1, 0, 0, 0), |values| { - let v0 = values.get(0)?.0; + let v0 = values.first()?.0; Some(format!("val={v0}")) }); let utxo_bin = wasm_module!({ @@ -98,7 +98,7 @@ fn test_runtime_simple_effect_handlers() { #[test] fn test_runtime_effect_handlers_cross_calls() { register_mermaid_decoder(interface_id(1, 2, 3, 4), |values| { - let disc = values.get(0)?.0; + let disc = values.first()?.0; let v1 = values.get(1).map(|v| v.0).unwrap_or(0); let label = match disc { 1 => format!("disc=forward num_ref={v1}"), diff --git a/interleaving/starstream-runtime/tests/wasm_dsl.rs b/interleaving/starstream-runtime/tests/wasm_dsl.rs index dd0a2c95..cefebae0 100644 --- a/interleaving/starstream-runtime/tests/wasm_dsl.rs +++ b/interleaving/starstream-runtime/tests/wasm_dsl.rs @@ -128,11 +128,11 @@ impl FuncBuilder { fn finish(self) -> Function { let mut groups: Vec<(u32, ValType)> = Vec::new(); for ty in self.locals { - if let Some((count, last_ty)) = groups.last_mut() { - if *last_ty == ty { - *count += 1; - continue; - } + if let Some((count, last_ty)) = groups.last_mut() + && *last_ty == ty + { + *count += 1; + continue; } groups.push((1, ty)); } @@ -145,6 +145,12 @@ impl FuncBuilder { } } +impl Default for FuncBuilder { + fn default() -> Self { + Self::new() + } +} + pub struct ModuleBuilder { types: TypeSection, imports: ImportSection, @@ -367,6 +373,12 @@ impl ModuleBuilder { } } +impl Default for ModuleBuilder { + fn default() -> Self { + Self::new() + } +} + #[macro_export] macro_rules! wasm_module { ({ $($body:tt)* }) => {{ diff --git a/interleaving/starstream-runtime/tests/wrapper_coord_test.rs b/interleaving/starstream-runtime/tests/wrapper_coord_test.rs index 1a517658..63081ffb 100644 --- a/interleaving/starstream-runtime/tests/wrapper_coord_test.rs +++ b/interleaving/starstream-runtime/tests/wrapper_coord_test.rs @@ -65,7 +65,7 @@ use std::marker::PhantomData; #[test] fn test_runtime_wrapper_coord_newcoord_handlers() { register_mermaid_decoder(interface_id(1, 2, 3, 4), |values| { - let disc = values.get(0)?.0; + let disc = values.first()?.0; let v1 = values.get(1).map(|v| v.0).unwrap_or(0); let v2 = values.get(2).map(|v| v.0).unwrap_or(0); let label = match disc { From 996f997456b165c3aeb377142d95c44ab73dfcc3 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Mon, 9 Feb 2026 19:14:30 -0300 Subject: [PATCH 134/152] more clippy cleanup in interleaving crates Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- ark-poseidon2/src/lib.rs | 2 +- .../src/circuit.rs | 38 ++++----- .../src/circuit_test.rs | 38 ++++----- .../src/opcode_dsl.rs | 2 +- .../src/ref_arena_gadget.rs | 2 + .../src/builder.rs | 12 +++ .../starstream-interleaving-spec/src/lib.rs | 42 ++++++---- .../src/mocked_verifier.rs | 77 +++++++++---------- .../starstream-interleaving-spec/src/tests.rs | 31 ++++---- .../src/transaction_effects/instance.rs | 5 +- 10 files changed, 137 insertions(+), 112 deletions(-) diff --git a/ark-poseidon2/src/lib.rs b/ark-poseidon2/src/lib.rs index e2e28121..2c6308a4 100644 --- a/ark-poseidon2/src/lib.rs +++ b/ark-poseidon2/src/lib.rs @@ -93,7 +93,7 @@ fn compress_trace_generic< let compressed = poseidon2_compress::( inputs[..].try_into().unwrap(), - &constants, + constants, )?; Ok(std::array::from_fn(|i| compressed[i].value().unwrap())) diff --git a/interleaving/starstream-interleaving-proof/src/circuit.rs b/interleaving/starstream-interleaving-proof/src/circuit.rs index eff6504a..e942849a 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit.rs @@ -47,6 +47,7 @@ struct OpcodeConfig { pub struct StepCircuitBuilder { pub instance: InterleavingInstance, + #[allow(dead_code)] pub last_yield: Vec, pub ops: Vec>, write_ops: Vec<(ProgramState, ProgramState)>, @@ -59,6 +60,15 @@ pub struct StepCircuitBuilder { mem: PhantomData, } +type StepCircuitResult = Result< + ( + InterRoundWires, + <>::Allocator as IVCMemoryAllocated>::FinishStepPayload, + Option, + ), + SynthesisError, +>; + // OptionalF/OptionalFpVar live in optional.rs /// common circuit variables to all the opcodes @@ -726,7 +736,7 @@ impl> StepCircuitBuilder { let last_yield = instance .input_states .iter() - .map(|v| abi::value_to_field(v.last_yield.clone())) + .map(|v| abi::value_to_field(v.last_yield)) .collect(); let interface_resolver = InterfaceResolver::new(&ops); @@ -752,14 +762,7 @@ impl> StepCircuitBuilder { cs: ConstraintSystemRef, mut irw: InterRoundWires, compute_ivc_layout: bool, - ) -> Result< - ( - InterRoundWires, - >::FinishStepPayload, - Option, - ), - SynthesisError, - > { + ) -> StepCircuitResult { rm.start_step(cs.clone()).unwrap(); let _guard = @@ -1749,8 +1752,8 @@ impl> StepCircuitBuilder { wires.opcode_args[ArgName::PackedRef5.idx()].clone(), ]; - for i in 0..REF_GET_BATCH_SIZE { - expected[i].conditional_enforce_equal(&wires.ref_arena_read[i], switch)?; + for (expected_val, read_val) in expected.iter().zip(wires.ref_arena_read.iter()) { + expected_val.conditional_enforce_equal(read_val, switch)?; } Ok(wires) @@ -1997,6 +2000,7 @@ fn fpvar_witness_index( } impl PreWires { + #[allow(clippy::too_many_arguments)] pub fn new( irw: InterRoundWires, curr_mem_switches: MemSwitchboardBool, @@ -2043,10 +2047,10 @@ fn trace_ic>(curr_pid: usize, mb: &mut M, config: &OpcodeConfig) let mut concat_data = [F::ZERO; 12]; - for i in 0..4 { + for (i, slot) in concat_data.iter_mut().take(4).enumerate() { let addr = (curr_pid * 4) + i; - concat_data[i] = mb.conditional_read( + *slot = mb.conditional_read( true, Address { tag: MemoryTag::TraceCommitments.into(), @@ -2056,13 +2060,11 @@ fn trace_ic>(curr_pid: usize, mb: &mut M, config: &OpcodeConfig) } concat_data[4] = config.opcode_discriminant; - for i in 0..OPCODE_ARG_COUNT { - concat_data[i + 5] = config.opcode_args[i]; - } + concat_data[5..(OPCODE_ARG_COUNT + 5)].copy_from_slice(&config.opcode_args[..]); let new_commitment = ark_poseidon2::compress_12_trace(&concat_data).unwrap(); - for i in 0..4 { + for (i, elem) in new_commitment.iter().enumerate() { let addr = (curr_pid * 4) + i; mb.conditional_write( @@ -2071,7 +2073,7 @@ fn trace_ic>(curr_pid: usize, mb: &mut M, config: &OpcodeConfig) addr: addr as u64, tag: MemoryTag::TraceCommitments.into(), }, - vec![new_commitment[i]], + vec![*elem], ); } } diff --git a/interleaving/starstream-interleaving-proof/src/circuit_test.rs b/interleaving/starstream-interleaving-proof/src/circuit_test.rs index d8dd772a..900e479f 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit_test.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit_test.rs @@ -84,7 +84,7 @@ fn test_circuit_many_steps() { handler_id: p2.into(), }, WitLedgerEffect::Yield { - val: ref_1.clone(), // Yielding nothing + val: ref_1, // Yielding nothing ret: WitEffectOutput::Thunk, // Not expecting to be resumed again caller: Some(p2).into(), }, @@ -106,7 +106,7 @@ fn test_circuit_many_steps() { }, WitLedgerEffect::Bind { owner_id: p0 }, WitLedgerEffect::Yield { - val: ref_1.clone(), // Yielding nothing + val: ref_1, // Yielding nothing ret: WitEffectOutput::Thunk, // Not expecting to be resumed again caller: Some(p2).into(), }, @@ -122,12 +122,12 @@ fn test_circuit_many_steps() { size: 1, ret: ref_1.into(), }, - ref_push1(val_1.clone()), + ref_push1(val_1), WitLedgerEffect::NewRef { size: 1, ret: ref_4.into(), }, - ref_push1(val_4.clone()), + ref_push1(val_4), WitLedgerEffect::NewUtxo { program_hash: h(0), val: ref_4, @@ -140,8 +140,8 @@ fn test_circuit_many_steps() { }, WitLedgerEffect::Resume { target: p1, - val: ref_0.clone(), - ret: ref_1.clone().into(), + val: ref_0, + ret: ref_1.into(), caller: WitEffectOutput::Resolved(None), }, WitLedgerEffect::InstallHandler { @@ -200,7 +200,7 @@ fn test_circuit_small() { let ref_0 = Ref(0); let utxo_trace = vec![WitLedgerEffect::Yield { - val: ref_0.clone(), // Yielding nothing + val: ref_0, // Yielding nothing ret: WitEffectOutput::Thunk, // Not expecting to be resumed again caller: Some(p1).into(), // This should be None actually? }]; @@ -218,9 +218,9 @@ fn test_circuit_small() { }, WitLedgerEffect::Resume { target: p0, - val: ref_0.clone(), - ret: ref_0.clone().into(), - caller: WitEffectOutput::Resolved(None.into()), + val: ref_0, + ret: ref_0.into(), + caller: WitEffectOutput::Resolved(None), }, ]; @@ -269,7 +269,7 @@ fn test_circuit_resumer_mismatch() { let ref_0 = Ref(0); let utxo_trace = vec![WitLedgerEffect::Yield { - val: ref_0.clone(), + val: ref_0, ret: WitEffectOutput::Thunk, caller: Some(p1).into(), }]; @@ -292,14 +292,14 @@ fn test_circuit_resumer_mismatch() { }, WitLedgerEffect::Resume { target: p0, - val: ref_0.clone(), - ret: ref_0.clone().into(), + val: ref_0, + ret: ref_0.into(), caller: WitEffectOutput::Resolved(None), }, WitLedgerEffect::Resume { target: p2, - val: ref_0.clone(), - ret: ref_0.clone().into(), + val: ref_0, + ret: ref_0.into(), caller: WitEffectOutput::Resolved(None), }, ]; @@ -362,7 +362,7 @@ fn test_ref_write_basic_sat() { }, WitLedgerEffect::RefGet { ret: initial_get.into(), - reff: ref_0.into(), + reff: ref_0, offset: 0, }, WitLedgerEffect::RefWrite { @@ -372,7 +372,7 @@ fn test_ref_write_basic_sat() { }, WitLedgerEffect::RefGet { ret: updated_get.into(), - reff: ref_0.into(), + reff: ref_0, offset: 0, }, ]; @@ -474,14 +474,14 @@ fn test_yield_parent_resumer_mismatch_trace() { // Coord A resumes UTXO but sets its own expected_resumer to Coord B. // Then UTXO yields back to Coord A. Spec says this should fail. let utxo_trace = vec![WitLedgerEffect::Yield { - val: ref_1.clone(), + val: ref_1, ret: WitEffectOutput::Thunk, caller: Some(p1).into(), }]; let coord_a_trace = vec![WitLedgerEffect::Resume { target: p0, - val: ref_0.clone(), + val: ref_0, ret: ref_1.into(), caller: Some(p2).into(), }]; diff --git a/interleaving/starstream-interleaving-proof/src/opcode_dsl.rs b/interleaving/starstream-interleaving-proof/src/opcode_dsl.rs index 0e6b5a93..dbb2370e 100644 --- a/interleaving/starstream-interleaving-proof/src/opcode_dsl.rs +++ b/interleaving/starstream-interleaving-proof/src/opcode_dsl.rs @@ -190,7 +190,7 @@ impl<'a, M: IVCMemoryAllocated> OpcodeDsl for OpcodeSynthDsl<'a, M> { tag: tag.allocate(self.cs.clone())?, addr: addr.clone(), }, - &[val.clone()], + std::slice::from_ref(val), ) } } diff --git a/interleaving/starstream-interleaving-proof/src/ref_arena_gadget.rs b/interleaving/starstream-interleaving-proof/src/ref_arena_gadget.rs index 6fb2472f..0db682ee 100644 --- a/interleaving/starstream-interleaving-proof/src/ref_arena_gadget.rs +++ b/interleaving/starstream-interleaving-proof/src/ref_arena_gadget.rs @@ -30,6 +30,7 @@ fn ref_sizes_access_ops( dsl.read(read_cond, MemoryTag::RefSizes, read_addr) } +#[allow(clippy::too_many_arguments)] fn ref_arena_access_ops( dsl: &mut D, read_cond: &D::Bool, @@ -201,6 +202,7 @@ pub(crate) fn ref_arena_read_size>( ) } +#[allow(clippy::too_many_arguments)] pub(crate) fn ref_arena_access_wires>( cs: ConstraintSystemRef, rm: &mut M, diff --git a/interleaving/starstream-interleaving-spec/src/builder.rs b/interleaving/starstream-interleaving-spec/src/builder.rs index 42d8593b..9f5ee4c7 100644 --- a/interleaving/starstream-interleaving-spec/src/builder.rs +++ b/interleaving/starstream-interleaving-spec/src/builder.rs @@ -24,6 +24,12 @@ impl RefGenerator { } } +impl Default for RefGenerator { + fn default() -> Self { + Self::new() + } +} + pub fn h(n: u8) -> Hash { // TODO: actual hashing let mut bytes = [0u8; 32]; @@ -152,3 +158,9 @@ impl TransactionBuilder { } } } + +impl Default for TransactionBuilder { + fn default() -> Self { + Self::new() + } +} diff --git a/interleaving/starstream-interleaving-spec/src/lib.rs b/interleaving/starstream-interleaving-spec/src/lib.rs index c408e2c3..26b1cb2e 100644 --- a/interleaving/starstream-interleaving-spec/src/lib.rs +++ b/interleaving/starstream-interleaving-spec/src/lib.rs @@ -29,7 +29,7 @@ impl Copy for Hash {} impl Clone for Hash { fn clone(&self) -> Self { - Self(self.0.clone(), self.1.clone()) + *self } } @@ -81,6 +81,7 @@ pub struct CoroutineState { // pub struct ZkTransactionProof {} +#[allow(clippy::large_enum_variant)] pub enum ZkTransactionProof { NeoProof { // does the verifier need this? @@ -96,6 +97,7 @@ pub enum ZkTransactionProof { } impl ZkTransactionProof { + #[allow(clippy::result_large_err)] pub fn verify( &self, inst: &InterleavingInstance, @@ -113,9 +115,9 @@ impl ZkTransactionProof { let ok = session .verify_with_output_binding_simple( - &ccs, - &mcss_public, - &proof, + ccs, + mcss_public, + proof, &output_binding_config, ) .expect("verify should run"); @@ -190,6 +192,7 @@ impl ZkWasmProof { } } + #[allow(clippy::result_large_err)] pub fn verify( &self, _input: Option, @@ -367,6 +370,7 @@ impl Ledger { } } + #[allow(clippy::result_large_err)] pub fn apply_transaction(&self, tx: &ProvenTransaction) -> Result { let mut new_ledger = self.clone(); @@ -419,7 +423,7 @@ impl Ledger { let parent_utxo_id = &tx.body.inputs[i]; // A continuation has the same contract hash as the input it resumes - let contract_hash = self.utxos[parent_utxo_id].contract_hash.clone(); + let contract_hash = self.utxos[parent_utxo_id].contract_hash; let parent_state = self.utxos[parent_utxo_id].state.clone(); @@ -433,11 +437,11 @@ impl Ledger { // Allocate new UtxoId for the continued output let counter = new_ledger .contract_counters - .entry(contract_hash.clone()) + .entry(contract_hash) .or_insert(0); let utxo_id = UtxoId { - contract_hash: contract_hash.clone(), + contract_hash, nonce: *counter, }; *counter += 1; @@ -471,16 +475,16 @@ impl Ledger { // code, not just resumptions of the same coroutine let counter = new_ledger .contract_counters - .entry(out.contract_hash.clone()) + .entry(out.contract_hash) .or_insert(0); let utxo_id = UtxoId { - contract_hash: out.contract_hash.clone(), + contract_hash: out.contract_hash, nonce: *counter, }; *counter += 1; let coroutine_id = CoroutineId { - creation_tx_hash: tx_hash.clone(), + creation_tx_hash: tx_hash, // creation_output_index is relative to new_outputs (as before) creation_output_index: j as u64, }; @@ -496,7 +500,7 @@ impl Ledger { utxo_id, UtxoEntry { state: out.state.clone(), - contract_hash: out.contract_hash.clone(), + contract_hash: out.contract_hash, }, ); } @@ -531,7 +535,7 @@ impl Ledger { dbg!(&input_id); - if let None = new_ledger.utxos.remove(input_id) { + if new_ledger.utxos.remove(input_id).is_none() { return Err(VerificationError::InputNotFound); } @@ -541,6 +545,7 @@ impl Ledger { Ok(new_ledger) } + #[allow(clippy::result_large_err)] pub fn verify_witness( &self, body: &TransactionBody, @@ -608,8 +613,8 @@ impl Ledger { let process_table = body .inputs .iter() - .map(|input| self.utxos[input].contract_hash.clone()) - .chain(body.new_outputs.iter().map(|o| o.contract_hash.clone())) + .map(|input| self.utxos[input].contract_hash) + .chain(body.new_outputs.iter().map(|o| o.contract_hash)) .chain(body.coordination_scripts_keys.iter().cloned()) .collect::>(); @@ -719,6 +724,13 @@ impl Ledger { } } +impl Default for Ledger { + fn default() -> Self { + Self::new() + } +} + +#[allow(clippy::result_large_err)] pub fn build_wasm_instances_in_canonical_order( spending: &[ZkWasmProof], new_outputs: &[ZkWasmProof], @@ -752,6 +764,6 @@ impl std::hash::Hash for Hash { impl std::fmt::Debug for Hash { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "Hash({})", hex::encode(&self.0)) + write!(f, "Hash({})", hex::encode(self.0)) } } diff --git a/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs b/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs index b6c3f5f5..64b791f0 100644 --- a/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs +++ b/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs @@ -18,7 +18,6 @@ use crate::{ use ark_ff::Zero; use ark_goldilocks::FpGoldilocks; use std::collections::HashMap; -use thiserror; #[derive(Clone, PartialEq, Eq, Debug)] pub struct LedgerEffectsCommitment(pub [FpGoldilocks; 4]); @@ -215,7 +214,7 @@ pub enum InterleavingError { // ---------------------------- verifier ---------------------------- -pub struct ROM { +pub struct Rom { process_table: Vec>, must_burn: Vec, is_utxo: Vec, @@ -259,6 +258,7 @@ pub struct InterleavingState { handler_stack: HashMap>, } +#[allow(clippy::result_large_err)] pub fn verify_interleaving_semantics( inst: &InterleavingInstance, wit: &InterleavingWitness, @@ -277,7 +277,7 @@ pub fn verify_interleaving_semantics( // explicitly in the instance. let claims_memory = vec![None; n]; - let rom = ROM { + let rom = Rom { process_table: inst.process_table.clone(), must_burn: inst.must_burn.clone(), is_utxo: inst.is_utxo.clone(), @@ -407,9 +407,10 @@ pub fn verify_interleaving_semantics( Ok(()) } +#[allow(clippy::result_large_err)] pub fn state_transition( mut state: InterleavingState, - rom: &ROM, + rom: &Rom, op: WitLedgerEffect, ) -> Result { let id_curr = state.id_curr; @@ -439,10 +440,8 @@ pub fn state_transition( }); } - if state.ref_building.contains_key(&id_curr) { - if !matches!(op, WitLedgerEffect::RefPush { .. }) { - return Err(InterleavingError::BuildingRefButCalledOther(id_curr)); - } + if state.ref_building.contains_key(&id_curr) && !matches!(op, WitLedgerEffect::RefPush { .. }) { + return Err(InterleavingError::BuildingRefButCalledOther(id_curr)); } state.counters[id_curr.0] += 1; @@ -475,24 +474,24 @@ pub fn state_transition( state.activation[id_curr.0] = None; - if let Some(expected) = state.expected_input[target.0] { - if expected != val { - return Err(InterleavingError::ResumeClaimMismatch { - target, - expected: expected.clone(), - got: val.clone(), - }); - } + if let Some(expected) = state.expected_input[target.0] + && expected != val + { + return Err(InterleavingError::ResumeClaimMismatch { + target, + expected, + got: val, + }); } - if let Some(expected) = state.expected_resumer[target.0] { - if expected != id_curr { - return Err(InterleavingError::ResumerMismatch { - target, - expected, - got: id_curr, - }); - } + if let Some(expected) = state.expected_resumer[target.0] + && expected != id_curr + { + return Err(InterleavingError::ResumerMismatch { + target, + expected, + got: id_curr, + }); } state.activation[target.0] = Some((val, id_curr)); @@ -524,14 +523,14 @@ pub fn state_transition( .get(&val) .ok_or(InterleavingError::RefNotFound(val))?; - if let Some(expected) = state.expected_resumer[parent.0] { - if expected != id_curr { - return Err(InterleavingError::ResumerMismatch { - target: parent, - expected, - got: id_curr, - }); - } + if let Some(expected) = state.expected_resumer[parent.0] + && expected != id_curr + { + return Err(InterleavingError::ResumerMismatch { + target: parent, + expected, + got: id_curr, + }); } match ret.to_option() { @@ -571,7 +570,7 @@ pub fn state_transition( program_hash, } => { // check lookup against process_table - let expected = rom.process_table[target.0].clone(); + let expected = rom.process_table[target.0]; if expected != program_hash.unwrap() { return Err(InterleavingError::ProgramHashMismatch { target, @@ -596,7 +595,7 @@ pub fn state_transition( if rom.process_table[id.0] != program_hash { return Err(InterleavingError::ProgramHashMismatch { target: id, - expected: rom.process_table[id.0].clone(), + expected: rom.process_table[id.0], got: program_hash, }); } @@ -609,7 +608,7 @@ pub fn state_transition( )); } state.initialized[id.0] = true; - state.init[id.0] = Some((val.clone(), id_curr)); + state.init[id.0] = Some((val, id_curr)); state.expected_input[id.0] = None; state.expected_resumer[id.0] = None; state.on_yield[id.0] = true; @@ -631,7 +630,7 @@ pub fn state_transition( if rom.process_table[id.0] != program_hash { return Err(InterleavingError::ProgramHashMismatch { target: id, - expected: rom.process_table[id.0].clone(), + expected: rom.process_table[id.0], got: program_hash, }); } @@ -647,7 +646,7 @@ pub fn state_transition( } state.initialized[id.0] = true; - state.init[id.0] = Some((val.clone(), id_curr)); + state.init[id.0] = Some((val, id_curr)); state.expected_input[id.0] = None; state.expected_resumer[id.0] = None; state.on_yield[id.0] = true; @@ -669,7 +668,7 @@ pub fn state_transition( if rom.is_utxo[id_curr.0] { return Err(InterleavingError::CoordOnly(id_curr)); } - let stack = state.handler_stack.entry(interface_id.clone()).or_default(); + let stack = state.handler_stack.entry(interface_id).or_default(); let Some(top) = stack.last().copied() else { return Err(InterleavingError::HandlerNotFound { interface_id, @@ -694,7 +693,7 @@ pub fn state_transition( interface_id, handler_id, } => { - let stack = state.handler_stack.entry(interface_id.clone()).or_default(); + let stack = state.handler_stack.entry(interface_id).or_default(); let expected = stack.last().copied(); if expected != Some(handler_id.unwrap()) { return Err(InterleavingError::HandlerGetMismatch { diff --git a/interleaving/starstream-interleaving-spec/src/tests.rs b/interleaving/starstream-interleaving-spec/src/tests.rs index 3c711515..12b5b7b6 100644 --- a/interleaving/starstream-interleaving-spec/src/tests.rs +++ b/interleaving/starstream-interleaving-spec/src/tests.rs @@ -14,11 +14,11 @@ fn mock_genesis() -> (Ledger, UtxoId, UtxoId, CoroutineId, CoroutineId) { // Create input UTXO IDs let input_utxo_1 = UtxoId { - contract_hash: input_hash_1.clone(), + contract_hash: input_hash_1, nonce: 0, }; let input_utxo_2 = UtxoId { - contract_hash: input_hash_2.clone(), + contract_hash: input_hash_2, nonce: 0, }; @@ -46,7 +46,7 @@ fn mock_genesis() -> (Ledger, UtxoId, UtxoId, CoroutineId, CoroutineId) { pc: 0, last_yield: v(b"yield_1"), }, - contract_hash: input_hash_1.clone(), + contract_hash: input_hash_1, }, ); ledger.utxos.insert( @@ -56,7 +56,7 @@ fn mock_genesis() -> (Ledger, UtxoId, UtxoId, CoroutineId, CoroutineId) { pc: 0, last_yield: v(b"yield_2"), }, - contract_hash: input_hash_2.clone(), + contract_hash: input_hash_2, }, ); @@ -68,8 +68,8 @@ fn mock_genesis() -> (Ledger, UtxoId, UtxoId, CoroutineId, CoroutineId) { .insert(input_utxo_2.clone(), input_2_coroutine.clone()); // Set up contract counters - ledger.contract_counters.insert(input_hash_1.clone(), 1); - ledger.contract_counters.insert(input_hash_2.clone(), 1); + ledger.contract_counters.insert(input_hash_1, 1); + ledger.contract_counters.insert(input_hash_2, 1); ledger.contract_counters.insert(h(1), 0); // coord_hash ledger.contract_counters.insert(h(2), 0); // utxo_hash_a ledger.contract_counters.insert(h(3), 0); // utxo_hash_b @@ -83,6 +83,7 @@ fn mock_genesis() -> (Ledger, UtxoId, UtxoId, CoroutineId, CoroutineId) { ) } +#[allow(clippy::result_large_err)] fn mock_genesis_and_apply_tx(proven_tx: ProvenTransaction) -> Result { let (ledger, _, _, _, _) = mock_genesis(); ledger.apply_transaction(&proven_tx) @@ -204,7 +205,7 @@ fn test_transaction_with_coord_and_utxos() { vals: v7(b"init_a"), }, WitLedgerEffect::NewUtxo { - program_hash: utxo_hash_a.clone(), + program_hash: utxo_hash_a, val: init_a_ref, id: ProcessId(2).into(), }, @@ -216,7 +217,7 @@ fn test_transaction_with_coord_and_utxos() { vals: v7(b"init_b"), }, WitLedgerEffect::NewUtxo { - program_hash: utxo_hash_b.clone(), + program_hash: utxo_hash_b, val: init_b_ref, id: ProcessId(3).into(), }, @@ -304,7 +305,7 @@ fn test_transaction_with_coord_and_utxos() { pc: 0, last_yield: v(b"done_a"), }, - contract_hash: utxo_hash_a.clone(), + contract_hash: utxo_hash_a, }, utxo_a_trace, ) @@ -314,7 +315,7 @@ fn test_transaction_with_coord_and_utxos() { pc: 0, last_yield: v(b"done_b"), }, - contract_hash: utxo_hash_b.clone(), + contract_hash: utxo_hash_b, }, utxo_b_trace, ) @@ -344,10 +345,10 @@ fn test_effect_handlers() { }, WitLedgerEffect::ProgramHash { target: ProcessId(1), - program_hash: coord_hash.clone().into(), + program_hash: coord_hash.into(), }, WitLedgerEffect::GetHandlerFor { - interface_id: interface_id.clone(), + interface_id, handler_id: ProcessId(1).into(), }, WitLedgerEffect::NewRef { @@ -371,9 +372,7 @@ fn test_effect_handlers() { ]; let coord_trace = vec![ - WitLedgerEffect::InstallHandler { - interface_id: interface_id.clone(), - }, + WitLedgerEffect::InstallHandler { interface_id }, WitLedgerEffect::NewRef { size: 1, ret: ref_gen.get("init_utxo").into(), @@ -422,7 +421,7 @@ fn test_effect_handlers() { pc: 0, last_yield: v(b"utxo_final"), }, - contract_hash: utxo_hash.clone(), + contract_hash: utxo_hash, }, utxo_trace, ) diff --git a/interleaving/starstream-interleaving-spec/src/transaction_effects/instance.rs b/interleaving/starstream-interleaving-spec/src/transaction_effects/instance.rs index 1420c181..2f145ee8 100644 --- a/interleaving/starstream-interleaving-spec/src/transaction_effects/instance.rs +++ b/interleaving/starstream-interleaving-spec/src/transaction_effects/instance.rs @@ -53,6 +53,7 @@ pub struct InterleavingInstance { } impl InterleavingInstance { + #[allow(clippy::result_large_err)] pub fn check_shape(&self) -> Result<(), InterleavingError> { // ---------- shape checks ---------- // TODO: a few of these may be redundant @@ -104,8 +105,6 @@ impl InterleavingInstance { // // TODO: de-harcode the 13 // it's supposed to be the twist index of the TraceCommitments memory - let output_binding_config = OutputBindingConfig::new(num_bits, program_io).with_mem_idx(13); - - output_binding_config + OutputBindingConfig::new(num_bits, program_io).with_mem_idx(13) } } From 10071c52e99fc859e9eb414be632457c907c74c8 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Tue, 10 Feb 2026 02:14:23 -0300 Subject: [PATCH 135/152] pr feedback: revert rust-toolchain nightly change Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- rust-toolchain.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 58b88a38..b67e7d53 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,2 +1,2 @@ [toolchain] -channel = "nightly-2025-10-01" +channel = "1.89.0" From a09feb0111f2bf50fd30f053cedcbadc72674258 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Tue, 10 Feb 2026 02:15:08 -0300 Subject: [PATCH 136/152] pr feedback: remove unused dep from mock_ledger Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- mock-ledger/old/Cargo.toml | 3 --- 1 file changed, 3 deletions(-) diff --git a/mock-ledger/old/Cargo.toml b/mock-ledger/old/Cargo.toml index b0604d93..aaa34283 100644 --- a/mock-ledger/old/Cargo.toml +++ b/mock-ledger/old/Cargo.toml @@ -2,6 +2,3 @@ name = "mock-ledger" version = "0.1.0" edition = "2021" - -[dependencies] -starstream_ivc_proto = { path = "../starstream_ivc_proto" } From 4228e25ebc25523d19290b446d18b31f1f2bdfe4 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Wed, 11 Feb 2026 18:49:46 -0300 Subject: [PATCH 137/152] cp: multi tx test and remove unnecessary last_yield from the reference ledger Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .../src/circuit.rs | 9 - .../starstream-interleaving-spec/src/lib.rs | 14 +- .../starstream-interleaving-spec/src/tests.rs | 18 +- interleaving/starstream-runtime/Cargo.toml | 2 +- interleaving/starstream-runtime/src/lib.rs | 148 ++++++++++++---- .../src/test_support/mod.rs | 1 + .../{tests => src/test_support}/wasm_dsl.rs | 64 +++++-- .../starstream-runtime/tests/integration.rs | 7 +- .../tests/multi_tx_continuation.rs | 162 ++++++++++++++++++ .../tests/wrapper_coord_test.rs | 6 +- 10 files changed, 349 insertions(+), 82 deletions(-) create mode 100644 interleaving/starstream-runtime/src/test_support/mod.rs rename interleaving/starstream-runtime/{tests => src/test_support}/wasm_dsl.rs (89%) create mode 100644 interleaving/starstream-runtime/tests/multi_tx_continuation.rs diff --git a/interleaving/starstream-interleaving-proof/src/circuit.rs b/interleaving/starstream-interleaving-proof/src/circuit.rs index e942849a..3d46b28c 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit.rs @@ -47,8 +47,6 @@ struct OpcodeConfig { pub struct StepCircuitBuilder { pub instance: InterleavingInstance, - #[allow(dead_code)] - pub last_yield: Vec, pub ops: Vec>, write_ops: Vec<(ProgramState, ProgramState)>, mem_switches: Vec<(MemSwitchboardBool, MemSwitchboardBool)>, @@ -733,12 +731,6 @@ impl LedgerOperation { impl> StepCircuitBuilder { pub fn new(instance: InterleavingInstance, ops: Vec>) -> Self { - let last_yield = instance - .input_states - .iter() - .map(|v| abi::value_to_field(v.last_yield)) - .collect(); - let interface_resolver = InterfaceResolver::new(&ops); Self { @@ -751,7 +743,6 @@ impl> StepCircuitBuilder { interface_resolver, mem: PhantomData, instance, - last_yield, } } diff --git a/interleaving/starstream-interleaving-spec/src/lib.rs b/interleaving/starstream-interleaving-spec/src/lib.rs index 26b1cb2e..8f525e20 100644 --- a/interleaving/starstream-interleaving-spec/src/lib.rs +++ b/interleaving/starstream-interleaving-spec/src/lib.rs @@ -70,13 +70,8 @@ pub struct CoroutineState { // not what it is. A simple program counter is sufficient to check if a // coroutine continued execution in the tests. // - // It's still TBD whether the module would yield its own continuation - // state (making last_yield just the state), and always executed from the - // entry-point, or whether those should actually be different things (in - // which case last_yield could be used to persist the storage, and pc could - // be instead the call stack). pub pc: u64, - pub last_yield: Value, + pub globals: Vec, } // pub struct ZkTransactionProof {} @@ -240,7 +235,7 @@ pub struct UtxoId { /// /// But utxos just refer to each other through relative indexing in the /// transaction input/outputs. -#[derive(Clone, PartialEq, Eq, Hash)] +#[derive(Clone, PartialEq, Eq, Hash, Debug)] pub struct CoroutineId { pub creation_tx_hash: Hash, pub creation_output_index: u64, @@ -429,8 +424,7 @@ impl Ledger { // same state we don't change the nonce // - // note that this doesn't include the last_yield claim - let utxo_id = if cont.pc == parent_state.pc { + let utxo_id = if cont.pc == parent_state.pc && cont.globals == parent_state.globals { is_reference_input.insert(i); parent_utxo_id.clone() } else { @@ -533,8 +527,6 @@ impl Ledger { continue; } - dbg!(&input_id); - if new_ledger.utxos.remove(input_id).is_none() { return Err(VerificationError::InputNotFound); } diff --git a/interleaving/starstream-interleaving-spec/src/tests.rs b/interleaving/starstream-interleaving-spec/src/tests.rs index 12b5b7b6..e6036103 100644 --- a/interleaving/starstream-interleaving-spec/src/tests.rs +++ b/interleaving/starstream-interleaving-spec/src/tests.rs @@ -44,7 +44,7 @@ fn mock_genesis() -> (Ledger, UtxoId, UtxoId, CoroutineId, CoroutineId) { UtxoEntry { state: CoroutineState { pc: 0, - last_yield: v(b"yield_1"), + globals: vec![], }, contract_hash: input_hash_1, }, @@ -54,7 +54,7 @@ fn mock_genesis() -> (Ledger, UtxoId, UtxoId, CoroutineId, CoroutineId) { UtxoEntry { state: CoroutineState { pc: 0, - last_yield: v(b"yield_2"), + globals: vec![], }, contract_hash: input_hash_2, }, @@ -294,7 +294,7 @@ fn test_transaction_with_coord_and_utxos() { input_utxo_1, Some(CoroutineState { pc: 1, - last_yield: v(b"continued_1"), + globals: vec![], }), input_1_trace, ) @@ -303,7 +303,7 @@ fn test_transaction_with_coord_and_utxos() { NewOutput { state: CoroutineState { pc: 0, - last_yield: v(b"done_a"), + globals: vec![], }, contract_hash: utxo_hash_a, }, @@ -313,7 +313,7 @@ fn test_transaction_with_coord_and_utxos() { NewOutput { state: CoroutineState { pc: 0, - last_yield: v(b"done_b"), + globals: vec![], }, contract_hash: utxo_hash_b, }, @@ -419,7 +419,7 @@ fn test_effect_handlers() { NewOutput { state: CoroutineState { pc: 0, - last_yield: v(b"utxo_final"), + globals: vec![], }, contract_hash: utxo_hash, }, @@ -450,7 +450,7 @@ fn test_burn_with_continuation_fails() { input_utxo_1, Some(CoroutineState { pc: 1, - last_yield: v(b"burned"), + globals: vec![], }), vec![ WitLedgerEffect::NewRef { @@ -515,7 +515,7 @@ fn test_continuation_without_yield_fails() { input_utxo_1, Some(CoroutineState { pc: 1, - last_yield: v(b""), + globals: vec![], }), vec![], ) @@ -567,7 +567,7 @@ fn test_duplicate_input_utxo_fails() { UtxoEntry { state: CoroutineState { pc: 0, - last_yield: Value::nil(), + globals: vec![], }, contract_hash: h(1), }, diff --git a/interleaving/starstream-runtime/Cargo.toml b/interleaving/starstream-runtime/Cargo.toml index 8f334d44..5cb5acb8 100644 --- a/interleaving/starstream-runtime/Cargo.toml +++ b/interleaving/starstream-runtime/Cargo.toml @@ -13,9 +13,9 @@ starstream-interleaving-spec = { path = "../starstream-interleaving-spec" } thiserror = "2.0.17" wasmi = "1.0.7" sha2 = "0.10" +wasm-encoder = { workspace = true } [dev-dependencies] imbl = "6.1.0" wat = "1.0" -wasm-encoder = { workspace = true } wasmprinter = "0.2" diff --git a/interleaving/starstream-runtime/src/lib.rs b/interleaving/starstream-runtime/src/lib.rs index 3f3ce338..5fe0c4bd 100644 --- a/interleaving/starstream-runtime/src/lib.rs +++ b/interleaving/starstream-runtime/src/lib.rs @@ -14,6 +14,9 @@ use wasmi::{ mod trace_mermaid; pub use trace_mermaid::register_mermaid_decoder; +#[doc(hidden)] +pub mod test_support; + #[derive(thiserror::Error, Debug)] pub enum Error { #[error("invalid proof: {0}")] @@ -46,6 +49,61 @@ fn args_to_hash(a: u64, b: u64, c: u64, d: u64) -> [u8; 32] { buffer } +fn snapshot_globals( + store: &Store, + globals: &[wasmi::Global], +) -> Result, Error> { + let mut values = Vec::with_capacity(globals.len()); + for global in globals { + let val = global.get(store); + let value = match val { + Val::I64(v) => Value(v as u64), + Val::I32(v) => Value(v as u32 as u64), + _ => { + return Err(Error::RuntimeError( + "unsupported global type (only i32/i64 supported)".into(), + )) + } + }; + values.push(value); + } + Ok(values) +} + +fn restore_globals( + store: &mut Store, + globals: &[wasmi::Global], + values: &[Value], +) -> Result<(), Error> { + if globals.len() != values.len() { + return Err(Error::RuntimeError(format!( + "global count mismatch: expected {}, got {}", + globals.len(), + values.len() + ))); + } + + for (global, value) in globals.iter().zip(values.iter()) { + if global.ty(&mut *store).mutability().is_const() { + continue; + } + let val = match global.ty(&mut *store).content() { + wasmi::ValType::I64 => Val::I64(value.0 as i64), + wasmi::ValType::I32 => Val::I32(value.0 as i32), + _ => { + return Err(Error::RuntimeError( + "unsupported global type (only i32/i64 supported)".into(), + )) + } + }; + global + .set(&mut *store, val) + .map_err(|e| Error::RuntimeError(e.to_string()))?; + } + + Ok(()) +} + fn suspend_with_effect( caller: &mut Caller<'_, RuntimeState>, effect: WitLedgerEffect, @@ -84,6 +142,7 @@ fn effect_result_arity(effect: &WitLedgerEffect) -> usize { pub struct UnprovenTransaction { pub inputs: Vec, + pub input_states: Vec, pub programs: Vec, pub is_utxo: Vec, pub entrypoint: usize, @@ -103,6 +162,7 @@ pub struct RuntimeState { pub pending_activation: HashMap, pub pending_init: HashMap, + pub globals: HashMap>, pub ownership: HashMap>, pub process_hashes: HashMap>, @@ -146,6 +206,7 @@ impl Runtime { next_ref: 0, pending_activation: HashMap::new(), pending_init: HashMap::new(), + globals: HashMap::new(), ownership: HashMap::new(), process_hashes: HashMap::new(), is_utxo: HashMap::new(), @@ -711,6 +772,14 @@ impl Runtime { } impl UnprovenTransaction { + fn get_globals(&self, pid: usize, state: &RuntimeState) -> Result, Error> { + state + .globals + .get(&ProcessId(pid)) + .cloned() + .ok_or_else(|| Error::RuntimeError(format!("No globals for pid {}", pid))) + } + pub fn prove(self) -> Result { let (instance, state, witness) = self.execute()?; @@ -742,8 +811,11 @@ impl UnprovenTransaction { let continuation = if instance.must_burn[i] { None } else { - let last_yield = self.get_last_yield(i, &state)?; - Some(CoroutineState { pc: 0, last_yield }) + let globals = self.get_globals(i, &state)?; + Some(CoroutineState { + pc: 0, + globals, + }) }; builder = builder.with_input_and_trace_commitment( @@ -762,13 +834,16 @@ impl UnprovenTransaction { .take(instance.n_new) { let trace = trace.clone(); - let last_yield = self.get_last_yield(i, &state)?; + let globals = self.get_globals(i, &state)?; let contract_hash = state.process_hashes[&ProcessId(i)]; let host_calls_root = instance.host_calls_roots[i].clone(); builder = builder.with_fresh_output_and_trace_commitment( NewOutput { - state: CoroutineState { pc: 0, last_yield }, + state: CoroutineState { + pc: 0, + globals, + }, contract_hash, }, trace, @@ -804,34 +879,6 @@ impl UnprovenTransaction { Ok(builder.build(proof)) } - fn get_last_yield(&self, pid: usize, state: &RuntimeState) -> Result { - let trace = state - .traces - .get(&ProcessId(pid)) - .ok_or(Error::RuntimeError(format!("No trace for pid {}", pid)))?; - let last_op = trace - .last() - .ok_or(Error::RuntimeError(format!("Empty trace for pid {}", pid)))?; - let val_ref = match last_op { - WitLedgerEffect::Yield { val, .. } => *val, - _ => { - return Err(Error::RuntimeError(format!( - "Process {} did not yield (last op: {:?})", - pid, last_op - ))); - } - }; - - let values = state - .ref_store - .get(&val_ref) - .ok_or(Error::RuntimeError(format!("Ref {:?} not found", val_ref)))?; - values - .first() - .cloned() - .ok_or(Error::RuntimeError("Empty ref content".into())) - } - pub fn to_instance(&self) -> InterleavingInstance { self.execute().unwrap().0 } @@ -841,8 +888,18 @@ impl UnprovenTransaction { ) -> Result<(InterleavingInstance, RuntimeState, InterleavingWitness), Error> { let mut runtime = Runtime::new(); + let n_inputs = self.inputs.len(); + if !self.input_states.is_empty() && self.input_states.len() != n_inputs { + return Err(Error::RuntimeError(format!( + "Input state count mismatch: expected {}, got {}", + n_inputs, + self.input_states.len() + ))); + } + let mut instances = Vec::new(); let mut process_table = Vec::new(); + let mut globals_by_pid: Vec> = Vec::new(); for (pid, program_bytes) in self.programs.iter().enumerate() { let mut hasher = Sha256::new(); @@ -883,6 +940,22 @@ impl UnprovenTransaction { .insert(ProcessId(pid), memory); } + let mut globals = Vec::new(); + for export in instance.exports(&runtime.store) { + let name = export.name().to_string(); + if let Some(global) = export.into_global() { + globals.push((name, global)); + } + } + globals.sort_by(|a, b| a.0.cmp(&b.0)); + let globals: Vec = globals.into_iter().map(|(_, g)| g).collect(); + + if pid < n_inputs && !self.input_states.is_empty() { + let values = &self.input_states[pid].globals; + restore_globals(&mut runtime.store, &globals, values)?; + } + + globals_by_pid.push(globals); instances.push(instance); } @@ -1081,6 +1154,15 @@ impl UnprovenTransaction { } } + for (pid, globals) in globals_by_pid.iter().enumerate() { + let globals = snapshot_globals(&runtime.store, globals)?; + runtime + .store + .data_mut() + .globals + .insert(ProcessId(pid), globals); + } + let instance = InterleavingInstance { host_calls_roots, host_calls_lens, @@ -1093,7 +1175,7 @@ impl UnprovenTransaction { ownership_in, ownership_out, entrypoint: ProcessId(self.entrypoint), - input_states: vec![], + input_states: self.input_states.clone(), }; let witness = starstream_interleaving_spec::InterleavingWitness { traces }; diff --git a/interleaving/starstream-runtime/src/test_support/mod.rs b/interleaving/starstream-runtime/src/test_support/mod.rs new file mode 100644 index 00000000..f91d90f5 --- /dev/null +++ b/interleaving/starstream-runtime/src/test_support/mod.rs @@ -0,0 +1 @@ +pub mod wasm_dsl; diff --git a/interleaving/starstream-runtime/tests/wasm_dsl.rs b/interleaving/starstream-runtime/src/test_support/wasm_dsl.rs similarity index 89% rename from interleaving/starstream-runtime/tests/wasm_dsl.rs rename to interleaving/starstream-runtime/src/test_support/wasm_dsl.rs index cefebae0..7aa1e116 100644 --- a/interleaving/starstream-runtime/tests/wasm_dsl.rs +++ b/interleaving/starstream-runtime/src/test_support/wasm_dsl.rs @@ -1,6 +1,9 @@ +#![allow(dead_code)] + use wasm_encoder::{ - BlockType, CodeSection, EntityType, ExportKind, ExportSection, Function, FunctionSection, - ImportSection, Instruction, Module, TypeSection, ValType, + BlockType, CodeSection, ConstExpr, EntityType, ExportKind, ExportSection, Function, + FunctionSection, GlobalSection, GlobalType, ImportSection, Instruction, Module, TypeSection, + ValType, }; #[derive(Clone, Copy, Debug)] @@ -82,6 +85,16 @@ impl FuncBuilder { self.instrs.push(Instruction::LocalSet(dst.0)); } + pub fn global_get(&mut self, global: u32, dst: Local) { + self.instrs.push(Instruction::GlobalGet(global)); + self.instrs.push(Instruction::LocalSet(dst.0)); + } + + pub fn global_set(&mut self, global: u32, val: Value) { + val.emit(&mut self.instrs); + self.instrs.push(Instruction::GlobalSet(global)); + } + pub fn emit_eq_i64(&mut self, a: Value, b: Value) { a.emit(&mut self.instrs); b.emit(&mut self.instrs); @@ -157,6 +170,7 @@ pub struct ModuleBuilder { functions: FunctionSection, codes: CodeSection, exports: ExportSection, + globals: GlobalSection, type_count: u32, import_count: u32, starstream: Option, @@ -191,6 +205,7 @@ impl ModuleBuilder { functions: FunctionSection::new(), codes: CodeSection::new(), exports: ExportSection::new(), + globals: GlobalSection::new(), type_count: 0, import_count: 0, starstream: None, @@ -354,6 +369,19 @@ impl ModuleBuilder { FuncBuilder::new() } + pub fn add_global_i64(&mut self, initial: i64, mutable: bool) -> u32 { + let global_type = GlobalType { + val_type: ValType::I64, + mutable, + shared: false, + }; + self.globals.global(global_type, &ConstExpr::i64_const(initial)); + let idx = self.globals.len() - 1; + let name = format!("__global_{}", idx); + self.exports.export(&name, ExportKind::Global, idx); + idx + } + pub fn finish(mut self, func: FuncBuilder) -> Vec { let type_idx = self.type_count; self.type_count += 1; @@ -367,6 +395,9 @@ impl ModuleBuilder { module.section(&self.types); module.section(&self.imports); module.section(&self.functions); + if !self.globals.is_empty() { + module.section(&self.globals); + } module.section(&self.exports); module.section(&self.codes); module.finish() @@ -382,7 +413,7 @@ impl Default for ModuleBuilder { #[macro_export] macro_rules! wasm_module { ({ $($body:tt)* }) => {{ - let mut __builder = $crate::wasm_dsl::ModuleBuilder::new(); + let mut __builder = $crate::test_support::wasm_dsl::ModuleBuilder::new(); let __imports = __builder.starstream(); let mut __func = __builder.func(); $crate::wasm!(__func, __imports, { $($body)* }); @@ -399,23 +430,23 @@ macro_rules! wasm_module { #[macro_export] macro_rules! wasm_value { (const($expr:expr)) => { - $crate::wasm_dsl::Value::Const($expr as i64) + $crate::test_support::wasm_dsl::Value::Const($expr as i64) }; ($lit:literal) => { - $crate::wasm_dsl::Value::Const($lit) + $crate::test_support::wasm_dsl::Value::Const($lit) }; ($var:ident) => { - $crate::wasm_dsl::Value::Local($var) + $crate::test_support::wasm_dsl::Value::Local($var) }; } #[macro_export] macro_rules! wasm_args { () => { - Vec::<$crate::wasm_dsl::Value>::new() + Vec::<$crate::test_support::wasm_dsl::Value>::new() }; ($($arg:tt)+) => {{ - let mut args = Vec::<$crate::wasm_dsl::Value>::new(); + let mut args = Vec::<$crate::test_support::wasm_dsl::Value>::new(); $crate::wasm_args_push!(args, $($arg)+); args }}; @@ -425,15 +456,15 @@ macro_rules! wasm_args { macro_rules! wasm_args_push { ($args:ident,) => {}; ($args:ident, const($expr:expr) $(, $($rest:tt)*)?) => {{ - $args.push($crate::wasm_dsl::Value::Const($expr as i64)); + $args.push($crate::test_support::wasm_dsl::Value::Const($expr as i64)); $( $crate::wasm_args_push!($args, $($rest)*); )? }}; ($args:ident, $lit:literal $(, $($rest:tt)*)?) => {{ - $args.push($crate::wasm_dsl::Value::Const($lit)); + $args.push($crate::test_support::wasm_dsl::Value::Const($lit)); $( $crate::wasm_args_push!($args, $($rest)*); )? }}; ($args:ident, $var:ident $(, $($rest:tt)*)?) => {{ - $args.push($crate::wasm_dsl::Value::Local($var)); + $args.push($crate::test_support::wasm_dsl::Value::Local($var)); $( $crate::wasm_args_push!($args, $($rest)*); )? }}; } @@ -582,6 +613,17 @@ macro_rules! wasm_stmt { $crate::wasm_stmt!($f, $imports, $($rest)*); }; + ($f:ident, $imports:ident, let $var:ident = global_get $idx:literal; $($rest:tt)*) => { + let $var = $f.local_i64(); + $f.global_get($idx as u32, $var); + $crate::wasm_stmt!($f, $imports, $($rest)*); + }; + + ($f:ident, $imports:ident, set_global $idx:literal = $val:tt; $($rest:tt)*) => { + $f.global_set($idx as u32, $crate::wasm_value!($val)); + $crate::wasm_stmt!($f, $imports, $($rest)*); + }; + ($f:ident, $imports:ident, let ($($var:ident),+ $(,)?) = call $func:ident ( $($arg:tt)* ); $($rest:tt)*) => { $(let $var = $f.local_i64();)+ $f.call($imports.$func, $crate::wasm_args!($($arg)*), &[$($var),+]); diff --git a/interleaving/starstream-runtime/tests/integration.rs b/interleaving/starstream-runtime/tests/integration.rs index e8399451..df885e00 100644 --- a/interleaving/starstream-runtime/tests/integration.rs +++ b/interleaving/starstream-runtime/tests/integration.rs @@ -1,9 +1,6 @@ -#[macro_use] -pub mod wasm_dsl; - use sha2::{Digest, Sha256}; use starstream_interleaving_spec::{Hash, InterfaceId, Ledger}; -use starstream_runtime::{UnprovenTransaction, register_mermaid_decoder}; +use starstream_runtime::{UnprovenTransaction, register_mermaid_decoder, wasm_module}; use std::marker::PhantomData; fn interface_id(a: u64, b: u64, c: u64, d: u64) -> InterfaceId { @@ -81,6 +78,7 @@ fn test_runtime_simple_effect_handlers() { let tx = UnprovenTransaction { inputs: vec![], + input_states: vec![], programs, is_utxo: vec![true, false], entrypoint: 1, @@ -238,6 +236,7 @@ fn test_runtime_effect_handlers_cross_calls() { let tx = UnprovenTransaction { inputs: vec![], + input_states: vec![], programs, is_utxo: vec![true, true, false], entrypoint: 2, diff --git a/interleaving/starstream-runtime/tests/multi_tx_continuation.rs b/interleaving/starstream-runtime/tests/multi_tx_continuation.rs new file mode 100644 index 00000000..c2153134 --- /dev/null +++ b/interleaving/starstream-runtime/tests/multi_tx_continuation.rs @@ -0,0 +1,162 @@ +use sha2::{Digest, Sha256}; +use starstream_interleaving_spec::{Ledger, UtxoId, Value}; +use starstream_runtime::{UnprovenTransaction, test_support::wasm_dsl, wasm_module}; + +fn hash_program(wasm: &Vec) -> (i64, i64, i64, i64) { + let mut hasher = Sha256::new(); + hasher.update(wasm); + let hash_bytes = hasher.finalize(); + + let a = i64::from_le_bytes(hash_bytes[0..8].try_into().unwrap()); + let b = i64::from_le_bytes(hash_bytes[8..16].try_into().unwrap()); + let c = i64::from_le_bytes(hash_bytes[16..24].try_into().unwrap()); + let d = i64::from_le_bytes(hash_bytes[24..32].try_into().unwrap()); + + (a, b, c, d) +} + +fn print_wat(name: &str, wasm: &[u8]) { + if std::env::var_os("DEBUG_WAT").is_none() { + return; + } + + match wasmprinter::print_bytes(wasm) { + Ok(wat) => eprintln!("--- WAT: {name} ---\n{wat}"), + Err(err) => eprintln!("--- WAT: {name} (failed: {err}) ---"), + } +} + +fn print_ledger(label: &str, ledger: &Ledger) { + eprintln!("--- Ledger: {label} ---"); + eprintln!("utxos: {}", ledger.utxos.len()); + let mut utxos: Vec<_> = ledger.utxos.iter().collect(); + utxos.sort_by_key(|(id, _)| (id.contract_hash.0, id.nonce)); + for (id, entry) in utxos { + eprintln!( + " utxo hash={} nonce={} pc={} globals={:?}", + format!("{:?}", id.contract_hash), + id.nonce, + entry.state.pc, + entry.state.globals + ); + } + eprintln!("ownership: {:?}", ledger.ownership_registry); + eprintln!("--- /Ledger: {label} ---"); +} + +#[test] +fn test_multi_tx_accumulator_global() { + let mut builder = wasm_dsl::ModuleBuilder::new(); + // global 0 = gpc, global 1 = acc + builder.add_global_i64(0, true); + builder.add_global_i64(0, true); + let utxo_bin = wasm_module!(builder, { + let (state_ref, _caller) = call activation(); + let (disc, arg, _b, _c) = call ref_get(state_ref, 0); + if disc == 1 { + let curr = global_get 1; + let next = add curr, arg; + set_global 1 = next; + let pc = global_get 0; + let next_pc = add pc, 1; + set_global 0 = next_pc; + call ref_write(state_ref, 0, next, 0, 0, 0); + } + let resp = call new_ref(1); + let acc = global_get 1; + call ref_push(acc, 0, 0, 0); + let (_ret, _caller2) = call yield_(resp); + }); + + let (utxo_hash_a, utxo_hash_b, utxo_hash_c, utxo_hash_d) = hash_program(&utxo_bin); + + let coord_bin = wasm_module!({ + let init_ref = call new_ref(1); + call ref_push(0, 0, 0, 0); + + let utxo_id = call new_utxo( + const(utxo_hash_a), + const(utxo_hash_b), + const(utxo_hash_c), + const(utxo_hash_d), + init_ref + ); + + let req = call new_ref(1); + call ref_push(1, 5, 0, 0); + let (resp, _caller) = call resume(utxo_id, req); + let (val, _b, _c, _d) = call ref_get(resp, 0); + assert_eq val, 5; + }); + + let coord2_bin = wasm_module!({ + let req = call new_ref(1); + call ref_push(1, 7, 0, 0); + let (resp, _caller) = call resume(0, req); + let (val, _b, _c, _d) = call ref_get(resp, 0); + assert_eq val, 12; + }); + + let coord3_bin = wasm_module!({ + let req = call new_ref(1); + call ref_push(2, 0, 0, 0); + let (resp, _caller) = call resume(0, req); + let (val, _b, _c, _d) = call ref_get(resp, 0); + assert_eq val, 12; + }); + + print_wat("globals/utxo", &utxo_bin); + print_wat("globals/coord1", &coord_bin); + print_wat("globals/coord2", &coord2_bin); + + let tx1 = UnprovenTransaction { + inputs: vec![], + input_states: vec![], + programs: vec![utxo_bin.clone(), coord_bin.clone()], + is_utxo: vec![true, false], + entrypoint: 1, + }; + + let proven_tx1 = tx1.prove().unwrap(); + let mut ledger = Ledger::new(); + ledger = ledger.apply_transaction(&proven_tx1).unwrap(); + print_ledger("after tx1", &ledger); + + let input_id: UtxoId = ledger.utxos.keys().next().cloned().unwrap(); + assert_eq!(input_id.nonce, 0); + assert_eq!(ledger.utxos[&input_id].state.globals, vec![Value(1), Value(5)]); + + let tx2 = UnprovenTransaction { + inputs: vec![input_id.clone()], + input_states: vec![ledger.utxos[&input_id].state.clone()], + programs: vec![utxo_bin.clone(), coord2_bin], + is_utxo: vec![true, false], + entrypoint: 1, + }; + + let proven_tx2 = tx2.prove().unwrap(); + ledger = ledger.apply_transaction(&proven_tx2).unwrap(); + print_ledger("after tx2", &ledger); + + let output_id: UtxoId = ledger.utxos.keys().next().cloned().unwrap(); + assert_eq!(output_id.nonce, 1); + let globals = &ledger.utxos[&output_id].state.globals; + assert_eq!(globals, &[Value(2), Value(12)]); + + let tx3 = UnprovenTransaction { + inputs: vec![output_id.clone()], + input_states: vec![ledger.utxos[&output_id].state.clone()], + programs: vec![utxo_bin, coord3_bin], + is_utxo: vec![true, false], + entrypoint: 1, + }; + + let proven_tx3 = tx3.prove().unwrap(); + ledger = ledger.apply_transaction(&proven_tx3).unwrap(); + print_ledger("after tx3", &ledger); + + let output_id3: UtxoId = ledger.utxos.keys().next().cloned().unwrap(); + assert_eq!(output_id3, output_id); + let globals = &ledger.utxos[&output_id3].state.globals; + assert_eq!(globals, &[Value(2), Value(12)]); +} diff --git a/interleaving/starstream-runtime/tests/wrapper_coord_test.rs b/interleaving/starstream-runtime/tests/wrapper_coord_test.rs index 63081ffb..edcf7443 100644 --- a/interleaving/starstream-runtime/tests/wrapper_coord_test.rs +++ b/interleaving/starstream-runtime/tests/wrapper_coord_test.rs @@ -1,9 +1,6 @@ -#[macro_use] -pub mod wasm_dsl; - use sha2::{Digest, Sha256}; use starstream_interleaving_spec::{Hash, InterfaceId, Ledger}; -use starstream_runtime::{UnprovenTransaction, register_mermaid_decoder}; +use starstream_runtime::{UnprovenTransaction, register_mermaid_decoder, wasm_module}; use std::marker::PhantomData; // this tests tries to encode something like a coordination script that provides a Cell interface @@ -276,6 +273,7 @@ fn test_runtime_wrapper_coord_newcoord_handlers() { let tx = UnprovenTransaction { inputs: vec![], + input_states: vec![], programs, is_utxo: vec![true, true, false, false, false], entrypoint: 4, From 85fb5ad52b24b2861fd686d9074dc8a40a073dda Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Thu, 12 Feb 2026 23:44:38 -0300 Subject: [PATCH 138/152] cp: dex swap-like integration test Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .../starstream-interleaving-spec/src/lib.rs | 63 +-- interleaving/starstream-runtime/src/lib.rs | 57 ++- .../src/test_support/wasm_dsl.rs | 54 +++ .../starstream-runtime/src/trace_mermaid.rs | 114 +++++- .../starstream-runtime/tests/integration.rs | 2 + .../tests/multi_tx_continuation.rs | 3 + .../tests/test_dex_swap_flow.rs | 363 ++++++++++++++++++ .../tests/wrapper_coord_test.rs | 1 + 8 files changed, 600 insertions(+), 57 deletions(-) create mode 100644 interleaving/starstream-runtime/tests/test_dex_swap_flow.rs diff --git a/interleaving/starstream-interleaving-spec/src/lib.rs b/interleaving/starstream-interleaving-spec/src/lib.rs index 8f525e20..a6501df5 100644 --- a/interleaving/starstream-interleaving-spec/src/lib.rs +++ b/interleaving/starstream-interleaving-spec/src/lib.rs @@ -365,6 +365,36 @@ impl Ledger { } } + /// Returns transaction-local input ownership for the given input order. + /// + /// For each input at process id `pid`, the value is: + /// - `Some(owner_pid)` if the input's stable coroutine is currently owned by + /// another input coroutine in this same list. + /// - `None` otherwise. + pub fn input_ownership_for_inputs(&self, inputs: &[UtxoId]) -> Vec> { + let mut ownership = vec![None; inputs.len()]; + let mut coroutine_to_pid: HashMap = HashMap::new(); + + for (pid, utxo_id) in inputs.iter().enumerate() { + let Some(cid) = self.utxo_to_coroutine.get(utxo_id) else { + continue; + }; + coroutine_to_pid.insert(cid.clone(), ProcessId(pid)); + } + + for (pid, utxo_id) in inputs.iter().enumerate() { + let Some(token_cid) = self.utxo_to_coroutine.get(utxo_id) else { + continue; + }; + let Some(owner_cid) = self.ownership_registry.get(token_cid) else { + continue; + }; + ownership[pid] = coroutine_to_pid.get(owner_cid).copied(); + } + + ownership + } + #[allow(clippy::result_large_err)] pub fn apply_transaction(&self, tx: &ProvenTransaction) -> Result { let mut new_ledger = self.clone(); @@ -617,37 +647,8 @@ impl Ledger { // the transaction-local processes that correspond to stable ids. // // (The circuit enforces that ownership_out is derived legally from this.) - let mut ownership_in: Vec> = vec![None; n_inputs + n_new]; - - // Build ProcessId -> stable CoroutineId map for inputs/new_outputs. - // - Inputs: stable ids from ledger - // - New outputs: have no prior stable id, so they start as unowned in ownership_in - // - Coord scripts: None - let mut process_to_coroutine: Vec> = vec![None; n_processes]; - for (i, utxo_id) in body.inputs.iter().enumerate() { - process_to_coroutine[i] = Some(self.utxo_to_coroutine[utxo_id].clone()); - } - // new_outputs and coord scripts remain None here, which encodes "no prior ownership relation" - - // Invert for the subset of stable ids that appear in inputs (so we can express owner as ProcessId). - let mut coroutine_to_process: HashMap = HashMap::new(); - for (pid, cid_opt) in process_to_coroutine.iter().enumerate() { - if let Some(cid) = cid_opt { - coroutine_to_process.insert(cid.clone(), ProcessId(pid)); - } - } - - // Fill ownership_in only for tokens that are inputs (the only ones that existed before the tx). - // New outputs are necessarily unowned at start, and coord scripts are None. - for (token_cid, owner_cid) in self.ownership_registry.iter() { - let Some(&token_pid) = coroutine_to_process.get(token_cid) else { - continue; - }; - let Some(&owner_pid) = coroutine_to_process.get(owner_cid) else { - continue; - }; - ownership_in[token_pid.0] = Some(owner_pid); - } + let mut ownership_in = self.input_ownership_for_inputs(&body.inputs); + ownership_in.extend(std::iter::repeat(None).take(n_new)); // Build wasm instances in the same canonical order as process_table: // inputs ++ new_outputs ++ coord scripts diff --git a/interleaving/starstream-runtime/src/lib.rs b/interleaving/starstream-runtime/src/lib.rs index 5fe0c4bd..04648904 100644 --- a/interleaving/starstream-runtime/src/lib.rs +++ b/interleaving/starstream-runtime/src/lib.rs @@ -12,7 +12,9 @@ use wasmi::{ }; mod trace_mermaid; -pub use trace_mermaid::register_mermaid_decoder; +pub use trace_mermaid::{ + register_mermaid_decoder, register_mermaid_default_decoder, register_mermaid_process_labels, +}; #[doc(hidden)] pub mod test_support; @@ -62,7 +64,7 @@ fn snapshot_globals( _ => { return Err(Error::RuntimeError( "unsupported global type (only i32/i64 supported)".into(), - )) + )); } }; values.push(value); @@ -93,7 +95,7 @@ fn restore_globals( _ => { return Err(Error::RuntimeError( "unsupported global type (only i32/i64 supported)".into(), - )) + )); } }; global @@ -143,6 +145,7 @@ fn effect_result_arity(effect: &WitLedgerEffect) -> usize { pub struct UnprovenTransaction { pub inputs: Vec, pub input_states: Vec, + pub input_ownership: Vec>, pub programs: Vec, pub is_utxo: Vec, pub entrypoint: usize, @@ -812,10 +815,7 @@ impl UnprovenTransaction { None } else { let globals = self.get_globals(i, &state)?; - Some(CoroutineState { - pc: 0, - globals, - }) + Some(CoroutineState { pc: 0, globals }) }; builder = builder.with_input_and_trace_commitment( @@ -840,10 +840,7 @@ impl UnprovenTransaction { builder = builder.with_fresh_output_and_trace_commitment( NewOutput { - state: CoroutineState { - pc: 0, - globals, - }, + state: CoroutineState { pc: 0, globals }, contract_hash, }, trace, @@ -896,6 +893,13 @@ impl UnprovenTransaction { self.input_states.len() ))); } + if !self.input_ownership.is_empty() && self.input_ownership.len() != n_inputs { + return Err(Error::RuntimeError(format!( + "Input ownership count mismatch: expected {}, got {}", + n_inputs, + self.input_ownership.len() + ))); + } let mut instances = Vec::new(); let mut process_table = Vec::new(); @@ -959,6 +963,16 @@ impl UnprovenTransaction { instances.push(instance); } + if !self.input_ownership.is_empty() { + for (pid, owner_opt) in self.input_ownership.iter().enumerate().take(n_inputs) { + runtime + .store + .data_mut() + .ownership + .insert(ProcessId(pid), *owner_opt); + } + } + // Map of suspended processes let mut resumables: HashMap> = HashMap::new(); @@ -982,7 +996,8 @@ impl UnprovenTransaction { let n_results = { let traces = &runtime.store.data().traces; let trace = traces.get(¤t_pid).expect("trace exists"); - effect_result_arity(trace.last().expect("trace not empty")) + let last = trace.last().expect("trace not empty"); + effect_result_arity(last) }; // Update previous effect with return value @@ -1147,11 +1162,23 @@ impl UnprovenTransaction { if pid < n_inputs { must_burn.push(data.must_burn.contains(&ProcessId(pid))); } + } - if self.is_utxo[pid] { - ownership_in.push(None); - ownership_out.push(None); + let utxo_count = n_inputs + n_new; + ownership_in.resize(utxo_count, None); + ownership_out.resize(utxo_count, None); + for pid in 0..utxo_count { + let proc_id = ProcessId(pid); + if pid < n_inputs && !self.input_ownership.is_empty() { + ownership_in[pid] = self.input_ownership[pid]; } + ownership_out[pid] = runtime + .store + .data() + .ownership + .get(&proc_id) + .copied() + .flatten(); } for (pid, globals) in globals_by_pid.iter().enumerate() { diff --git a/interleaving/starstream-runtime/src/test_support/wasm_dsl.rs b/interleaving/starstream-runtime/src/test_support/wasm_dsl.rs index 7aa1e116..12647ef6 100644 --- a/interleaving/starstream-runtime/src/test_support/wasm_dsl.rs +++ b/interleaving/starstream-runtime/src/test_support/wasm_dsl.rs @@ -85,6 +85,27 @@ impl FuncBuilder { self.instrs.push(Instruction::LocalSet(dst.0)); } + pub fn sub_i64(&mut self, a: Value, b: Value, dst: Local) { + a.emit(&mut self.instrs); + b.emit(&mut self.instrs); + self.instrs.push(Instruction::I64Sub); + self.instrs.push(Instruction::LocalSet(dst.0)); + } + + pub fn mul_i64(&mut self, a: Value, b: Value, dst: Local) { + a.emit(&mut self.instrs); + b.emit(&mut self.instrs); + self.instrs.push(Instruction::I64Mul); + self.instrs.push(Instruction::LocalSet(dst.0)); + } + + pub fn div_i64(&mut self, a: Value, b: Value, dst: Local) { + a.emit(&mut self.instrs); + b.emit(&mut self.instrs); + self.instrs.push(Instruction::I64DivS); + self.instrs.push(Instruction::LocalSet(dst.0)); + } + pub fn global_get(&mut self, global: u32, dst: Local) { self.instrs.push(Instruction::GlobalGet(global)); self.instrs.push(Instruction::LocalSet(dst.0)); @@ -579,6 +600,21 @@ macro_rules! wasm_stmt { $crate::wasm_stmt!($f, $imports, $($rest)*); }; + ($f:ident, $imports:ident, set $var:ident = sub $a:tt, $b:tt; $($rest:tt)*) => { + $f.sub_i64($crate::wasm_value!($a), $crate::wasm_value!($b), $var); + $crate::wasm_stmt!($f, $imports, $($rest)*); + }; + + ($f:ident, $imports:ident, set $var:ident = mul $a:tt, $b:tt; $($rest:tt)*) => { + $f.mul_i64($crate::wasm_value!($a), $crate::wasm_value!($b), $var); + $crate::wasm_stmt!($f, $imports, $($rest)*); + }; + + ($f:ident, $imports:ident, set $var:ident = div $a:tt, $b:tt; $($rest:tt)*) => { + $f.div_i64($crate::wasm_value!($a), $crate::wasm_value!($b), $var); + $crate::wasm_stmt!($f, $imports, $($rest)*); + }; + ($f:ident, $imports:ident, set ($($var:ident),+ $(,)?) = call $func:ident ( $($arg:tt)* ); $($rest:tt)*) => { $f.call($imports.$func, $crate::wasm_args!($($arg)*), &[$($var),+]); $crate::wasm_stmt!($f, $imports, $($rest)*); @@ -613,6 +649,24 @@ macro_rules! wasm_stmt { $crate::wasm_stmt!($f, $imports, $($rest)*); }; + ($f:ident, $imports:ident, let $var:ident = sub $a:tt, $b:tt; $($rest:tt)*) => { + let $var = $f.local_i64(); + $f.sub_i64($crate::wasm_value!($a), $crate::wasm_value!($b), $var); + $crate::wasm_stmt!($f, $imports, $($rest)*); + }; + + ($f:ident, $imports:ident, let $var:ident = mul $a:tt, $b:tt; $($rest:tt)*) => { + let $var = $f.local_i64(); + $f.mul_i64($crate::wasm_value!($a), $crate::wasm_value!($b), $var); + $crate::wasm_stmt!($f, $imports, $($rest)*); + }; + + ($f:ident, $imports:ident, let $var:ident = div $a:tt, $b:tt; $($rest:tt)*) => { + let $var = $f.local_i64(); + $f.div_i64($crate::wasm_value!($a), $crate::wasm_value!($b), $var); + $crate::wasm_stmt!($f, $imports, $($rest)*); + }; + ($f:ident, $imports:ident, let $var:ident = global_get $idx:literal; $($rest:tt)*) => { let $var = $f.local_i64(); $f.global_get($idx as u32, $var); diff --git a/interleaving/starstream-runtime/src/trace_mermaid.rs b/interleaving/starstream-runtime/src/trace_mermaid.rs index ed836cc4..6cec3460 100644 --- a/interleaving/starstream-runtime/src/trace_mermaid.rs +++ b/interleaving/starstream-runtime/src/trace_mermaid.rs @@ -18,6 +18,10 @@ enum DecodeMode { type MermaidDecoder = Arc Option + Send + Sync + 'static>; static MERMAID_DECODERS: OnceLock>> = OnceLock::new(); +static MERMAID_DEFAULT_DECODER: OnceLock>> = OnceLock::new(); + +static MERMAID_LABELS_OVERRIDES: OnceLock> = OnceLock::new(); +static MERMAID_COMBINED: OnceLock>> = OnceLock::new(); pub fn register_mermaid_decoder( interface_id: InterfaceId, @@ -28,6 +32,18 @@ pub fn register_mermaid_decoder( map.insert(interface_id, Arc::new(decoder)); } +pub fn register_mermaid_default_decoder( + decoder: impl Fn(&[Value]) -> Option + Send + Sync + 'static, +) { + let slot = MERMAID_DEFAULT_DECODER.get_or_init(|| Mutex::new(None)); + let mut slot = slot.lock().expect("mermaid default decoder lock poisoned"); + *slot = Some(Arc::new(decoder)); +} + +pub fn register_mermaid_process_labels(labels: Vec) { + MERMAID_LABELS_OVERRIDES.get_or_init(|| labels); +} + pub fn emit_trace_mermaid(instance: &InterleavingInstance, state: &RuntimeState) { if env::var("STARSTREAM_RUNTIME_TRACE_MERMAID") .ok() @@ -41,7 +57,10 @@ pub fn emit_trace_mermaid(instance: &InterleavingInstance, state: &RuntimeState) return; } - let labels = build_process_labels(&instance.is_utxo); + let labels = MERMAID_LABELS_OVERRIDES + .get() + .cloned() + .unwrap_or_else(|| build_process_labels(&instance.is_utxo)); let mut out = String::new(); out.push_str("sequenceDiagram\n"); for label in &labels { @@ -73,16 +92,69 @@ pub fn emit_trace_mermaid(instance: &InterleavingInstance, state: &RuntimeState) update_handler_targets(*pid, effect, &mut handler_targets, &mut handler_interfaces); } - let ts = time::SystemTime::now() - .duration_since(time::UNIX_EPOCH) - .unwrap_or_default() - .as_millis(); - let mmd_path = env::temp_dir().join(format!("starstream_trace_{ts}.mmd")); - if let Err(err) = fs::write(&mmd_path, out) { + emit_trace_mermaid_combined(labels, out); +} + +#[derive(Clone)] +struct CombinedTrace { + labels: Vec, + next_tx: usize, + edges: String, + mmd_path: std::path::PathBuf, +} + +fn emit_trace_mermaid_combined(labels: Vec, per_tx_diagram: String) { + let slot = MERMAID_COMBINED.get_or_init(|| Mutex::new(None)); + let mut guard = slot.lock().expect("mermaid combined trace lock poisoned"); + let needs_reset = guard.as_ref().map(|s| s.labels != labels).unwrap_or(true); + if needs_reset { + *guard = Some(CombinedTrace { + labels: labels.clone(), + next_tx: 1, + edges: String::new(), + mmd_path: env::temp_dir() + .join(format!("starstream_trace_combined_{}.mmd", std::process::id())), + }); + } + let state = guard.as_mut().expect("combined state must exist"); + + if !state.edges.is_empty() { + state.edges.push('\n'); + } + let first = state.labels.first().cloned().unwrap_or_else(|| "p0".to_string()); + let last = state.labels.last().cloned().unwrap_or_else(|| first.clone()); + state + .edges + .push_str(&format!(" Note over {first},{last}: tx {}\n", state.next_tx)); + for line in per_tx_diagram.lines().skip_while(|line| *line != "sequenceDiagram").skip(1) { + if line.trim_start().starts_with("participant ") { + continue; + } + state.edges.push_str(line); + state.edges.push('\n'); + } + state.next_tx += 1; + + let mut merged = String::new(); + merged.push_str("sequenceDiagram\n"); + for label in &state.labels { + merged.push_str(&format!(" participant {label}\n")); + } + merged.push_str(&state.edges); + + write_mermaid_artifacts(&state.mmd_path, &merged); +} + +fn write_mermaid_artifacts(mmd_path: &std::path::Path, mmd: &str) { + if let Err(err) = fs::write(mmd_path, mmd) { eprintln!("mermaid: failed to write {}: {err}", mmd_path.display()); return; } + let ts = time::SystemTime::now() + .duration_since(time::UNIX_EPOCH) + .unwrap_or_default() + .as_millis(); let svg_path = mmd_path.with_extension("svg"); if mmdc_available() { let puppeteer_config_path = env::temp_dir().join(format!("starstream_mmdc_{ts}.json")); @@ -93,7 +165,7 @@ pub fn emit_trace_mermaid(instance: &InterleavingInstance, state: &RuntimeState) .arg("-p") .arg(&puppeteer_config_path) .arg("-i") - .arg(&mmd_path) + .arg(mmd_path) .arg("-o") .arg(&svg_path) .stdout(Stdio::null()) @@ -212,6 +284,14 @@ fn format_edge_line( ); Some(format!("{from} ->> {created}: {label}")) } + WitLedgerEffect::Bind { owner_id } => { + let to = ctx.labels.get(owner_id.0)?; + Some(format!("{from} ->> {to}: bind")) + } + WitLedgerEffect::Unbind { token_id } => { + let to = ctx.labels.get(token_id.0)?; + Some(format!("{from} ->> {to}: unbind")) + } _ => None, } } @@ -224,9 +304,11 @@ fn format_ref_with_value( ) -> String { let mut out = format!("ref={}", reff.0); if let Some(values) = ref_store.get(&reff) { - let extra = interface_id - .and_then(|id| decode_with_registry(id, values, decode_mode)) - .unwrap_or_else(|| format_raw_values(values)); + let extra = match interface_id { + Some(id) => decode_with_registry(id, values, decode_mode), + None => decode_with_default(values, decode_mode), + } + .unwrap_or_else(|| format_raw_values(values)); out.push(' '); out.push('['); out.push_str(&extra); @@ -268,6 +350,16 @@ fn decode_with_registry( decoder(values) } +fn decode_with_default(values: &[Value], decode_mode: DecodeMode) -> Option { + if decode_mode == DecodeMode::None { + return None; + } + let slot = MERMAID_DEFAULT_DECODER.get_or_init(|| Mutex::new(None)); + let slot = slot.lock().ok()?; + let decoder = slot.as_ref()?.clone(); + decoder(values) +} + fn apply_ref_mutations( pid: ProcessId, effect: &WitLedgerEffect, diff --git a/interleaving/starstream-runtime/tests/integration.rs b/interleaving/starstream-runtime/tests/integration.rs index df885e00..cfcb6bbf 100644 --- a/interleaving/starstream-runtime/tests/integration.rs +++ b/interleaving/starstream-runtime/tests/integration.rs @@ -79,6 +79,7 @@ fn test_runtime_simple_effect_handlers() { let tx = UnprovenTransaction { inputs: vec![], input_states: vec![], + input_ownership: vec![], programs, is_utxo: vec![true, false], entrypoint: 1, @@ -237,6 +238,7 @@ fn test_runtime_effect_handlers_cross_calls() { let tx = UnprovenTransaction { inputs: vec![], input_states: vec![], + input_ownership: vec![], programs, is_utxo: vec![true, true, false], entrypoint: 2, diff --git a/interleaving/starstream-runtime/tests/multi_tx_continuation.rs b/interleaving/starstream-runtime/tests/multi_tx_continuation.rs index c2153134..eee512ed 100644 --- a/interleaving/starstream-runtime/tests/multi_tx_continuation.rs +++ b/interleaving/starstream-runtime/tests/multi_tx_continuation.rs @@ -112,6 +112,7 @@ fn test_multi_tx_accumulator_global() { let tx1 = UnprovenTransaction { inputs: vec![], input_states: vec![], + input_ownership: vec![], programs: vec![utxo_bin.clone(), coord_bin.clone()], is_utxo: vec![true, false], entrypoint: 1, @@ -129,6 +130,7 @@ fn test_multi_tx_accumulator_global() { let tx2 = UnprovenTransaction { inputs: vec![input_id.clone()], input_states: vec![ledger.utxos[&input_id].state.clone()], + input_ownership: vec![None], programs: vec![utxo_bin.clone(), coord2_bin], is_utxo: vec![true, false], entrypoint: 1, @@ -146,6 +148,7 @@ fn test_multi_tx_accumulator_global() { let tx3 = UnprovenTransaction { inputs: vec![output_id.clone()], input_states: vec![ledger.utxos[&output_id].state.clone()], + input_ownership: vec![None], programs: vec![utxo_bin, coord3_bin], is_utxo: vec![true, false], entrypoint: 1, diff --git a/interleaving/starstream-runtime/tests/test_dex_swap_flow.rs b/interleaving/starstream-runtime/tests/test_dex_swap_flow.rs new file mode 100644 index 00000000..140e83ed --- /dev/null +++ b/interleaving/starstream-runtime/tests/test_dex_swap_flow.rs @@ -0,0 +1,363 @@ +use sha2::{Digest, Sha256}; +use starstream_interleaving_spec::{Ledger, UtxoId, Value}; +use starstream_runtime::{ + UnprovenTransaction, register_mermaid_default_decoder, register_mermaid_process_labels, + test_support::wasm_dsl, wasm_module, +}; + +fn hash_program(wasm: &Vec) -> (i64, i64, i64, i64) { + let mut hasher = Sha256::new(); + hasher.update(wasm); + let hash_bytes = hasher.finalize(); + let mut limbs = [0u64; 4]; + for (i, limb) in limbs.iter_mut().enumerate() { + let start = i * 8; + let end = start + 8; + *limb = u64::from_le_bytes(hash_bytes[start..end].try_into().unwrap()); + } + ( + limbs[0] as i64, + limbs[1] as i64, + limbs[2] as i64, + limbs[3] as i64, + ) +} + +fn print_wat(name: &str, wasm: &[u8]) { + if std::env::var_os("DEBUG_WAT").is_none() { + return; + } + + match wasmprinter::print_bytes(wasm) { + Ok(wat) => eprintln!("--- WAT: {name} ---\n{wat}"), + Err(err) => eprintln!("--- WAT: {name} (failed: {err}) ---"), + } +} + +#[test] +fn test_dex_swap_flow() { + register_mermaid_default_decoder(|values| { + let disc = values.first()?.0; + let arg1 = values.get(1).map(|v| v.0).unwrap_or(0); + let arg2 = values.get(2).map(|v| v.0).unwrap_or(0); + let label = match disc { + 1 => "start_swap".to_string(), + 2 => format!("add_token token_id={arg1} dy={arg2}"), + 3 => format!("remove_token token_id={arg1}"), + 4 => "end_swap".to_string(), + 101 => "token_get_amount".to_string(), + 102 => format!("token_bind owner={arg1}"), + _ => return None, + }; + Some(label) + }); + + let mut token_builder = wasm_dsl::ModuleBuilder::new(); + token_builder.add_global_i64(-1, true); + let token_bin = wasm_module!(token_builder, { + let uninit = const(-1); + let curr = global_get 0; + if curr == uninit { + let (init_ref, _init_caller) = call init(); + let (amt, _b0, _c0, _d0) = call ref_get(init_ref, 0); + set_global 0 = amt; + } + let (req, _caller_id) = call activation(); + + loop { + let (disc, arg, _b, _c) = call ref_get(req, 0); + + if disc == 102 { + call bind(arg); + } + + let resp = call new_ref(1); + + if disc == 101 { + let amt = global_get 0; + call ref_push(amt, 0, 0, 0); + } + + if disc == 102 { + call ref_push(0, 0, 0, 0); + } + + let (next_req, _caller2) = call yield_(resp); + set req = next_req; + continue; + } + }); + + let (token_hash_a, token_hash_b, token_hash_c, token_hash_d) = hash_program(&token_bin); + + let coord_swap_bin = wasm_module!({ + let utxo_id = const(0); + let token_y_id = const(1); + let token_x_id = const(2); + + // start_swap + let start = call new_ref(1); + call ref_push(1, 0, 0, 0); + let (resp_start, caller) = call resume(utxo_id, start); + let caller_next = caller; + + // read token_y amount + let get_amt = call new_ref(1); + call ref_push(101, 0, 0, 0); + let (resp_amt, _caller_amt) = call resume(token_y_id, get_amt); + let (dy, _b0, _c0, _d0) = call ref_get(resp_amt, 0); + + // add_token(token_y_id, dy) + let add = call new_ref(1); + call ref_push(2, token_y_id, dy, 0); + let (resp_add, caller) = call resume(caller_next, add); + let caller_next = caller; + + // remove_token(token_x_id) -> dx + let remove = call new_ref(1); + call ref_push(3, token_x_id, 0, 0); + let (resp_remove, caller) = call resume(caller_next, remove); + let caller_next = caller; + let (dx, _b1, _c1, _d1) = call ref_get(resp_remove, 0); + + // finalize token_x process in tx_swap without mutating it + let read_x = call new_ref(1); + call ref_push(101, 0, 0, 0); + let (_resp_x, _caller_x) = call resume(token_x_id, read_x); + + // end_swap (k must match) + let end = call new_ref(1); + call ref_push(4, 0, 0, 0); + let (resp_end, _caller_end) = call resume(caller_next, end); + let (_k_val, _b2, _c2, _d2) = call ref_get(resp_end, 0); + }); + + let (coord_hash_a, coord_hash_b, coord_hash_c, coord_hash_d) = hash_program(&coord_swap_bin); + + let mut builder = wasm_dsl::ModuleBuilder::new(); + // global 0 = x, global 1 = y, global 2 = k_saved, global 3 = in_swap + // global 4..7 = coord hash limbs + builder.add_global_i64(10, true); + builder.add_global_i64(20, true); + builder.add_global_i64(0, true); + builder.add_global_i64(0, true); + builder.add_global_i64(coord_hash_a, false); + builder.add_global_i64(coord_hash_b, false); + builder.add_global_i64(coord_hash_c, false); + builder.add_global_i64(coord_hash_d, false); + let utxo_bin = wasm_module!(builder, { + let (state_ref, caller_id) = call activation(); + let req = state_ref; + let caller = caller_id; + let caller_auth = caller_id; + + loop { + let (disc, token_id, dy, _c) = call ref_get(req, 0); + + if disc == 1 { + let (_ch_a, _ch_b, _ch_c, _ch_d) = call get_program_hash(caller_auth); + let _exp_a = global_get 4; + let _exp_b = global_get 5; + let _exp_c = global_get 6; + let _exp_d = global_get 7; + + set_global 3 = 1; + + let x = global_get 0; + let y = global_get 1; + let k = mul x, y; + set_global 2 = k; + } + + if disc == 2 { + let y = global_get 1; + let next_y = add y, dy; + set_global 1 = next_y; + } + + if disc == 3 { + call unbind(token_id); + } + + let resp = call new_ref(1); + + if disc == 1 { + call ref_push(0, 0, 0, 0); + } + + if disc == 2 { + call ref_push(0, 0, 0, 0); + } + + if disc == 0 { + call ref_push(0, 0, 0, 0); + } + + if disc == 3 { + let x = global_get 0; + let y = global_get 1; + let k = global_get 2; + let next_x = div k, y; + let dx = sub x, next_x; + set_global 0 = next_x; + call ref_push(dx, 0, 0, 0); + } + + if disc == 4 { + let x = global_get 0; + let y = global_get 1; + let k = global_get 2; + let k_curr = mul x, y; + call ref_push(k_curr, 0, 0, 0); + set_global 3 = 0; + } + + let (next_req, _caller_next) = call yield_(resp); + set req = next_req; + continue; + } + }); + + let (utxo_hash_a, utxo_hash_b, utxo_hash_c, utxo_hash_d) = hash_program(&utxo_bin); + + let coord_create_bin = wasm_module!({ + let init_ref = call new_ref(1); + call ref_push(0, 0, 0, 0); + + let utxo_id = call new_utxo( + const(utxo_hash_a), + const(utxo_hash_b), + const(utxo_hash_c), + const(utxo_hash_d), + init_ref + ); + + // create token_y with amount=5 + let token_init = call new_ref(1); + call ref_push(5, 0, 0, 0); + let token_y_id = call new_utxo( + const(token_hash_a), + const(token_hash_b), + const(token_hash_c), + const(token_hash_d), + token_init + ); + + // create token_x with amount=2 + let token_x_init = call new_ref(1); + call ref_push(2, 0, 0, 0); + let token_x_id = call new_utxo( + const(token_hash_a), + const(token_hash_b), + const(token_hash_c), + const(token_hash_d), + token_x_init + ); + + // pre-bind both tokens to DEX in tx_init_pool + let bind_y = call new_ref(1); + call ref_push(102, utxo_id, 0, 0); + let (_resp_bind_y, _caller_bind_y) = call resume(token_y_id, bind_y); + + let bind_x = call new_ref(1); + call ref_push(102, utxo_id, 0, 0); + let (_resp_bind_x, _caller_bind_x) = call resume(token_x_id, bind_x); + + // finalize token_y once in tx_init_pool without changing state + let read_y = call new_ref(1); + call ref_push(101, 0, 0, 0); + let (_resp_read_y, _caller_read_y) = call resume(token_y_id, read_y); + + // finalize token_x once in tx_init_pool without changing state + let read_x = call new_ref(1); + call ref_push(101, 0, 0, 0); + let (_resp_read_x, _caller_read_x) = call resume(token_x_id, read_x); + + // finalize DEX once in tx_init_pool without changing state + let noop = call new_ref(1); + call ref_push(0, 0, 0, 0); + let (_resp_noop, _caller_noop) = call resume(utxo_id, noop); + }); + + print_wat("dex/token", &token_bin); + print_wat("dex/utxo", &utxo_bin); + print_wat("dex/coord_create", &coord_create_bin); + print_wat("dex/coord_swap", &coord_swap_bin); + + register_mermaid_process_labels(vec![ + "DEX".to_string(), + "token_x".to_string(), + "token_y".to_string(), + "coord".to_string(), + ]); + + let token_bin_2 = token_bin.clone(); + let tx_init = UnprovenTransaction { + inputs: vec![], + input_states: vec![], + input_ownership: vec![], + programs: vec![ + utxo_bin.clone(), + token_bin.clone(), + token_bin_2.clone(), + coord_create_bin, + ], + is_utxo: vec![true, true, true, false], + entrypoint: 3, + }; + + let proven_init = tx_init.prove().unwrap(); + let mut ledger = Ledger::new(); + ledger = ledger.apply_transaction(&proven_init).unwrap(); + + assert_eq!(ledger.utxos.len(), 3); + let mut dex_id: Option = None; + let mut token_y_id: Option = None; + let mut token_x_id: Option = None; + for (id, entry) in &ledger.utxos { + if entry.state.globals.len() >= 4 { + dex_id = Some(id.clone()); + } else if entry.state.globals.len() == 1 && entry.state.globals[0] == Value(5) { + token_y_id = Some(id.clone()); + } else if entry.state.globals.len() == 1 && entry.state.globals[0] == Value(2) { + token_x_id = Some(id.clone()); + } + } + let dex_id = dex_id.unwrap(); + let token_y_id = token_y_id.unwrap(); + let token_x_id = token_x_id.unwrap(); + let swap_inputs = vec![dex_id.clone(), token_y_id.clone(), token_x_id.clone()]; + let swap_input_ownership = ledger.input_ownership_for_inputs(&swap_inputs); + + let tx_swap = UnprovenTransaction { + inputs: swap_inputs, + input_states: vec![ + ledger.utxos[&dex_id].state.clone(), + ledger.utxos[&token_y_id].state.clone(), + ledger.utxos[&token_x_id].state.clone(), + ], + input_ownership: swap_input_ownership, + programs: vec![utxo_bin, token_bin, token_bin_2, coord_swap_bin], + is_utxo: vec![true, true, true, false], + entrypoint: 3, + }; + + let proven_swap = tx_swap.prove().unwrap(); + ledger = ledger.apply_transaction(&proven_swap).unwrap(); + + assert_eq!(ledger.utxos.len(), 3); + let utxos: Vec<_> = ledger.utxos.values().collect(); + let utxo = utxos.iter().find(|u| u.state.globals.len() >= 4).unwrap(); + assert_eq!( + &utxo.state.globals[..4], + &[Value(8), Value(25), Value(200), Value(0)] + ); + let tokens: Vec<_> = utxos + .iter() + .filter(|u| u.state.globals.len() == 1) + .collect(); + assert_eq!(tokens.len(), 2); + let mut amounts: Vec<_> = tokens.iter().map(|u| u.state.globals[0]).collect(); + amounts.sort_by_key(|v| v.0); + assert_eq!(amounts, vec![Value(2), Value(5)]); +} diff --git a/interleaving/starstream-runtime/tests/wrapper_coord_test.rs b/interleaving/starstream-runtime/tests/wrapper_coord_test.rs index edcf7443..91214b7d 100644 --- a/interleaving/starstream-runtime/tests/wrapper_coord_test.rs +++ b/interleaving/starstream-runtime/tests/wrapper_coord_test.rs @@ -274,6 +274,7 @@ fn test_runtime_wrapper_coord_newcoord_handlers() { let tx = UnprovenTransaction { inputs: vec![], input_states: vec![], + input_ownership: vec![], programs, is_utxo: vec![true, true, false, false, false], entrypoint: 4, From 30aef760601e81f6208f70a54859a21e820af723 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Fri, 13 Feb 2026 15:04:22 -0300 Subject: [PATCH 139/152] circuit: fix invalid target address assignment in tracing for Unbind Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- interleaving/starstream-interleaving-proof/src/circuit.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/interleaving/starstream-interleaving-proof/src/circuit.rs b/interleaving/starstream-interleaving-proof/src/circuit.rs index 3d46b28c..dbec189c 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit.rs @@ -1050,6 +1050,7 @@ impl> StepCircuitBuilder { LedgerOperation::NewUtxo { target: id, .. } => Some(*id), LedgerOperation::NewCoord { target: id, .. } => Some(*id), LedgerOperation::ProgramHash { target, .. } => Some(*target), + LedgerOperation::Unbind { token_id } => Some(*token_id), _ => None, }; From c0c11870df290f56578f9f6f052a99262035d4a3 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Fri, 13 Feb 2026 15:05:07 -0300 Subject: [PATCH 140/152] circuit: add a span for the ref building mode constraint (better error messages) Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .../starstream-interleaving-proof/src/circuit.rs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/interleaving/starstream-interleaving-proof/src/circuit.rs b/interleaving/starstream-interleaving-proof/src/circuit.rs index dbec189c..f28dee02 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit.rs @@ -794,9 +794,12 @@ impl> StepCircuitBuilder { None }; - // Enforce global invariant: If building ref, must be RefPush - let is_building = wires_in.ref_building_remaining.is_zero()?.not(); - is_building.enforce_equal(&wires_in.switches.ref_push)?; + { + let _guard = debug_span!(target: "gr1cs", "ref_building_mode").entered(); + // Enforce global invariant: If building ref, must be RefPush + let is_building = wires_in.ref_building_remaining.is_zero()?.not(); + is_building.enforce_equal(&wires_in.switches.ref_push)?; + } irw.update(next_wires); @@ -1098,6 +1101,7 @@ impl> StepCircuitBuilder { &curr_write, &curr_switches, ); + trace_program_state_writes(&mut mb, target_pid_value, &target_write, &target_switches); // update pids for next iteration @@ -1643,6 +1647,7 @@ impl> StepCircuitBuilder { .conditional_enforce_equal(&wires.constant_false, switch)?; let owner_id_encoded = &wires.arg(ArgName::OwnerId) + FpVar::one(); + wires .curr_write_wires .ownership From a774639ac9021e4241edf2503b546f2f50ff68ca Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Sat, 14 Feb 2026 01:47:02 -0300 Subject: [PATCH 141/152] run cargo fmt Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .../src/test_support/wasm_dsl.rs | 3 +- .../starstream-runtime/src/trace_mermaid.rs | 31 ++++++++++++++----- .../tests/multi_tx_continuation.rs | 5 ++- 3 files changed, 29 insertions(+), 10 deletions(-) diff --git a/interleaving/starstream-runtime/src/test_support/wasm_dsl.rs b/interleaving/starstream-runtime/src/test_support/wasm_dsl.rs index 12647ef6..6569ea6c 100644 --- a/interleaving/starstream-runtime/src/test_support/wasm_dsl.rs +++ b/interleaving/starstream-runtime/src/test_support/wasm_dsl.rs @@ -396,7 +396,8 @@ impl ModuleBuilder { mutable, shared: false, }; - self.globals.global(global_type, &ConstExpr::i64_const(initial)); + self.globals + .global(global_type, &ConstExpr::i64_const(initial)); let idx = self.globals.len() - 1; let name = format!("__global_{}", idx); self.exports.export(&name, ExportKind::Global, idx); diff --git a/interleaving/starstream-runtime/src/trace_mermaid.rs b/interleaving/starstream-runtime/src/trace_mermaid.rs index 6cec3460..9206fdb3 100644 --- a/interleaving/starstream-runtime/src/trace_mermaid.rs +++ b/interleaving/starstream-runtime/src/trace_mermaid.rs @@ -112,8 +112,10 @@ fn emit_trace_mermaid_combined(labels: Vec, per_tx_diagram: String) { labels: labels.clone(), next_tx: 1, edges: String::new(), - mmd_path: env::temp_dir() - .join(format!("starstream_trace_combined_{}.mmd", std::process::id())), + mmd_path: env::temp_dir().join(format!( + "starstream_trace_combined_{}.mmd", + std::process::id() + )), }); } let state = guard.as_mut().expect("combined state must exist"); @@ -121,12 +123,25 @@ fn emit_trace_mermaid_combined(labels: Vec, per_tx_diagram: String) { if !state.edges.is_empty() { state.edges.push('\n'); } - let first = state.labels.first().cloned().unwrap_or_else(|| "p0".to_string()); - let last = state.labels.last().cloned().unwrap_or_else(|| first.clone()); - state - .edges - .push_str(&format!(" Note over {first},{last}: tx {}\n", state.next_tx)); - for line in per_tx_diagram.lines().skip_while(|line| *line != "sequenceDiagram").skip(1) { + let first = state + .labels + .first() + .cloned() + .unwrap_or_else(|| "p0".to_string()); + let last = state + .labels + .last() + .cloned() + .unwrap_or_else(|| first.clone()); + state.edges.push_str(&format!( + " Note over {first},{last}: tx {}\n", + state.next_tx + )); + for line in per_tx_diagram + .lines() + .skip_while(|line| *line != "sequenceDiagram") + .skip(1) + { if line.trim_start().starts_with("participant ") { continue; } diff --git a/interleaving/starstream-runtime/tests/multi_tx_continuation.rs b/interleaving/starstream-runtime/tests/multi_tx_continuation.rs index eee512ed..e93979e6 100644 --- a/interleaving/starstream-runtime/tests/multi_tx_continuation.rs +++ b/interleaving/starstream-runtime/tests/multi_tx_continuation.rs @@ -125,7 +125,10 @@ fn test_multi_tx_accumulator_global() { let input_id: UtxoId = ledger.utxos.keys().next().cloned().unwrap(); assert_eq!(input_id.nonce, 0); - assert_eq!(ledger.utxos[&input_id].state.globals, vec![Value(1), Value(5)]); + assert_eq!( + ledger.utxos[&input_id].state.globals, + vec![Value(1), Value(5)] + ); let tx2 = UnprovenTransaction { inputs: vec![input_id.clone()], From 1004eecf24c427f5256c3f457df05943120ee0ed Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Sat, 14 Feb 2026 15:14:00 -0300 Subject: [PATCH 142/152] simplify Yield by removing the output (which could already be replaced with the Activation call) Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .../starstream-interleaving-proof/src/abi.rs | 10 +-- .../src/circuit.rs | 76 ++++++------------ .../src/circuit_test.rs | 24 ++---- .../src/ledger_operation.rs | 2 - .../starstream-interleaving-proof/src/neo.rs | 2 +- .../EFFECTS_REFERENCE.md | 78 ++++++------------- .../src/mocked_verifier.rs | 18 ++--- .../starstream-interleaving-spec/src/tests.rs | 16 +--- .../src/transaction_effects/witness.rs | 3 - interleaving/starstream-runtime/src/lib.rs | 20 +---- .../src/test_support/wasm_dsl.rs | 7 +- .../starstream-runtime/tests/integration.rs | 7 +- .../tests/multi_tx_continuation.rs | 2 +- .../tests/test_dex_swap_flow.rs | 6 +- .../tests/wrapper_coord_test.rs | 6 +- 15 files changed, 81 insertions(+), 196 deletions(-) diff --git a/interleaving/starstream-interleaving-proof/src/abi.rs b/interleaving/starstream-interleaving-proof/src/abi.rs index 4931989d..63401dd9 100644 --- a/interleaving/starstream-interleaving-proof/src/abi.rs +++ b/interleaving/starstream-interleaving-proof/src/abi.rs @@ -87,12 +87,8 @@ pub(crate) fn ledger_operation_from_wit(op: &WitLedgerEffect) -> LedgerOperation caller.to_option().flatten().map(|p| F::from(p.0 as u64)), ), }, - WitLedgerEffect::Yield { val, ret, caller } => LedgerOperation::Yield { + WitLedgerEffect::Yield { val } => LedgerOperation::Yield { val: F::from(val.0), - ret: ret.to_option().map(|r| F::from(r.0)), - caller: OptionalF::from_option( - caller.to_option().flatten().map(|p| F::from(p.0 as u64)), - ), }, WitLedgerEffect::Burn { ret } => LedgerOperation::Burn { ret: F::from(ret.0), @@ -211,10 +207,8 @@ pub(crate) fn opcode_args(op: &LedgerOperation) -> [F; OPCODE_ARG_COUNT] { args[ArgName::Ret.idx()] = *ret; args[ArgName::Caller.idx()] = caller.encoded(); } - LedgerOperation::Yield { val, ret, caller } => { + LedgerOperation::Yield { val } => { args[ArgName::Val.idx()] = *val; - args[ArgName::Ret.idx()] = ret.unwrap_or_default(); - args[ArgName::Caller.idx()] = caller.encoded(); } LedgerOperation::Burn { ret } => { args[ArgName::Target.idx()] = F::zero(); diff --git a/interleaving/starstream-interleaving-proof/src/circuit.rs b/interleaving/starstream-interleaving-proof/src/circuit.rs index f28dee02..5e787e76 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit.rs @@ -84,7 +84,6 @@ pub struct Wires { switches: ExecutionSwitches>, opcode_args: [FpVar; OPCODE_ARG_COUNT], - ret_is_some: Boolean, curr_read_wires: ProgramStateWires, curr_write_wires: ProgramStateWires, @@ -121,7 +120,6 @@ pub struct PreWires { ref_arena_switches: RefArenaSwitchboard, irw: InterRoundWires, - ret_is_some: bool, } /// IVC wires (state between steps) @@ -240,8 +238,6 @@ impl Wires { let val = opcode_args[ArgName::Val.idx()].clone(); let offset = opcode_args[ArgName::Offset.idx()].clone(); - let ret_is_some = Boolean::new_witness(cs.clone(), || Ok(vals.ret_is_some))?; - let curr_mem_switches = MemSwitchboardWires::allocate(cs.clone(), &vals.curr_mem_switches)?; let target_mem_switches = MemSwitchboardWires::allocate(cs.clone(), &vals.target_mem_switches)?; @@ -377,7 +373,6 @@ impl Wires { // wit_wires opcode_args, - ret_is_some, curr_read_wires, curr_write_wires, @@ -488,12 +483,10 @@ impl LedgerOperation { config.rom_switches.read_is_utxo_curr = true; config.rom_switches.read_is_utxo_target = true; } - LedgerOperation::Yield { ret: _ret, .. } => { + LedgerOperation::Yield { .. } => { config.execution_switches.yield_op = true; config.mem_switches_curr.activation = true; - config.mem_switches_curr.expected_input = true; - config.mem_switches_curr.expected_resumer = true; config.mem_switches_curr.on_yield = true; config.mem_switches_curr.yield_to = true; config.mem_switches_curr.finalized = true; @@ -663,6 +656,8 @@ impl LedgerOperation { // Target process receives control. // Its `arg` is set to `val`, and it is no longer in a `finalized` state. + target_write.expected_input = OptionalF::none(); + target_write.expected_resumer = OptionalF::none(); target_write.activation = *val; target_write.finalized = false; @@ -672,27 +667,11 @@ impl LedgerOperation { } target_write.on_yield = false; } - LedgerOperation::Yield { - // The yielded value `val` is checked against the parent's `expected_input`, - // but this doesn't change the parent's state itself. - val: _, - ret, - caller, - .. - } => { + LedgerOperation::Yield { val: _, .. } => { // Current process yields control back to its parent (the target of this operation). // Its `arg` is cleared. curr_write.activation = F::ZERO; // Represents None - if let Some(r) = ret { - // If Yield returns a value, it expects a new input `r` for the next resume. - curr_write.expected_input = OptionalF::new(*r); - curr_write.finalized = false; - } else { - // If Yield does not return a value, it's a final yield for this UTXO. - curr_write.expected_input = OptionalF::none(); - curr_write.finalized = true; - } - curr_write.expected_resumer = *caller; + curr_write.finalized = true; curr_write.on_yield = true; } LedgerOperation::Burn { ret } => { @@ -1237,9 +1216,8 @@ impl> StepCircuitBuilder { switches: ExecutionSwitches::resume(), ..default }, - LedgerOperation::Yield { ret, .. } => PreWires { + LedgerOperation::Yield { .. } => PreWires { switches: ExecutionSwitches::yield_op(), - ret_is_some: ret.is_some(), ..default }, LedgerOperation::Burn { .. } => PreWires { @@ -1364,6 +1342,18 @@ impl> StepCircuitBuilder { .on_yield .conditional_enforce_equal(&Boolean::FALSE, switch)?; + // Expectations are consumed by resume. + wires + .target_write_wires + .expected_input + .encoded() + .conditional_enforce_equal(&FpVar::zero(), switch)?; + wires + .target_write_wires + .expected_resumer + .encoded() + .conditional_enforce_equal(&FpVar::zero(), switch)?; + // 8. Store expected resumer for the current process. wires .curr_write_wires @@ -1470,11 +1460,14 @@ impl> StepCircuitBuilder { .conditional_enforce_eq_if_some(&(switch & &yield_to_is_some), &wires.id_curr)?; // Target state should be preserved on yield. + // TODO: make the switches more narrow in scope (only read, only write, + // or read write) wires .target_write_wires .expected_input .encoded() .conditional_enforce_equal(&wires.target_read_wires.expected_input.encoded(), switch)?; + wires .target_write_wires .expected_resumer @@ -1487,37 +1480,19 @@ impl> StepCircuitBuilder { // --- // State update enforcement // --- - // The state of the current process is updated by `write_values`. - // The `finalized` state depends on whether this is the last yield. - // `finalized` is true IFF `ret` is None. wires .curr_write_wires .finalized - .conditional_enforce_equal(&wires.ret_is_some.clone().not(), switch)?; - - // The next `expected_input` is `ret_value` if `ret` is Some, and None otherwise. - let new_expected_input_encoded = wires - .ret_is_some - .select(&(&wires.arg(ArgName::Ret) + FpVar::one()), &FpVar::zero())?; - - wires - .curr_write_wires - .expected_input - .encoded() - .conditional_enforce_equal(&new_expected_input_encoded, switch)?; - - // The next expected resumer is the provided id_prev. - wires - .curr_write_wires - .expected_resumer - .encoded() - .conditional_enforce_equal(&wires.arg(ArgName::Caller), switch)?; + .conditional_enforce_equal(&Boolean::TRUE, switch)?; // Mark the current process as in-yield and preserve yield_to. + // + // The next 2 checks form a pair. wires .curr_write_wires .on_yield .conditional_enforce_equal(&Boolean::TRUE, switch)?; + wires .curr_write_wires .yield_to @@ -2012,7 +1987,6 @@ impl PreWires { switches: ExecutionSwitches::default(), irw, interface_index, - ret_is_some: false, opcode_args: [F::ZERO; OPCODE_ARG_COUNT], opcode_discriminant, curr_mem_switches, diff --git a/interleaving/starstream-interleaving-proof/src/circuit_test.rs b/interleaving/starstream-interleaving-proof/src/circuit_test.rs index 900e479f..510537a5 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit_test.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit_test.rs @@ -84,9 +84,7 @@ fn test_circuit_many_steps() { handler_id: p2.into(), }, WitLedgerEffect::Yield { - val: ref_1, // Yielding nothing - ret: WitEffectOutput::Thunk, // Not expecting to be resumed again - caller: Some(p2).into(), + val: ref_1, // Yielding nothing }, ]; @@ -106,9 +104,7 @@ fn test_circuit_many_steps() { }, WitLedgerEffect::Bind { owner_id: p0 }, WitLedgerEffect::Yield { - val: ref_1, // Yielding nothing - ret: WitEffectOutput::Thunk, // Not expecting to be resumed again - caller: Some(p2).into(), + val: ref_1, // Yielding nothing }, ]; @@ -200,9 +196,7 @@ fn test_circuit_small() { let ref_0 = Ref(0); let utxo_trace = vec![WitLedgerEffect::Yield { - val: ref_0, // Yielding nothing - ret: WitEffectOutput::Thunk, // Not expecting to be resumed again - caller: Some(p1).into(), // This should be None actually? + val: ref_0, // Yielding nothing }]; let coord_trace = vec![ @@ -268,11 +262,7 @@ fn test_circuit_resumer_mismatch() { let ref_0 = Ref(0); - let utxo_trace = vec![WitLedgerEffect::Yield { - val: ref_0, - ret: WitEffectOutput::Thunk, - caller: Some(p1).into(), - }]; + let utxo_trace = vec![WitLedgerEffect::Yield { val: ref_0 }]; let coord_a_trace = vec![ WitLedgerEffect::NewRef { @@ -473,11 +463,7 @@ fn test_yield_parent_resumer_mismatch_trace() { // Coord A resumes UTXO but sets its own expected_resumer to Coord B. // Then UTXO yields back to Coord A. Spec says this should fail. - let utxo_trace = vec![WitLedgerEffect::Yield { - val: ref_1, - ret: WitEffectOutput::Thunk, - caller: Some(p1).into(), - }]; + let utxo_trace = vec![WitLedgerEffect::Yield { val: ref_1 }]; let coord_a_trace = vec![WitLedgerEffect::Resume { target: p0, diff --git a/interleaving/starstream-interleaving-proof/src/ledger_operation.rs b/interleaving/starstream-interleaving-proof/src/ledger_operation.rs index 8cae63f4..f8c1affa 100644 --- a/interleaving/starstream-interleaving-proof/src/ledger_operation.rs +++ b/interleaving/starstream-interleaving-proof/src/ledger_operation.rs @@ -24,8 +24,6 @@ pub enum LedgerOperation { /// Yield { val: F, - ret: Option, - caller: OptionalF, }, ProgramHash { target: F, diff --git a/interleaving/starstream-interleaving-proof/src/neo.rs b/interleaving/starstream-interleaving-proof/src/neo.rs index c2994a97..550fe568 100644 --- a/interleaving/starstream-interleaving-proof/src/neo.rs +++ b/interleaving/starstream-interleaving-proof/src/neo.rs @@ -14,7 +14,7 @@ use std::collections::HashMap; // TODO: benchmark properly pub(crate) const CHUNK_SIZE: usize = 40; -const PER_STEP_COLS: usize = 1162; +const PER_STEP_COLS: usize = 1160; const BASE_INSTANCE_COLS: usize = 1; const EXTRA_INSTANCE_COLS: usize = IvcWireLayout::FIELD_COUNT * 2; const M_IN: usize = BASE_INSTANCE_COLS + EXTRA_INSTANCE_COLS; diff --git a/interleaving/starstream-interleaving-spec/EFFECTS_REFERENCE.md b/interleaving/starstream-interleaving-spec/EFFECTS_REFERENCE.md index d18f3f0c..2a6edc81 100644 --- a/interleaving/starstream-interleaving-spec/EFFECTS_REFERENCE.md +++ b/interleaving/starstream-interleaving-spec/EFFECTS_REFERENCE.md @@ -81,9 +81,9 @@ new_state (assignments) ## Resume (Call) -The primary control flow operation. Transfers control to `target`. It records a -"claim" that this process can only be resumed by passing `ret` as an argument -(since it is what actually happpened). +The primary control flow operation. Transfers control to `target`. It records +claims for the current process and consumes the target's pending claims after +validation. Since we are also resuming a currently suspended process, we can only do it if our value matches its claim. @@ -127,13 +127,15 @@ Rule: Resume -------------------------------------------------------------------------------------------- 1. expected_input[id_curr] <- ret_ref (Claim, needs to be checked later by future resumer) 2. expected_resumer[id_curr] <- caller (Claim, needs to be checked later by future resumer) - 3. counters'[id_curr] += 1 (Keep track of host call index per process) - 4. id_prev' <- id_curr (Trace-local previous id) - 5. id_curr' <- target (Switch) - 6. if on_yield[target] then + 3. expected_input[target] <- None (Target claim consumed by this resume) + 4. expected_resumer[target] <- None (Target claim consumed by this resume) + 5. counters'[id_curr] += 1 (Keep track of host call index per process) + 6. id_prev' <- id_curr (Trace-local previous id) + 7. id_curr' <- target (Switch) + 8. if on_yield[target] then yield_to'[target] <- Some(id_curr) on_yield'[target] <- False - 7. activation'[target] <- Some(val_ref, id_curr) + 9. activation'[target] <- Some(val_ref, id_curr) ``` ## Activation @@ -174,20 +176,16 @@ Rule: Init ## Yield -Suspend the current continuation and optionally transfer control to the previous -coordination script (since utxos can't call utxos, that's the only possible -parent). - -This also marks the utxo as **safe** to persist in the ledger. +Suspend the current continuation and transfer control to the saved parent +(`yield_to[id_curr]`). -If the utxo is not iterated again in the transaction, the return value is null -for this execution (next transaction will have to execute `yield` again, but -with an actual result). +After a resume, programs must call `Activation()` to read the `(val, caller)` +tuple. ```text -Rule: Yield (resumed) -============ - op = Yield(val_ref) -> (ret_ref, caller) +Rule: Yield +=========== + op = Yield(val_ref) 1. yield_to[id_curr] is set @@ -203,44 +201,16 @@ Rule: Yield (resumed) 4. let t = CC[id_curr] in c = counters[id_curr] in - t[c] == - - (The opcode matches the host call lookup table used in the wasm proof at the current index) --------------------------------------------------------------------------------------------- - - 1. expected_input[id_curr] <- ret_ref (Claim, needs to be checked later by future resumer) - 2. expected_resumer[id_curr] <- caller (Claim, needs to be checked later by future resumer) - 3. counters'[id_curr] += 1 (Keep track of host call index per process) - 4. on_yield'[id_curr] <- True (The next resumer sets yield_to) - 5. id_curr' <- yield_to[id_curr] (Switch to parent) - 6. id_prev' <- id_curr (Trace-local previous id) - 7. finalized'[id_curr] <- False - 8. activation'[id_curr] <- None -``` - -```text -Rule: Yield (end transaction) -============================= - op = Yield(val_ref) - - 1. yield_to[id_curr] is set - - 2. let - t = CC[id_curr] in - c = counters[id_curr] in - t[c] == - - (Remember, there is no ret value since that won't be known until the next transaction) + t[c] == (The opcode matches the host call lookup table used in the wasm proof at the current index) -------------------------------------------------------------------------------------------- - 1. expected_resumer[id_curr] <- caller (Claim, needs to be checked later by future resumer) - 2. counters'[id_curr] += 1 (Keep track of host call index per process) - 3. on_yield'[id_curr] <- True (The next resumer sets yield_to) - 4. id_curr' <- yield_to[id_curr] (Switch to parent) - 5. id_prev' <- id_curr (Trace-local previous id) - 6. finalized'[id_curr] <- True (This utxo creates a transaction output) - 7. activation'[id_curr] <- None + 1. counters'[id_curr] += 1 + 2. on_yield'[id_curr] <- True + 3. id_curr' <- yield_to[id_curr] + 4. id_prev' <- id_curr + 5. finalized'[id_curr] <- True + 6. activation'[id_curr] <- None ``` ## Program Hash diff --git a/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs b/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs index 64b791f0..167737ae 100644 --- a/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs +++ b/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs @@ -494,6 +494,10 @@ pub fn state_transition( }); } + // Expectations are consumed by the resume. + state.expected_input[target.0] = None; + state.expected_resumer[target.0] = None; + state.activation[target.0] = Some((val, id_curr)); state.expected_input[id_curr.0] = ret.to_option(); @@ -511,7 +515,7 @@ pub fn state_transition( state.finalized[target.0] = false; } - WitLedgerEffect::Yield { val, ret, caller } => { + WitLedgerEffect::Yield { val } => { let parent = state .yield_to .get(id_curr.0) @@ -533,16 +537,7 @@ pub fn state_transition( }); } - match ret.to_option() { - Some(retv) => { - state.expected_input[id_curr.0] = Some(retv); - state.finalized[id_curr.0] = false; - } - None => { - state.expected_input[id_curr.0] = None; - state.finalized[id_curr.0] = true; - } - } + state.finalized[id_curr.0] = true; if let Some(expected_ref) = state.expected_input[parent.0] { let expected = state @@ -558,7 +553,6 @@ pub fn state_transition( } } - state.expected_resumer[id_curr.0] = caller.to_option().flatten(); state.on_yield[id_curr.0] = true; state.id_prev = Some(id_curr); state.activation[id_curr.0] = None; diff --git a/interleaving/starstream-interleaving-spec/src/tests.rs b/interleaving/starstream-interleaving-spec/src/tests.rs index e6036103..bf7762b1 100644 --- a/interleaving/starstream-interleaving-spec/src/tests.rs +++ b/interleaving/starstream-interleaving-spec/src/tests.rs @@ -148,8 +148,6 @@ fn test_transaction_with_coord_and_utxos() { }, WitLedgerEffect::Yield { val: continued_1_ref, - ret: None.into(), - caller: Some(ProcessId(4)).into(), }, ]; @@ -173,11 +171,7 @@ fn test_transaction_with_coord_and_utxos() { WitLedgerEffect::Bind { owner_id: ProcessId(3), }, - WitLedgerEffect::Yield { - val: done_a_ref, - ret: None.into(), - caller: Some(ProcessId(4)).into(), - }, + WitLedgerEffect::Yield { val: done_a_ref }, ]; let utxo_b_trace = vec![ @@ -189,11 +183,7 @@ fn test_transaction_with_coord_and_utxos() { val: init_b_ref.into(), caller: ProcessId(4).into(), }, - WitLedgerEffect::Yield { - val: done_b_ref, - ret: None.into(), - caller: Some(ProcessId(4)).into(), - }, + WitLedgerEffect::Yield { val: done_b_ref }, ]; let coord_trace = vec![ @@ -366,8 +356,6 @@ fn test_effect_handlers() { }, WitLedgerEffect::Yield { val: ref_gen.get("utxo_final"), - ret: None.into(), - caller: Some(ProcessId(1)).into(), }, ]; diff --git a/interleaving/starstream-interleaving-spec/src/transaction_effects/witness.rs b/interleaving/starstream-interleaving-spec/src/transaction_effects/witness.rs index 253559f9..358a0a66 100644 --- a/interleaving/starstream-interleaving-spec/src/transaction_effects/witness.rs +++ b/interleaving/starstream-interleaving-spec/src/transaction_effects/witness.rs @@ -54,9 +54,6 @@ pub enum WitLedgerEffect { Yield { // in val: Ref, - // out - ret: WitEffectOutput, - caller: WitEffectOutput>, }, ProgramHash { // in diff --git a/interleaving/starstream-runtime/src/lib.rs b/interleaving/starstream-runtime/src/lib.rs index 04648904..bb2f5850 100644 --- a/interleaving/starstream-runtime/src/lib.rs +++ b/interleaving/starstream-runtime/src/lib.rs @@ -123,7 +123,6 @@ fn suspend_with_effect( fn effect_result_arity(effect: &WitLedgerEffect) -> usize { match effect { WitLedgerEffect::Resume { .. } - | WitLedgerEffect::Yield { .. } | WitLedgerEffect::Activation { .. } | WitLedgerEffect::Init { .. } => 2, WitLedgerEffect::ProgramHash { .. } => 4, @@ -135,6 +134,7 @@ fn effect_result_arity(effect: &WitLedgerEffect) -> usize { WitLedgerEffect::InstallHandler { .. } | WitLedgerEffect::UninstallHandler { .. } | WitLedgerEffect::Burn { .. } + | WitLedgerEffect::Yield { .. } | WitLedgerEffect::Bind { .. } | WitLedgerEffect::Unbind { .. } | WitLedgerEffect::RefPush { .. } @@ -264,19 +264,10 @@ impl Runtime { .func_wrap( "env", "starstream_yield", - |mut caller: Caller<'_, RuntimeState>, - val: u64| - -> Result<(u64, u64), wasmi::Error> { + |mut caller: Caller<'_, RuntimeState>, val: u64| -> Result<(), wasmi::Error> { let current_pid = caller.data().current_process; caller.data_mut().on_yield.insert(current_pid, true); - suspend_with_effect( - &mut caller, - WitLedgerEffect::Yield { - val: Ref(val), - ret: WitEffectOutput::Thunk, - caller: WitEffectOutput::Thunk, - }, - ) + suspend_with_effect(&mut caller, WitLedgerEffect::Yield { val: Ref(val) }) }, ) .unwrap(); @@ -1011,11 +1002,6 @@ impl UnprovenTransaction { *caller = WitEffectOutput::Resolved(Some(ProcessId(next_args[1] as usize))); } - WitLedgerEffect::Yield { ret, caller, .. } => { - *ret = WitEffectOutput::Resolved(Ref(next_args[0])); - *caller = - WitEffectOutput::Resolved(Some(ProcessId(next_args[1] as usize))); - } _ => {} } } diff --git a/interleaving/starstream-runtime/src/test_support/wasm_dsl.rs b/interleaving/starstream-runtime/src/test_support/wasm_dsl.rs index 6569ea6c..4ddc4424 100644 --- a/interleaving/starstream-runtime/src/test_support/wasm_dsl.rs +++ b/interleaving/starstream-runtime/src/test_support/wasm_dsl.rs @@ -308,12 +308,7 @@ impl ModuleBuilder { &[ValType::I64, ValType::I64], &[ValType::I64, ValType::I64], ); - let yield_ = self.import_func( - "env", - "starstream_yield", - &[ValType::I64], - &[ValType::I64, ValType::I64], - ); + let yield_ = self.import_func("env", "starstream_yield", &[ValType::I64], &[]); let new_utxo = self.import_func( "env", "starstream_new_utxo", diff --git a/interleaving/starstream-runtime/tests/integration.rs b/interleaving/starstream-runtime/tests/integration.rs index cfcb6bbf..5509d346 100644 --- a/interleaving/starstream-runtime/tests/integration.rs +++ b/interleaving/starstream-runtime/tests/integration.rs @@ -37,7 +37,7 @@ fn test_runtime_simple_effect_handlers() { let (resp_val, _b, _c, _d) = call ref_get(resp, 0); assert_eq resp_val, 1; - let (_req2, _caller2) = call yield_(resp); + call yield_(resp); }); let (utxo_hash_limb_a, utxo_hash_limb_b, utxo_hash_limb_c, utxo_hash_limb_d) = @@ -158,7 +158,7 @@ fn test_runtime_effect_handlers_cross_calls() { call ref_push(2, stop_num_ref, 0, 0); let (_resp_stop, _caller_stop) = call resume(handler_id, stop); - let (_req3, _caller3) = call yield_(stop); + call yield_(stop); }); let utxo2_bin = wasm_module!({ @@ -170,7 +170,8 @@ fn test_runtime_effect_handlers_cross_calls() { let (x, _b, _c, _d) = call ref_get(req, 0); let y = add x, 1; call ref_write(req, 0, y, 0, 0, 0); - let (next_req, _caller2) = call yield_(req); + call yield_(req); + let (next_req, _caller2) = call activation(); set req = next_req; continue; } diff --git a/interleaving/starstream-runtime/tests/multi_tx_continuation.rs b/interleaving/starstream-runtime/tests/multi_tx_continuation.rs index e93979e6..3153f073 100644 --- a/interleaving/starstream-runtime/tests/multi_tx_continuation.rs +++ b/interleaving/starstream-runtime/tests/multi_tx_continuation.rs @@ -65,7 +65,7 @@ fn test_multi_tx_accumulator_global() { let resp = call new_ref(1); let acc = global_get 1; call ref_push(acc, 0, 0, 0); - let (_ret, _caller2) = call yield_(resp); + call yield_(resp); }); let (utxo_hash_a, utxo_hash_b, utxo_hash_c, utxo_hash_d) = hash_program(&utxo_bin); diff --git a/interleaving/starstream-runtime/tests/test_dex_swap_flow.rs b/interleaving/starstream-runtime/tests/test_dex_swap_flow.rs index 140e83ed..6f50445b 100644 --- a/interleaving/starstream-runtime/tests/test_dex_swap_flow.rs +++ b/interleaving/starstream-runtime/tests/test_dex_swap_flow.rs @@ -82,7 +82,8 @@ fn test_dex_swap_flow() { call ref_push(0, 0, 0, 0); } - let (next_req, _caller2) = call yield_(resp); + call yield_(resp); + let (next_req, _caller2) = call activation(); set req = next_req; continue; } @@ -212,7 +213,8 @@ fn test_dex_swap_flow() { set_global 3 = 0; } - let (next_req, _caller_next) = call yield_(resp); + call yield_(resp); + let (next_req, _caller_next) = call activation(); set req = next_req; continue; } diff --git a/interleaving/starstream-runtime/tests/wrapper_coord_test.rs b/interleaving/starstream-runtime/tests/wrapper_coord_test.rs index 91214b7d..2e69b18f 100644 --- a/interleaving/starstream-runtime/tests/wrapper_coord_test.rs +++ b/interleaving/starstream-runtime/tests/wrapper_coord_test.rs @@ -92,7 +92,7 @@ fn test_runtime_wrapper_coord_newcoord_handlers() { let done = call new_ref(1); call ref_push(0, 0, 0, 0); - let (_req2, _caller3) = call yield_(done); + call yield_(done); }); let utxo2_bin = wasm_module!({ @@ -110,7 +110,7 @@ fn test_runtime_wrapper_coord_newcoord_handlers() { let done = call new_ref(1); call ref_push(0, 0, 0, 0); - let (_req2, _caller3) = call yield_(done); + call yield_(done); }); let (utxo1_hash_limb_a, utxo1_hash_limb_b, utxo1_hash_limb_c, utxo1_hash_limb_d) = @@ -144,7 +144,7 @@ fn test_runtime_wrapper_coord_newcoord_handlers() { call ref_push(4, 0, 0, 0); let (_resp_end, _caller5) = call resume(handler_id, req_end); - let (_ret_end, _caller_end) = call yield_(init_ref); + call yield_(init_ref); }); let (inner_hash_limb_a, inner_hash_limb_b, inner_hash_limb_c, inner_hash_limb_d) = From abf6b3e95fe8a98833f3d3e6b66936d269b78aa5 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Sun, 15 Feb 2026 20:17:42 -0300 Subject: [PATCH 143/152] add domain separator to incremental trace commitment Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .../src/circuit.rs | 5 +-- .../src/circuit_test.rs | 2 +- .../starstream-interleaving-spec/Cargo.toml | 1 + .../src/builder.rs | 6 ++-- .../src/mocked_verifier.rs | 33 +++++++++++++++++-- interleaving/starstream-runtime/src/lib.rs | 2 +- 6 files changed, 39 insertions(+), 10 deletions(-) diff --git a/interleaving/starstream-interleaving-proof/src/circuit.rs b/interleaving/starstream-interleaving-proof/src/circuit.rs index 5e787e76..0410dda2 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit.rs @@ -29,7 +29,7 @@ use ark_relations::{ gr1cs::{ConstraintSystemRef, SynthesisError}, ns, }; -use starstream_interleaving_spec::InterleavingInstance; +use starstream_interleaving_spec::{InterleavingInstance, LedgerEffectsCommitment}; use std::marker::PhantomData; use std::ops::Not; use tracing::debug_span; @@ -898,6 +898,7 @@ impl> StepCircuitBuilder { vec![F::from(0u64)], ); + let trace_iv = LedgerEffectsCommitment::iv().0; for offset in 0..4 { let addr = (pid * 4) + offset; mb.init( @@ -905,7 +906,7 @@ impl> StepCircuitBuilder { addr: addr as u64, tag: MemoryTag::TraceCommitments.into(), }, - vec![F::ZERO], + vec![trace_iv[offset]], ); } } diff --git a/interleaving/starstream-interleaving-proof/src/circuit_test.rs b/interleaving/starstream-interleaving-proof/src/circuit_test.rs index 510537a5..96227a53 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit_test.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit_test.rs @@ -38,7 +38,7 @@ fn host_calls_roots(traces: &[Vec]) -> Vec) -> Self { - self.with_fresh_output_and_trace_commitment(output, trace, LedgerEffectsCommitment::zero()) + self.with_fresh_output_and_trace_commitment(output, trace, LedgerEffectsCommitment::iv()) } pub fn with_fresh_output_and_trace_commitment( @@ -117,7 +117,7 @@ impl TransactionBuilder { } pub fn with_coord_script(self, key: Hash, trace: Vec) -> Self { - self.with_coord_script_and_trace_commitment(key, trace, LedgerEffectsCommitment::zero()) + self.with_coord_script_and_trace_commitment(key, trace, LedgerEffectsCommitment::iv()) } pub fn with_coord_script_and_trace_commitment( diff --git a/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs b/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs index 167737ae..14da7ee6 100644 --- a/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs +++ b/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs @@ -18,20 +18,47 @@ use crate::{ use ark_ff::Zero; use ark_goldilocks::FpGoldilocks; use std::collections::HashMap; +use std::sync::OnceLock; #[derive(Clone, PartialEq, Eq, Debug)] pub struct LedgerEffectsCommitment(pub [FpGoldilocks; 4]); impl Default for LedgerEffectsCommitment { fn default() -> Self { - Self([FpGoldilocks::zero(); 4]) + Self::iv() } } impl LedgerEffectsCommitment { - pub fn zero() -> Self { - Self::default() + pub fn iv() -> Self { + static TRACE_IV: OnceLock<[FpGoldilocks; 4]> = OnceLock::new(); + let iv = TRACE_IV.get_or_init(|| { + let domain = encode_domain_rate8("starstream/trace_ic/v1/poseidon2"); + ark_poseidon2::sponge_8_trace(&domain).expect("trace iv sponge should succeed") + }); + Self(*iv) + } +} + +fn encode_domain_rate8(domain: &str) -> [FpGoldilocks; 8] { + let bytes = domain.as_bytes(); + assert!( + bytes.len() <= 49, + "domain tag too long for safe 7-byte/limb encoding: {} bytes", + bytes.len() + ); + + let mut out = [FpGoldilocks::zero(); 8]; + // Goldilocks field elements cannot safely encode arbitrary 8-byte u64 values + // without modular wraparound. We pack 7 bytes per limb and store the string + // length in limb 0 to avoid ambiguity from trailing zero padding. + out[0] = FpGoldilocks::from(bytes.len() as u64); + for (i, chunk) in bytes.chunks(7).enumerate() { + let mut limb = [0u8; 8]; + limb[..chunk.len()].copy_from_slice(chunk); + out[i + 1] = FpGoldilocks::from(u64::from_le_bytes(limb)); } + out } /// A “proof input” for tests: provide per-process traces directly. diff --git a/interleaving/starstream-runtime/src/lib.rs b/interleaving/starstream-runtime/src/lib.rs index bb2f5850..3f3fa002 100644 --- a/interleaving/starstream-runtime/src/lib.rs +++ b/interleaving/starstream-runtime/src/lib.rs @@ -1138,7 +1138,7 @@ impl UnprovenTransaction { .cloned() .unwrap_or_default(); host_calls_lens.push(trace.len() as u32); - let mut commitment = LedgerEffectsCommitment::zero(); + let mut commitment = LedgerEffectsCommitment::iv(); for op in &trace { commitment = commit(commitment, op.clone()); } From f61d52541e0cbf128d0eeb41a3dab8104aaf4728 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Sun, 15 Feb 2026 20:18:15 -0300 Subject: [PATCH 144/152] update Cargo.lock Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- Cargo.lock | 1 + 1 file changed, 1 insertion(+) diff --git a/Cargo.lock b/Cargo.lock index 558f08ed..fa92c4f5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3201,6 +3201,7 @@ version = "0.1.0" dependencies = [ "ark-ff", "ark-goldilocks", + "ark-poseidon2", "hex", "imbl", "neo-ajtai", From a117c175cc28c9cd46513959a6e0cb7b38040bf8 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Sun, 15 Feb 2026 20:47:55 -0300 Subject: [PATCH 145/152] remove the Counters tracking from the spec+circuit this is arguably not needed, since we can just enforce non-prefix traces with just the semantics of the coordination script's linearity Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .../src/circuit.rs | 31 +---- .../src/circuit_test.rs | 16 --- .../starstream-interleaving-proof/src/lib.rs | 12 +- .../src/memory_tags.rs | 3 - .../starstream-interleaving-proof/src/neo.rs | 2 +- .../src/program_state.rs | 18 --- .../src/switchboard.rs | 2 - .../EFFECTS_REFERENCE.md | 109 +----------------- .../starstream-interleaving-spec/src/lib.rs | 1 - .../src/mocked_verifier.rs | 83 +++---------- .../src/transaction_effects/instance.rs | 6 +- interleaving/starstream-runtime/src/lib.rs | 3 - 12 files changed, 24 insertions(+), 262 deletions(-) diff --git a/interleaving/starstream-interleaving-proof/src/circuit.rs b/interleaving/starstream-interleaving-proof/src/circuit.rs index 0410dda2..230f30ab 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit.rs @@ -456,9 +456,6 @@ impl LedgerOperation { opcode_discriminant: F::ZERO, }; - // All ops increment counter of the current process, except Nop - config.mem_switches_curr.counters = !matches!(self, LedgerOperation::Nop {}); - config.opcode_discriminant = abi::opcode_discriminant(self); match self { @@ -517,7 +514,6 @@ impl LedgerOperation { config.mem_switches_target.initialized = true; config.mem_switches_target.init = true; config.mem_switches_target.init_caller = true; - config.mem_switches_target.counters = true; config.mem_switches_target.expected_input = true; config.mem_switches_target.expected_resumer = true; config.mem_switches_target.on_yield = true; @@ -533,7 +529,6 @@ impl LedgerOperation { config.mem_switches_target.initialized = true; config.mem_switches_target.init = true; config.mem_switches_target.init_caller = true; - config.mem_switches_target.counters = true; config.mem_switches_target.expected_input = true; config.mem_switches_target.expected_resumer = true; config.mem_switches_target.on_yield = true; @@ -637,13 +632,9 @@ impl LedgerOperation { let mut curr_write = curr_read.clone(); let mut target_write = target_read.clone(); - // All operations increment the counter of the current process - curr_write.counters += F::ONE; - match self { LedgerOperation::Nop {} => { // Nop does nothing to the state - curr_write.counters -= F::ONE; // revert counter increment } LedgerOperation::Resume { val, ret, caller, .. @@ -688,7 +679,6 @@ impl LedgerOperation { target_write.initialized = true; target_write.init = *val; target_write.init_caller = curr_id; - target_write.counters = F::ZERO; target_write.expected_input = OptionalF::none(); target_write.expected_resumer = OptionalF::none(); target_write.on_yield = true; @@ -700,9 +690,7 @@ impl LedgerOperation { LedgerOperation::Unbind { .. } => { target_write.ownership = OptionalF::none(); } - _ => { - // For other opcodes, we just increment the counter. - } + _ => {} } (curr_write, target_write) } @@ -819,14 +807,6 @@ impl> StepCircuitBuilder { )], ); - mb.init( - Address { - addr: pid as u64, - tag: MemoryTag::Counters.into(), - }, - vec![F::from(0u64)], - ); - mb.init( Address { addr: pid as u64, @@ -1548,13 +1528,7 @@ impl> StepCircuitBuilder { wires.rom_program_hash[i].conditional_enforce_equal(&wires.arg(*arg), &switch)?; } - // 4. Target counter must be 0. - wires - .target_read_wires - .counters - .conditional_enforce_equal(&FpVar::zero(), &switch)?; - - // 5. Target must not be initialized. + // 4. Target must not be initialized. wires .target_read_wires .initialized @@ -1879,7 +1853,6 @@ fn register_memory_segments>(mb: &mut M) { MemType::Ram, "RAM_INIT_CALLER", ); - mb.register_mem(MemoryTag::Counters.into(), 1, MemType::Ram, "RAM_COUNTERS"); mb.register_mem( MemoryTag::Initialized.into(), 1, diff --git a/interleaving/starstream-interleaving-proof/src/circuit_test.rs b/interleaving/starstream-interleaving-proof/src/circuit_test.rs index 96227a53..7103147c 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit_test.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit_test.rs @@ -156,8 +156,6 @@ fn test_circuit_many_steps() { let traces = vec![utxo_trace, token_trace, coord_trace]; - let trace_lens = traces.iter().map(|t| t.len() as u32).collect::>(); - let host_calls_roots = host_calls_roots(&traces); let instance = InterleavingInstance { @@ -171,7 +169,6 @@ fn test_circuit_many_steps() { ownership_in: vec![None, None, None], ownership_out: vec![None, Some(ProcessId(0)), None], host_calls_roots, - host_calls_lens: trace_lens, input_states: vec![], }; @@ -220,8 +217,6 @@ fn test_circuit_small() { let traces = vec![utxo_trace, coord_trace]; - let trace_lens = traces.iter().map(|t| t.len() as u32).collect::>(); - let host_calls_roots = host_calls_roots(&traces); let instance = InterleavingInstance { @@ -235,7 +230,6 @@ fn test_circuit_small() { ownership_in: vec![None, None], ownership_out: vec![None, None], host_calls_roots, - host_calls_lens: trace_lens, input_states: vec![], }; @@ -303,8 +297,6 @@ fn test_circuit_resumer_mismatch() { let traces = vec![utxo_trace, coord_a_trace, coord_b_trace]; - let trace_lens = traces.iter().map(|t| t.len() as u32).collect::>(); - let host_calls_roots = host_calls_roots(&traces); let instance = InterleavingInstance { @@ -318,7 +310,6 @@ fn test_circuit_resumer_mismatch() { ownership_in: vec![None, None, None], ownership_out: vec![None, None, None], host_calls_roots, - host_calls_lens: trace_lens, input_states: vec![], }; @@ -368,7 +359,6 @@ fn test_ref_write_basic_sat() { ]; let traces = vec![coord_trace]; - let trace_lens = traces.iter().map(|t| t.len() as u32).collect::>(); let host_calls_roots = host_calls_roots(&traces); let instance = InterleavingInstance { @@ -382,7 +372,6 @@ fn test_ref_write_basic_sat() { ownership_in: vec![None], ownership_out: vec![None], host_calls_roots, - host_calls_lens: trace_lens, input_states: vec![], }; @@ -422,7 +411,6 @@ fn test_install_handler_get(exp: ProcessId) { ]; let traces = vec![coord_trace]; - let trace_lens = traces.iter().map(|t| t.len() as u32).collect::>(); let host_calls_roots = host_calls_roots(&traces); let instance = InterleavingInstance { @@ -436,7 +424,6 @@ fn test_install_handler_get(exp: ProcessId) { ownership_in: vec![None], ownership_out: vec![None], host_calls_roots, - host_calls_lens: trace_lens, input_states: vec![], }; @@ -475,8 +462,6 @@ fn test_yield_parent_resumer_mismatch_trace() { let coord_b_trace = vec![]; let traces = vec![utxo_trace, coord_a_trace, coord_b_trace]; - - let trace_lens = traces.iter().map(|t| t.len() as u32).collect::>(); let host_calls_roots = host_calls_roots(&traces); let instance = InterleavingInstance { @@ -490,7 +475,6 @@ fn test_yield_parent_resumer_mismatch_trace() { ownership_in: vec![None, None, None], ownership_out: vec![None, None, None], host_calls_roots, - host_calls_lens: trace_lens, input_states: vec![], }; diff --git a/interleaving/starstream-interleaving-proof/src/lib.rs b/interleaving/starstream-interleaving-proof/src/lib.rs index ecf58055..258102c5 100644 --- a/interleaving/starstream-interleaving-proof/src/lib.rs +++ b/interleaving/starstream-interleaving-proof/src/lib.rs @@ -35,7 +35,6 @@ use rand::SeedableRng as _; use starstream_interleaving_spec::{ InterleavingInstance, InterleavingWitness, ProcessId, ZkTransactionProof, }; -use std::collections::HashMap; use std::sync::Arc; use std::time::Instant; @@ -163,14 +162,14 @@ fn make_interleaved_trace( let mut ops = vec![]; let mut id_curr = inst.entrypoint.0; let mut id_prev: Option = None; - let mut counters: HashMap = HashMap::new(); + let mut next_op_idx = vec![0usize; inst.process_table.len()]; let mut on_yield = vec![true; inst.process_table.len()]; let mut yield_to: Vec> = vec![None; inst.process_table.len()]; let expected_len: usize = wit.traces.iter().map(|t| t.len()).sum(); loop { - let c = counters.entry(id_curr).or_insert(0); + let c = next_op_idx[id_curr]; let Some(trace) = wit.traces.get(id_curr) else { // No trace for this process, this indicates the end of the transaction @@ -178,13 +177,13 @@ fn make_interleaved_trace( break; }; - if *c >= trace.len() { + if c >= trace.len() { // We've reached the end of the current trace. This is the end. break; } - let instr = trace[*c].clone(); - *c += 1; + let instr = trace[c].clone(); + next_op_idx[id_curr] += 1; match instr { starstream_interleaving_spec::WitLedgerEffect::Resume { target, .. } => { @@ -240,7 +239,6 @@ fn ccs_step_shape() -> Result<(ConstraintSystemRef, TSMemLayouts, IvcWireLayo let inst = InterleavingInstance { host_calls_roots: vec![], - host_calls_lens: vec![], process_table: vec![hash], is_utxo: vec![false], must_burn: vec![false], diff --git a/interleaving/starstream-interleaving-proof/src/memory_tags.rs b/interleaving/starstream-interleaving-proof/src/memory_tags.rs index cc9bbe40..cb21400b 100644 --- a/interleaving/starstream-interleaving-proof/src/memory_tags.rs +++ b/interleaving/starstream-interleaving-proof/src/memory_tags.rs @@ -14,7 +14,6 @@ pub enum MemoryTag { // RAM tags ExpectedInput = 5, Activation = 6, - Counters = 7, Initialized = 8, Finalized = 9, DidBurn = 10, @@ -59,7 +58,6 @@ pub enum ProgramStateTag { Activation, Init, InitCaller, - Counters, Initialized, Finalized, DidBurn, @@ -76,7 +74,6 @@ impl From for MemoryTag { ProgramStateTag::Activation => MemoryTag::Activation, ProgramStateTag::Init => MemoryTag::Init, ProgramStateTag::InitCaller => MemoryTag::InitCaller, - ProgramStateTag::Counters => MemoryTag::Counters, ProgramStateTag::Initialized => MemoryTag::Initialized, ProgramStateTag::Finalized => MemoryTag::Finalized, ProgramStateTag::DidBurn => MemoryTag::DidBurn, diff --git a/interleaving/starstream-interleaving-proof/src/neo.rs b/interleaving/starstream-interleaving-proof/src/neo.rs index 550fe568..04803593 100644 --- a/interleaving/starstream-interleaving-proof/src/neo.rs +++ b/interleaving/starstream-interleaving-proof/src/neo.rs @@ -14,7 +14,7 @@ use std::collections::HashMap; // TODO: benchmark properly pub(crate) const CHUNK_SIZE: usize = 40; -const PER_STEP_COLS: usize = 1160; +const PER_STEP_COLS: usize = 1138; const BASE_INSTANCE_COLS: usize = 1; const EXTRA_INSTANCE_COLS: usize = IvcWireLayout::FIELD_COUNT * 2; const M_IN: usize = BASE_INSTANCE_COLS + EXTRA_INSTANCE_COLS; diff --git a/interleaving/starstream-interleaving-proof/src/program_state.rs b/interleaving/starstream-interleaving-proof/src/program_state.rs index 3f5282c9..372d399d 100644 --- a/interleaving/starstream-interleaving-proof/src/program_state.rs +++ b/interleaving/starstream-interleaving-proof/src/program_state.rs @@ -20,7 +20,6 @@ pub struct ProgramState { pub activation: F, pub init: F, pub init_caller: F, - pub counters: F, pub initialized: bool, pub finalized: bool, pub did_burn: bool, @@ -37,7 +36,6 @@ pub struct ProgramStateWires { pub activation: FpVar, pub init: FpVar, pub init_caller: FpVar, - pub counters: FpVar, pub initialized: Boolean, pub finalized: Boolean, pub did_burn: Boolean, @@ -52,7 +50,6 @@ struct RawProgramState { activation: V, init: V, init_caller: V, - counters: V, initialized: V, finalized: V, did_burn: V, @@ -71,7 +68,6 @@ fn program_state_read_ops( let yield_to = dsl.read(&switches.yield_to, MemoryTag::YieldTo, addr)?; let (activation, init) = coroutine_args_ops(dsl, &switches.activation, &switches.init, addr)?; let init_caller = dsl.read(&switches.init_caller, MemoryTag::InitCaller, addr)?; - let counters = dsl.read(&switches.counters, MemoryTag::Counters, addr)?; let initialized = dsl.read(&switches.initialized, MemoryTag::Initialized, addr)?; let finalized = dsl.read(&switches.finalized, MemoryTag::Finalized, addr)?; let did_burn = dsl.read(&switches.did_burn, MemoryTag::DidBurn, addr)?; @@ -85,7 +81,6 @@ fn program_state_read_ops( activation, init, init_caller, - counters, initialized, finalized, did_burn, @@ -136,12 +131,6 @@ fn program_state_write_ops( addr, &state.init_caller, )?; - dsl.write( - &switches.counters, - MemoryTag::Counters, - addr, - &state.counters, - )?; dsl.write( &switches.initialized, MemoryTag::Initialized, @@ -178,7 +167,6 @@ fn raw_from_state(state: &ProgramState) -> RawProgramState { activation: state.activation, init: state.init, init_caller: state.init_caller, - counters: state.counters, initialized: F::from(state.initialized), finalized: F::from(state.finalized), did_burn: F::from(state.did_burn), @@ -195,7 +183,6 @@ fn raw_from_wires(state: &ProgramStateWires) -> RawProgramState> { activation: state.activation.clone(), init: state.init.clone(), init_caller: state.init_caller.clone(), - counters: state.counters.clone(), initialized: state.initialized.clone().into(), finalized: state.finalized.clone().into(), did_burn: state.did_burn.clone().into(), @@ -222,7 +209,6 @@ impl ProgramStateWires { activation: FpVar::new_witness(cs.clone(), || Ok(write_values.activation))?, init: FpVar::new_witness(cs.clone(), || Ok(write_values.init))?, init_caller: FpVar::new_witness(cs.clone(), || Ok(write_values.init_caller))?, - counters: FpVar::new_witness(cs.clone(), || Ok(write_values.counters))?, initialized: Boolean::new_witness(cs.clone(), || Ok(write_values.initialized))?, finalized: Boolean::new_witness(cs.clone(), || Ok(write_values.finalized))?, did_burn: Boolean::new_witness(cs.clone(), || Ok(write_values.did_burn))?, @@ -278,7 +264,6 @@ pub fn trace_program_state_reads>( activation: raw.activation, init: raw.init, init_caller: raw.init_caller, - counters: raw.counters, initialized: raw.initialized == F::ONE, finalized: raw.finalized == F::ONE, did_burn: raw.did_burn == F::ONE, @@ -303,7 +288,6 @@ pub fn program_state_read_wires>( activation: raw.activation, init: raw.init, init_caller: raw.init_caller, - counters: raw.counters, initialized: raw.initialized.is_one()?, finalized: raw.finalized.is_one()?, did_burn: raw.did_burn.is_one()?, @@ -322,7 +306,6 @@ impl ProgramState { activation: F::ZERO, init: F::ZERO, init_caller: F::ZERO, - counters: F::ZERO, initialized: false, did_burn: false, ownership: OptionalF::none(), @@ -336,7 +319,6 @@ impl ProgramState { tracing::debug!("yield_to={}", self.yield_to.encoded()); tracing::debug!("activation={}", self.activation); tracing::debug!("init={}", self.init); - tracing::debug!("counters={}", self.counters); tracing::debug!("finalized={}", self.finalized); tracing::debug!("did_burn={}", self.did_burn); tracing::debug!("ownership={}", self.ownership.encoded()); diff --git a/interleaving/starstream-interleaving-proof/src/switchboard.rs b/interleaving/starstream-interleaving-proof/src/switchboard.rs index f653dabc..1a98e5b4 100644 --- a/interleaving/starstream-interleaving-proof/src/switchboard.rs +++ b/interleaving/starstream-interleaving-proof/src/switchboard.rs @@ -28,7 +28,6 @@ pub struct MemSwitchboard { pub activation: B, pub init: B, pub init_caller: B, - pub counters: B, pub initialized: B, pub finalized: B, pub did_burn: B, @@ -87,7 +86,6 @@ impl MemSwitchboardWires { activation: Boolean::new_witness(cs.clone(), || Ok(switches.activation))?, init: Boolean::new_witness(cs.clone(), || Ok(switches.init))?, init_caller: Boolean::new_witness(cs.clone(), || Ok(switches.init_caller))?, - counters: Boolean::new_witness(cs.clone(), || Ok(switches.counters))?, initialized: Boolean::new_witness(cs.clone(), || Ok(switches.initialized))?, finalized: Boolean::new_witness(cs.clone(), || Ok(switches.finalized))?, did_burn: Boolean::new_witness(cs.clone(), || Ok(switches.did_burn))?, diff --git a/interleaving/starstream-interleaving-spec/EFFECTS_REFERENCE.md b/interleaving/starstream-interleaving-spec/EFFECTS_REFERENCE.md index 2a6edc81..60e3fb75 100644 --- a/interleaving/starstream-interleaving-spec/EFFECTS_REFERENCE.md +++ b/interleaving/starstream-interleaving-spec/EFFECTS_REFERENCE.md @@ -25,11 +25,10 @@ blobs (Value). The global state of the interleaving machine σ is defined as: - ```text Configuration (σ) ================= -σ = (id_curr, id_prev, M, activation, init, ref_store, process_table, host_calls, counters, on_yield, yield_to, finalized, is_utxo, initialized, handler_stack, ownership, did_burn) +σ = (id_curr, id_prev, M, activation, init, ref_store, process_table, host_calls, on_yield, yield_to, finalized, is_utxo, initialized, handler_stack, ownership, did_burn) Where: id_curr : ID of the currently executing VM. In the range [0..#coord + #utxo] @@ -43,7 +42,6 @@ Where: ref_store : A map {Ref -> Value} process_table : Read-only map {ID -> ProgramHash} for attestation. host_calls : A map {ProcessID -> Host-calls lookup table} - counters : A map {ProcessID -> Counter} finalized : A map {ProcessID -> Bool} (true if the process ends the transaction with a final yield) is_utxo : Read-only map {ProcessID -> Bool} initialized : A map {ProcessID -> Bool} @@ -110,13 +108,6 @@ Rule: Resume (Check that the current process matches the expected resumer for the target) - 4. let - t = CC[id_curr] in - c = counters[id_curr] in - t[c] == - - (The opcode matches the host call lookup table used in the wasm proof at the current index) - 5. is_utxo(id_curr) => !is_utxo(target) (Utxo's can't call into utxos) @@ -129,7 +120,6 @@ Rule: Resume 2. expected_resumer[id_curr] <- caller (Claim, needs to be checked later by future resumer) 3. expected_input[target] <- None (Target claim consumed by this resume) 4. expected_resumer[target] <- None (Target claim consumed by this resume) - 5. counters'[id_curr] += 1 (Keep track of host call index per process) 6. id_prev' <- id_curr (Trace-local previous id) 7. id_curr' <- target (Switch) 8. if on_yield[target] then @@ -146,12 +136,7 @@ Rule: Activation 1. activation[id_curr] == Some(val, caller) - 2. let t = CC[id_curr] in - let c = counters[id_curr] in - t[c] == - ----------------------------------------------------------------------- - 1. counters'[id_curr] += 1 ## Init @@ -166,13 +151,7 @@ Rule: Init 1. init[id_curr] == Some(val, caller) 2. caller is the creator (the process that executed NewUtxo/NewCoord for this id) - 3. let t = CC[id_curr] in - let c = counters[id_curr] in - t[c] == - ----------------------------------------------------------------------- - 1. counters'[id_curr] += 1 - ## Yield @@ -198,14 +177,7 @@ Rule: Yield (Check that the current process matches the expected resumer for the parent) - 4. let - t = CC[id_curr] in - c = counters[id_curr] in - t[c] == - - (The opcode matches the host call lookup table used in the wasm proof at the current index) -------------------------------------------------------------------------------------------- - 1. counters'[id_curr] += 1 2. on_yield'[id_curr] <- True 3. id_curr' <- yield_to[id_curr] 4. id_prev' <- id_curr @@ -226,14 +198,10 @@ Rule: Program Hash hash = process_table[target_id] let - t = CC[id_curr] in - c = counters[id_curr] in - t[c] == (Host call lookup condition) ----------------------------------------------------------------------- - 1. counters'[id_curr] += 1 ``` --- @@ -254,8 +222,6 @@ Assigns a new (transaction-local) ID for a UTXO program. (The hash matches the one in the process table) (Remember that this is just verifying, so we already have the full table) - 2. counters[id] == 0 - (The trace for this utxo starts fresh) 3. is_utxo[id] @@ -266,17 +232,11 @@ Assigns a new (transaction-local) ID for a UTXO program. (A utxo can't crate utxos) - 5. let - t = CC[id_curr] in - c = counters[id_curr] in - t[c] == - (Host call lookup condition) ----------------------------------------------------------------------- 1. initialized[id] <- True 2. init'[id] <- Some(val, id_curr) - 3. counters'[id_curr] += 1 ``` ## New Coordination Script (Spawn) @@ -296,8 +256,6 @@ handler) instance. (The hash matches the one in the process table) (Remember that this is just verifying, so we already have the full table) - 2. counters[id] == 0 - (The trace for this handler starts fresh) 3. is_utxo[id] == False @@ -308,17 +266,11 @@ handler) instance. (A utxo can't spawn coordination scripts) - 5. let - t = CC[id_curr] in - c = counters[id_curr] in - t[c] == - (Host call lookup condition) ----------------------------------------------------------------------- 1. initialized[id] <- True 2. init'[id] <- Some(val, id_curr) - 3. counters'[id_curr] += 1 ``` --- @@ -338,15 +290,9 @@ Rule: Install Handler (Only coordination scripts can install handlers) - 2. let - t = CC[id_curr] in - c = counters[id_curr] in - t[c] == - (Host call lookup condition) ----------------------------------------------------------------------- 1. handler_stack'[interface_id].push(id_curr) - 2. counters'[id_curr] += 1 ``` ## Uninstall Handler @@ -366,15 +312,9 @@ Rule: Uninstall Handler (Only the installer can uninstall) - 3. let - t = CC[id_curr] in - c = counters[id_curr] in - t[c] == - (Host call lookup condition) ----------------------------------------------------------------------- 1. handler_stack'[interface_id].pop() - 2. counters[id_curr] += 1 ``` ## Get Handler For @@ -390,14 +330,8 @@ Rule: Get Handler For (The returned handler_id must match the one on top of the stack) - 2. let - t = CC[id_curr] in - c = counters[id_curr] in - t[c] == - (Host call lookup condition) ----------------------------------------------------------------------- - 1. counters'[id_curr] += 1 ``` --- @@ -423,11 +357,6 @@ Destroys the UTXO state. (Resume receives ret) - 5. let - t = CC[id_curr] in - c = counters[id_curr] in - t[c] == - (Host call lookup condition) ----------------------------------------------------------------------- 1. finalized'[id_curr] <- True @@ -439,8 +368,6 @@ Destroys the UTXO state. (It's not possible to return to this, maybe it should be a different flag though) - 4. counters'[id_curr] += 1 - 5. activation'[id_curr] <- None 6. did_burn'[id_curr] <- True ``` @@ -469,13 +396,9 @@ Rule: Bind (token calls) 4. ownership[token_id] == ⊥ (Token must currently be unbound) - 5. let t = CC[token_id] in - let c = counters[token_id] in - t[c] == (Host call lookup condition) ----------------------------------------------------------------------- 1. ownership'[token_id] <- owner_id - 2. counters'[token_id] += 1 ``` ## Unbind @@ -496,12 +419,8 @@ Rule: Unbind (owner calls) 3. ownership[token_id] == owner_id (Authorization: only current owner may unbind) - 4. let t = CC[owner_id] in - let c = counters[owner_id] in - t[c] == ----------------------------------------------------------------------- 1. ownership'[token_id] <- ⊥ - 2. counters'[owner_id] += 1 ``` # 7. Data Operations @@ -515,17 +434,11 @@ Rule: NewRef ============== op = NewRef(size_words) -> ref - 1. let - t = CC[id_curr] in - c = counters[id_curr] in - t[c] == - (Host call lookup condition) ----------------------------------------------------------------------- 1. size fits in 16 bits 2. ref_store'[ref] <- [uninitialized; size_words * 4] (conceptually) 3. ref_sizes'[ref] <- size_words - 4. counters'[id_curr] += 1 5. ref_state[id_curr] <- (ref, 0, size_words) // storing the ref being built, current word offset, and total size ``` @@ -541,17 +454,11 @@ Rule: RefPush 1. let (ref, offset_words, size_words) = ref_state[id_curr] 2. offset_words < size_words - 3. let - t = CC[id_curr] in - c = counters[id_curr] in - t[c] == - (Host call lookup condition) ----------------------------------------------------------------------- 1. for i in 0..3: ref_store'[ref][(offset_words * 4) + i] <- vals[i] 2. ref_state[id_curr] <- (ref, offset_words + 1, size_words) - 3. counters'[id_curr] += 1 ``` ## RefGet @@ -566,14 +473,8 @@ Rule: RefGet 3. for i in 0..3: vals[i] == ref_store[ref][(offset_words * 4) + i] - 2. let - t = CC[id_curr] in - c = counters[id_curr] in - t[c] == - (Host call lookup condition) ----------------------------------------------------------------------- - 1. counters'[id_curr] += 1 ``` ## RefWrite @@ -586,16 +487,10 @@ Rule: RefWrite 1. let size_words = ref_sizes[ref] 2. offset_words < size_words - 3. let - t = CC[id_curr] in - c = counters[id_curr] in - t[c] == - (Host call lookup condition) ----------------------------------------------------------------------- 1. for i in 0..3: ref_store'[ref][(offset_words * 4) + i] <- vals[i] - 2. counters'[id_curr] += 1 ``` # Verification @@ -607,8 +502,6 @@ for (process, proof, host_calls) in transaction.proofs: // we verified all the host calls for each process - assert(counters[process] == host_calls[process].length) - // every object had a constructor of some sort assert(is_initialized[process]) diff --git a/interleaving/starstream-interleaving-spec/src/lib.rs b/interleaving/starstream-interleaving-spec/src/lib.rs index a6501df5..03f08519 100644 --- a/interleaving/starstream-interleaving-spec/src/lib.rs +++ b/interleaving/starstream-interleaving-spec/src/lib.rs @@ -678,7 +678,6 @@ impl Ledger { .iter() .map(|w| w.host_calls_root.clone()) .collect(), - host_calls_lens: wasm_instances.iter().map(|w| w.host_calls_len).collect(), process_table: process_table.to_vec(), is_utxo: is_utxo.to_vec(), diff --git a/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs b/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs index 14da7ee6..85bc3b7e 100644 --- a/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs +++ b/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs @@ -76,23 +76,6 @@ pub enum InterleavingError { #[error("unknown process id {0}")] BadPid(ProcessId), - #[error("host call index out of bounds: pid={pid} counter={counter} len={len}")] - CounterOutOfBounds { - pid: ProcessId, - counter: usize, - len: usize, - }, - - #[error( - "host call mismatch at pid={pid} counter={counter}: expected {expected:?}, got {got:?}" - )] - HostCallMismatch { - pid: ProcessId, - counter: usize, - expected: WitLedgerEffect, - got: WitLedgerEffect, - }, - #[error("resume self-resume forbidden (pid={0})")] SelfResume(ProcessId), @@ -184,13 +167,6 @@ pub enum InterleavingError { #[error("burn called without a parent process (pid={pid})")] BurnWithNoParent { pid: ProcessId }, - #[error("verification: counters mismatch for pid={pid}: counter={counter} len={len}")] - CounterLenMismatch { - pid: ProcessId, - counter: usize, - len: usize, - }, - #[error("verification: utxo not finalized (finalized=false) pid={0}")] UtxoNotFinalized(ProcessId), @@ -264,7 +240,6 @@ pub struct InterleavingState { activation: Vec>, init: Vec>, - counters: Vec, ref_counter: u64, ref_store: HashMap>, ref_sizes: HashMap, @@ -320,7 +295,6 @@ pub fn verify_interleaving_semantics( yield_to: vec![None; n], activation: vec![None; n], init: vec![None; n], - counters: vec![0; n], ref_counter: 0, ref_store: HashMap::new(), ref_sizes: HashMap::new(), @@ -343,11 +317,11 @@ pub fn verify_interleaving_semantics( state.initialized[inst.entrypoint.0] = true; // ---------- run until current trace ends ---------- - // This is deterministic: at each step, read the next host call of id_curr at counters[id_curr]. let mut current_state = state; + let mut next_op_idx = vec![0usize; n]; loop { let pid = current_state.id_curr; - let c = current_state.counters[pid.0]; + let c = next_op_idx[pid.0]; let trace = &rom.traces[pid.0]; if c >= trace.len() { @@ -355,27 +329,12 @@ pub fn verify_interleaving_semantics( } let op = trace[c].clone(); - current_state = state_transition(current_state, &rom, op)?; + current_state = state_transition(current_state, &rom, &mut next_op_idx, op)?; } let state = current_state; // ---------- final verification conditions ---------- - // 1) counters match per-process host call lengths - // - // (so we didn't just prove a prefix) - for pid in 0..n { - let counter = state.counters[pid]; - let len = rom.traces[pid].len(); - if counter != len { - return Err(InterleavingError::CounterLenMismatch { - pid: ProcessId(pid), - counter, - len, - }); - } - } - - // 2) process called burn but it has a continuation output in the tx + // 1) process called burn but it has a continuation output in the tx for i in 0..inst.n_inputs { if rom.must_burn[i] { let has_burn = rom.traces[i] @@ -387,26 +346,26 @@ pub fn verify_interleaving_semantics( } } - // 3) all utxos finalize + // 2) all utxos finalize for pid in 0..(inst.n_inputs + inst.n_new) { if !state.finalized[pid] { return Err(InterleavingError::UtxoNotFinalized(ProcessId(pid))); } } - // 4) all utxos without continuation did call Burn + // 3) all utxos without continuation did call Burn for pid in 0..inst.n_inputs { if rom.must_burn[pid] && !state.did_burn[pid] { return Err(InterleavingError::UtxoShouldBurn(ProcessId(pid))); } } - // 5) finish in a coordination script + // 4) finish in a coordination script if rom.is_utxo[state.id_curr.0] { return Err(InterleavingError::FinishedInUtxo(state.id_curr)); } - // 6) ownership_out matches computed end state + // 5) ownership_out matches computed end state for pid in 0..(inst.n_inputs + inst.n_new) { let expected = inst.ownership_out[pid]; let got = state.ownership[pid]; @@ -438,10 +397,11 @@ pub fn verify_interleaving_semantics( pub fn state_transition( mut state: InterleavingState, rom: &Rom, + next_op_idx: &mut [usize], op: WitLedgerEffect, ) -> Result { let id_curr = state.id_curr; - let c = state.counters[id_curr.0]; + let c = next_op_idx[id_curr.0]; let trace = &rom.traces[id_curr.0]; // For every rule, enforce "host call lookup condition" by checking op == @@ -451,27 +411,18 @@ pub fn state_transition( // doesn't do any zk, it's just trace, but in the circuit this would be a // lookup constraint into the right table. if c >= trace.len() { - return Err(InterleavingError::CounterOutOfBounds { - pid: id_curr, - counter: c, - len: trace.len(), - }); + return Err(InterleavingError::Shape("host call index out of bounds")); } let got = trace[c].clone(); if got != op { - return Err(InterleavingError::HostCallMismatch { - pid: id_curr, - counter: c, - expected: op, - got, - }); + return Err(InterleavingError::Shape("host call mismatch")); } if state.ref_building.contains_key(&id_curr) && !matches!(op, WitLedgerEffect::RefPush { .. }) { return Err(InterleavingError::BuildingRefButCalledOther(id_curr)); } - state.counters[id_curr.0] += 1; + next_op_idx[id_curr.0] += 1; match op { WitLedgerEffect::Resume { @@ -620,9 +571,6 @@ pub fn state_transition( got: program_hash, }); } - if state.counters[id.0] != 0 { - return Err(InterleavingError::Shape("NewUtxo requires counters[id]==0")); - } if state.initialized[id.0] { return Err(InterleavingError::Shape( "NewUtxo requires initialized[id]==false", @@ -655,11 +603,6 @@ pub fn state_transition( got: program_hash, }); } - if state.counters[id.0] != 0 { - return Err(InterleavingError::Shape( - "NewCoord requires counters[id]==0", - )); - } if state.initialized[id.0] { return Err(InterleavingError::Shape( "NewCoord requires initialized[id]==false", diff --git a/interleaving/starstream-interleaving-spec/src/transaction_effects/instance.rs b/interleaving/starstream-interleaving-spec/src/transaction_effects/instance.rs index 2f145ee8..5a2aadde 100644 --- a/interleaving/starstream-interleaving-spec/src/transaction_effects/instance.rs +++ b/interleaving/starstream-interleaving-spec/src/transaction_effects/instance.rs @@ -14,8 +14,6 @@ pub struct InterleavingInstance { /// Digest of all per-process host call tables the circuit is wired to. /// One per wasm proof. pub host_calls_roots: Vec, - #[allow(dead_code)] - pub host_calls_lens: Vec, /// Process table in canonical order: inputs, new_outputs, coord scripts. pub process_table: Vec>, @@ -103,8 +101,8 @@ impl InterleavingInstance { // TraceCommitments RAM index in the sorted twist_id list (see proof MemoryTag ordering). // - // TODO: de-harcode the 13 + // TODO: de-harcode the 12 // it's supposed to be the twist index of the TraceCommitments memory - OutputBindingConfig::new(num_bits, program_io).with_mem_idx(13) + OutputBindingConfig::new(num_bits, program_io).with_mem_idx(12) } } diff --git a/interleaving/starstream-runtime/src/lib.rs b/interleaving/starstream-runtime/src/lib.rs index 3f3fa002..9e6bb947 100644 --- a/interleaving/starstream-runtime/src/lib.rs +++ b/interleaving/starstream-runtime/src/lib.rs @@ -1119,7 +1119,6 @@ impl UnprovenTransaction { } let mut host_calls_roots = Vec::new(); - let mut host_calls_lens = Vec::new(); let mut must_burn = Vec::new(); let mut ownership_in = Vec::new(); let mut ownership_out = Vec::new(); @@ -1137,7 +1136,6 @@ impl UnprovenTransaction { .get(&ProcessId(pid)) .cloned() .unwrap_or_default(); - host_calls_lens.push(trace.len() as u32); let mut commitment = LedgerEffectsCommitment::iv(); for op in &trace { commitment = commit(commitment, op.clone()); @@ -1178,7 +1176,6 @@ impl UnprovenTransaction { let instance = InterleavingInstance { host_calls_roots, - host_calls_lens, process_table, is_utxo, must_burn, From 7e0111032dcb4b72b370b55fe6566b6ca48b4ad5 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Sun, 15 Feb 2026 21:24:01 -0300 Subject: [PATCH 146/152] effects spec cleanup Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .../EFFECTS_REFERENCE.md | 51 ++++++++++--------- 1 file changed, 27 insertions(+), 24 deletions(-) diff --git a/interleaving/starstream-interleaving-spec/EFFECTS_REFERENCE.md b/interleaving/starstream-interleaving-spec/EFFECTS_REFERENCE.md index 60e3fb75..2d7c25ee 100644 --- a/interleaving/starstream-interleaving-spec/EFFECTS_REFERENCE.md +++ b/interleaving/starstream-interleaving-spec/EFFECTS_REFERENCE.md @@ -28,7 +28,7 @@ The global state of the interleaving machine σ is defined as: ```text Configuration (σ) ================= -σ = (id_curr, id_prev, M, activation, init, ref_store, process_table, host_calls, on_yield, yield_to, finalized, is_utxo, initialized, handler_stack, ownership, did_burn) +σ = (id_curr, id_prev, M, activation, init, ref_store, process_table, host_calls, must_burn, on_yield, yield_to, finalized, is_utxo, initialized, handler_stack, ownership, did_burn) Where: id_curr : ID of the currently executing VM. In the range [0..#coord + #utxo] @@ -42,7 +42,8 @@ Where: ref_store : A map {Ref -> Value} process_table : Read-only map {ID -> ProgramHash} for attestation. host_calls : A map {ProcessID -> Host-calls lookup table} - finalized : A map {ProcessID -> Bool} (true if the process ends the transaction with a final yield) + must_burn : Read-only map {ProcessID -> Bool} (inputs without continuation must burn) + finalized : A map {ProcessID -> Bool} (true if the process ended with a terminal op, e.g. yield/burn) is_utxo : Read-only map {ProcessID -> Bool} initialized : A map {ProcessID -> Bool} handler_stack : A map {InterfaceID -> Stack} @@ -108,11 +109,11 @@ Rule: Resume (Check that the current process matches the expected resumer for the target) - 5. is_utxo(id_curr) => !is_utxo(target) + 4. is_utxo(id_curr) => !is_utxo(target) (Utxo's can't call into utxos) - 6. initialized[target] + 5. initialized[target] (Can't jump to an unitialized process) -------------------------------------------------------------------------------------------- @@ -120,12 +121,12 @@ Rule: Resume 2. expected_resumer[id_curr] <- caller (Claim, needs to be checked later by future resumer) 3. expected_input[target] <- None (Target claim consumed by this resume) 4. expected_resumer[target] <- None (Target claim consumed by this resume) - 6. id_prev' <- id_curr (Trace-local previous id) - 7. id_curr' <- target (Switch) - 8. if on_yield[target] then + 5. id_prev' <- id_curr (Trace-local previous id) + 6. id_curr' <- target (Switch) + 7. if on_yield[target] then yield_to'[target] <- Some(id_curr) on_yield'[target] <- False - 9. activation'[target] <- Some(val_ref, id_curr) + 8. activation'[target] <- Some(val_ref, id_curr) ``` ## Activation @@ -137,6 +138,7 @@ Rule: Activation 1. activation[id_curr] == Some(val, caller) ----------------------------------------------------------------------- + 1. (No state changes) ## Init @@ -152,6 +154,7 @@ Rule: Init 2. caller is the creator (the process that executed NewUtxo/NewCoord for this id) ----------------------------------------------------------------------- + 1. (No state changes) ## Yield @@ -178,11 +181,11 @@ Rule: Yield (Check that the current process matches the expected resumer for the parent) -------------------------------------------------------------------------------------------- - 2. on_yield'[id_curr] <- True - 3. id_curr' <- yield_to[id_curr] - 4. id_prev' <- id_curr - 5. finalized'[id_curr] <- True - 6. activation'[id_curr] <- None + 1. on_yield'[id_curr] <- True + 2. id_curr' <- yield_to[id_curr] + 3. id_prev' <- id_curr + 4. finalized'[id_curr] <- True + 5. activation'[id_curr] <- None ``` ## Program Hash @@ -197,11 +200,8 @@ Rule: Program Hash op = ProgramHash(target_id) hash = process_table[target_id] - let - - (Host call lookup condition) - ----------------------------------------------------------------------- + 1. (No state changes) ``` --- @@ -328,8 +328,6 @@ Rule: Get Handler For 1. handler_id == handler_stack[interface_id].top() - (The returned handler_id must match the one on top of the stack) - (Host call lookup condition) ----------------------------------------------------------------------- ``` @@ -350,8 +348,8 @@ Destroys the UTXO state. op = Burn(ret) 1. is_utxo[id_curr] - 2. is_initialized[id_curr] - 3. did_burn[id_curr] + 2. initialized[id_curr] + 3. must_burn[id_curr] == True 4. if expected_input[id_prev] is set, it must equal ret @@ -503,11 +501,16 @@ for (process, proof, host_calls) in transaction.proofs: // we verified all the host calls for each process // every object had a constructor of some sort - assert(is_initialized[process]) + assert(initialized[process]) - // all the utxos either did `yield` at the end, or called `burn` + // all utxos in the transaction ended in a terminal state if is_utxo[process] { - assert(finalized[process] || did_burn[process]) + assert(finalized[process]) + } + + // burned inputs (no continuation) must have executed Burn + if must_burn[process] { + assert(did_burn[process]) } assert_not(is_utxo[id_curr]) From 1c482287cc41238c6a7fd8e9f217f6336c31dd9f Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Tue, 17 Feb 2026 12:17:33 -0300 Subject: [PATCH 147/152] add coord-only Return opcode similar to Yield, but only runs once, so that we can transfer control back to the caller and also ensure linearity Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .../starstream-interleaving-proof/src/abi.rs | 3 + .../src/circuit.rs | 80 +++++++++++++++++-- .../src/circuit_test.rs | 69 ++++++++++++++++ .../src/execution_switches.rs | 13 +++ .../src/ledger_operation.rs | 1 + .../starstream-interleaving-proof/src/lib.rs | 11 ++- .../starstream-interleaving-proof/src/neo.rs | 2 +- .../src/mocked_verifier.rs | 21 ++++- .../src/transaction_effects/witness.rs | 3 + interleaving/starstream-runtime/src/lib.rs | 31 ++++++- .../src/test_support/wasm_dsl.rs | 3 + .../starstream-runtime/src/trace_mermaid.rs | 5 ++ 12 files changed, 231 insertions(+), 11 deletions(-) diff --git a/interleaving/starstream-interleaving-proof/src/abi.rs b/interleaving/starstream-interleaving-proof/src/abi.rs index 63401dd9..c9a2e744 100644 --- a/interleaving/starstream-interleaving-proof/src/abi.rs +++ b/interleaving/starstream-interleaving-proof/src/abi.rs @@ -90,6 +90,7 @@ pub(crate) fn ledger_operation_from_wit(op: &WitLedgerEffect) -> LedgerOperation WitLedgerEffect::Yield { val } => LedgerOperation::Yield { val: F::from(val.0), }, + WitLedgerEffect::Return {} => LedgerOperation::Return {}, WitLedgerEffect::Burn { ret } => LedgerOperation::Burn { ret: F::from(ret.0), }, @@ -170,6 +171,7 @@ pub(crate) fn opcode_discriminant(op: &LedgerOperation) -> F { LedgerOperation::Nop {} => F::zero(), LedgerOperation::Resume { .. } => F::from(EffectDiscriminant::Resume as u64), LedgerOperation::Yield { .. } => F::from(EffectDiscriminant::Yield as u64), + LedgerOperation::Return { .. } => F::from(EffectDiscriminant::Return as u64), LedgerOperation::Burn { .. } => F::from(EffectDiscriminant::Burn as u64), LedgerOperation::ProgramHash { .. } => F::from(EffectDiscriminant::ProgramHash as u64), LedgerOperation::NewUtxo { .. } => F::from(EffectDiscriminant::NewUtxo as u64), @@ -210,6 +212,7 @@ pub(crate) fn opcode_args(op: &LedgerOperation) -> [F; OPCODE_ARG_COUNT] { LedgerOperation::Yield { val } => { args[ArgName::Val.idx()] = *val; } + LedgerOperation::Return {} => {} LedgerOperation::Burn { ret } => { args[ArgName::Target.idx()] = F::zero(); args[ArgName::Ret.idx()] = *ret; diff --git a/interleaving/starstream-interleaving-proof/src/circuit.rs b/interleaving/starstream-interleaving-proof/src/circuit.rs index 230f30ab..a91c60eb 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit.rs @@ -247,7 +247,8 @@ impl Wires { program_state_read_wires(rm, &cs, curr_address.clone(), &curr_mem_switches)?; let yield_to_value = curr_read_wires.yield_to.decode_or_zero()?; - let target_address = switches.yield_op.select(&yield_to_value, &target)?; + let return_like = &switches.yield_op | &switches.return_op; + let target_address = return_like.select(&yield_to_value, &target)?; let target_read_wires = program_state_read_wires(rm, &cs, target_address.clone(), &target_mem_switches)?; @@ -491,6 +492,16 @@ impl LedgerOperation { config.mem_switches_target.expected_input = true; config.mem_switches_target.expected_resumer = true; } + LedgerOperation::Return { .. } => { + config.execution_switches.return_op = true; + + config.mem_switches_curr.activation = true; + config.mem_switches_curr.on_yield = true; + config.mem_switches_curr.yield_to = true; + config.mem_switches_curr.finalized = true; + + config.rom_switches.read_is_utxo_curr = true; + } LedgerOperation::Burn { .. } => { config.execution_switches.burn = true; @@ -628,6 +639,7 @@ impl LedgerOperation { curr_id: F, curr_read: ProgramState, target_read: ProgramState, + curr_is_utxo: bool, ) -> (ProgramState, ProgramState) { let mut curr_write = curr_read.clone(); let mut target_write = target_read.clone(); @@ -653,7 +665,7 @@ impl LedgerOperation { target_write.finalized = false; // If target was in a yield state, record who resumed it and clear the flag. - if target_read.on_yield { + if target_read.on_yield && !curr_is_utxo { target_write.yield_to = OptionalF::new(curr_id); } target_write.on_yield = false; @@ -665,6 +677,11 @@ impl LedgerOperation { curr_write.finalized = true; curr_write.on_yield = true; } + LedgerOperation::Return {} => { + // Coordination script return is terminal for this transaction. + curr_write.activation = F::ZERO; + curr_write.finalized = true; + } LedgerOperation::Burn { ret } => { // The current UTXO is burned. curr_write.activation = F::ZERO; // Represents None @@ -736,6 +753,7 @@ impl> StepCircuitBuilder { // per opcode constraints let next_wires = self.visit_yield(next_wires)?; + let next_wires = self.visit_return(next_wires)?; let next_wires = self.visit_resume(next_wires)?; let next_wires = self.visit_burn(next_wires)?; let next_wires = self.visit_program_hash(next_wires)?; @@ -1009,6 +1027,7 @@ impl> StepCircuitBuilder { let target_addr = match instr { LedgerOperation::Resume { target, .. } => Some(*target), LedgerOperation::Yield { .. } => curr_read.yield_to.to_option(), + LedgerOperation::Return { .. } => curr_read.yield_to.to_option(), LedgerOperation::Burn { .. } => irw.id_prev.to_option(), LedgerOperation::NewUtxo { target: id, .. } => Some(*id), LedgerOperation::NewCoord { target: id, .. } => Some(*id), @@ -1049,8 +1068,9 @@ impl> StepCircuitBuilder { &F::from(target_pid_value), ); + let curr_is_utxo = self.instance.is_utxo[irw.id_curr.into_bigint().0[0] as usize]; let (curr_write, target_write) = - instr.program_state_transitions(irw.id_curr, curr_read, target_read); + instr.program_state_transitions(irw.id_curr, curr_read, target_read, curr_is_utxo); self.write_ops .push((curr_write.clone(), target_write.clone())); @@ -1071,9 +1091,14 @@ impl> StepCircuitBuilder { irw.id_curr = *target; } LedgerOperation::Yield { .. } => { - let old_curr = irw.id_curr; + irw.id_prev = OptionalF::new(irw.id_curr); irw.id_curr = curr_yield_to.decode_or_zero(); - irw.id_prev = OptionalF::new(old_curr); + } + LedgerOperation::Return { .. } => { + if let Some(parent) = curr_yield_to.to_option() { + irw.id_prev = OptionalF::new(irw.id_curr); + irw.id_curr = parent; + } } LedgerOperation::Burn { .. } => { let old_curr = irw.id_curr; @@ -1186,6 +1211,7 @@ impl> StepCircuitBuilder { interface_index, abi::opcode_discriminant(instruction), ); + default.opcode_args = abi::opcode_args(instruction); let prewires = match instruction { @@ -1201,6 +1227,10 @@ impl> StepCircuitBuilder { switches: ExecutionSwitches::yield_op(), ..default }, + LedgerOperation::Return { .. } => PreWires { + switches: ExecutionSwitches::return_op(), + ..default + }, LedgerOperation::Burn { .. } => PreWires { switches: ExecutionSwitches::burn(), ..default @@ -1277,7 +1307,7 @@ impl> StepCircuitBuilder { // 2. UTXO cannot resume UTXO. let is_utxo_curr = wires.is_utxo_curr.is_one()?; let is_utxo_target = wires.is_utxo_target.is_one()?; - let both_are_utxos = is_utxo_curr & is_utxo_target; + let both_are_utxos = is_utxo_curr.clone() & is_utxo_target; both_are_utxos.conditional_enforce_equal(&Boolean::FALSE, switch)?; // 3. Target must be initialized wires @@ -1306,7 +1336,7 @@ impl> StepCircuitBuilder { // 7. If target was in yield state, record yield_to; otherwise keep it unchanged. let target_on_yield = wires.target_read_wires.on_yield.clone(); let new_yield_to = OptionalFpVar::select_encoded( - &(switch & target_on_yield.clone()), + &(switch & target_on_yield & is_utxo_curr.not()), &OptionalFpVar::from_pid(&wires.id_curr), &wires.target_read_wires.yield_to, )?; @@ -1498,6 +1528,42 @@ impl> StepCircuitBuilder { Ok(wires) } + #[tracing::instrument(target = "gr1cs", skip(self, wires))] + fn visit_return(&self, mut wires: Wires) -> Result { + let switch = &wires.switches.return_op; + let yield_to = wires.curr_read_wires.yield_to.clone(); + let has_parent = yield_to.is_some()?; + + // Coordination scripts only. + wires + .is_utxo_curr + .is_one()? + .conditional_enforce_equal(&Boolean::FALSE, switch)?; + + wires + .curr_write_wires + .finalized + .conditional_enforce_equal(&Boolean::TRUE, switch)?; + wires + .curr_write_wires + .activation + .conditional_enforce_equal(&FpVar::zero(), switch)?; + + // If we have a parent, transfer control back like Yield. + let has_parent_and_switch = switch & &has_parent; + let parent = yield_to.decode_or_zero()?; + let next_id_curr = has_parent_and_switch.select(&parent, &wires.id_curr)?; + let next_id_prev = OptionalFpVar::select_encoded( + &has_parent_and_switch, + &OptionalFpVar::from_pid(&wires.id_curr), + &wires.id_prev, + )?; + wires.id_curr = next_id_curr; + wires.id_prev = next_id_prev; + + Ok(wires) + } + #[tracing::instrument(target = "gr1cs", skip(self, wires))] fn visit_new_process(&self, mut wires: Wires) -> Result { let switch = &wires.switches.new_utxo | &wires.switches.new_coord; diff --git a/interleaving/starstream-interleaving-proof/src/circuit_test.rs b/interleaving/starstream-interleaving-proof/src/circuit_test.rs index 7103147c..2d18864b 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit_test.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit_test.rs @@ -482,3 +482,72 @@ fn test_yield_parent_resumer_mismatch_trace() { let _result = prove(instance, wit); } + +#[test] +fn test_entrypoint_return_sat() { + setup_logger(); + + let p0 = ProcessId(0); + let ref_0 = Ref(0); + let val_0 = v(&[7]); + + let entry_trace = vec![ + WitLedgerEffect::NewRef { + size: 1, + ret: ref_0.into(), + }, + ref_push1(val_0), + WitLedgerEffect::Return {}, + ]; + + let traces = vec![entry_trace]; + let host_calls_roots = host_calls_roots(&traces); + + let instance = InterleavingInstance { + n_inputs: 0, + n_new: 0, + n_coords: 1, + entrypoint: p0, + process_table: vec![h(0)], + is_utxo: vec![false], + must_burn: vec![], + ownership_in: vec![], + ownership_out: vec![], + host_calls_roots, + input_states: vec![], + }; + + let wit = InterleavingWitness { traces }; + let result = prove(instance, wit); + assert!(result.is_ok()); +} + +#[test] +#[should_panic] +fn test_non_entrypoint_return_without_parent_panics() { + setup_logger(); + + let p0 = ProcessId(0); + + // p1 has a Return but is never reached from entrypoint p0, so this is an + // invalid interleaving shape and should fail. + let traces = vec![vec![], vec![WitLedgerEffect::Return {}]]; + let host_calls_roots = host_calls_roots(&traces); + + let instance = InterleavingInstance { + n_inputs: 0, + n_new: 0, + n_coords: 2, + entrypoint: p0, + process_table: vec![h(0), h(1)], + is_utxo: vec![false, false], + must_burn: vec![], + ownership_in: vec![], + ownership_out: vec![], + host_calls_roots, + input_states: vec![], + }; + + let wit = InterleavingWitness { traces }; + let _ = prove(instance, wit); +} diff --git a/interleaving/starstream-interleaving-proof/src/execution_switches.rs b/interleaving/starstream-interleaving-proof/src/execution_switches.rs index e8c5dbbf..27cb532e 100644 --- a/interleaving/starstream-interleaving-proof/src/execution_switches.rs +++ b/interleaving/starstream-interleaving-proof/src/execution_switches.rs @@ -13,6 +13,7 @@ use crate::F; pub(crate) struct ExecutionSwitches { pub(crate) resume: T, pub(crate) yield_op: T, + pub(crate) return_op: T, pub(crate) burn: T, pub(crate) program_hash: T, pub(crate) new_utxo: T, @@ -41,6 +42,7 @@ impl ExecutionSwitches { let switches = [ self.resume, self.yield_op, + self.return_op, self.nop, self.burn, self.program_hash, @@ -80,6 +82,7 @@ impl ExecutionSwitches { let [ resume, yield_op, + return_op, nop, burn, program_hash, @@ -104,6 +107,7 @@ impl ExecutionSwitches { let terms = [ (resume, EffectDiscriminant::Resume as u64), (yield_op, EffectDiscriminant::Yield as u64), + (return_op, EffectDiscriminant::Return as u64), (burn, EffectDiscriminant::Burn as u64), (program_hash, EffectDiscriminant::ProgramHash as u64), (new_utxo, EffectDiscriminant::NewUtxo as u64), @@ -133,6 +137,7 @@ impl ExecutionSwitches { Ok(ExecutionSwitches { resume: resume.clone(), yield_op: yield_op.clone(), + return_op: return_op.clone(), nop: nop.clone(), burn: burn.clone(), program_hash: program_hash.clone(), @@ -173,6 +178,13 @@ impl ExecutionSwitches { } } + pub(crate) fn return_op() -> Self { + Self { + return_op: true, + ..Self::default() + } + } + pub(crate) fn burn() -> Self { Self { burn: true, @@ -284,6 +296,7 @@ impl Default for ExecutionSwitches { Self { resume: false, yield_op: false, + return_op: false, burn: false, program_hash: false, new_utxo: false, diff --git a/interleaving/starstream-interleaving-proof/src/ledger_operation.rs b/interleaving/starstream-interleaving-proof/src/ledger_operation.rs index f8c1affa..301983ce 100644 --- a/interleaving/starstream-interleaving-proof/src/ledger_operation.rs +++ b/interleaving/starstream-interleaving-proof/src/ledger_operation.rs @@ -25,6 +25,7 @@ pub enum LedgerOperation { Yield { val: F, }, + Return {}, ProgramHash { target: F, program_hash: [F; 4], diff --git a/interleaving/starstream-interleaving-proof/src/lib.rs b/interleaving/starstream-interleaving-proof/src/lib.rs index 258102c5..a96d8aa4 100644 --- a/interleaving/starstream-interleaving-proof/src/lib.rs +++ b/interleaving/starstream-interleaving-proof/src/lib.rs @@ -187,7 +187,7 @@ fn make_interleaved_trace( match instr { starstream_interleaving_spec::WitLedgerEffect::Resume { target, .. } => { - if on_yield[target.0] { + if on_yield[target.0] && !inst.is_utxo[id_curr] { yield_to[target.0] = Some(id_curr); on_yield[target.0] = false; } @@ -203,6 +203,15 @@ fn make_interleaved_trace( id_curr = parent; id_prev = Some(old_id_curr); } + starstream_interleaving_spec::WitLedgerEffect::Return {} => { + if let Some(parent) = yield_to[id_curr] { + let old_id_curr = id_curr; + id_curr = parent; + id_prev = Some(old_id_curr); + } else if id_curr != inst.entrypoint.0 { + break; + } + } starstream_interleaving_spec::WitLedgerEffect::Burn { .. } => { let parent = id_prev.expect("Burn called without a parent process"); let old_id_curr = id_curr; diff --git a/interleaving/starstream-interleaving-proof/src/neo.rs b/interleaving/starstream-interleaving-proof/src/neo.rs index 04803593..52411f0d 100644 --- a/interleaving/starstream-interleaving-proof/src/neo.rs +++ b/interleaving/starstream-interleaving-proof/src/neo.rs @@ -14,7 +14,7 @@ use std::collections::HashMap; // TODO: benchmark properly pub(crate) const CHUNK_SIZE: usize = 40; -const PER_STEP_COLS: usize = 1138; +const PER_STEP_COLS: usize = 1151; const BASE_INSTANCE_COLS: usize = 1; const EXTRA_INSTANCE_COLS: usize = IvcWireLayout::FIELD_COUNT * 2; const M_IN: usize = BASE_INSTANCE_COLS + EXTRA_INSTANCE_COLS; diff --git a/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs b/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs index 85bc3b7e..457f7d80 100644 --- a/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs +++ b/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs @@ -230,6 +230,7 @@ pub struct Rom { pub struct InterleavingState { id_curr: ProcessId, id_prev: Option, + entrypoint: ProcessId, /// Claims memory: M[pid] = expected argument to next Resume into pid. expected_input: Vec>, @@ -289,6 +290,7 @@ pub fn verify_interleaving_semantics( let mut state = InterleavingState { id_curr: ProcessId(inst.entrypoint.into()), id_prev: None, + entrypoint: inst.entrypoint, expected_input: claims_memory, expected_resumer: vec![None; n], on_yield: vec![true; n], @@ -481,7 +483,7 @@ pub fn state_transition( state.expected_input[id_curr.0] = ret.to_option(); state.expected_resumer[id_curr.0] = caller.to_option().flatten(); - if state.on_yield[target.0] { + if state.on_yield[target.0] && !rom.is_utxo[id_curr.0] { state.yield_to[target.0] = Some(id_curr); state.on_yield[target.0] = false; } @@ -536,6 +538,23 @@ pub fn state_transition( state.activation[id_curr.0] = None; state.id_curr = parent; } + WitLedgerEffect::Return {} => { + if rom.is_utxo[id_curr.0] { + return Err(InterleavingError::CoordOnly(id_curr)); + } + + state.finalized[id_curr.0] = true; + state.activation[id_curr.0] = None; + + if let Some(parent) = state.yield_to[id_curr.0] { + state.id_prev = Some(id_curr); + state.id_curr = parent; + } else if id_curr != state.entrypoint { + return Err(InterleavingError::Shape( + "Return requires parent unless current process is entrypoint", + )); + } + } WitLedgerEffect::ProgramHash { target, diff --git a/interleaving/starstream-interleaving-spec/src/transaction_effects/witness.rs b/interleaving/starstream-interleaving-spec/src/transaction_effects/witness.rs index 358a0a66..85d0c9c6 100644 --- a/interleaving/starstream-interleaving-spec/src/transaction_effects/witness.rs +++ b/interleaving/starstream-interleaving-spec/src/transaction_effects/witness.rs @@ -8,6 +8,7 @@ use crate::{ pub enum EffectDiscriminant { Resume = 0, Yield = 1, + Return = 17, NewUtxo = 2, NewCoord = 3, InstallHandler = 4, @@ -55,6 +56,7 @@ pub enum WitLedgerEffect { // in val: Ref, }, + Return {}, ProgramHash { // in target: ProcessId, @@ -198,6 +200,7 @@ impl From for EffectDiscriminant { match value { 0 => EffectDiscriminant::Resume, 1 => EffectDiscriminant::Yield, + 17 => EffectDiscriminant::Return, 2 => EffectDiscriminant::NewUtxo, 3 => EffectDiscriminant::NewCoord, 4 => EffectDiscriminant::InstallHandler, diff --git a/interleaving/starstream-runtime/src/lib.rs b/interleaving/starstream-runtime/src/lib.rs index 9e6bb947..52b9f218 100644 --- a/interleaving/starstream-runtime/src/lib.rs +++ b/interleaving/starstream-runtime/src/lib.rs @@ -135,6 +135,7 @@ fn effect_result_arity(effect: &WitLedgerEffect) -> usize { | WitLedgerEffect::UninstallHandler { .. } | WitLedgerEffect::Burn { .. } | WitLedgerEffect::Yield { .. } + | WitLedgerEffect::Return { .. } | WitLedgerEffect::Bind { .. } | WitLedgerEffect::Unbind { .. } | WitLedgerEffect::RefPush { .. } @@ -241,8 +242,14 @@ impl Runtime { .pending_activation .insert(target, (val, current_pid)); + let curr_is_utxo = caller + .data() + .is_utxo + .get(¤t_pid) + .copied() + .unwrap_or(false); let was_on_yield = caller.data().on_yield.get(&target).copied().unwrap_or(true); - if was_on_yield { + if !curr_is_utxo && was_on_yield { caller.data_mut().yield_to.insert(target, current_pid); caller.data_mut().on_yield.insert(target, false); } @@ -272,6 +279,16 @@ impl Runtime { ) .unwrap(); + linker + .func_wrap( + "env", + "starstream_return", + |mut caller: Caller<'_, RuntimeState>| -> Result<(), wasmi::Error> { + suspend_with_effect(&mut caller, WitLedgerEffect::Return {}) + }, + ) + .unwrap(); + linker .func_wrap( "env", @@ -1062,6 +1079,18 @@ impl UnprovenTransaction { next_args = [val.0, current_pid.0 as u64, 0, 0, 0]; current_pid = caller; } + WitLedgerEffect::Return { .. } => { + if let Some(caller) = runtime.store.data().yield_to.get(¤t_pid) { + next_args = [0; 5]; + current_pid = *caller; + } else if current_pid == ProcessId(self.entrypoint) { + break; + } else { + return Err(Error::RuntimeError( + "return on missing yield_to for non-entrypoint".into(), + )); + } + } WitLedgerEffect::Burn { .. } => { let caller = *runtime .store diff --git a/interleaving/starstream-runtime/src/test_support/wasm_dsl.rs b/interleaving/starstream-runtime/src/test_support/wasm_dsl.rs index 4ddc4424..bb5c6d37 100644 --- a/interleaving/starstream-runtime/src/test_support/wasm_dsl.rs +++ b/interleaving/starstream-runtime/src/test_support/wasm_dsl.rs @@ -210,6 +210,7 @@ pub struct Imports { pub ref_write: FuncRef, pub resume: FuncRef, pub yield_: FuncRef, + pub return_: FuncRef, pub new_utxo: FuncRef, pub new_coord: FuncRef, pub burn: FuncRef, @@ -309,6 +310,7 @@ impl ModuleBuilder { &[ValType::I64, ValType::I64], ); let yield_ = self.import_func("env", "starstream_yield", &[ValType::I64], &[]); + let return_ = self.import_func("env", "starstream_return", &[], &[]); let new_utxo = self.import_func( "env", "starstream_new_utxo", @@ -350,6 +352,7 @@ impl ModuleBuilder { ref_write, resume, yield_, + return_, new_utxo, new_coord, burn, diff --git a/interleaving/starstream-runtime/src/trace_mermaid.rs b/interleaving/starstream-runtime/src/trace_mermaid.rs index 9206fdb3..16a33e62 100644 --- a/interleaving/starstream-runtime/src/trace_mermaid.rs +++ b/interleaving/starstream-runtime/src/trace_mermaid.rs @@ -277,6 +277,11 @@ fn format_edge_line( let to = ctx.labels.get(next_pid.0)?; Some(format!("{from} -->> {to}: {label}")) } + WitLedgerEffect::Return {} => { + let next_pid = ctx.interleaving.get(idx + 1).map(|(p, _)| *p)?; + let to = ctx.labels.get(next_pid.0)?; + Some(format!("{from} -->> {to}: return")) + } WitLedgerEffect::NewUtxo { val, id, .. } => { let WitEffectOutput::Resolved(pid) = id else { return None; From 560c1a9701e295e4dbd1492dc2bbfd25bfaed7d5 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Tue, 17 Feb 2026 12:46:19 -0300 Subject: [PATCH 148/152] add the Return call to the integration tests Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- interleaving/starstream-runtime/tests/integration.rs | 2 ++ .../starstream-runtime/tests/multi_tx_continuation.rs | 3 +++ interleaving/starstream-runtime/tests/test_dex_swap_flow.rs | 2 ++ interleaving/starstream-runtime/tests/wrapper_coord_test.rs | 4 +++- 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/interleaving/starstream-runtime/tests/integration.rs b/interleaving/starstream-runtime/tests/integration.rs index 5509d346..ccf2bcc9 100644 --- a/interleaving/starstream-runtime/tests/integration.rs +++ b/interleaving/starstream-runtime/tests/integration.rs @@ -69,6 +69,7 @@ fn test_runtime_simple_effect_handlers() { let (_ret, _caller2) = call resume(0, resp); call uninstall_handler(1, 0, 0, 0); + call return_(); }); print_wat("simple/utxo", &utxo_bin); @@ -228,6 +229,7 @@ fn test_runtime_effect_handlers_cross_calls() { } call uninstall_handler(1, 2, 3, 4); + call return_(); }); print_wat("cross/utxo1", &utxo1_bin); diff --git a/interleaving/starstream-runtime/tests/multi_tx_continuation.rs b/interleaving/starstream-runtime/tests/multi_tx_continuation.rs index 3153f073..45543133 100644 --- a/interleaving/starstream-runtime/tests/multi_tx_continuation.rs +++ b/interleaving/starstream-runtime/tests/multi_tx_continuation.rs @@ -87,6 +87,7 @@ fn test_multi_tx_accumulator_global() { let (resp, _caller) = call resume(utxo_id, req); let (val, _b, _c, _d) = call ref_get(resp, 0); assert_eq val, 5; + call return_(); }); let coord2_bin = wasm_module!({ @@ -95,6 +96,7 @@ fn test_multi_tx_accumulator_global() { let (resp, _caller) = call resume(0, req); let (val, _b, _c, _d) = call ref_get(resp, 0); assert_eq val, 12; + call return_(); }); let coord3_bin = wasm_module!({ @@ -103,6 +105,7 @@ fn test_multi_tx_accumulator_global() { let (resp, _caller) = call resume(0, req); let (val, _b, _c, _d) = call ref_get(resp, 0); assert_eq val, 12; + call return_(); }); print_wat("globals/utxo", &utxo_bin); diff --git a/interleaving/starstream-runtime/tests/test_dex_swap_flow.rs b/interleaving/starstream-runtime/tests/test_dex_swap_flow.rs index 6f50445b..083cc17c 100644 --- a/interleaving/starstream-runtime/tests/test_dex_swap_flow.rs +++ b/interleaving/starstream-runtime/tests/test_dex_swap_flow.rs @@ -131,6 +131,7 @@ fn test_dex_swap_flow() { call ref_push(4, 0, 0, 0); let (resp_end, _caller_end) = call resume(caller_next, end); let (_k_val, _b2, _c2, _d2) = call ref_get(resp_end, 0); + call return_(); }); let (coord_hash_a, coord_hash_b, coord_hash_c, coord_hash_d) = hash_program(&coord_swap_bin); @@ -279,6 +280,7 @@ fn test_dex_swap_flow() { let noop = call new_ref(1); call ref_push(0, 0, 0, 0); let (_resp_noop, _caller_noop) = call resume(utxo_id, noop); + call return_(); }); print_wat("dex/token", &token_bin); diff --git a/interleaving/starstream-runtime/tests/wrapper_coord_test.rs b/interleaving/starstream-runtime/tests/wrapper_coord_test.rs index 2e69b18f..f92510c6 100644 --- a/interleaving/starstream-runtime/tests/wrapper_coord_test.rs +++ b/interleaving/starstream-runtime/tests/wrapper_coord_test.rs @@ -144,7 +144,7 @@ fn test_runtime_wrapper_coord_newcoord_handlers() { call ref_push(4, 0, 0, 0); let (_resp_end, _caller5) = call resume(handler_id, req_end); - call yield_(init_ref); + call return_(); }); let (inner_hash_limb_a, inner_hash_limb_b, inner_hash_limb_c, inner_hash_limb_d) = @@ -210,6 +210,7 @@ fn test_runtime_wrapper_coord_newcoord_handlers() { } call uninstall_handler(1, 2, 3, 4); + call return_(); }); print_wat("wrapper", &wrapper_coord_bin); @@ -261,6 +262,7 @@ fn test_runtime_wrapper_coord_newcoord_handlers() { ); let (_ret, _caller) = call resume(wrapper_id, wrapper_init); + call return_(); }); let programs = vec![ From 9a9b2221bb8e3701eec8db3e1018ce6172f1d9ef Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Wed, 18 Feb 2026 22:05:13 -0300 Subject: [PATCH 149/152] add new CallEffectHandler opcode to decouple effect calling from Resume now Resume is only available for coordination scripts Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .../starstream-interleaving-proof/src/abi.rs | 24 +++ .../src/circuit.rs | 197 +++++++++++++++--- .../src/circuit_test.rs | 99 +++++++++ .../src/execution_switches.rs | 16 ++ .../src/handler_stack_gadget.rs | 3 + .../src/ledger_operation.rs | 5 + .../starstream-interleaving-proof/src/lib.rs | 26 +++ .../starstream-interleaving-proof/src/neo.rs | 2 +- .../EFFECTS_REFERENCE.md | 58 +++++- .../src/mocked_verifier.rs | 55 +++++ .../src/transaction_effects/witness.rs | 13 +- interleaving/starstream-runtime/src/lib.rs | 45 ++++ .../src/test_support/wasm_dsl.rs | 14 ++ .../starstream-runtime/src/trace_mermaid.rs | 15 ++ .../starstream-runtime/tests/integration.rs | 8 +- .../tests/wrapper_coord_test.rs | 8 +- 16 files changed, 539 insertions(+), 49 deletions(-) diff --git a/interleaving/starstream-interleaving-proof/src/abi.rs b/interleaving/starstream-interleaving-proof/src/abi.rs index c9a2e744..c9a23b03 100644 --- a/interleaving/starstream-interleaving-proof/src/abi.rs +++ b/interleaving/starstream-interleaving-proof/src/abi.rs @@ -37,6 +37,7 @@ pub enum ArgName { OwnerId, TokenId, InterfaceId, + CallEffectHandlerInterfaceId, PackedRef0, PackedRef1, @@ -56,6 +57,7 @@ impl ArgName { ArgName::Val | ArgName::InterfaceId => 1, ArgName::Ret => 2, ArgName::Caller | ArgName::Offset | ArgName::Size | ArgName::ActivationCaller => 3, + ArgName::CallEffectHandlerInterfaceId => 4, ArgName::ProgramHash0 => 3, ArgName::ProgramHash1 => 4, ArgName::ProgramHash2 => 5, @@ -163,6 +165,16 @@ pub(crate) fn ledger_operation_from_wit(op: &WitLedgerEffect) -> LedgerOperation interface_id: F::from(interface_id.0[0] as u64), handler_id: F::from(handler_id.unwrap().0 as u64), }, + WitLedgerEffect::CallEffectHandler { + interface_id, + val, + ret, + .. + } => LedgerOperation::CallEffectHandler { + interface_id: F::from(interface_id.0[0] as u64), + val: F::from(val.0), + ret: ret.to_option().map(|r| F::from(r.0)).unwrap_or_default(), + }, } } @@ -170,6 +182,9 @@ pub(crate) fn opcode_discriminant(op: &LedgerOperation) -> F { match op { LedgerOperation::Nop {} => F::zero(), LedgerOperation::Resume { .. } => F::from(EffectDiscriminant::Resume as u64), + LedgerOperation::CallEffectHandler { .. } => { + F::from(EffectDiscriminant::CallEffectHandler as u64) + } LedgerOperation::Yield { .. } => F::from(EffectDiscriminant::Yield as u64), LedgerOperation::Return { .. } => F::from(EffectDiscriminant::Return as u64), LedgerOperation::Burn { .. } => F::from(EffectDiscriminant::Burn as u64), @@ -209,6 +224,15 @@ pub(crate) fn opcode_args(op: &LedgerOperation) -> [F; OPCODE_ARG_COUNT] { args[ArgName::Ret.idx()] = *ret; args[ArgName::Caller.idx()] = caller.encoded(); } + LedgerOperation::CallEffectHandler { + interface_id, + val, + ret, + } => { + args[ArgName::Val.idx()] = *val; + args[ArgName::Ret.idx()] = *ret; + args[ArgName::CallEffectHandlerInterfaceId.idx()] = *interface_id; + } LedgerOperation::Yield { val } => { args[ArgName::Val.idx()] = *val; } diff --git a/interleaving/starstream-interleaving-proof/src/circuit.rs b/interleaving/starstream-interleaving-proof/src/circuit.rs index a91c60eb..1e34c451 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit.rs @@ -246,9 +246,27 @@ impl Wires { let curr_read_wires = program_state_read_wires(rm, &cs, curr_address.clone(), &curr_mem_switches)?; + let handler_switches = + HandlerSwitchboardWires::allocate(cs.clone(), &vals.handler_switches)?; + let ref_arena_switches = + RefArenaSwitchboardWires::allocate(cs.clone(), &vals.ref_arena_switches)?; + let interface_index_var = FpVar::new_witness(cs.clone(), || Ok(vals.interface_index))?; + let handler_reads = handler_stack_access_wires( + cs.clone(), + rm, + &handler_switches, + &interface_index_var, + &handler_stack_counter, + &id_curr, + )?; + let yield_to_value = curr_read_wires.yield_to.decode_or_zero()?; let return_like = &switches.yield_op | &switches.return_op; - let target_address = return_like.select(&yield_to_value, &target)?; + let default_target_address = return_like.select(&yield_to_value, &target)?; + let target_address = switches.call_effect_handler.select( + &handler_reads.handler_stack_node_process, + &default_target_address, + )?; let target_read_wires = program_state_read_wires(rm, &cs, target_address.clone(), &target_mem_switches)?; @@ -310,22 +328,6 @@ impl Wires { &target_address, )?; - let handler_switches = - HandlerSwitchboardWires::allocate(cs.clone(), &vals.handler_switches)?; - let ref_arena_switches = - RefArenaSwitchboardWires::allocate(cs.clone(), &vals.ref_arena_switches)?; - - let interface_index_var = FpVar::new_witness(cs.clone(), || Ok(vals.interface_index))?; - - let handler_reads = handler_stack_access_wires( - cs.clone(), - rm, - &handler_switches, - &interface_index_var, - &handler_stack_counter, - &id_curr, - )?; - let handler_state = HandlerState { handler_stack_node_process: handler_reads.handler_stack_node_process, interface_rom_read: handler_reads.interface_rom_read, @@ -481,6 +483,22 @@ impl LedgerOperation { config.rom_switches.read_is_utxo_curr = true; config.rom_switches.read_is_utxo_target = true; } + LedgerOperation::CallEffectHandler { .. } => { + config.execution_switches.call_effect_handler = true; + + config.mem_switches_curr.activation = true; + config.mem_switches_curr.expected_input = true; + config.mem_switches_curr.expected_resumer = true; + + config.mem_switches_target.activation = true; + config.mem_switches_target.expected_input = true; + config.mem_switches_target.expected_resumer = true; + config.mem_switches_target.finalized = true; + + config.handler_switches.read_interface = true; + config.handler_switches.read_head = true; + config.handler_switches.read_node = true; + } LedgerOperation::Yield { .. } => { config.execution_switches.yield_op = true; @@ -491,6 +509,8 @@ impl LedgerOperation { config.mem_switches_target.expected_input = true; config.mem_switches_target.expected_resumer = true; + + config.rom_switches.read_is_utxo_curr = true; } LedgerOperation::Return { .. } => { config.execution_switches.return_op = true; @@ -640,6 +660,7 @@ impl LedgerOperation { curr_read: ProgramState, target_read: ProgramState, curr_is_utxo: bool, + target_id: Option, ) -> (ProgramState, ProgramState) { let mut curr_write = curr_read.clone(); let mut target_write = target_read.clone(); @@ -670,6 +691,17 @@ impl LedgerOperation { } target_write.on_yield = false; } + LedgerOperation::CallEffectHandler { val, ret, .. } => { + let target = target_id.expect("CallEffectHandler requires resolved handler target"); + curr_write.activation = F::ZERO; + curr_write.expected_input = OptionalF::new(*ret); + curr_write.expected_resumer = OptionalF::new(target); + + target_write.expected_input = OptionalF::none(); + target_write.expected_resumer = OptionalF::none(); + target_write.activation = *val; + target_write.finalized = false; + } LedgerOperation::Yield { val: _, .. } => { // Current process yields control back to its parent (the target of this operation). // Its `arg` is cleared. @@ -754,6 +786,7 @@ impl> StepCircuitBuilder { // per opcode constraints let next_wires = self.visit_yield(next_wires)?; let next_wires = self.visit_return(next_wires)?; + let next_wires = self.visit_call_effect_handler(next_wires)?; let next_wires = self.visit_resume(next_wires)?; let next_wires = self.visit_burn(next_wires)?; let next_wires = self.visit_program_hash(next_wires)?; @@ -996,10 +1029,13 @@ impl> StepCircuitBuilder { LedgerOperation::GetHandlerFor { interface_id, .. } => self .interface_resolver .get_interface_index_field(*interface_id), + LedgerOperation::CallEffectHandler { interface_id, .. } => self + .interface_resolver + .get_interface_index_field(*interface_id), _ => F::ZERO, }; - let _handler_reads = trace_handler_stack_ops( + let handler_reads = trace_handler_stack_ops( &mut mb, &handler_switches, &interface_index, @@ -1026,6 +1062,9 @@ impl> StepCircuitBuilder { let target_addr = match instr { LedgerOperation::Resume { target, .. } => Some(*target), + LedgerOperation::CallEffectHandler { .. } => { + Some(handler_reads.handler_stack_node_process) + } LedgerOperation::Yield { .. } => curr_read.yield_to.to_option(), LedgerOperation::Return { .. } => curr_read.yield_to.to_option(), LedgerOperation::Burn { .. } => irw.id_prev.to_option(), @@ -1069,8 +1108,19 @@ impl> StepCircuitBuilder { ); let curr_is_utxo = self.instance.is_utxo[irw.id_curr.into_bigint().0[0] as usize]; - let (curr_write, target_write) = - instr.program_state_transitions(irw.id_curr, curr_read, target_read, curr_is_utxo); + let target_id = match instr { + LedgerOperation::CallEffectHandler { .. } => { + Some(handler_reads.handler_stack_node_process) + } + _ => None, + }; + let (curr_write, target_write) = instr.program_state_transitions( + irw.id_curr, + curr_read, + target_read, + curr_is_utxo, + target_id, + ); self.write_ops .push((curr_write.clone(), target_write.clone())); @@ -1090,6 +1140,10 @@ impl> StepCircuitBuilder { irw.id_prev = OptionalF::new(irw.id_curr); irw.id_curr = *target; } + LedgerOperation::CallEffectHandler { .. } => { + irw.id_prev = OptionalF::new(irw.id_curr); + irw.id_curr = handler_reads.handler_stack_node_process; + } LedgerOperation::Yield { .. } => { irw.id_prev = OptionalF::new(irw.id_curr); irw.id_curr = curr_yield_to.decode_or_zero(); @@ -1198,6 +1252,9 @@ impl> StepCircuitBuilder { LedgerOperation::GetHandlerFor { interface_id, .. } => self .interface_resolver .get_interface_index_field(*interface_id), + LedgerOperation::CallEffectHandler { interface_id, .. } => self + .interface_resolver + .get_interface_index_field(*interface_id), _ => F::ZERO, }; @@ -1223,6 +1280,10 @@ impl> StepCircuitBuilder { switches: ExecutionSwitches::resume(), ..default }, + LedgerOperation::CallEffectHandler { .. } => PreWires { + switches: ExecutionSwitches::call_effect_handler(), + ..default + }, LedgerOperation::Yield { .. } => PreWires { switches: ExecutionSwitches::yield_op(), ..default @@ -1304,11 +1365,14 @@ impl> StepCircuitBuilder { .id_curr .conditional_enforce_not_equal(&wires.arg(ArgName::Target), switch)?; - // 2. UTXO cannot resume UTXO. + // 2. Direct Resume is coordination-script only. + wires + .is_utxo_curr + .is_one()? + .conditional_enforce_equal(&Boolean::FALSE, switch)?; + let is_utxo_curr = wires.is_utxo_curr.is_one()?; - let is_utxo_target = wires.is_utxo_target.is_one()?; - let both_are_utxos = is_utxo_curr.clone() & is_utxo_target; - both_are_utxos.conditional_enforce_equal(&Boolean::FALSE, switch)?; + // 3. Target must be initialized wires .target_read_wires @@ -1390,6 +1454,79 @@ impl> StepCircuitBuilder { Ok(wires) } + #[tracing::instrument(target = "gr1cs", skip(self, wires))] + fn visit_call_effect_handler(&self, mut wires: Wires) -> Result { + let switch = &wires.switches.call_effect_handler; + + // The interface witness must match interface ROM. + wires + .handler_state + .interface_rom_read + .conditional_enforce_equal(&wires.arg(ArgName::CallEffectHandlerInterfaceId), switch)?; + + // No self-call. + wires.id_curr.conditional_enforce_not_equal( + &wires.handler_state.handler_stack_node_process, + switch, + )?; + + // Re-entrancy check (target activation must be None). + wires + .target_read_wires + .activation + .conditional_enforce_equal(&FpVar::zero(), switch)?; + + // Claim check: val ref must match target expected_input (if set). + wires + .target_read_wires + .expected_input + .conditional_enforce_eq_if_some(switch, &wires.arg(ArgName::Val))?; + + // Resumer check: current process must match target expected_resumer (if set). + wires + .target_read_wires + .expected_resumer + .conditional_enforce_eq_if_some(switch, &wires.id_curr)?; + + // Target expectations are consumed by the call. + wires + .target_write_wires + .expected_input + .encoded() + .conditional_enforce_equal(&FpVar::zero(), switch)?; + wires + .target_write_wires + .expected_resumer + .encoded() + .conditional_enforce_equal(&FpVar::zero(), switch)?; + + // Caller expected_resumer is fixed to the resolved target. + wires + .curr_write_wires + .expected_resumer + .encoded() + .conditional_enforce_equal( + &OptionalFpVar::from_pid(&wires.handler_state.handler_stack_node_process).encoded(), + switch, + )?; + + // IVC state updates mirror resume-to-target. + let next_id_curr = switch.select( + &wires.handler_state.handler_stack_node_process, + &wires.id_curr, + )?; + let next_id_prev = OptionalFpVar::select_encoded( + switch, + &OptionalFpVar::from_pid(&wires.id_curr), + &wires.id_prev, + )?; + + wires.id_curr = next_id_curr; + wires.id_prev = next_id_prev; + + Ok(wires) + } + #[tracing::instrument(target = "gr1cs", skip(self, wires))] fn visit_burn(&self, mut wires: Wires) -> Result { let switch = &wires.switches.burn; @@ -1451,10 +1588,16 @@ impl> StepCircuitBuilder { let yield_to = wires.curr_read_wires.yield_to.clone(); let yield_to_is_some = yield_to.is_some()?; - // 1. Must have a target to yield to. + // 1. Yield is only valid for UTXOs. + wires + .is_utxo_curr + .is_one()? + .conditional_enforce_equal(&Boolean::TRUE, switch)?; + + // 2. Must have a target to yield to. yield_to_is_some.conditional_enforce_equal(&Boolean::TRUE, switch)?; - // 2. Claim check: yielded value `val` must match parent's `expected_input`. + // 3. Claim check: yielded value `val` must match parent's `expected_input`. // The parent's state is in `target_read_wires` because we set `target = yield_to`. wires .target_read_wires @@ -1464,7 +1607,7 @@ impl> StepCircuitBuilder { &wires.arg(ArgName::Val), )?; - // 3. Resumer check: parent must expect the current process (if set). + // 4. Resumer check: parent must expect the current process (if set). wires .target_read_wires .expected_resumer diff --git a/interleaving/starstream-interleaving-proof/src/circuit_test.rs b/interleaving/starstream-interleaving-proof/src/circuit_test.rs index 2d18864b..9537e633 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit_test.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit_test.rs @@ -483,6 +483,105 @@ fn test_yield_parent_resumer_mismatch_trace() { let _result = prove(instance, wit); } +#[test] +#[should_panic] +fn test_call_effect_handler_resumer_mismatch_trace() { + setup_logger(); + + let utxo_id = 0; + let coord_top_id = 1; + let coord_handler_id = 2; + + let p0 = ProcessId(utxo_id); + let p1 = ProcessId(coord_top_id); + let p2 = ProcessId(coord_handler_id); + + let ref_0 = Ref(0); + let val_0 = v(&[7]); + let iface = h(100); + + let utxo_trace = vec![ + WitLedgerEffect::Init { + val: ref_0.into(), + caller: p1.into(), + }, + WitLedgerEffect::CallEffectHandler { + interface_id: iface, + val: ref_0, + ret: ref_0.into(), + }, + WitLedgerEffect::Yield { val: ref_0 }, + ]; + + let coord_top_trace = vec![ + WitLedgerEffect::NewRef { + size: 1, + ret: ref_0.into(), + }, + ref_push1(val_0), + WitLedgerEffect::NewUtxo { + program_hash: h(0), + val: ref_0, + id: p0.into(), + }, + WitLedgerEffect::NewCoord { + program_hash: h(2), + val: ref_0, + id: p2.into(), + }, + WitLedgerEffect::Resume { + target: p2, + val: ref_0, + ret: ref_0.into(), + caller: WitEffectOutput::Resolved(None), + }, + // Invalid on purpose: after p0 CallEffectHandler, only p2 should resume p0. + WitLedgerEffect::Resume { + target: p0, + val: ref_0, + ret: ref_0.into(), + caller: WitEffectOutput::Resolved(None), + }, + ]; + + let coord_handler_trace = vec![ + WitLedgerEffect::Init { + val: ref_0.into(), + caller: p1.into(), + }, + WitLedgerEffect::InstallHandler { + interface_id: iface, + }, + WitLedgerEffect::Resume { + target: p0, + val: ref_0, + ret: ref_0.into(), + caller: WitEffectOutput::Resolved(None), + }, + WitLedgerEffect::Return {}, + ]; + + let traces = vec![utxo_trace, coord_top_trace, coord_handler_trace]; + let host_calls_roots = host_calls_roots(&traces); + + let instance = InterleavingInstance { + n_inputs: 0, + n_new: 1, + n_coords: 2, + entrypoint: p1, + process_table: vec![h(0), h(1), h(2)], + is_utxo: vec![true, false, false], + must_burn: vec![false, false, false], + ownership_in: vec![None, None, None], + ownership_out: vec![None, None, None], + host_calls_roots, + input_states: vec![], + }; + + let wit = InterleavingWitness { traces }; + let _result = prove(instance, wit); +} + #[test] fn test_entrypoint_return_sat() { setup_logger(); diff --git a/interleaving/starstream-interleaving-proof/src/execution_switches.rs b/interleaving/starstream-interleaving-proof/src/execution_switches.rs index 27cb532e..b83221df 100644 --- a/interleaving/starstream-interleaving-proof/src/execution_switches.rs +++ b/interleaving/starstream-interleaving-proof/src/execution_switches.rs @@ -12,6 +12,7 @@ use crate::F; #[derive(Clone)] pub(crate) struct ExecutionSwitches { pub(crate) resume: T, + pub(crate) call_effect_handler: T, pub(crate) yield_op: T, pub(crate) return_op: T, pub(crate) burn: T, @@ -41,6 +42,7 @@ impl ExecutionSwitches { ) -> Result>, SynthesisError> { let switches = [ self.resume, + self.call_effect_handler, self.yield_op, self.return_op, self.nop, @@ -81,6 +83,7 @@ impl ExecutionSwitches { let [ resume, + call_effect_handler, yield_op, return_op, nop, @@ -106,6 +109,10 @@ impl ExecutionSwitches { let terms = [ (resume, EffectDiscriminant::Resume as u64), + ( + call_effect_handler, + EffectDiscriminant::CallEffectHandler as u64, + ), (yield_op, EffectDiscriminant::Yield as u64), (return_op, EffectDiscriminant::Return as u64), (burn, EffectDiscriminant::Burn as u64), @@ -136,6 +143,7 @@ impl ExecutionSwitches { Ok(ExecutionSwitches { resume: resume.clone(), + call_effect_handler: call_effect_handler.clone(), yield_op: yield_op.clone(), return_op: return_op.clone(), nop: nop.clone(), @@ -171,6 +179,13 @@ impl ExecutionSwitches { } } + pub(crate) fn call_effect_handler() -> Self { + Self { + call_effect_handler: true, + ..Self::default() + } + } + pub(crate) fn yield_op() -> Self { Self { yield_op: true, @@ -295,6 +310,7 @@ impl Default for ExecutionSwitches { fn default() -> Self { Self { resume: false, + call_effect_handler: false, yield_op: false, return_op: false, burn: false, diff --git a/interleaving/starstream-interleaving-proof/src/handler_stack_gadget.rs b/interleaving/starstream-interleaving-proof/src/handler_stack_gadget.rs index 51cdedb1..0bc9f653 100644 --- a/interleaving/starstream-interleaving-proof/src/handler_stack_gadget.rs +++ b/interleaving/starstream-interleaving-proof/src/handler_stack_gadget.rs @@ -167,6 +167,9 @@ impl InterfaceResolver { LedgerOperation::GetHandlerFor { interface_id, .. } => { unique_interfaces.insert(*interface_id); } + LedgerOperation::CallEffectHandler { interface_id, .. } => { + unique_interfaces.insert(*interface_id); + } _ => (), } } diff --git a/interleaving/starstream-interleaving-proof/src/ledger_operation.rs b/interleaving/starstream-interleaving-proof/src/ledger_operation.rs index 301983ce..8c9cffb8 100644 --- a/interleaving/starstream-interleaving-proof/src/ledger_operation.rs +++ b/interleaving/starstream-interleaving-proof/src/ledger_operation.rs @@ -20,6 +20,11 @@ pub enum LedgerOperation { ret: F, caller: OptionalF, }, + CallEffectHandler { + interface_id: F, + val: F, + ret: F, + }, /// Called by utxo to yield. /// Yield { diff --git a/interleaving/starstream-interleaving-proof/src/lib.rs b/interleaving/starstream-interleaving-proof/src/lib.rs index a96d8aa4..a80c573a 100644 --- a/interleaving/starstream-interleaving-proof/src/lib.rs +++ b/interleaving/starstream-interleaving-proof/src/lib.rs @@ -35,6 +35,7 @@ use rand::SeedableRng as _; use starstream_interleaving_spec::{ InterleavingInstance, InterleavingWitness, ProcessId, ZkTransactionProof, }; +use std::collections::BTreeMap; use std::sync::Arc; use std::time::Instant; @@ -165,6 +166,7 @@ fn make_interleaved_trace( let mut next_op_idx = vec![0usize; inst.process_table.len()]; let mut on_yield = vec![true; inst.process_table.len()]; let mut yield_to: Vec> = vec![None; inst.process_table.len()]; + let mut handler_stack: BTreeMap<[u8; 32], Vec> = BTreeMap::new(); let expected_len: usize = wit.traces.iter().map(|t| t.len()).sum(); @@ -194,6 +196,30 @@ fn make_interleaved_trace( id_prev = Some(id_curr); id_curr = target.0; } + starstream_interleaving_spec::WitLedgerEffect::InstallHandler { interface_id } => { + handler_stack + .entry(interface_id.0) + .or_default() + .push(id_curr); + } + starstream_interleaving_spec::WitLedgerEffect::UninstallHandler { interface_id } => { + let stack = handler_stack.entry(interface_id.0).or_default(); + + stack + .pop() + .expect("UninstallHandler with empty stack in interleaving trace"); + } + starstream_interleaving_spec::WitLedgerEffect::CallEffectHandler { + interface_id, + .. + } => { + let target = *handler_stack + .get(&interface_id.0) + .and_then(|stack| stack.last()) + .expect("CallEffectHandler with empty stack in interleaving trace"); + id_prev = Some(id_curr); + id_curr = target; + } starstream_interleaving_spec::WitLedgerEffect::Yield { .. } => { on_yield[id_curr] = true; let Some(parent) = yield_to[id_curr] else { diff --git a/interleaving/starstream-interleaving-proof/src/neo.rs b/interleaving/starstream-interleaving-proof/src/neo.rs index 52411f0d..b25e66e2 100644 --- a/interleaving/starstream-interleaving-proof/src/neo.rs +++ b/interleaving/starstream-interleaving-proof/src/neo.rs @@ -14,7 +14,7 @@ use std::collections::HashMap; // TODO: benchmark properly pub(crate) const CHUNK_SIZE: usize = 40; -const PER_STEP_COLS: usize = 1151; +const PER_STEP_COLS: usize = 1169; const BASE_INSTANCE_COLS: usize = 1; const EXTRA_INSTANCE_COLS: usize = IvcWireLayout::FIELD_COUNT * 2; const M_IN: usize = BASE_INSTANCE_COLS + EXTRA_INSTANCE_COLS; diff --git a/interleaving/starstream-interleaving-spec/EFFECTS_REFERENCE.md b/interleaving/starstream-interleaving-spec/EFFECTS_REFERENCE.md index 2d7c25ee..cf700572 100644 --- a/interleaving/starstream-interleaving-spec/EFFECTS_REFERENCE.md +++ b/interleaving/starstream-interleaving-spec/EFFECTS_REFERENCE.md @@ -100,18 +100,17 @@ Rule: Resume (No self resume) - 2. let val = ref_store[val_ref] in - if expected_input[target] is set, it must equal val + 2. if expected_input[target] is set, it must equal val_ref - (Check val matches target's previous claim) + (Check ref claim matches target's previous claim) 3. if expected_resumer[target] is set, it must equal id_curr (Check that the current process matches the expected resumer for the target) - 4. is_utxo(id_curr) => !is_utxo(target) + 4. is_utxo[id_curr] == False - (Utxo's can't call into utxos) + (Direct Resume is coordination-script only) 5. initialized[target] @@ -169,14 +168,18 @@ Rule: Yield =========== op = Yield(val_ref) - 1. yield_to[id_curr] is set + 1. is_utxo[id_curr] == True + + (Only UTXOs may yield; coordination scripts must use Return) - 2. let val = ref_store[val_ref] in + 2. yield_to[id_curr] is set + + 3. let val = ref_store[val_ref] in if expected_input[yield_to[id_curr]] is set, it must equal val (Check val matches target's previous claim) - 3. if expected_resumer[yield_to[id_curr]] is set, it must equal id_curr + 4. if expected_resumer[yield_to[id_curr]] is set, it must equal id_curr (Check that the current process matches the expected resumer for the parent) @@ -332,6 +335,45 @@ Rule: Get Handler For ----------------------------------------------------------------------- ``` +## Call Effect Handler + +Calls the currently installed handler for an interface, without allowing an +arbitrary target choice. + +`interface_id` here is the full `InterfaceId` key (4-limb encoding in witness +space), and resolves to `handler_stack[interface_id].top()`. + +```text +Rule: Call Effect Handler +========================= + op = CallEffectHandler(interface_id, val_ref) -> ret_ref + + 1. target = handler_stack[interface_id].top() + + (There must be an installed handler) + + 2. id_curr ≠ target + + (No self call) + + 3. if expected_input[target] is set, it must equal val_ref + + (Check ref claim matches target's previous claim) + + 4. if expected_resumer[target] is set, it must equal id_curr + + (Check that current process matches expected resumer for target) + +-------------------------------------------------------------------------------------------- + 1. expected_input[id_curr] <- ret_ref + 2. expected_resumer[id_curr] <- Some(target) + 3. expected_input[target] <- None + 4. expected_resumer[target] <- None + 5. id_prev' <- id_curr + 6. id_curr' <- target + 7. activation'[target] <- Some(val_ref, id_curr) +``` + --- # 5. UTXO Operations diff --git a/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs b/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs index 457f7d80..d834e6d8 100644 --- a/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs +++ b/interleaving/starstream-interleaving-spec/src/mocked_verifier.rs @@ -496,6 +496,10 @@ pub fn state_transition( } WitLedgerEffect::Yield { val } => { + if !rom.is_utxo[id_curr.0] { + return Err(InterleavingError::UtxoOnly(id_curr)); + } + let parent = state .yield_to .get(id_curr.0) @@ -686,6 +690,57 @@ pub fn state_transition( }); } } + WitLedgerEffect::CallEffectHandler { + interface_id, + val, + ret, + } => { + let stack = state.handler_stack.entry(interface_id).or_default(); + let target = stack + .last() + .copied() + .ok_or(InterleavingError::HandlerNotFound { + interface_id, + pid: id_curr, + })?; + + if state.activation[target.0].is_some() { + return Err(InterleavingError::ReentrantResume(target)); + } + + state.activation[id_curr.0] = None; + + if let Some(expected) = state.expected_input[target.0] + && expected != val + { + return Err(InterleavingError::ResumeClaimMismatch { + target, + expected, + got: val, + }); + } + + if let Some(expected) = state.expected_resumer[target.0] + && expected != id_curr + { + return Err(InterleavingError::ResumerMismatch { + target, + expected, + got: id_curr, + }); + } + + state.expected_input[target.0] = None; + state.expected_resumer[target.0] = None; + + state.activation[target.0] = Some((val, id_curr)); + state.expected_input[id_curr.0] = ret.to_option(); + state.expected_resumer[id_curr.0] = Some(target); + + state.id_prev = Some(id_curr); + state.id_curr = target; + state.finalized[target.0] = false; + } WitLedgerEffect::Activation { val, caller } => { let curr = state.id_curr; diff --git a/interleaving/starstream-interleaving-spec/src/transaction_effects/witness.rs b/interleaving/starstream-interleaving-spec/src/transaction_effects/witness.rs index 85d0c9c6..3cb4c867 100644 --- a/interleaving/starstream-interleaving-spec/src/transaction_effects/witness.rs +++ b/interleaving/starstream-interleaving-spec/src/transaction_effects/witness.rs @@ -8,7 +8,6 @@ use crate::{ pub enum EffectDiscriminant { Resume = 0, Yield = 1, - Return = 17, NewUtxo = 2, NewCoord = 3, InstallHandler = 4, @@ -24,6 +23,8 @@ pub enum EffectDiscriminant { Unbind = 14, ProgramHash = 15, RefWrite = 16, + Return = 17, + CallEffectHandler = 18, } pub const REF_PUSH_WIDTH: usize = 4; @@ -98,6 +99,13 @@ pub enum WitLedgerEffect { // out handler_id: WitEffectOutput, }, + CallEffectHandler { + // in + interface_id: InterfaceId, + val: Ref, + // out + ret: WitEffectOutput, + }, // UTXO-only Burn { @@ -200,7 +208,6 @@ impl From for EffectDiscriminant { match value { 0 => EffectDiscriminant::Resume, 1 => EffectDiscriminant::Yield, - 17 => EffectDiscriminant::Return, 2 => EffectDiscriminant::NewUtxo, 3 => EffectDiscriminant::NewCoord, 4 => EffectDiscriminant::InstallHandler, @@ -216,6 +223,8 @@ impl From for EffectDiscriminant { 14 => EffectDiscriminant::Unbind, 15 => EffectDiscriminant::ProgramHash, 16 => EffectDiscriminant::RefWrite, + 17 => EffectDiscriminant::Return, + 18 => EffectDiscriminant::CallEffectHandler, _ => todo!(), } } diff --git a/interleaving/starstream-runtime/src/lib.rs b/interleaving/starstream-runtime/src/lib.rs index 52b9f218..dbc5024f 100644 --- a/interleaving/starstream-runtime/src/lib.rs +++ b/interleaving/starstream-runtime/src/lib.rs @@ -129,6 +129,7 @@ fn effect_result_arity(effect: &WitLedgerEffect) -> usize { WitLedgerEffect::NewUtxo { .. } | WitLedgerEffect::NewCoord { .. } | WitLedgerEffect::GetHandlerFor { .. } + | WitLedgerEffect::CallEffectHandler { .. } | WitLedgerEffect::NewRef { .. } => 1, WitLedgerEffect::RefGet { .. } => 4, WitLedgerEffect::InstallHandler { .. } @@ -476,6 +477,30 @@ impl Runtime { ) .unwrap(); + linker + .func_wrap( + "env", + "starstream_call_effect_handler", + |mut caller: Caller<'_, RuntimeState>, + h0: u64, + h1: u64, + h2: u64, + h3: u64, + val: u64| + -> Result { + let interface_id = Hash(args_to_hash(h0, h1, h2, h3), std::marker::PhantomData); + suspend_with_effect( + &mut caller, + WitLedgerEffect::CallEffectHandler { + interface_id, + val: Ref(val), + ret: WitEffectOutput::Thunk, + }, + ) + }, + ) + .unwrap(); + linker .func_wrap( "env", @@ -1019,6 +1044,9 @@ impl UnprovenTransaction { *caller = WitEffectOutput::Resolved(Some(ProcessId(next_args[1] as usize))); } + WitLedgerEffect::CallEffectHandler { ret, .. } => { + *ret = WitEffectOutput::Resolved(Ref(next_args[0])); + } _ => {} } } @@ -1069,6 +1097,23 @@ impl UnprovenTransaction { next_args = [val.0, current_pid.0 as u64, 0, 0, 0]; current_pid = target; } + WitLedgerEffect::CallEffectHandler { + interface_id, val, .. + } => { + let target = { + let stack = runtime + .store + .data() + .handler_stack + .get(&interface_id) + .expect("handler stack not found while dispatching call_effect_handler"); + *stack.last().expect( + "handler stack empty while dispatching call_effect_handler", + ) + }; + next_args = [val.0, current_pid.0 as u64, 0, 0, 0]; + current_pid = target; + } WitLedgerEffect::Yield { val, .. } => { let caller = *runtime .store diff --git a/interleaving/starstream-runtime/src/test_support/wasm_dsl.rs b/interleaving/starstream-runtime/src/test_support/wasm_dsl.rs index bb5c6d37..72390d5b 100644 --- a/interleaving/starstream-runtime/src/test_support/wasm_dsl.rs +++ b/interleaving/starstream-runtime/src/test_support/wasm_dsl.rs @@ -202,6 +202,7 @@ pub struct Imports { pub activation: FuncRef, pub get_program_hash: FuncRef, pub get_handler_for: FuncRef, + pub call_effect_handler: FuncRef, pub install_handler: FuncRef, pub uninstall_handler: FuncRef, pub new_ref: FuncRef, @@ -260,6 +261,18 @@ impl ModuleBuilder { &[ValType::I64, ValType::I64, ValType::I64, ValType::I64], &[ValType::I64], ); + let call_effect_handler = self.import_func( + "env", + "starstream_call_effect_handler", + &[ + ValType::I64, + ValType::I64, + ValType::I64, + ValType::I64, + ValType::I64, + ], + &[ValType::I64], + ); let install_handler = self.import_func( "env", "starstream_install_handler", @@ -344,6 +357,7 @@ impl ModuleBuilder { activation, get_program_hash, get_handler_for, + call_effect_handler, install_handler, uninstall_handler, new_ref, diff --git a/interleaving/starstream-runtime/src/trace_mermaid.rs b/interleaving/starstream-runtime/src/trace_mermaid.rs index 16a33e62..1fad04a9 100644 --- a/interleaving/starstream-runtime/src/trace_mermaid.rs +++ b/interleaving/starstream-runtime/src/trace_mermaid.rs @@ -268,6 +268,21 @@ fn format_edge_line( let to = ctx.labels.get(target.0)?; Some(format!("{from} ->> {to}: {label}")) } + WitLedgerEffect::CallEffectHandler { val, .. } => { + let target = ctx.interleaving.get(idx + 1).map(|(p, _)| *p)?; + let interface_id = ctx.handler_interfaces.get(&target); + let label = format!( + "call_effect_handler
{}", + format_ref_with_value( + ctx.ref_store, + *val, + interface_id, + DecodeMode::RequestAndResponse + ) + ); + let to = ctx.labels.get(target.0)?; + Some(format!("{from} ->> {to}: {label}")) + } WitLedgerEffect::Yield { val, .. } => { let next_pid = ctx.interleaving.get(idx + 1).map(|(p, _)| *p)?; let label = format!( diff --git a/interleaving/starstream-runtime/tests/integration.rs b/interleaving/starstream-runtime/tests/integration.rs index ccf2bcc9..5d6fa9f5 100644 --- a/interleaving/starstream-runtime/tests/integration.rs +++ b/interleaving/starstream-runtime/tests/integration.rs @@ -29,11 +29,10 @@ fn test_runtime_simple_effect_handlers() { assert_eq caller_hash_c, script_hash_c; assert_eq caller_hash_d, script_hash_d; - let handler_id = call get_handler_for(1, 0, 0, 0); let req = call new_ref(1); call ref_push(42, 0, 0, 0); - let (resp, _caller) = call resume(handler_id, req); + let resp = call call_effect_handler(1, 0, 0, 0, req); let (resp_val, _b, _c, _d) = call ref_get(resp, 0); assert_eq resp_val, 1; @@ -125,7 +124,6 @@ fn test_runtime_effect_handlers_cross_calls() { let utxo1_bin = wasm_module!({ let (_init_ref, _caller) = call activation(); - let handler_id = call get_handler_for(1, 2, 3, 4); let x0 = 99; let n = 5; let i0 = 0; @@ -143,7 +141,7 @@ fn test_runtime_effect_handlers_cross_calls() { let req = call new_ref(1); call ref_push(1, num_ref, 0, 0); - let (resp, _caller2) = call resume(handler_id, req); + let resp = call call_effect_handler(1, 2, 3, 4, req); let (y, _b, _c, _d) = call ref_get(resp, 0); let expected = add x, 1; assert_eq y, expected; @@ -157,7 +155,7 @@ fn test_runtime_effect_handlers_cross_calls() { call ref_push(x, 0, 0, 0); let stop = call new_ref(1); call ref_push(2, stop_num_ref, 0, 0); - let (_resp_stop, _caller_stop) = call resume(handler_id, stop); + let _resp_stop = call call_effect_handler(1, 2, 3, 4, stop); call yield_(stop); }); diff --git a/interleaving/starstream-runtime/tests/wrapper_coord_test.rs b/interleaving/starstream-runtime/tests/wrapper_coord_test.rs index f92510c6..53090d1a 100644 --- a/interleaving/starstream-runtime/tests/wrapper_coord_test.rs +++ b/interleaving/starstream-runtime/tests/wrapper_coord_test.rs @@ -83,12 +83,10 @@ fn test_runtime_wrapper_coord_newcoord_handlers() { let (init_ref, _caller) = call activation(); let (cell_ref, _b, _c, _d) = call ref_get(init_ref, 0); - let handler_id = call get_handler_for(1, 2, 3, 4); - let req = call new_ref(1); call ref_push(2, cell_ref, 42, 0); - let (_resp, _caller2) = call resume(handler_id, req); + let _resp = call call_effect_handler(1, 2, 3, 4, req); let done = call new_ref(1); call ref_push(0, 0, 0, 0); @@ -99,12 +97,10 @@ fn test_runtime_wrapper_coord_newcoord_handlers() { let (init_ref, _caller) = call activation(); let (cell_ref, _b, _c, _d) = call ref_get(init_ref, 0); - let handler_id = call get_handler_for(1, 2, 3, 4); - let req = call new_ref(1); call ref_push(3, cell_ref, 0, 0); - let (resp, _caller2) = call resume(handler_id, req); + let resp = call call_effect_handler(1, 2, 3, 4, req); let (_disc, val, _c2, _d2) = call ref_get(resp, 0); assert_eq val, 42; From c7a470d592d186905e978b8e3b53ff9859da313d Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Wed, 18 Feb 2026 22:36:30 -0300 Subject: [PATCH 150/152] fix: make the interface related opcodes use the full width Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- .../starstream-interleaving-proof/src/abi.rs | 36 +++++++--- .../src/circuit.rs | 72 +++++++++++++------ .../src/handler_stack_gadget.rs | 32 +++++---- .../src/ledger_operation.rs | 8 +-- .../starstream-interleaving-proof/src/neo.rs | 2 +- 5 files changed, 99 insertions(+), 51 deletions(-) diff --git a/interleaving/starstream-interleaving-proof/src/abi.rs b/interleaving/starstream-interleaving-proof/src/abi.rs index c9a23b03..cf444d16 100644 --- a/interleaving/starstream-interleaving-proof/src/abi.rs +++ b/interleaving/starstream-interleaving-proof/src/abi.rs @@ -36,8 +36,10 @@ pub enum ArgName { ActivationCaller, OwnerId, TokenId, - InterfaceId, - CallEffectHandlerInterfaceId, + InterfaceId0, + InterfaceId1, + InterfaceId2, + InterfaceId3, PackedRef0, PackedRef1, @@ -54,10 +56,13 @@ impl ArgName { pub const fn idx(self) -> usize { match self { ArgName::Target | ArgName::OwnerId | ArgName::TokenId => 0, - ArgName::Val | ArgName::InterfaceId => 1, + ArgName::Val => 1, ArgName::Ret => 2, ArgName::Caller | ArgName::Offset | ArgName::Size | ArgName::ActivationCaller => 3, - ArgName::CallEffectHandlerInterfaceId => 4, + ArgName::InterfaceId0 => 3, + ArgName::InterfaceId1 => 4, + ArgName::InterfaceId2 => 5, + ArgName::InterfaceId3 => 6, ArgName::ProgramHash0 => 3, ArgName::ProgramHash1 => 4, ArgName::ProgramHash2 => 5, @@ -153,16 +158,16 @@ pub(crate) fn ledger_operation_from_wit(op: &WitLedgerEffect) -> LedgerOperation vals: vals.map(value_to_field), }, WitLedgerEffect::InstallHandler { interface_id } => LedgerOperation::InstallHandler { - interface_id: F::from(interface_id.0[0] as u64), + interface_id: encode_hash_as_fields(*interface_id), }, WitLedgerEffect::UninstallHandler { interface_id } => LedgerOperation::UninstallHandler { - interface_id: F::from(interface_id.0[0] as u64), + interface_id: encode_hash_as_fields(*interface_id), }, WitLedgerEffect::GetHandlerFor { interface_id, handler_id, } => LedgerOperation::GetHandlerFor { - interface_id: F::from(interface_id.0[0] as u64), + interface_id: encode_hash_as_fields(*interface_id), handler_id: F::from(handler_id.unwrap().0 as u64), }, WitLedgerEffect::CallEffectHandler { @@ -171,7 +176,7 @@ pub(crate) fn ledger_operation_from_wit(op: &WitLedgerEffect) -> LedgerOperation ret, .. } => LedgerOperation::CallEffectHandler { - interface_id: F::from(interface_id.0[0] as u64), + interface_id: encode_hash_as_fields(*interface_id), val: F::from(val.0), ret: ret.to_option().map(|r| F::from(r.0)).unwrap_or_default(), }, @@ -231,7 +236,10 @@ pub(crate) fn opcode_args(op: &LedgerOperation) -> [F; OPCODE_ARG_COUNT] { } => { args[ArgName::Val.idx()] = *val; args[ArgName::Ret.idx()] = *ret; - args[ArgName::CallEffectHandlerInterfaceId.idx()] = *interface_id; + args[ArgName::InterfaceId0.idx()] = interface_id[0]; + args[ArgName::InterfaceId1.idx()] = interface_id[1]; + args[ArgName::InterfaceId2.idx()] = interface_id[2]; + args[ArgName::InterfaceId3.idx()] = interface_id[3]; } LedgerOperation::Yield { val } => { args[ArgName::Val.idx()] = *val; @@ -313,13 +321,19 @@ pub(crate) fn opcode_args(op: &LedgerOperation) -> [F; OPCODE_ARG_COUNT] { } LedgerOperation::InstallHandler { interface_id } | LedgerOperation::UninstallHandler { interface_id } => { - args[ArgName::InterfaceId.idx()] = *interface_id; + args[ArgName::InterfaceId0.idx()] = interface_id[0]; + args[ArgName::InterfaceId1.idx()] = interface_id[1]; + args[ArgName::InterfaceId2.idx()] = interface_id[2]; + args[ArgName::InterfaceId3.idx()] = interface_id[3]; } LedgerOperation::GetHandlerFor { interface_id, handler_id, } => { - args[ArgName::InterfaceId.idx()] = *interface_id; + args[ArgName::InterfaceId0.idx()] = interface_id[0]; + args[ArgName::InterfaceId1.idx()] = interface_id[1]; + args[ArgName::InterfaceId2.idx()] = interface_id[2]; + args[ArgName::InterfaceId3.idx()] = interface_id[3]; args[ArgName::Ret.idx()] = *handler_id; } } diff --git a/interleaving/starstream-interleaving-proof/src/circuit.rs b/interleaving/starstream-interleaving-proof/src/circuit.rs index 1e34c451..e25ab019 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit.rs @@ -1185,13 +1185,15 @@ impl> StepCircuitBuilder { // Initialize Interfaces ROM and HandlerStackHeads for (index, interface_id) in interfaces.iter().enumerate() { - mem.init( - Address { - addr: index as u64, - tag: MemoryTag::Interfaces.into(), - }, - vec![*interface_id], - ); + for (limb, field) in interface_id.iter().enumerate() { + mem.init( + Address { + addr: (index * 4 + limb) as u64, + tag: MemoryTag::Interfaces.into(), + }, + vec![*field], + ); + } mem.init( Address { @@ -1459,10 +1461,16 @@ impl> StepCircuitBuilder { let switch = &wires.switches.call_effect_handler; // The interface witness must match interface ROM. - wires - .handler_state - .interface_rom_read - .conditional_enforce_equal(&wires.arg(ArgName::CallEffectHandlerInterfaceId), switch)?; + let interface_args = [ + ArgName::InterfaceId0, + ArgName::InterfaceId1, + ArgName::InterfaceId2, + ArgName::InterfaceId3, + ]; + for (i, arg) in interface_args.iter().enumerate() { + wires.handler_state.interface_rom_read[i] + .conditional_enforce_equal(&wires.arg(*arg), switch)?; + } // No self-call. wires.id_curr.conditional_enforce_not_equal( @@ -1953,10 +1961,16 @@ impl> StepCircuitBuilder { // Verify that Interfaces[interface_index] == interface_id // This ensures the interface index witness is correct - wires - .handler_state - .interface_rom_read - .conditional_enforce_equal(&wires.arg(ArgName::InterfaceId), switch)?; + let interface_args = [ + ArgName::InterfaceId0, + ArgName::InterfaceId1, + ArgName::InterfaceId2, + ArgName::InterfaceId3, + ]; + for (i, arg) in interface_args.iter().enumerate() { + wires.handler_state.interface_rom_read[i] + .conditional_enforce_equal(&wires.arg(*arg), switch)?; + } // Update handler stack counter (allocate new node) wires.handler_stack_ptr = switch.select( @@ -1979,10 +1993,16 @@ impl> StepCircuitBuilder { // Verify that Interfaces[interface_index] == interface_id // This ensures the interface index witness is correct - wires - .handler_state - .interface_rom_read - .conditional_enforce_equal(&wires.arg(ArgName::InterfaceId), switch)?; + let interface_args = [ + ArgName::InterfaceId0, + ArgName::InterfaceId1, + ArgName::InterfaceId2, + ArgName::InterfaceId3, + ]; + for (i, arg) in interface_args.iter().enumerate() { + wires.handler_state.interface_rom_read[i] + .conditional_enforce_equal(&wires.arg(*arg), switch)?; + } // Read the node at current head: should contain (process_id, next_ptr) let node_process = &wires.handler_state.handler_stack_node_process; @@ -2001,10 +2021,16 @@ impl> StepCircuitBuilder { // Verify that Interfaces[interface_index] == interface_id // This ensures the interface index witness is correct - wires - .handler_state - .interface_rom_read - .conditional_enforce_equal(&wires.arg(ArgName::InterfaceId), switch)?; + let interface_args = [ + ArgName::InterfaceId0, + ArgName::InterfaceId1, + ArgName::InterfaceId2, + ArgName::InterfaceId3, + ]; + for (i, arg) in interface_args.iter().enumerate() { + wires.handler_state.interface_rom_read[i] + .conditional_enforce_equal(&wires.arg(*arg), switch)?; + } // Read the node at current head: should contain (process_id, next_ptr) let node_process = &wires.handler_state.handler_stack_node_process; diff --git a/interleaving/starstream-interleaving-proof/src/handler_stack_gadget.rs b/interleaving/starstream-interleaving-proof/src/handler_stack_gadget.rs index 0bc9f653..b0d006da 100644 --- a/interleaving/starstream-interleaving-proof/src/handler_stack_gadget.rs +++ b/interleaving/starstream-interleaving-proof/src/handler_stack_gadget.rs @@ -43,7 +43,7 @@ impl From<&HandlerSwitchboardWires> for HandlerSwitches> { } pub struct HandlerStackReads { - pub interface_rom_read: V, + pub interface_rom_read: [V; 4], pub handler_stack_node_process: V, } @@ -54,11 +54,19 @@ fn handler_stack_ops( handler_stack_counter: &D::Val, id_curr: &D::Val, ) -> Result, D::Error> { - let interface_rom_read = dsl.read( - &switches.read_interface, - MemoryTag::Interfaces, - interface_index, - )?; + let four = dsl.const_u64(4)?; + let interface_base_addr = dsl.mul(interface_index, &four)?; + let read_interface_limb = |dsl: &mut D, limb: u64| -> Result { + let offset = dsl.const_u64(limb)?; + let addr = dsl.add(&interface_base_addr, &offset)?; + dsl.read(&switches.read_interface, MemoryTag::Interfaces, &addr) + }; + let interface_rom_read = [ + read_interface_limb(dsl, 0)?, + read_interface_limb(dsl, 1)?, + read_interface_limb(dsl, 2)?, + read_interface_limb(dsl, 3)?, + ]; let handler_stack_head_read = dsl.read( &switches.read_head, MemoryTag::HandlerStackHeads, @@ -150,7 +158,7 @@ pub fn handler_stack_access_wires>( #[derive(Debug, Clone)] pub(crate) struct InterfaceResolver { - mapping: BTreeMap, + mapping: BTreeMap<[F; 4], usize>, } impl InterfaceResolver { @@ -183,16 +191,16 @@ impl InterfaceResolver { Self { mapping } } - pub(crate) fn get_index(&self, interface_id: F) -> usize { + pub(crate) fn get_index(&self, interface_id: [F; 4]) -> usize { *self.mapping.get(&interface_id).unwrap_or(&0) } - pub(crate) fn get_interface_index_field(&self, interface_id: F) -> F { + pub(crate) fn get_interface_index_field(&self, interface_id: [F; 4]) -> F { F::from(self.get_index(interface_id) as u64) } - pub(crate) fn interfaces(&self) -> Vec { - let mut interfaces = vec![F::ZERO; self.mapping.len()]; + pub(crate) fn interfaces(&self) -> Vec<[F; 4]> { + let mut interfaces = vec![[F::ZERO; 4]; self.mapping.len()]; for (interface_id, index) in &self.mapping { interfaces[*index] = *interface_id; } @@ -203,5 +211,5 @@ impl InterfaceResolver { #[derive(Clone)] pub(crate) struct HandlerState { pub(crate) handler_stack_node_process: FpVar, - pub(crate) interface_rom_read: FpVar, + pub(crate) interface_rom_read: [FpVar; 4], } diff --git a/interleaving/starstream-interleaving-proof/src/ledger_operation.rs b/interleaving/starstream-interleaving-proof/src/ledger_operation.rs index 8c9cffb8..74183c32 100644 --- a/interleaving/starstream-interleaving-proof/src/ledger_operation.rs +++ b/interleaving/starstream-interleaving-proof/src/ledger_operation.rs @@ -21,7 +21,7 @@ pub enum LedgerOperation { caller: OptionalF, }, CallEffectHandler { - interface_id: F, + interface_id: [F; 4], val: F, ret: F, }, @@ -81,13 +81,13 @@ pub enum LedgerOperation { vals: [F; REF_WRITE_BATCH_SIZE], }, InstallHandler { - interface_id: F, + interface_id: [F; 4], }, UninstallHandler { - interface_id: F, + interface_id: [F; 4], }, GetHandlerFor { - interface_id: F, + interface_id: [F; 4], handler_id: F, }, /// Auxiliary instructions. diff --git a/interleaving/starstream-interleaving-proof/src/neo.rs b/interleaving/starstream-interleaving-proof/src/neo.rs index b25e66e2..69b070f4 100644 --- a/interleaving/starstream-interleaving-proof/src/neo.rs +++ b/interleaving/starstream-interleaving-proof/src/neo.rs @@ -14,7 +14,7 @@ use std::collections::HashMap; // TODO: benchmark properly pub(crate) const CHUNK_SIZE: usize = 40; -const PER_STEP_COLS: usize = 1169; +const PER_STEP_COLS: usize = 1181; const BASE_INSTANCE_COLS: usize = 1; const EXTRA_INSTANCE_COLS: usize = IvcWireLayout::FIELD_COUNT * 2; const M_IN: usize = BASE_INSTANCE_COLS + EXTRA_INSTANCE_COLS; From f2e9b83acd5589c72d36c2d79e0435191b678d99 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Thu, 19 Feb 2026 01:04:47 -0300 Subject: [PATCH 151/152] runtime: switch the placeholder sha256 wasm module hashing with poseidon2 Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- ark-poseidon2/src/lib.rs | 4 +- .../starstream-interleaving-proof/src/abi.rs | 27 +++----- .../src/circuit.rs | 2 +- .../src/circuit_test.rs | 6 +- .../starstream-interleaving-proof/src/lib.rs | 4 +- .../src/builder.rs | 5 +- .../starstream-interleaving-spec/src/lib.rs | 13 ++-- .../starstream-interleaving-spec/src/tests.rs | 6 +- interleaving/starstream-runtime/Cargo.toml | 3 +- interleaving/starstream-runtime/src/lib.rs | 66 +++++++++++-------- .../starstream-runtime/tests/integration.rs | 26 +++----- .../tests/multi_tx_continuation.rs | 18 +++-- .../tests/test_dex_swap_flow.rs | 15 +---- .../tests/wrapper_coord_test.rs | 25 +++---- 14 files changed, 92 insertions(+), 128 deletions(-) diff --git a/ark-poseidon2/src/lib.rs b/ark-poseidon2/src/lib.rs index 2c6308a4..d76ff443 100644 --- a/ark-poseidon2/src/lib.rs +++ b/ark-poseidon2/src/lib.rs @@ -120,7 +120,7 @@ pub fn sponge_8_trace(inputs: &[F; 8]) -> Result<[F; 4], SynthesisError> { ) } -pub fn sponge_12_trace(inputs: &[F; 12]) -> Result<[F; 4], SynthesisError> { +pub fn sponge_12_trace(inputs: &[F]) -> Result<[F; 4], SynthesisError> { let constants = RoundConstants::new_goldilocks_12_constants(); sponge_trace_generic::<12, 8, GoldilocksExternalLinearLayer<12>, GoldilocksInternalLinearLayer12>( inputs, &constants, @@ -133,7 +133,7 @@ fn sponge_trace_generic< ExtLinear: crate::linear_layers::ExternalLinearLayer, IntLinear: crate::linear_layers::InternalLinearLayer, >( - inputs: &[F; WIDTH], + inputs: &[F], constants: &RoundConstants, ) -> Result<[F; 4], SynthesisError> { // TODO: obviously this is not a good way of implementing this, but the diff --git a/interleaving/starstream-interleaving-proof/src/abi.rs b/interleaving/starstream-interleaving-proof/src/abi.rs index cf444d16..309e3d79 100644 --- a/interleaving/starstream-interleaving-proof/src/abi.rs +++ b/interleaving/starstream-interleaving-proof/src/abi.rs @@ -1,8 +1,6 @@ use crate::{F, OptionalF, ledger_operation::LedgerOperation}; use ark_ff::Zero; -use starstream_interleaving_spec::{ - EffectDiscriminant, Hash, LedgerEffectsCommitment, WitLedgerEffect, -}; +use starstream_interleaving_spec::{EffectDiscriminant, LedgerEffectsCommitment, WitLedgerEffect}; pub const OPCODE_ARG_COUNT: usize = 7; @@ -106,14 +104,14 @@ pub(crate) fn ledger_operation_from_wit(op: &WitLedgerEffect) -> LedgerOperation program_hash, } => LedgerOperation::ProgramHash { target: F::from(target.0 as u64), - program_hash: encode_hash_as_fields(program_hash.unwrap()), + program_hash: program_hash.unwrap().0.map(F::from), }, WitLedgerEffect::NewUtxo { program_hash, val, id, } => LedgerOperation::NewUtxo { - program_hash: encode_hash_as_fields(*program_hash), + program_hash: program_hash.0.map(F::from), val: F::from(val.0), target: F::from(id.unwrap().0 as u64), }, @@ -122,7 +120,7 @@ pub(crate) fn ledger_operation_from_wit(op: &WitLedgerEffect) -> LedgerOperation val, id, } => LedgerOperation::NewCoord { - program_hash: encode_hash_as_fields(*program_hash), + program_hash: program_hash.0.map(F::from), val: F::from(val.0), target: F::from(id.unwrap().0 as u64), }, @@ -158,16 +156,16 @@ pub(crate) fn ledger_operation_from_wit(op: &WitLedgerEffect) -> LedgerOperation vals: vals.map(value_to_field), }, WitLedgerEffect::InstallHandler { interface_id } => LedgerOperation::InstallHandler { - interface_id: encode_hash_as_fields(*interface_id), + interface_id: interface_id.0.map(F::from), }, WitLedgerEffect::UninstallHandler { interface_id } => LedgerOperation::UninstallHandler { - interface_id: encode_hash_as_fields(*interface_id), + interface_id: interface_id.0.map(F::from), }, WitLedgerEffect::GetHandlerFor { interface_id, handler_id, } => LedgerOperation::GetHandlerFor { - interface_id: encode_hash_as_fields(*interface_id), + interface_id: interface_id.0.map(F::from), handler_id: F::from(handler_id.unwrap().0 as u64), }, WitLedgerEffect::CallEffectHandler { @@ -176,7 +174,7 @@ pub(crate) fn ledger_operation_from_wit(op: &WitLedgerEffect) -> LedgerOperation ret, .. } => LedgerOperation::CallEffectHandler { - interface_id: encode_hash_as_fields(*interface_id), + interface_id: interface_id.0.map(F::from), val: F::from(val.0), ret: ret.to_option().map(|r| F::from(r.0)).unwrap_or_default(), }, @@ -340,15 +338,6 @@ pub(crate) fn opcode_args(op: &LedgerOperation) -> [F; OPCODE_ARG_COUNT] { args } -pub(crate) fn encode_hash_as_fields(hash: Hash) -> [F; 4] { - let mut out = [F::zero(); 4]; - for (i, chunk) in hash.0.chunks_exact(8).take(4).enumerate() { - let bytes: [u8; 8] = chunk.try_into().expect("hash chunk size"); - out[i] = F::from(u64::from_le_bytes(bytes)); - } - out -} - pub(crate) fn value_to_field(val: starstream_interleaving_spec::Value) -> F { F::from(val.0) } diff --git a/interleaving/starstream-interleaving-proof/src/circuit.rs b/interleaving/starstream-interleaving-proof/src/circuit.rs index e25ab019..6f622074 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit.rs @@ -832,7 +832,7 @@ impl> StepCircuitBuilder { register_memory_segments(&mut mb); for (pid, mod_hash) in self.instance.process_table.iter().enumerate() { - let hash_fields = abi::encode_hash_as_fields(*mod_hash); + let hash_fields = mod_hash.0.map(F::from); for (lane, field) in hash_fields.iter().enumerate() { let addr = (pid * 4) + lane; mb.init( diff --git a/interleaving/starstream-interleaving-proof/src/circuit_test.rs b/interleaving/starstream-interleaving-proof/src/circuit_test.rs index 9537e633..445ef8a2 100644 --- a/interleaving/starstream-interleaving-proof/src/circuit_test.rs +++ b/interleaving/starstream-interleaving-proof/src/circuit_test.rs @@ -5,11 +5,7 @@ use starstream_interleaving_spec::{ }; pub fn h(n: u8) -> Hash { - // TODO: actual hashing - let mut bytes = [0u8; 32]; - bytes[0] = n; - bytes[4] = n; - Hash(bytes, std::marker::PhantomData) + Hash([n as u64, n as u64, 0, 0], std::marker::PhantomData) } pub fn v(data: &[u8]) -> Value { diff --git a/interleaving/starstream-interleaving-proof/src/lib.rs b/interleaving/starstream-interleaving-proof/src/lib.rs index a80c573a..70744130 100644 --- a/interleaving/starstream-interleaving-proof/src/lib.rs +++ b/interleaving/starstream-interleaving-proof/src/lib.rs @@ -166,7 +166,7 @@ fn make_interleaved_trace( let mut next_op_idx = vec![0usize; inst.process_table.len()]; let mut on_yield = vec![true; inst.process_table.len()]; let mut yield_to: Vec> = vec![None; inst.process_table.len()]; - let mut handler_stack: BTreeMap<[u8; 32], Vec> = BTreeMap::new(); + let mut handler_stack: BTreeMap<[u64; 4], Vec> = BTreeMap::new(); let expected_len: usize = wit.traces.iter().map(|t| t.len()).sum(); @@ -270,7 +270,7 @@ fn ccs_step_shape() -> Result<(ConstraintSystemRef, TSMemLayouts, IvcWireLayo let cs = ConstraintSystem::new_ref(); cs.set_optimization_goal(ark_relations::gr1cs::OptimizationGoal::Constraints); - let hash = starstream_interleaving_spec::Hash([0u8; 32], std::marker::PhantomData); + let hash = starstream_interleaving_spec::Hash([0u64; 4], std::marker::PhantomData); let inst = InterleavingInstance { host_calls_roots: vec![], diff --git a/interleaving/starstream-interleaving-spec/src/builder.rs b/interleaving/starstream-interleaving-spec/src/builder.rs index 214bc7e8..644086e7 100644 --- a/interleaving/starstream-interleaving-spec/src/builder.rs +++ b/interleaving/starstream-interleaving-spec/src/builder.rs @@ -31,10 +31,7 @@ impl Default for RefGenerator { } pub fn h(n: u8) -> Hash { - // TODO: actual hashing - let mut bytes = [0u8; 32]; - bytes[0] = n; - Hash(bytes, std::marker::PhantomData) + Hash([n as u64, 0, 0, 0], std::marker::PhantomData) } pub fn v(data: &[u8]) -> Value { diff --git a/interleaving/starstream-interleaving-spec/src/lib.rs b/interleaving/starstream-interleaving-spec/src/lib.rs index 03f08519..d765ac1b 100644 --- a/interleaving/starstream-interleaving-spec/src/lib.rs +++ b/interleaving/starstream-interleaving-spec/src/lib.rs @@ -23,7 +23,7 @@ pub use transaction_effects::{ }; #[derive(PartialEq, Eq)] -pub struct Hash(pub [u8; 32], pub PhantomData); +pub struct Hash(pub [u64; 4], pub PhantomData); impl Copy for Hash {} @@ -53,12 +53,7 @@ impl Value { } fn encode_hash_to_fields(hash: Hash) -> [neo_math::F; 4] { - let mut out = [neo_math::F::from_u64(0); 4]; - for (i, chunk) in hash.0.chunks_exact(8).take(4).enumerate() { - let bytes: [u8; 8] = chunk.try_into().expect("hash chunk size"); - out[i] = neo_math::F::from_u64(u64::from_le_bytes(bytes)); - } - out + hash.0.map(neo_math::F::from_u64) } #[derive(Clone, Copy, PartialEq, Eq, Hash, Debug)] @@ -738,7 +733,7 @@ pub fn build_wasm_instances_in_canonical_order( impl TransactionBody { pub fn hash(&self) -> Hash { - Hash([0u8; 32], PhantomData) + Hash([0u64; 4], PhantomData) } } @@ -756,6 +751,6 @@ impl std::hash::Hash for Hash { impl std::fmt::Debug for Hash { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "Hash({})", hex::encode(self.0)) + write!(f, "Hash({:016x?})", self.0) } } diff --git a/interleaving/starstream-interleaving-spec/src/tests.rs b/interleaving/starstream-interleaving-spec/src/tests.rs index bf7762b1..57c3404c 100644 --- a/interleaving/starstream-interleaving-spec/src/tests.rs +++ b/interleaving/starstream-interleaving-spec/src/tests.rs @@ -30,12 +30,12 @@ fn mock_genesis() -> (Ledger, UtxoId, UtxoId, CoroutineId, CoroutineId) { }; let input_1_coroutine = CoroutineId { - creation_tx_hash: Hash([1u8; 32], PhantomData), + creation_tx_hash: Hash([1u64, 0, 0, 0], PhantomData), creation_output_index: 0, }; let input_2_coroutine = CoroutineId { - creation_tx_hash: Hash([1u8; 32], PhantomData), + creation_tx_hash: Hash([1u64, 0, 0, 0], PhantomData), creation_output_index: 1, }; @@ -570,7 +570,7 @@ fn test_duplicate_input_utxo_fails() { utxo_to_coroutine.insert( input_id.clone(), CoroutineId { - creation_tx_hash: Hash([1u8; 32], PhantomData), + creation_tx_hash: Hash([1u64, 0, 0, 0], PhantomData), creation_output_index: 0, }, ); diff --git a/interleaving/starstream-runtime/Cargo.toml b/interleaving/starstream-runtime/Cargo.toml index 5cb5acb8..422eba1e 100644 --- a/interleaving/starstream-runtime/Cargo.toml +++ b/interleaving/starstream-runtime/Cargo.toml @@ -12,7 +12,8 @@ starstream-interleaving-proof = { path = "../starstream-interleaving-proof" } starstream-interleaving-spec = { path = "../starstream-interleaving-spec" } thiserror = "2.0.17" wasmi = "1.0.7" -sha2 = "0.10" +ark-ff = { version = "0.5.0", default-features = false } +ark-poseidon2 = { path = "../../ark-poseidon2" } wasm-encoder = { workspace = true } [dev-dependencies] diff --git a/interleaving/starstream-runtime/src/lib.rs b/interleaving/starstream-runtime/src/lib.rs index dbc5024f..4f0449c5 100644 --- a/interleaving/starstream-runtime/src/lib.rs +++ b/interleaving/starstream-runtime/src/lib.rs @@ -1,4 +1,4 @@ -use sha2::{Digest, Sha256}; +use ark_ff::PrimeField; use starstream_interleaving_proof::commit; use starstream_interleaving_spec::{ CoroutineState, Hash, InterfaceId, InterleavingInstance, InterleavingWitness, @@ -42,13 +42,33 @@ impl std::fmt::Display for Interrupt { impl HostError for Interrupt {} -fn args_to_hash(a: u64, b: u64, c: u64, d: u64) -> [u8; 32] { - let mut buffer = [0u8; 32]; - buffer[0..8].copy_from_slice(&a.to_le_bytes()); - buffer[8..16].copy_from_slice(&b.to_le_bytes()); - buffer[16..24].copy_from_slice(&c.to_le_bytes()); - buffer[24..32].copy_from_slice(&d.to_le_bytes()); - buffer +fn pack_bytes_to_safe_limbs(bytes: &[u8]) -> Vec { + let mut out = Vec::with_capacity(bytes.len().div_ceil(7)); + + for chunk in bytes.chunks(7) { + let mut limb = [0u8; 8]; + limb[..chunk.len()].copy_from_slice(chunk); + out.push(ark_poseidon2::F::from(u64::from_le_bytes(limb))); + } + + out +} + +pub fn poseidon_program_hash(program_bytes: &[u8]) -> [u64; 4] { + let mut msg = pack_bytes_to_safe_limbs("starstream/program_hash/v1/poseidon2".as_bytes()); + msg.push(ark_poseidon2::F::from(program_bytes.len() as u64)); + msg.extend(pack_bytes_to_safe_limbs(program_bytes)); + + let hash = ark_poseidon2::sponge_12_trace(&msg).unwrap(); + + let mut out = [0; 4]; + + out[0] = hash[0].into_bigint().0[0]; + out[1] = hash[0].into_bigint().0[0]; + out[2] = hash[0].into_bigint().0[0]; + out[3] = hash[0].into_bigint().0[0]; + + out } fn snapshot_globals( @@ -302,7 +322,7 @@ impl Runtime { val: u64| -> Result { let current_pid = caller.data().current_process; - let h = Hash(args_to_hash(h0, h1, h2, h3), std::marker::PhantomData); + let h = Hash([h0, h1, h2, h3], std::marker::PhantomData); let val = Ref(val); let mut found_id = None; @@ -352,7 +372,7 @@ impl Runtime { val: u64| -> Result { let current_pid = caller.data().current_process; - let h = Hash(args_to_hash(h0, h1, h2, h3), std::marker::PhantomData); + let h = Hash([h0, h1, h2, h3], std::marker::PhantomData); let val = Ref(val); let mut found_id = None; @@ -402,7 +422,7 @@ impl Runtime { h3: u64| -> Result<(), wasmi::Error> { let current_pid = caller.data().current_process; - let interface_id = Hash(args_to_hash(h0, h1, h2, h3), std::marker::PhantomData); + let interface_id = Hash([h0, h1, h2, h3], std::marker::PhantomData); caller .data_mut() .handler_stack @@ -428,7 +448,7 @@ impl Runtime { h3: u64| -> Result<(), wasmi::Error> { let current_pid = caller.data().current_process; - let interface_id = Hash(args_to_hash(h0, h1, h2, h3), std::marker::PhantomData); + let interface_id = Hash([h0, h1, h2, h3], std::marker::PhantomData); let stack = caller .data_mut() .handler_stack @@ -455,7 +475,7 @@ impl Runtime { h2: u64, h3: u64| -> Result { - let interface_id = Hash(args_to_hash(h0, h1, h2, h3), std::marker::PhantomData); + let interface_id = Hash([h0, h1, h2, h3], std::marker::PhantomData); let handler_id = { let stack = caller .data() @@ -488,7 +508,7 @@ impl Runtime { h3: u64, val: u64| -> Result { - let interface_id = Hash(args_to_hash(h0, h1, h2, h3), std::marker::PhantomData); + let interface_id = Hash([h0, h1, h2, h3], std::marker::PhantomData); suspend_with_effect( &mut caller, WitLedgerEffect::CallEffectHandler { @@ -939,12 +959,10 @@ impl UnprovenTransaction { let mut globals_by_pid: Vec> = Vec::new(); for (pid, program_bytes) in self.programs.iter().enumerate() { - let mut hasher = Sha256::new(); - hasher.update(program_bytes); - let result = hasher.finalize(); - let mut h = [0u8; 32]; - h.copy_from_slice(&result); - let hash = Hash(h, std::marker::PhantomData); + let hash = Hash( + poseidon_program_hash(program_bytes), + std::marker::PhantomData, + ); runtime .store @@ -1173,13 +1191,7 @@ impl UnprovenTransaction { } WitLedgerEffect::ProgramHash { program_hash, .. } => { let limbs = program_hash.unwrap().0; - next_args = [ - u64::from_le_bytes(limbs[0..8].try_into().unwrap()), - u64::from_le_bytes(limbs[8..16].try_into().unwrap()), - u64::from_le_bytes(limbs[16..24].try_into().unwrap()), - u64::from_le_bytes(limbs[24..32].try_into().unwrap()), - 0, - ]; + next_args = [limbs[0], limbs[1], limbs[2], limbs[3], 0]; } _ => { next_args = [0; 5]; diff --git a/interleaving/starstream-runtime/tests/integration.rs b/interleaving/starstream-runtime/tests/integration.rs index 5d6fa9f5..7b2f22ba 100644 --- a/interleaving/starstream-runtime/tests/integration.rs +++ b/interleaving/starstream-runtime/tests/integration.rs @@ -1,15 +1,11 @@ -use sha2::{Digest, Sha256}; use starstream_interleaving_spec::{Hash, InterfaceId, Ledger}; -use starstream_runtime::{UnprovenTransaction, register_mermaid_decoder, wasm_module}; +use starstream_runtime::{ + UnprovenTransaction, poseidon_program_hash, register_mermaid_decoder, wasm_module, +}; use std::marker::PhantomData; fn interface_id(a: u64, b: u64, c: u64, d: u64) -> InterfaceId { - let mut buffer = [0u8; 32]; - buffer[0..8].copy_from_slice(&a.to_le_bytes()); - buffer[8..16].copy_from_slice(&b.to_le_bytes()); - buffer[16..24].copy_from_slice(&c.to_le_bytes()); - buffer[24..32].copy_from_slice(&d.to_le_bytes()); - Hash(buffer, PhantomData) + Hash([a, b, c, d], PhantomData) } #[test] @@ -255,15 +251,11 @@ fn test_runtime_effect_handlers_cross_calls() { } fn hash_program(utxo_bin: &Vec) -> (i64, i64, i64, i64) { - // TODO: this would be poseidon2 later - let mut hasher = Sha256::new(); - hasher.update(utxo_bin); - let utxo_hash_bytes = hasher.finalize(); - - let utxo_hash_limb_a = i64::from_le_bytes(utxo_hash_bytes[0..8].try_into().unwrap()); - let utxo_hash_limb_b = i64::from_le_bytes(utxo_hash_bytes[8..8 * 2].try_into().unwrap()); - let utxo_hash_limb_c = i64::from_le_bytes(utxo_hash_bytes[8 * 2..8 * 3].try_into().unwrap()); - let utxo_hash_limb_d = i64::from_le_bytes(utxo_hash_bytes[8 * 3..8 * 4].try_into().unwrap()); + let limbs = poseidon_program_hash(utxo_bin); + let utxo_hash_limb_a = limbs[0] as i64; + let utxo_hash_limb_b = limbs[1] as i64; + let utxo_hash_limb_c = limbs[2] as i64; + let utxo_hash_limb_d = limbs[3] as i64; ( utxo_hash_limb_a, diff --git a/interleaving/starstream-runtime/tests/multi_tx_continuation.rs b/interleaving/starstream-runtime/tests/multi_tx_continuation.rs index 45543133..f8944769 100644 --- a/interleaving/starstream-runtime/tests/multi_tx_continuation.rs +++ b/interleaving/starstream-runtime/tests/multi_tx_continuation.rs @@ -1,16 +1,14 @@ -use sha2::{Digest, Sha256}; use starstream_interleaving_spec::{Ledger, UtxoId, Value}; -use starstream_runtime::{UnprovenTransaction, test_support::wasm_dsl, wasm_module}; +use starstream_runtime::{ + UnprovenTransaction, poseidon_program_hash, test_support::wasm_dsl, wasm_module, +}; fn hash_program(wasm: &Vec) -> (i64, i64, i64, i64) { - let mut hasher = Sha256::new(); - hasher.update(wasm); - let hash_bytes = hasher.finalize(); - - let a = i64::from_le_bytes(hash_bytes[0..8].try_into().unwrap()); - let b = i64::from_le_bytes(hash_bytes[8..16].try_into().unwrap()); - let c = i64::from_le_bytes(hash_bytes[16..24].try_into().unwrap()); - let d = i64::from_le_bytes(hash_bytes[24..32].try_into().unwrap()); + let limbs = poseidon_program_hash(wasm); + let a = limbs[0] as i64; + let b = limbs[1] as i64; + let c = limbs[2] as i64; + let d = limbs[3] as i64; (a, b, c, d) } diff --git a/interleaving/starstream-runtime/tests/test_dex_swap_flow.rs b/interleaving/starstream-runtime/tests/test_dex_swap_flow.rs index 083cc17c..fdcf7484 100644 --- a/interleaving/starstream-runtime/tests/test_dex_swap_flow.rs +++ b/interleaving/starstream-runtime/tests/test_dex_swap_flow.rs @@ -1,20 +1,11 @@ -use sha2::{Digest, Sha256}; use starstream_interleaving_spec::{Ledger, UtxoId, Value}; use starstream_runtime::{ - UnprovenTransaction, register_mermaid_default_decoder, register_mermaid_process_labels, - test_support::wasm_dsl, wasm_module, + UnprovenTransaction, poseidon_program_hash, register_mermaid_default_decoder, + register_mermaid_process_labels, test_support::wasm_dsl, wasm_module, }; fn hash_program(wasm: &Vec) -> (i64, i64, i64, i64) { - let mut hasher = Sha256::new(); - hasher.update(wasm); - let hash_bytes = hasher.finalize(); - let mut limbs = [0u64; 4]; - for (i, limb) in limbs.iter_mut().enumerate() { - let start = i * 8; - let end = start + 8; - *limb = u64::from_le_bytes(hash_bytes[start..end].try_into().unwrap()); - } + let limbs = poseidon_program_hash(wasm); ( limbs[0] as i64, limbs[1] as i64, diff --git a/interleaving/starstream-runtime/tests/wrapper_coord_test.rs b/interleaving/starstream-runtime/tests/wrapper_coord_test.rs index 53090d1a..82b138c9 100644 --- a/interleaving/starstream-runtime/tests/wrapper_coord_test.rs +++ b/interleaving/starstream-runtime/tests/wrapper_coord_test.rs @@ -1,6 +1,7 @@ -use sha2::{Digest, Sha256}; use starstream_interleaving_spec::{Hash, InterfaceId, Ledger}; -use starstream_runtime::{UnprovenTransaction, register_mermaid_decoder, wasm_module}; +use starstream_runtime::{ + UnprovenTransaction, poseidon_program_hash, register_mermaid_decoder, wasm_module, +}; use std::marker::PhantomData; // this tests tries to encode something like a coordination script that provides a Cell interface @@ -293,14 +294,11 @@ fn test_runtime_wrapper_coord_newcoord_handlers() { } fn hash_program(utxo_bin: &Vec) -> (i64, i64, i64, i64) { - let mut hasher = Sha256::new(); - hasher.update(utxo_bin); - let utxo_hash_bytes = hasher.finalize(); - - let utxo_hash_limb_a = i64::from_le_bytes(utxo_hash_bytes[0..8].try_into().unwrap()); - let utxo_hash_limb_b = i64::from_le_bytes(utxo_hash_bytes[8..8 * 2].try_into().unwrap()); - let utxo_hash_limb_c = i64::from_le_bytes(utxo_hash_bytes[8 * 2..8 * 3].try_into().unwrap()); - let utxo_hash_limb_d = i64::from_le_bytes(utxo_hash_bytes[8 * 3..8 * 4].try_into().unwrap()); + let limbs = poseidon_program_hash(utxo_bin); + let utxo_hash_limb_a = limbs[0] as i64; + let utxo_hash_limb_b = limbs[1] as i64; + let utxo_hash_limb_c = limbs[2] as i64; + let utxo_hash_limb_d = limbs[3] as i64; ( utxo_hash_limb_a, @@ -322,10 +320,5 @@ fn print_wat(name: &str, wasm: &[u8]) { } fn interface_id(a: u64, b: u64, c: u64, d: u64) -> InterfaceId { - let mut buffer = [0u8; 32]; - buffer[0..8].copy_from_slice(&a.to_le_bytes()); - buffer[8..16].copy_from_slice(&b.to_le_bytes()); - buffer[16..24].copy_from_slice(&c.to_le_bytes()); - buffer[24..32].copy_from_slice(&d.to_le_bytes()); - Hash(buffer, PhantomData) + Hash([a, b, c, d], PhantomData) } From 0fa196c177c6b92bea26c0d33acebc0f9ea3e057 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> Date: Thu, 19 Feb 2026 01:05:44 -0300 Subject: [PATCH 152/152] update Cargo.lock Signed-off-by: Enzo Cioppettini <48031343+ecioppettini@users.noreply.github.com> --- Cargo.lock | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index fa92c4f5..29de4b92 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3252,8 +3252,9 @@ dependencies = [ name = "starstream-runtime" version = "0.0.0" dependencies = [ + "ark-ff", + "ark-poseidon2", "imbl", - "sha2", "starstream-interleaving-proof", "starstream-interleaving-spec", "thiserror 2.0.17",