Skip to content

Commit

Permalink
constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Schaeff committed Sep 10, 2024
1 parent cc341b8 commit a4200c8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions uni-stark/src/proof.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,12 @@ pub struct CallbackResult<T> {
// todo: return shared challenges
}

impl<T> CallbackResult<T> {
pub fn new(trace: RowMajorMatrix<T>, public_values: Vec<T>) -> Self {
Self { trace, public_values }
}
}

pub trait NextStageTraceCallback<SC: StarkGenericConfig> {
fn get_next_stage(&self, trace_stage: u32, challenges: &[Val<SC>]) -> CallbackResult<Val<SC>>;
}

0 comments on commit a4200c8

Please sign in to comment.