Skip to content

Commit

Permalink
Clarify failure case in AffinePoint::batch_from_bytes docs
Browse files Browse the repository at this point in the history
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
  • Loading branch information
str4d and daira committed Aug 10, 2021
1 parent d2b6fcf commit d3fe3eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,8 @@ impl AffinePoint {

/// Attempts to interpret a batch of byte representations of affine points.
///
/// Returns None for each element if it is not on the curve or is non-canonical.
/// Returns None for each element if it is not on the curve, or is non-canonical
/// according to ZIP 216.
#[cfg(feature = "alloc")]
pub fn batch_from_bytes(items: impl Iterator<Item = [u8; 32]>) -> Vec<CtOption<Self>> {
#[derive(Clone, Copy, Default)]
Expand Down

0 comments on commit d3fe3eb

Please sign in to comment.