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

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]

[src]

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

[src]

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

[src]

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

[src]

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

[src]

[src]

Check whether a group element is the point at infinity.

[src]

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

[src]

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.

[src]

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).

[src]

[src]

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).

[src]

[src]

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

[src]

[src]

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).

[src]

[src]

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

[src]

[src]

Clear a secp256k1_gej to prevent leaking sensitive information.

[src]

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

Trait Implementations

impl Debug for Jacobian
[src]

[src]

Formats the value using the given formatter.

impl Clone for Jacobian
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for Jacobian
[src]

impl PartialEq for Jacobian
[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 Jacobian
[src]

[src]

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