diff --git a/crates/starknet-types-core/src/curve/affine_point.rs b/crates/starknet-types-core/src/curve/affine_point.rs index e8ad8c4..bcf795c 100644 --- a/crates/starknet-types-core/src/curve/affine_point.rs +++ b/crates/starknet-types-core/src/curve/affine_point.rs @@ -15,6 +15,7 @@ impl AffinePoint { )?)) } + /// The point at infinity. pub fn identity() -> AffinePoint { Self(ShortWeierstrassProjectivePoint::neutral_element()) } diff --git a/crates/starknet-types-core/src/curve/projective_point.rs b/crates/starknet-types-core/src/curve/projective_point.rs index 1558563..6ec71e5 100644 --- a/crates/starknet-types-core/src/curve/projective_point.rs +++ b/crates/starknet-types-core/src/curve/projective_point.rs @@ -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()) }