Type Alias G1Affine

Source
pub type G1Affine = Bn254G1Affine;

Aliased Type§

struct G1Affine { /* private fields */ }

Implementations

Trait Implementations§

Source§

impl CyclicGroup for G1Affine

Source§

impl Add<&Bn254G1Affine> for Bn254G1Affine

Source§

type Output = Bn254G1Affine

The resulting type after applying the + operator.
Source§

fn add(self, p2: &Bn254G1Affine) -> Self::Output

Performs the + operation. Read more
Source§

impl Add for Bn254G1Affine

Source§

type Output = Bn254G1Affine

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
Source§

impl AddAssign<&Bn254G1Affine> for Bn254G1Affine

Source§

fn add_assign(&mut self, p2: &Bn254G1Affine)

Performs the += operation. Read more
Source§

impl AddAssign for Bn254G1Affine

Source§

fn add_assign(&mut self, rhs: Self)

Performs the += operation. Read more
Source§

impl Clone for Bn254G1Affine

Source§

fn clone(&self) -> Bn254G1Affine

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Bn254G1Affine

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Bn254G1Affine

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl FromCompressed<Bn254Fp> for Bn254G1Affine

Source§

fn decompress(x: Bn254Fp, rec_id: &u8) -> Option<Self>

Given x-coordinate, Read more
Source§

fn hint_decompress( x: &Bn254Fp, rec_id: &u8, ) -> Option<DecompressionHint<Bn254Fp>>

If it exists, hints the unique y coordinate that is less than Coordinate::MODULUS such that (x, y) is a point on the curve and y has parity equal to rec_id. If such y does not exist, hints a coordinate sqrt such that sqrt^2 = rhs * non_qr where rhs is the rhs of the curve equation and non_qr is the non-quadratic residue for this curve that was initialized in the setup function. Read more
Source§

impl Group for Bn254G1Affine

Source§

const IDENTITY: Self = <Self as WeierstrassPoint>::IDENTITY

Source§

type SelfRef<'a> = &'a Bn254G1Affine

Source§

fn double(&self) -> Self

Source§

fn double_assign(&mut self)

Source§

fn is_identity(&self) -> bool

Source§

impl Neg for Bn254G1Affine

Source§

type Output = Bn254G1Affine

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl PartialEq for Bn254G1Affine

Source§

fn eq(&self, other: &Bn254G1Affine) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Bn254G1Affine

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Sub<&Bn254G1Affine> for Bn254G1Affine

Source§

type Output = Bn254G1Affine

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &Bn254G1Affine) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub for Bn254G1Affine

Source§

type Output = Bn254G1Affine

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
Source§

impl SubAssign<&Bn254G1Affine> for Bn254G1Affine

Source§

fn sub_assign(&mut self, p2: &Bn254G1Affine)

Performs the -= operation. Read more
Source§

impl SubAssign for Bn254G1Affine

Source§

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more
Source§

impl WeierstrassPoint for Bn254G1Affine

Source§

fn as_le_bytes(&self) -> &[u8]

SAFETY: assumes that #intmod_type has a memory representation such that with repr(C), two coordinates are packed contiguously.

Source§

const CURVE_A: Bn254Fp = <Bn254Fp as openvm_algebra_guest::IntMod>::ZERO

The a coefficient in the Weierstrass curve equation y^2 = x^3 + a x + b.
Source§

const CURVE_B: Bn254Fp = CURVE_B

The b coefficient in the Weierstrass curve equation y^2 = x^3 + a x + b.
Source§

const IDENTITY: Self

Source§

type Coordinate = Bn254Fp

Source§

fn from_xy_unchecked(x: Self::Coordinate, y: Self::Coordinate) -> Self

Raw constructor without asserting point is on the curve.
Source§

fn x(&self) -> &Self::Coordinate

Source§

fn y(&self) -> &Self::Coordinate

Source§

fn x_mut(&mut self) -> &mut Self::Coordinate

Source§

fn y_mut(&mut self) -> &mut Self::Coordinate

Source§

fn into_coords(self) -> (Self::Coordinate, Self::Coordinate)

Source§

fn add_ne_nonidentity(&self, p2: &Self) -> Self

Hazmat: Assumes self != +- p2 and self != identity and p2 != identity.
Source§

fn add_ne_assign_nonidentity(&mut self, p2: &Self)

Hazmat: Assumes self != +- p2 and self != identity and p2 != identity.
Source§

fn sub_ne_nonidentity(&self, p2: &Self) -> Self

Hazmat: Assumes self != +- p2 and self != identity and p2 != identity.
Source§

fn sub_ne_assign_nonidentity(&mut self, p2: &Self)

Hazmat: Assumes self != +- p2 and self != identity and p2 != identity.
Source§

fn double_nonidentity(&self) -> Self

Hazmat: Assumes self != identity and 2 * self != identity.
Source§

fn double_assign_nonidentity(&mut self)

Hazmat: Assumes self != identity and 2 * self != identity.
Source§

fn from_xy(x: Self::Coordinate, y: Self::Coordinate) -> Option<Self>
where &'a Self::Coordinate: for<'a> Mul<Output = Self::Coordinate>,

Source§

fn from_xy_nonidentity(x: Self::Coordinate, y: Self::Coordinate) -> Option<Self>
where &'a Self::Coordinate: for<'a> Mul<Output = Self::Coordinate>,

Source§

impl Eq for Bn254G1Affine

Source§

impl StructuralPartialEq for Bn254G1Affine