Skip to content

Commit

Permalink
[kimchi] add a getter to shifts
Browse files Browse the repository at this point in the history
  • Loading branch information
mimoo committed Oct 25, 2021
1 parent 20fe6da commit 99bc99d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions circuits/plonk-15-wires/src/nolookup/constraints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,11 @@ where
Self { shifts, map }
}

/// retrieve the shifts
pub fn shifts(&self) -> &[Vec<F>; PERMUTS] {
&self.map
}

/// sample coordinate shifts deterministically
fn sample(domain: &D<F>, input: &mut u32) -> F {
let mut h = Blake2b::new();
Expand Down

0 comments on commit 99bc99d

Please sign in to comment.