Skip to content

Commit

Permalink
add doc
Browse files Browse the repository at this point in the history
  • Loading branch information
tcoratger committed Mar 28, 2024
1 parent a08ce05 commit 3a9cab8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/starknet-types-core/src/curve/affine_point.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ impl AffinePoint {
)?))
}

/// Constructs a new affine point without checking whether the coordinates specify a point in the subgroup.
/// This method should be used with caution, as it does not validate whether the provided coordinates
/// correspond to a valid point on the curve.
pub const fn new_unchecked(x: Felt, y: Felt) -> AffinePoint {
Self(ShortWeierstrassProjectivePoint::new([
x.0,
Expand Down

0 comments on commit 3a9cab8

Please sign in to comment.