From e5609a2db56a830452bdd3c76b228600d99f4a27 Mon Sep 17 00:00:00 2001 From: Pedro Fontana Date: Wed, 25 Oct 2023 15:20:21 -0300 Subject: [PATCH] docs --- crates/starknet-types-core/src/curve/affine_point.rs | 1 + crates/starknet-types-core/src/curve/projective_point.rs | 1 + 2 files changed, 2 insertions(+) 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()) }