Make ExtendedPoint attrs pub as we need them in constants.rs

This commit is contained in:
Henry de Valence 2017-02-19 19:10:45 -05:00
parent 82041c2c67
commit dd23a48ade

View file

@ -174,12 +174,16 @@ impl CompressedEdwardsY {
/// An `ExtendedPoint` is a point on the curve in 𝗣³(𝔽ₚ). /// An `ExtendedPoint` is a point on the curve in 𝗣³(𝔽ₚ).
/// A point (x,y) in the affine model corresponds to (x:y:1:xy). /// 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)] #[derive(Copy, Clone)]
#[allow(missing_docs)]
pub struct ExtendedPoint { pub struct ExtendedPoint {
X: FieldElement, pub X: FieldElement,
Y: FieldElement, pub Y: FieldElement,
Z: FieldElement, pub Z: FieldElement,
T: FieldElement, pub T: FieldElement,
} }
/// A `ProjectivePoint` is a point on the curve in 𝗣²(𝔽ₚ). /// A `ProjectivePoint` is a point on the curve in 𝗣²(𝔽ₚ).