Struct secp256k1::curve::Affine [−][src]
A group element of the secp256k1 curve, in affine coordinates.
Fields
x: Field
y: Field
infinity: bool
Implementations
impl Affine
[src]
impl Affine
[src]pub fn set_xy(&mut self, x: &Field, y: &Field)
[src][−]
Set a group element equal to the point with given X and Y coordinates.
pub fn set_xquad(&mut self, x: &Field) -> bool
[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.
pub fn set_xo_var(&mut self, x: &Field, odd: bool) -> bool
[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.
pub fn is_infinity(&self) -> bool
[src][−]
Check whether a group element is the point at infinity.
pub fn is_valid_var(&self) -> bool
[src][−]
Check whether a group element is valid (i.e., on the curve).
pub fn neg_in_place(&mut self, other: &Affine)
[src]
pub fn neg(&self) -> Affine
[src]
pub fn set_gej(&mut self, a: &Jacobian)
[src][−]
Set a group element equal to another which is given in jacobian coordinates.
pub fn from_gej(a: &Jacobian) -> Self
[src]
pub fn set_gej_var(&mut self, a: &Jacobian)
[src]
pub fn set_gej_zinv(&mut self, a: &Jacobian, zi: &Field)
[src]
pub fn clear(&mut self)
[src][−]
Clear a secp256k1_ge to prevent leaking sensitive information.
Trait Implementations
impl From<AffineStorage> for Affine
[src]
impl From<AffineStorage> for Affine
[src]fn from(a: AffineStorage) -> Affine
[src][−]
impl Into<AffineStorage> for Affine
[src]
impl Into<AffineStorage> for Affine
[src]