[][src]Struct secp256k1::curve::Affine

pub struct Affine {
    pub x: Field,
    pub y: Field,
    pub infinity: bool,
}

A group element of the secp256k1 curve, in affine coordinates.

Fields

Methods

impl Affine
[src]

Set a group element equal to the point with given X and Y coordinates.

Set a group element (affine) equal to the point with the given X coordinate and a Y coordinate that is a quadratic residue modulo p. The return value is true iff a coordinate with the given X coordinate exists.

Set a group element (affine) equal to the point with the given X coordinate, and given oddness for Y. Return value indicates whether the result is valid.

Check whether a group element is the point at infinity.

Check whether a group element is valid (i.e., on the curve).

Set a group element equal to another which is given in jacobian coordinates.

Clear a secp256k1_ge to prevent leaking sensitive information.

Trait Implementations

impl PartialEq<Affine> for Affine
[src]

impl Eq for Affine
[src]

impl Debug for Affine
[src]

impl From<AffineStorage> for Affine
[src]

impl Clone for Affine
[src]

Performs copy-assignment from source. Read more

impl Default for Affine
[src]

impl Into<AffineStorage> for Affine
[src]

impl Into<Affine> for PublicKey
[src]

Auto Trait Implementations

impl Send for Affine

impl Sync for Affine

Blanket Implementations

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> From for T
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same for T
[src]

Should always be Self