[−][src]Struct secp256k1::curve::Affine
A group element of the secp256k1 curve, in affine coordinates.
Fields
x: Field
y: Field
infinity: bool
Methods
impl Affine
[src]
impl Affine
pub fn set_xy(&mut self, x: &Field, y: &Field)
[src]
pub fn set_xy(&mut self, x: &Field, y: &Field)
Set a group element equal to the point with given X and Y coordinates.
pub fn set_xquad(&mut self, x: &Field) -> bool
[src]
pub fn set_xquad(&mut self, x: &Field) -> bool
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]
pub fn set_xo_var(&mut self, x: &Field, odd: bool) -> bool
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]
pub fn is_infinity(&self) -> bool
Check whether a group element is the point at infinity.
pub fn is_valid_var(&self) -> bool
[src]
pub fn is_valid_var(&self) -> bool
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_in_place(&mut self, other: &Affine)
pub fn neg(&self) -> Affine
[src]
pub fn neg(&self) -> Affine
pub fn set_gej(&mut self, a: &Jacobian)
[src]
pub fn set_gej(&mut self, a: &Jacobian)
Set a group element equal to another which is given in jacobian coordinates.
pub fn from_gej(a: &Jacobian) -> Self
[src]
pub fn from_gej(a: &Jacobian) -> Self
pub fn set_gej_var(&mut self, a: &Jacobian)
[src]
pub fn set_gej_var(&mut self, a: &Jacobian)
pub fn set_gej_zinv(&mut self, a: &Jacobian, zi: &Field)
[src]
pub fn set_gej_zinv(&mut self, a: &Jacobian, zi: &Field)
pub fn clear(&mut self)
[src]
pub fn clear(&mut self)
Clear a secp256k1_ge to prevent leaking sensitive information.
Trait Implementations
impl PartialEq<Affine> for Affine
[src]
impl PartialEq<Affine> for Affine
impl Eq for Affine
[src]
impl Eq for Affine
impl Debug for Affine
[src]
impl Debug for Affine
impl From<AffineStorage> for Affine
[src]
impl From<AffineStorage> for Affine
fn from(a: AffineStorage) -> Affine
[src]
fn from(a: AffineStorage) -> Affine
impl Clone for Affine
[src]
impl Clone for Affine
fn clone(&self) -> Affine
[src]
fn clone(&self) -> Affine
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Default for Affine
[src]
impl Default for Affine
impl Into<AffineStorage> for Affine
[src]
impl Into<AffineStorage> for Affine
fn into(self) -> AffineStorage
[src]
fn into(self) -> AffineStorage
impl Into<Affine> for PublicKey
[src]
impl Into<Affine> for PublicKey
Auto Trait Implementations
Blanket Implementations
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
impl<T> Same for T
[src]
impl<T> Same for T
type Output = T
Should always be Self