From dd23a48adeb2cce1ad04b46040761b021425e412 Mon Sep 17 00:00:00 2001 From: Henry de Valence Date: Sun, 19 Feb 2017 19:10:45 -0500 Subject: [PATCH] Make ExtendedPoint attrs pub as we need them in constants.rs --- src/curve.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/curve.rs b/src/curve.rs index 7456e4f..0e5da25 100644 --- a/src/curve.rs +++ b/src/curve.rs @@ -174,12 +174,16 @@ impl CompressedEdwardsY { /// An `ExtendedPoint` is a point on the curve in 𝗣³(𝔽ₚ). /// A point (x,y) in the affine model corresponds to (x:y:1:xy). +// XXX members should not be public, but that's needed for the +// constants module. Fix when RFC #1422 lands: +// https://github.com/rust-lang/rust/issues/32409 #[derive(Copy, Clone)] +#[allow(missing_docs)] pub struct ExtendedPoint { - X: FieldElement, - Y: FieldElement, - Z: FieldElement, - T: FieldElement, + pub X: FieldElement, + pub Y: FieldElement, + pub Z: FieldElement, + pub T: FieldElement, } /// A `ProjectivePoint` is a point on the curve in 𝗣²(𝔽ₚ).