Struct libsecp256k1::curve::Affine
source · [−]Expand description
A group element of the secp256k1 curve, in affine coordinates.
Fields
x: Field
y: Field
infinity: bool
Implementations
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.
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Affine
impl UnwindSafe for Affine
Blanket Implementations
Mutably borrows from an owned value. Read more