From 971bef699bf35419fa7bb5ea55d12fe1b8958000 Mon Sep 17 00:00:00 2001 From: Pedro Fontana Date: Thu, 26 Oct 2023 20:36:51 -0300 Subject: [PATCH] Doc --- crates/starknet-types-core/src/curve/projective_point.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/starknet-types-core/src/curve/projective_point.rs b/crates/starknet-types-core/src/curve/projective_point.rs index e18b508..7c729c9 100644 --- a/crates/starknet-types-core/src/curve/projective_point.rs +++ b/crates/starknet-types-core/src/curve/projective_point.rs @@ -22,7 +22,8 @@ impl ProjectivePoint { } /// Creates the same point in affine coordinates. That is, - /// returns [x / z: y / z: 1] where `self` is [x: y: z]. + /// returns (x * inv_z, y* inv_z, 1) + /// where `self` is the point (x, y, z) and inv_z is the multiplicative inverse of z pub fn to_affine(&self) -> Result { if self.z() == Felt::ZERO { return Err(CurveError::EllipticCurveError(InvalidPoint));