Hide the underlying ExtendedPoint from a Ristretto point

This commit is contained in:
Henry de Valence 2017-11-17 15:50:58 -08:00
parent a9f8789524
commit 0cb70ae032

View file

@ -560,7 +560,7 @@ impl<'de> Deserialize<'de> for RistrettoPoint {
/// `ExtendedPoint`, with custom equality, compression, and
/// decompression routines to account for the quotient.
#[derive(Copy, Clone)]
pub struct RistrettoPoint(pub ExtendedPoint);
pub struct RistrettoPoint(pub(crate) ExtendedPoint);
impl RistrettoPoint {
/// Compress in Ristretto format.