Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arrabiata: WIP #2695

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions arrabiata/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ pub fn main() {
// FIXME:
// Compute the accumulator for the permutation argument

// FIXME:
// Commit to the accumulator and absorb the commitment

// FIXME:
// Coin challenge α for combining the constraints

// FIXME:
// Compute the cross-terms

Expand Down
13 changes: 12 additions & 1 deletion arrabiata/tests/constraints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::collections::HashMap;
use arrabiata::{
constraints,
interpreter::{self, Instruction},
poseidon_3_60_0_5_5_fp, poseidon_3_60_0_5_5_fq,
poseidon_3_60_0_5_5_fp, poseidon_3_60_0_5_5_fq, columns::E,
};
use mina_curves::pasta::fields::{Fp, Fq};

Expand Down Expand Up @@ -197,3 +197,14 @@ fn test_gadget_bit_decomposition() {

helper_gadget_number_of_columns_used(instr, 17, 0);
}

#[test]
fn test_integration_with_mvpoly_to_compute_cross_terms() {
let constraints_fp = {
let poseidon_mds = poseidon_3_60_0_5_5_fp::static_params().mds.clone();
constraints::Env::<Fp>::new(poseidon_mds.to_vec(), BigInt::from(0_usize))
};

let constraints = constraints_fp.get_all_constraints_for_ivc();
let _accumulated_constraint = E::combine_constraints(0..constraints.len() as u32, constraints);
}
Loading