Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pefontana committed Oct 25, 2023
1 parent 3239971 commit e5609a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/starknet-types-core/src/curve/affine_point.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ impl AffinePoint {
)?))
}

/// The point at infinity.
pub fn identity() -> AffinePoint {
Self(ShortWeierstrassProjectivePoint::neutral_element())
}
Expand Down
1 change: 1 addition & 0 deletions crates/starknet-types-core/src/curve/projective_point.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ impl ProjectivePoint {
Self(ShortWeierstrassProjectivePoint::new([x.0, y.0, z.0]))
}

/// The point at infinity.
pub fn identity() -> ProjectivePoint {
Self(ShortWeierstrassProjectivePoint::neutral_element())
}
Expand Down

0 comments on commit e5609a2

Please sign in to comment.