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

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]

[src]

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

[src]

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.

[src]

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.

[src]

Check whether a group element is the point at infinity.

[src]

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

[src]

[src]

[src]

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

[src]

[src]

[src]

Clear a secp256k1_ge to prevent leaking sensitive information.

Trait Implementations

impl Debug for Affine
[src]

[src]

Formats the value using the given formatter.

impl Clone for Affine
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for Affine
[src]

impl PartialEq for Affine
[src]

[src]

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

[src]

This method tests for !=.

impl Default for Affine
[src]

[src]

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

impl From<AffineStorage> for Affine
[src]

[src]

Performs the conversion.

impl Into<AffineStorage> for Affine
[src]

[src]

Performs the conversion.