diff --git a/src/constants.rs b/src/constants.rs index f851d24..2aef036 100644 --- a/src/constants.rs +++ b/src/constants.rs @@ -19,7 +19,7 @@ use field::FieldElement; use curve::PreComputedPoint; -use curve::CompressedPoint; +use curve::CompressedEdwardsY; pub const d: FieldElement = FieldElement([ -10913610, 13857413, -15372611, 6949391, 114729, @@ -59,11 +59,11 @@ pub const HALF_Q_MINUS_1_BYTES: [u8; 32] = [ // halfQMinus1Bytes /// /// Generated with Sage: these are the bytes of 4/5 in 𝔽_p. The /// sign bit is 0 since the basepoint has x chosen to be positive. -pub const BASE_CMPRSSD: CompressedPoint = - CompressedPoint([0x58, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, - 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, - 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, - 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66]); +pub const BASE_CMPRSSD: CompressedEdwardsY = + CompressedEdwardsY([0x58, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, + 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, + 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, + 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66]); pub const bi: [PreComputedPoint; 8] = [ PreComputedPoint{