mirror of https://github.com/zcash/orchard.git
chip::add_incomplete.rs: Remove superfluous check.
Co-authored-by: Jack Grigg <jack@electriccoin.co>
This commit is contained in:
parent
aff56e6763
commit
f655e38e3e
|
@ -140,19 +140,6 @@ impl<C: CurveAffine> Config<C> {
|
||||||
y: CellValue::<C::Base>::new(y_r_var, y_r),
|
y: CellValue::<C::Base>::new(y_r_var, y_r),
|
||||||
};
|
};
|
||||||
|
|
||||||
#[cfg(test)]
|
|
||||||
// Check that the correct sum is obtained.
|
|
||||||
{
|
|
||||||
let p = p.point();
|
|
||||||
let q = q.point();
|
|
||||||
let real_sum = p.zip(q).map(|(p, q)| p + q);
|
|
||||||
let result = result.point();
|
|
||||||
|
|
||||||
if let (Some(real_sum), Some(result)) = (real_sum, result) {
|
|
||||||
assert_eq!(real_sum.to_affine(), result);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Ok(result)
|
Ok(result)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue