Struct CurvePoint

Source
pub struct CurvePoint<C: CurveGroup>(/* private fields */);
Expand description

A wrapper around the inner point that allows us to define foreign traits on the point

Implementations§

Source§

impl<C: CurveGroup> CurvePoint<C>

Source

pub type BaseField = <C as CurveGroup>::BaseField

The base field that the curve is defined over, i.e. the field in which the curve equation’s coefficients lie

Source

pub type ScalarField = <C as Group>::ScalarField

The scalar field of the curve, i.e. Z/rZ where r is the curve group’s order

Source

pub fn identity() -> CurvePoint<C>

The additive identity in the curve group

Source

pub fn is_identity(&self) -> bool

Check whether the given point is the identity point in the group

Source

pub fn inner(&self) -> C

Return the wrapped type

Source

pub fn to_affine(&self) -> C::Affine

Convert the point to affine

Source

pub fn generator() -> CurvePoint<C>

The group generator

Source

pub fn to_bytes(&self) -> Vec<u8>

Serialize this point to a byte buffer

Source

pub fn from_bytes(bytes: &[u8]) -> Result<CurvePoint<C>, SerializationError>

Deserialize a point from a byte buffer

Source§

impl<C: CurveGroup> CurvePoint<C>

Source

pub fn n_bytes() -> usize

Get the number of bytes needed to represent a point, this is exactly the number of bytes for one base field element, as we can simply use the x-coordinate and set a high bit for the y

Source§

impl<C: CurveGroup> CurvePoint<C>

Source

pub fn from_uniform_bytes( buf: Vec<u8>, ) -> Result<CurvePoint<Projective<C::Config>>, HashToCurveError>

Convert a uniform byte buffer to a CurvePoint<C> via the SWU map-to-curve approach:

See https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-hash-to-curve-09#simple-swu for a description of the setup. Essentially, we assume that the buffer provided is the result of an extend_message implementation that gives us its uniform digest. From here we construct two field elements, map to curve, and add the points to give a uniformly distributed curve point

Source§

impl<C: CurveGroup> CurvePoint<C>

MSM Implementation

Source

pub fn msm(scalars: &[Scalar<C>], points: &[CurvePoint<C>]) -> CurvePoint<C>

Compute the multiscalar multiplication of the given scalars and points

Source

pub fn msm_iter<I, J>(scalars: I, points: J) -> CurvePoint<C>
where I: IntoIterator<Item = Scalar<C>>, J: IntoIterator<Item = CurvePoint<C>>,

Compute the multiscalar multiplication of the given scalars and points represented as streaming iterators

Source

pub fn msm_results( scalars: &[ScalarResult<C>], points: &[CurvePoint<C>], ) -> CurvePointResult<C>

Compute the multiscalar multiplication of the given points with ScalarResults

Source

pub fn msm_results_iter<I, J>(scalars: I, points: J) -> CurvePointResult<C>
where I: IntoIterator<Item = ScalarResult<C>>, J: IntoIterator<Item = CurvePoint<C>>,

Compute the multiscalar multiplication of the given points with ScalarResults as iterators. Assumes the iterators are non-empty

Source

pub fn msm_authenticated( scalars: &[AuthenticatedScalarResult<C>], points: &[CurvePoint<C>], ) -> AuthenticatedPointResult<C>

Compute the multiscalar multiplication of the given authenticated scalars and plaintext points

Source

pub fn msm_authenticated_iter<I, J>( scalars: I, points: J, ) -> AuthenticatedPointResult<C>

Compute the multiscalar multiplication of the given authenticated scalars and plaintext points as iterators This method assumes that the iterators are of the same length

Trait Implementations§

Source§

impl<'a, C: CurveGroup> Add<&'a AuthenticatedPointResult<C>> for &'a CurvePoint<C>

lhs borrowed, rhs borrowed

Source§

type Output = AuthenticatedPointResult<C>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'a AuthenticatedPointResult<C>) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a, C: CurveGroup> Add<&'a AuthenticatedPointResult<C>> for CurvePoint<C>

lhs owned, rhs borrowed

Source§

type Output = AuthenticatedPointResult<C>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'a AuthenticatedPointResult<C>) -> Self::Output

Performs the + operation. Read more
Source§

impl<C: CurveGroup> Add<&C> for &CurvePoint<C>

Source§

type Output = CurvePoint<C>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a, C: CurveGroup> Add<&'a C> for CurvePoint<C>

lhs owned, rhs borrowed

Source§

type Output = CurvePoint<C>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'a C) -> Self::Output

Performs the + operation. Read more
Source§

impl<C: CurveGroup> Add<&CurvePoint<C>> for &AuthenticatedPointResult<C>

Source§

type Output = AuthenticatedPointResult<C>

The resulting type after applying the + operator.
Source§

fn add(self, other: &CurvePoint<C>) -> AuthenticatedPointResult<C>

Performs the + operation. Read more
Source§

impl<C: CurveGroup> Add<&CurvePoint<C>> for &CurvePoint<C>

Source§

type Output = CurvePoint<C>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &CurvePoint<C>) -> Self::Output

Performs the + operation. Read more
Source§

impl<C: CurveGroup> Add<&CurvePoint<C>> for &MpcPointResult<C>

Source§

type Output = MpcPointResult<C>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &CurvePoint<C>) -> Self::Output

Performs the + operation. Read more
Source§

impl<C: CurveGroup> Add<&CurvePoint<C>> for &CurvePointResult<C>

Source§

type Output = ResultHandle<C, CurvePoint<C>>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &CurvePoint<C>) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a, C: CurveGroup> Add<&'a CurvePoint<C>> for AuthenticatedPointResult<C>

lhs owned, rhs borrowed

Source§

type Output = AuthenticatedPointResult<C>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'a CurvePoint<C>) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a, C: CurveGroup> Add<&'a CurvePoint<C>> for CurvePoint<C>

lhs owned, rhs borrowed

Source§

type Output = CurvePoint<C>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'a CurvePoint<C>) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a, C: CurveGroup> Add<&'a CurvePoint<C>> for MpcPointResult<C>

lhs owned, rhs borrowed

Source§

type Output = MpcPointResult<C>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'a CurvePoint<C>) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a, C: CurveGroup> Add<&'a CurvePoint<C>> for CurvePointResult<C>

lhs owned, rhs borrowed

Source§

type Output = ResultHandle<C, CurvePoint<C>>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'a CurvePoint<C>) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a, C: CurveGroup> Add<&'a MpcPointResult<C>> for &'a CurvePoint<C>

lhs borrowed, rhs borrowed

Source§

type Output = MpcPointResult<C>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'a MpcPointResult<C>) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a, C: CurveGroup> Add<&'a MpcPointResult<C>> for CurvePoint<C>

lhs owned, rhs borrowed

Source§

type Output = MpcPointResult<C>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'a MpcPointResult<C>) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a, C: CurveGroup> Add<&'a ResultHandle<C, CurvePoint<C>>> for &'a CurvePoint<C>

lhs borrowed, rhs borrowed

Source§

type Output = ResultHandle<C, CurvePoint<C>>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'a CurvePointResult<C>) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a, C: CurveGroup> Add<&'a ResultHandle<C, CurvePoint<C>>> for CurvePoint<C>

lhs owned, rhs borrowed

Source§

type Output = ResultHandle<C, CurvePoint<C>>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'a CurvePointResult<C>) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a, C: CurveGroup> Add<AuthenticatedPointResult<C>> for &'a CurvePoint<C>

lhs borrowed, rhs owned

Source§

type Output = AuthenticatedPointResult<C>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<C: CurveGroup> Add<AuthenticatedPointResult<C>> for CurvePoint<C>

lhs owned, rhs owned

Source§

type Output = AuthenticatedPointResult<C>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a, C: CurveGroup> Add<C> for &'a CurvePoint<C>

lhs borrowed, rhs owned

Source§

type Output = CurvePoint<C>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<C: CurveGroup> Add<C> for CurvePoint<C>

lhs owned, rhs owned

Source§

type Output = CurvePoint<C>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a, C: CurveGroup> Add<CurvePoint<C>> for &'a AuthenticatedPointResult<C>

lhs borrowed, rhs owned

Source§

type Output = AuthenticatedPointResult<C>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a, C: CurveGroup> Add<CurvePoint<C>> for &'a CurvePoint<C>

lhs borrowed, rhs owned

Source§

type Output = CurvePoint<C>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a, C: CurveGroup> Add<CurvePoint<C>> for &'a MpcPointResult<C>

lhs borrowed, rhs owned

Source§

type Output = MpcPointResult<C>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a, C: CurveGroup> Add<CurvePoint<C>> for &'a CurvePointResult<C>

lhs borrowed, rhs owned

Source§

type Output = ResultHandle<C, CurvePoint<C>>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<C: CurveGroup> Add<CurvePoint<C>> for AuthenticatedPointResult<C>

lhs owned, rhs owned

Source§

type Output = AuthenticatedPointResult<C>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<C: CurveGroup> Add<CurvePoint<C>> for MpcPointResult<C>

lhs owned, rhs owned

Source§

type Output = MpcPointResult<C>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<C: CurveGroup> Add<CurvePoint<C>> for CurvePointResult<C>

lhs owned, rhs owned

Source§

type Output = ResultHandle<C, CurvePoint<C>>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a, C: CurveGroup> Add<MpcPointResult<C>> for &'a CurvePoint<C>

lhs borrowed, rhs owned

Source§

type Output = MpcPointResult<C>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<C: CurveGroup> Add<MpcPointResult<C>> for CurvePoint<C>

lhs owned, rhs owned

Source§

type Output = MpcPointResult<C>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a, C: CurveGroup> Add<ResultHandle<C, CurvePoint<C>>> for &'a CurvePoint<C>

lhs borrowed, rhs owned

Source§

type Output = ResultHandle<C, CurvePoint<C>>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<C: CurveGroup> Add<ResultHandle<C, CurvePoint<C>>> for CurvePoint<C>

lhs owned, rhs owned

Source§

type Output = ResultHandle<C, CurvePoint<C>>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<C: CurveGroup> Add for CurvePoint<C>

lhs owned, rhs owned

Source§

type Output = CurvePoint<C>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<C: CurveGroup> AddAssign for CurvePoint<C>

Source§

fn add_assign(&mut self, rhs: Self)

Performs the += operation. Read more
Source§

impl<C: Clone + CurveGroup> Clone for CurvePoint<C>

Source§

fn clone(&self) -> CurvePoint<C>

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<C: Debug + CurveGroup> Debug for CurvePoint<C>

Source§

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

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

impl<'de, C: CurveGroup> Deserialize<'de> for CurvePoint<C>

Source§

fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>

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

impl<C: CurveGroup> From<&ResultValue<C>> for CurvePoint<C>

Source§

fn from(value: &ResultValue<C>) -> Self

Converts to this type from the input type.
Source§

impl<C: CurveGroup> From<C> for CurvePoint<C>

Source§

fn from(p: C) -> Self

Converts to this type from the input type.
Source§

impl<C: CurveGroup> From<CurvePoint<C>> for NetworkPayload<C>

Source§

fn from(point: CurvePoint<C>) -> Self

Converts to this type from the input type.
Source§

impl<C: CurveGroup> From<ResultValue<C>> for CurvePoint<C>

Source§

fn from(value: ResultValue<C>) -> Self

Converts to this type from the input type.
Source§

impl<C: CurveGroup> Mul<&AuthenticatedScalarResult<C>> for &CurvePoint<C>

Source§

type Output = AuthenticatedPointResult<C>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &AuthenticatedScalarResult<C>) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a, C: CurveGroup> Mul<&'a CurvePoint<C>> for &'a AuthenticatedScalarResult<C>

lhs borrowed, rhs borrowed

Source§

type Output = AuthenticatedPointResult<C>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a CurvePoint<C>) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a, C: CurveGroup> Mul<&'a CurvePoint<C>> for &'a MpcScalarResult<C>

lhs borrowed, rhs borrowed

Source§

type Output = MpcPointResult<C>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a CurvePoint<C>) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a, C: CurveGroup> Mul<&'a CurvePoint<C>> for &'a ScalarResult<C>

lhs borrowed, rhs borrowed

Source§

type Output = ResultHandle<C, CurvePoint<C>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a CurvePoint<C>) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a, C: CurveGroup> Mul<&'a CurvePoint<C>> for &'a Scalar<C>

lhs borrowed, rhs borrowed

Source§

type Output = CurvePoint<C>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a CurvePoint<C>) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a, C: CurveGroup> Mul<&'a CurvePoint<C>> for AuthenticatedScalarResult<C>

lhs owned, rhs borrowed

Source§

type Output = AuthenticatedPointResult<C>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a CurvePoint<C>) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a, C: CurveGroup> Mul<&'a CurvePoint<C>> for MpcScalarResult<C>

lhs owned, rhs borrowed

Source§

type Output = MpcPointResult<C>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a CurvePoint<C>) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a, C: CurveGroup> Mul<&'a CurvePoint<C>> for ScalarResult<C>

lhs owned, rhs borrowed

Source§

type Output = ResultHandle<C, CurvePoint<C>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a CurvePoint<C>) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a, C: CurveGroup> Mul<&'a CurvePoint<C>> for Scalar<C>

lhs owned, rhs borrowed

Source§

type Output = CurvePoint<C>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a CurvePoint<C>) -> Self::Output

Performs the * operation. Read more
Source§

impl<C: CurveGroup> Mul<&MpcScalarResult<C>> for &CurvePoint<C>

Source§

type Output = MpcPointResult<C>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &MpcScalarResult<C>) -> Self::Output

Performs the * operation. Read more
Source§

impl<C: CurveGroup> Mul<&ResultHandle<C, Scalar<C>>> for &CurvePoint<C>

Source§

type Output = ResultHandle<C, CurvePoint<C>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &ScalarResult<C>) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a, C: CurveGroup> Mul<&'a ResultHandle<C, Scalar<C>>> for CurvePoint<C>

lhs owned, rhs borrowed

Source§

type Output = ResultHandle<C, CurvePoint<C>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a ScalarResult<C>) -> Self::Output

Performs the * operation. Read more
Source§

impl<C: CurveGroup> Mul<&Scalar<C>> for &CurvePoint<C>

Source§

type Output = CurvePoint<C>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Scalar<C>) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a, C: CurveGroup> Mul<&'a Scalar<C>> for CurvePoint<C>

lhs owned, rhs borrowed

Source§

type Output = CurvePoint<C>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a Scalar<C>) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a, C: CurveGroup> Mul<CurvePoint<C>> for &'a AuthenticatedScalarResult<C>

lhs borrowed, rhs owned

Source§

type Output = AuthenticatedPointResult<C>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: CurvePoint<C>) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a, C: CurveGroup> Mul<CurvePoint<C>> for &'a MpcScalarResult<C>

lhs borrowed, rhs owned

Source§

type Output = MpcPointResult<C>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: CurvePoint<C>) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a, C: CurveGroup> Mul<CurvePoint<C>> for &'a ScalarResult<C>

lhs borrowed, rhs owned

Source§

type Output = ResultHandle<C, CurvePoint<C>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: CurvePoint<C>) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a, C: CurveGroup> Mul<CurvePoint<C>> for &'a Scalar<C>

lhs borrowed, rhs owned

Source§

type Output = CurvePoint<C>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: CurvePoint<C>) -> Self::Output

Performs the * operation. Read more
Source§

impl<C: CurveGroup> Mul<CurvePoint<C>> for AuthenticatedScalarResult<C>

lhs owned, rhs owned

Source§

type Output = AuthenticatedPointResult<C>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: CurvePoint<C>) -> Self::Output

Performs the * operation. Read more
Source§

impl<C: CurveGroup> Mul<CurvePoint<C>> for MpcScalarResult<C>

lhs owned, rhs owned

Source§

type Output = MpcPointResult<C>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: CurvePoint<C>) -> Self::Output

Performs the * operation. Read more
Source§

impl<C: CurveGroup> Mul<CurvePoint<C>> for ScalarResult<C>

lhs owned, rhs owned

Source§

type Output = ResultHandle<C, CurvePoint<C>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: CurvePoint<C>) -> Self::Output

Performs the * operation. Read more
Source§

impl<C: CurveGroup> Mul<CurvePoint<C>> for Scalar<C>

lhs owned, rhs owned

Source§

type Output = CurvePoint<C>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: CurvePoint<C>) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a, C: CurveGroup> Mul<ResultHandle<C, Scalar<C>>> for &'a CurvePoint<C>

lhs borrowed, rhs owned

Source§

type Output = ResultHandle<C, CurvePoint<C>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: ScalarResult<C>) -> Self::Output

Performs the * operation. Read more
Source§

impl<C: CurveGroup> Mul<ResultHandle<C, Scalar<C>>> for CurvePoint<C>

lhs owned, rhs owned

Source§

type Output = ResultHandle<C, CurvePoint<C>>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: ScalarResult<C>) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a, C: CurveGroup> Mul<Scalar<C>> for &'a CurvePoint<C>

lhs borrowed, rhs owned

Source§

type Output = CurvePoint<C>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Scalar<C>) -> Self::Output

Performs the * operation. Read more
Source§

impl<C: CurveGroup> Mul<Scalar<C>> for CurvePoint<C>

lhs owned, rhs owned

Source§

type Output = CurvePoint<C>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Scalar<C>) -> Self::Output

Performs the * operation. Read more
Source§

impl<C: CurveGroup> MulAssign<&Scalar<C>> for CurvePoint<C>

Source§

fn mul_assign(&mut self, rhs: &Scalar<C>)

Performs the *= operation. Read more
Source§

impl<C: CurveGroup> Neg for &CurvePoint<C>

Source§

type Output = CurvePoint<C>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl<C: CurveGroup> Neg for CurvePoint<C>

Source§

type Output = CurvePoint<C>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl<C: PartialEq + CurveGroup> PartialEq for CurvePoint<C>

Source§

fn eq(&self, other: &CurvePoint<C>) -> 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<C: CurveGroup> Serialize for CurvePoint<C>

Source§

fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>

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

impl<'a, C: CurveGroup> Sub<&'a AuthenticatedPointResult<C>> for &'a CurvePoint<C>

lhs borrowed, rhs borrowed

Source§

type Output = AuthenticatedPointResult<C>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &'a AuthenticatedPointResult<C>) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a, C: CurveGroup> Sub<&'a AuthenticatedPointResult<C>> for CurvePoint<C>

lhs owned, rhs borrowed

Source§

type Output = AuthenticatedPointResult<C>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &'a AuthenticatedPointResult<C>) -> Self::Output

Performs the - operation. Read more
Source§

impl<C: CurveGroup> Sub<&CurvePoint<C>> for &AuthenticatedPointResult<C>

Source§

type Output = AuthenticatedPointResult<C>

The resulting type after applying the - operator.
Source§

fn sub(self, other: &CurvePoint<C>) -> AuthenticatedPointResult<C>

Performs the - operation. Read more
Source§

impl<C: CurveGroup> Sub<&CurvePoint<C>> for &CurvePoint<C>

Source§

type Output = CurvePoint<C>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &CurvePoint<C>) -> Self::Output

Performs the - operation. Read more
Source§

impl<C: CurveGroup> Sub<&CurvePoint<C>> for &MpcPointResult<C>

Source§

type Output = MpcPointResult<C>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &CurvePoint<C>) -> Self::Output

Performs the - operation. Read more
Source§

impl<C: CurveGroup> Sub<&CurvePoint<C>> for &CurvePointResult<C>

Source§

