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

WIP: Arrabiata/Fiat-Shamir is fun #2720

Draft
wants to merge 2 commits into
base: dw/arrabiata-curve-trait
Choose a base branch
from
Draft
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
3 changes: 3 additions & 0 deletions arrabiata/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ pub fn main() {

// FIXME:
// Absorb all commitments in the sponge.
env.absorb_commitments();
// Q: what is the initial state of the sponge?
// Q: where do we get it. We should keep it in the env.

// FIXME:
// Coin chalenges β and γ for the permutation argument
Expand Down
12 changes: 12 additions & 0 deletions arrabiata/src/witness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1052,4 +1052,16 @@ impl<
Instruction::NoOp => Instruction::NoOp,
}
}

// TODO:
// - decide how we will structure the constraints -> selectors, etc.
// - for each row, only use the activated constraint
// - keep the cross-terms in the environment.
// - use alpha and alpha' from the env. It should have been coined before.
pub fn compute_cross_terms(&self) -> HashMap<usize, Fp> {}

pub fn absorb_commitments(&mut self) {
let old_state = BigInt::from(0);
if env.current_iteration % 2 == 0 {}
}
}
Loading