[][src]Struct secp256k1::curve::Jacobian

pub struct Jacobian {
    pub x: Field,
    pub y: Field,
    pub z: Field,
    pub infinity: bool,
}

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

Fields

Methods

impl Jacobian
[src]

Set a group element (jacobian) equal to the point at infinity.

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

Compare the X coordinate of a group element (jacobian).

Set r equal to the inverse of a (i.e., mirrored around the X axis).

Check whether a group element is the point at infinity.

Check whether a group element's y coordinate is a quadratic residue.

Set r equal to the double of a. If rzr is not-NULL, r->z = a->z * *rzr (where infinity means an implicit z = 0). a may not be zero. Constant time.

Set r equal to the double of a. If rzr is not-NULL, r->z = a->z * *rzr (where infinity means an implicit z = 0).

Set r equal to the sum of a and b. If rzr is non-NULL, r->z = a->z * *rzr (a cannot be infinity in that case).

Set r equal to the sum of a and b (with b given in affine coordinates, and not infinity).

Set r equal to the sum of a and b (with b given in affine coordinates). This is more efficient than secp256k1_gej_add_var. It is identical to secp256k1_gej_add_ge but without constant-time guarantee, and b is allowed to be infinity. If rzr is non-NULL, r->z = a->z * *rzr (a cannot be infinity in that case).

Set r equal to the sum of a and b (with the inverse of b's Z coordinate passed as bzinv).

Clear a secp256k1_gej to prevent leaking sensitive information.

Rescale a jacobian point by b which must be non-zero. Constant-time.

Trait Implementations

impl PartialEq<Jacobian> for Jacobian
[src]

impl Eq for Jacobian
[src]

impl Debug for Jacobian
[src]

impl Clone for Jacobian
[src]

Performs copy-assignment from source. Read more

impl Default for Jacobian
[src]

Auto Trait Implementations

impl Send for Jacobian

impl Sync for Jacobian

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