Merge pull request #274 from 3for/comment-fix

`curve_models` Comment fix
This commit is contained in:
Henry de Valence 2019-08-06 16:07:13 -07:00 committed by GitHub
commit 68b71578af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -84,7 +84,7 @@
//! successful decompression of a compressed point, or else by //! successful decompression of a compressed point, or else by
//! operations on other (valid) `EdwardsPoint`s. //! operations on other (valid) `EdwardsPoint`s.
//! //!
//! [curve_models]: https://doc-internal.dalek.rs/curve25519_dalek/curve_models/index.html //! [curve_models]: https://doc-internal.dalek.rs/curve25519_dalek/backend/serial/curve_models/index.html
// We allow non snake_case names because coordinates in projective space are // We allow non snake_case names because coordinates in projective space are
// traditionally denoted by the capitalisation of their respective // traditionally denoted by the capitalisation of their respective

View file

@ -154,6 +154,9 @@ impl FieldElement {
acc = &acc * input; acc = &acc * input;
} }
// acc is nonzero iff all inputs are nonzero
assert_eq!(acc.is_zero().unwrap_u8(), 0);
// Compute the inverse of all products // Compute the inverse of all products
acc = acc.invert(); acc = acc.invert();