pub struct Secp256k1Affine {
pub x: BigUint,
pub y: BigUint,
pub is_point_at_infinity: Wire,
}Expand description
Curve point in affine form - a tuple (x, y) that satisfies y^2 = x^3 + 7,
or (0, 0) for additive identity (point at infinity).
Fields§
§x: BigUint§y: BigUint§is_point_at_infinity: WireImplementations§
Source§impl Secp256k1Affine
impl Secp256k1Affine
Sourcepub fn point_at_infinity(b: &CircuitBuilder) -> Self
pub fn point_at_infinity(b: &CircuitBuilder) -> Self
Point at infinity - the identity element.
Sourcepub fn generator(b: &CircuitBuilder) -> Self
pub fn generator(b: &CircuitBuilder) -> Self
Generator basepoint.
Sourcepub fn pai_unless(&self, b: &CircuitBuilder, cond: Wire) -> Secp256k1Affine
pub fn pai_unless(&self, b: &CircuitBuilder, cond: Wire) -> Secp256k1Affine
Return point-at-infinity unless the MSB-boolean cond is true, then pass the point
unchanged.
Trait Implementations§
Source§impl Clone for Secp256k1Affine
impl Clone for Secp256k1Affine
Source§fn clone(&self) -> Secp256k1Affine
fn clone(&self) -> Secp256k1Affine
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Secp256k1Affine
impl RefUnwindSafe for Secp256k1Affine
impl Send for Secp256k1Affine
impl Sync for Secp256k1Affine
impl Unpin for Secp256k1Affine
impl UnsafeUnpin for Secp256k1Affine
impl UnwindSafe for Secp256k1Affine
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more