mod proverkey;
mod verifierkey;
pub(crate) use proverkey::ProverKey;
pub(crate) use verifierkey::VerifierKey;
use dusk_bls12_381::BlsScalar;
fn delta(f: BlsScalar) -> BlsScalar {
let f_1 = f - BlsScalar::one();
let f_2 = f - BlsScalar::from(2);
let f_3 = f - BlsScalar::from(3);
f * f_1 * f_2 * f_3
}
#[allow(non_snake_case)]
fn delta_xor_and(
a: &BlsScalar,
b: &BlsScalar,
w: &BlsScalar,
c: &BlsScalar,
q_c: &BlsScalar,
) -> BlsScalar {
let nine = BlsScalar::from(9);
let two = BlsScalar::from(2);
let three = BlsScalar::from(3);
let four = BlsScalar::from(4);
let eighteen = BlsScalar::from(18);
let eighty_one = BlsScalar::from(81);
let eighty_three = BlsScalar::from(83);
let F = w
* (w * (four * w - eighteen * (a + b) + eighty_one)
+ eighteen * (a.square() + b.square())
- eighty_one * (a + b)
+ eighty_three);
let E = three * (a + b + c) - (two * F);
let B = q_c * ((nine * c) - three * (a + b));
B + E
}