[][src]Function neptune::circuit::square_sum

pub fn square_sum<CS: ConstraintSystem<E>, E: Engine>(
    mut cs: CS,
    to_add: E::Fr,
    num: &AllocatedNum<E>,
    enforce: bool
) -> Result<AllocatedNum<E>, SynthesisError> where
    CS: ConstraintSystem<E>, 

Calculates square of sum and enforces that constraint.