We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7fbc20 commit af3e731Copy full SHA for af3e731
ed448-goldilocks/src/curve/scalar_mul/variable_base.rs
@@ -53,10 +53,7 @@ mod test {
53
// XXX: Would be great if subtle had a From<u32> for Choice. But maybe that is not it's purpose?
54
for bit in s_bits.into_iter().rev() {
55
result = result.double();
56
-
57
- let mut p = ExtendedPoint::IDENTITY;
58
- p.conditional_assign(point, Choice::from(bit as u8));
59
- result = result.add(&p);
+ result.conditional_assign(&result.add(point), Choice::from(u8::from(bit)));
60
}
61
62
result
0 commit comments