[][src]Struct blstrs::G1Projective

pub struct G1Projective(_);

This is an element of $\mathbb{G}_1$ represented in the projective coordinate space.

Implementations

impl G1Projective[src]

pub fn to_compressed(&self) -> [u8; 48][src]

Serializes this element into compressed form.

pub fn to_uncompressed(&self) -> [u8; 96][src]

Serializes this element into uncompressed form.

pub fn from_uncompressed(bytes: &[u8; 96]) -> Option<Self>[src]

Attempts to deserialize an uncompressed element.

pub fn from_uncompressed_unchecked(bytes: &[u8; 96]) -> Option<Self>[src]

Attempts to deserialize an uncompressed element, not checking if the element is on the curve and not checking if it is in the correct subgroup.

This is dangerous to call unless you trust the bytes you are reading; otherwise, API invariants may be broken. Please consider using from_uncompressed() instead.

pub fn from_compressed(bytes: &[u8; 48]) -> Option<Self>[src]

Attempts to deserialize a compressed element.

pub fn from_compressed_unchecked(bytes: &[u8; 48]) -> Option<Self>[src]

Attempts to deserialize an uncompressed element, not checking if the element is in the correct subgroup.

This is dangerous to call unless you trust the bytes you are reading; otherwise, API invariants may be broken. Please consider using from_compressed() instead.

pub fn add(&self, rhs: &G1Projective) -> G1Projective[src]

Adds this point to another point.

pub fn add_mixed(&self, rhs: &G1Affine) -> G1Projective[src]

Adds this point to another point in the affine model.

pub fn is_on_curve(&self) -> bool[src]

Returns true if this point is on the curve. This should always return true unless an "unchecked" API was used.

pub fn from_raw_unchecked(x: Fp, y: Fp, z: Fp) -> Self[src]

pub fn x(&self) -> Fp[src]

Returns the x coordinate.

pub fn y(&self) -> Fp[src]

Returns the y coordinate.

pub fn z(&self) -> Fp[src]

Returns the z coordinate.

Trait Implementations

impl<'a, 'b> Add<&'b G1Affine> for &'a G1Projective[src]

type Output = G1Projective

The resulting type after applying the + operator.

impl<'b> Add<&'b G1Affine> for G1Projective[src]

type Output = G1Projective

The resulting type after applying the + operator.

impl<'a, 'b> Add<&'b G1Projective> for &'a G1Affine[src]

type Output = G1Projective

The resulting type after applying the + operator.

impl<'b> Add<&'b G1Projective> for G1Affine[src]

type Output = G1Projective

The resulting type after applying the + operator.

impl<'a, 'b> Add<&'b G1Projective> for &'a G1Projective[src]

type Output = G1Projective

The resulting type after applying the + operator.

impl<'b> Add<&'b G1Projective> for G1Projective[src]

type Output = G1Projective

The resulting type after applying the + operator.

impl<'a> Add<G1Affine> for &'a G1Projective[src]

type Output = G1Projective

The resulting type after applying the + operator.

impl Add<G1Affine> for G1Projective[src]

type Output = G1Projective

The resulting type after applying the + operator.

impl<'a> Add<G1Projective> for &'a G1Affine[src]

type Output = G1Projective

The resulting type after applying the + operator.

impl Add<G1Projective> for G1Affine[src]

type Output = G1Projective

The resulting type after applying the + operator.

impl<'a> Add<G1Projective> for &'a G1Projective[src]

type Output = G1Projective

The resulting type after applying the + operator.

impl Add<G1Projective> for G1Projective[src]

type Output = G1Projective

The resulting type after applying the + operator.

impl<'b> AddAssign<&'b G1Affine> for G1Projective[src]

impl<'b> AddAssign<&'b G1Projective> for G1Projective[src]

impl AddAssign<G1Affine> for G1Projective[src]

impl AddAssign<G1Projective> for G1Projective[src]

impl Clone for G1Projective[src]

impl Copy for G1Projective[src]

impl CurveProjective for G1Projective[src]

type Engine = Bls12

type Scalar = Scalar

type Base = Fp

type Affine = G1Affine

impl Debug for G1Projective[src]

impl Display for G1Projective[src]

impl Eq for G1Projective[src]

impl<'_> From<&'_ G1Affine> for G1Projective[src]

impl<'_> From<&'_ G1Projective> for G1Affine[src]

impl From<G1Affine> for G1Projective[src]

impl From<G1Projective> for G1Affine[src]

impl<'a, 'b> Mul<&'b Scalar> for &'a G1Projective[src]

type Output = G1Projective

The resulting type after applying the * operator.

impl<'b> Mul<&'b Scalar> for G1Projective[src]

type Output = G1Projective

The resulting type after applying the * operator.

impl<'a> Mul<Scalar> for &'a G1Projective[src]

type Output = G1Projective

The resulting type after applying the * operator.

impl Mul<Scalar> for G1Projective[src]

type Output = G1Projective

The resulting type after applying the * operator.

impl<'b> MulAssign<&'b Scalar> for G1Projective[src]

impl MulAssign<Scalar> for G1Projective[src]

impl<'a> Neg for &'a G1Projective[src]

type Output = G1Projective

The resulting type after applying the - operator.

impl Neg for G1Projective[src]

type Output = G1Projective

The resulting type after applying the - operator.

impl PartialEq<G1Projective> for G1Projective[src]

impl<'a, 'b> Sub<&'b G1Affine> for &'a G1Projective[src]

type Output = G1Projective

The resulting type after applying the - operator.

impl<'b> Sub<&'b G1Affine> for G1Projective[src]

type Output = G1Projective

The resulting type after applying the - operator.

impl<'a, 'b> Sub<&'b G1Projective> for &'a G1Affine[src]

type Output = G1Projective

The resulting type after applying the - operator.

impl<'b> Sub<&'b G1Projective> for G1Affine[src]

type Output = G1Projective

The resulting type after applying the - operator.

impl<'a, 'b> Sub<&'b G1Projective> for &'a G1Projective[src]

type Output = G1Projective

The resulting type after applying the - operator.

impl<'b> Sub<&'b G1Projective> for G1Projective[src]

type Output = G1Projective

The resulting type after applying the - operator.

impl<'a> Sub<G1Affine> for &'a G1Projective[src]

type Output = G1Projective

The resulting type after applying the - operator.

impl Sub<G1Affine> for G1Projective[src]

type Output = G1Projective

The resulting type after applying the - operator.

impl<'a> Sub<G1Projective> for &'a G1Affine[src]

type Output = G1Projective

The resulting type after applying the - operator.

impl Sub<G1Projective> for G1Affine[src]

type Output = G1Projective

The resulting type after applying the - operator.

impl<'a> Sub<G1Projective> for &'a G1Projective[src]

type Output = G1Projective

The resulting type after applying the - operator.

impl Sub<G1Projective> for G1Projective[src]

type Output = G1Projective

The resulting type after applying the - operator.

impl<'b> SubAssign<&'b G1Affine> for G1Projective[src]

impl<'b> SubAssign<&'b G1Projective> for G1Projective[src]

impl SubAssign<G1Affine> for G1Projective[src]

impl SubAssign<G1Projective> for G1Projective[src]

impl<T> Sum<T> for G1Projective where
    T: Borrow<G1Projective>, 
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,