Struct curve25519_dalek::edwards::CompressedEdwardsY[][src]

pub struct CompressedEdwardsY(pub [u8; 32]);

In "Edwards y" / "Ed25519" format, the curve point \((x,y)\) is determined by the \(y\)-coordinate and the sign of \(x\).

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]

View this CompressedEdwardsY as an array of bytes.

Copy this CompressedEdwardsY to an array of bytes.

Attempt to decompress to an EdwardsPoint.

Returns None if the input is not the \(y\)-coordinate of a curve point.

impl CompressedEdwardsY
[src]

Construct a CompressedEdwardsY from a slice of bytes.

Panics

If the input bytes slice does not have a length of 32.

Trait Implementations

impl Copy for CompressedEdwardsY
[src]

impl Clone for CompressedEdwardsY
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for CompressedEdwardsY
[src]

impl PartialEq for CompressedEdwardsY
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for CompressedEdwardsY
[src]

Formats the value using the given formatter. Read more

impl Identity for CompressedEdwardsY
[src]

Returns the identity element of the curve. Can be used as a constructor. Read more

impl Default for CompressedEdwardsY
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations