Skip to content

Commit

Permalink
Revert "Fix comments (arkworks-rs#652)"
Browse files Browse the repository at this point in the history
This reverts commit dd9ec23.
  • Loading branch information
aleasims authored Oct 18, 2023
1 parent c765d53 commit a566077
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ec/src/models/short_weierstrass/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ pub trait SWCurveConfig: super::CurveConfig {
/// Check if the provided curve point is in the prime-order subgroup.
///
/// The default implementation multiplies `item` by the order `r` of the
/// prime-order subgroup, and checks if the result is zero.
/// prime-order subgroup, and checks if the result is one.
/// Implementors can choose to override this default impl
/// if the given curve has faster methods
/// for performing this check (for example, via leveraging curve
Expand Down
4 changes: 2 additions & 2 deletions ec/src/models/short_weierstrass/serialization_flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ use ark_serialize::Flags;
/// The default flags (empty) should not change the binary representation.
#[derive(Clone, Copy, PartialEq, Eq, Debug)]
pub enum SWFlags {
/// Represents a point with positive y-coordinate by setting all bits to 0.
/// Represents a point with positive y-coordinate by setting the MSB to 1.
YIsPositive = 0,
/// Represents the point at infinity by setting the setting the last-but-one bit to 1.
PointAtInfinity = 1 << 6,
/// Represents a point with negative y-coordinate by setting the MSB to 1.
/// Represents a point with negative y-coordinate by setting all bits to 0.
YIsNegative = 1 << 7,
}

Expand Down

0 comments on commit a566077

Please sign in to comment.