Clarify docs for the choice of sign for MontgomeryPoint.to_edwards().

This commit is contained in:
Isis Lovecruft 2019-10-23 19:48:56 +00:00
parent 7c5ba69491
commit 019b81aa20
No known key found for this signature in database
GPG key ID: AB41313533E8E812

View file

@ -104,6 +104,11 @@ impl MontgomeryPoint {
/// Attempt to convert to an `EdwardsPoint`, using the supplied
/// choice of sign for the `EdwardsPoint`.
///
/// # Inputs
///
/// * `sign`: a `u8` donating the desired sign of the resulting
/// `EdwardsPoint`. `0` denotes positive and `1` negative.
///
/// # Return
///
/// * `Some(EdwardsPoint)` if `self` is the \\(u\\)-coordinate of a