Struct curve25519_dalek::curve::CompressedEdwardsY
[−]
[src]
pub struct CompressedEdwardsY(pub [u8; 32]);
In "Edwards y" format, the point (x,y)
on the curve is
determined by the y
-coordinate and the sign of x
, marshalled
into a 32-byte array.
The first 255 bits of a CompressedEdwardsY represent the
y-coordinate. The high bit of the 32nd byte gives the sign of x
.
Methods
impl CompressedEdwardsY
[src]
fn to_bytes(&self) -> [u8; 32]
View this CompressedEdwardsY
as an array of bytes.
fn decompress(&self) -> Option<ExtendedPoint>
Attempt to decompress to an ExtendedPoint
.
Warning
This function will fail and return None if both vx²-u=0 and vx²+u=0.
Trait Implementations
impl Copy for CompressedEdwardsY
[src]
impl Clone for CompressedEdwardsY
[src]
fn clone(&self) -> CompressedEdwardsY
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for CompressedEdwardsY
[src]
impl Eq for CompressedEdwardsY
[src]
impl PartialEq for CompressedEdwardsY
[src]
fn eq(&self, other: &CompressedEdwardsY) -> bool
Determine if this CompressedEdwardsY
is equal to another.
Warning
This function is NOT constant time.
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.