type Output = ResultHandle<C, CurvePoint<C>>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &CurvePoint<C>) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a, C: CurveGroup> Sub<&'a CurvePoint<C>> for AuthenticatedPointResult<C>

lhs owned, rhs borrowed

Source§

type Output = AuthenticatedPointResult<C>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &'a CurvePoint<C>) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a, C: CurveGroup> Sub<&'a CurvePoint<C>> for CurvePoint<C>

lhs owned, rhs borrowed

Source§

type Output = CurvePoint<C>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &'a CurvePoint<C>) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a, C: CurveGroup> Sub<&'a CurvePoint<C>> for MpcPointResult<C>

lhs owned, rhs borrowed

Source§

type Output = MpcPointResult<C>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &'a CurvePoint<C>) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a, C: CurveGroup> Sub<&'a CurvePoint<C>> for CurvePointResult<C>

lhs owned, rhs borrowed

Source§

type Output = ResultHandle<C, CurvePoint<C>>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &'a CurvePoint<C>) -> Self::Output

Performs the - operation. Read more
Source§

impl<C: CurveGroup> Sub<&ResultHandle<C, CurvePoint<C>>> for &CurvePoint<C>

Source§

type Output = ResultHandle<C, CurvePoint<C>>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &CurvePointResult<C>) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a, C: CurveGroup> Sub<AuthenticatedPointResult<C>> for &'a CurvePoint<C>

lhs borrowed, rhs owned

Source§

type Output = AuthenticatedPointResult<C>

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<C: CurveGroup> Sub<AuthenticatedPointResult<C>> for CurvePoint<C>

lhs owned, rhs owned

Source§

type Output = AuthenticatedPointResult<C>

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<'a, C: CurveGroup> Sub<CurvePoint<C>> for &'a AuthenticatedPointResult<C>

lhs borrowed, rhs owned

Source§

type Output = AuthenticatedPointResult<C>

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<'a, C: CurveGroup> Sub<CurvePoint<C>> for &'a CurvePoint<C>

lhs borrowed, rhs owned

Source§

type Output = CurvePoint<C>

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<'a, C: CurveGroup> Sub<CurvePoint<C>> for &'a MpcPointResult<C>

lhs borrowed, rhs owned

Source§

type Output = MpcPointResult<C>

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<'a, C: CurveGroup> Sub<CurvePoint<C>> for &'a CurvePointResult<C>

lhs borrowed, rhs owned

Source§

type Output = ResultHandle<C, CurvePoint<C>>

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<C: CurveGroup> Sub<CurvePoint<C>> for AuthenticatedPointResult<C>

lhs owned, rhs owned

Source§

type Output = AuthenticatedPointResult<C>

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<C: CurveGroup> Sub<CurvePoint<C>> for MpcPointResult<C>

lhs owned, rhs owned

Source§

type Output = MpcPointResult<C>

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<C: CurveGroup> Sub<CurvePoint<C>> for CurvePointResult<C>

lhs owned, rhs owned

Source§

type Output = ResultHandle<C, CurvePoint<C>>

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<C: CurveGroup> Sub for CurvePoint<C>

lhs owned, rhs owned

Source§

type Output = CurvePoint<C>

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<C: CurveGroup> SubAssign for CurvePoint<C>

Source§

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more
Source§

impl<C: CurveGroup> Sum for CurvePoint<C>

Source§

fn sum<I: Iterator<Item = Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl<C: Copy + CurveGroup> Copy for CurvePoint<C>

Source§

impl<C: Eq + CurveGroup> Eq for CurvePoint<C>

Source§

impl<C: CurveGroup> StructuralPartialEq for CurvePoint<C>

Source§

impl<C: CurveGroup> Unpin for CurvePoint<C>

Auto Trait Implementations§

§

impl<C> Freeze for CurvePoint<C>
where C: Freeze,

§

impl<C> RefUnwindSafe for CurvePoint<C>
where C: RefUnwindSafe,

§

impl<C> Send for CurvePoint<C>

§

impl<C> Sync for CurvePoint<C>

§

impl<C> UnwindSafe for CurvePoint<C>
where C: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

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

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,