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>
impl<C: CurveGroup> CurvePoint<C>
Sourcepub type BaseField = <C as CurveGroup>::BaseField
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
Sourcepub type ScalarField = <C as Group>::ScalarField
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
Sourcepub fn identity() -> CurvePoint<C>
pub fn identity() -> CurvePoint<C>
The additive identity in the curve group
Sourcepub fn is_identity(&self) -> bool
pub fn is_identity(&self) -> bool
Check whether the given point is the identity point in the group
Sourcepub fn generator() -> CurvePoint<C>
pub fn generator() -> CurvePoint<C>
The group generator
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<CurvePoint<C>, SerializationError>
pub fn from_bytes(bytes: &[u8]) -> Result<CurvePoint<C>, SerializationError>
Deserialize a point from a byte buffer
Source§impl<C: CurveGroup> CurvePoint<C>where
C::BaseField: PrimeField,
impl<C: CurveGroup> CurvePoint<C>where
C::BaseField: PrimeField,
Source§impl<C: CurveGroup> CurvePoint<C>
impl<C: CurveGroup> CurvePoint<C>
Sourcepub fn from_uniform_bytes(
buf: Vec<u8>,
) -> Result<CurvePoint<Projective<C::Config>>, HashToCurveError>
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
impl<C: CurveGroup> CurvePoint<C>
MSM Implementation
Sourcepub fn msm(scalars: &[Scalar<C>], points: &[CurvePoint<C>]) -> CurvePoint<C>
pub fn msm(scalars: &[Scalar<C>], points: &[CurvePoint<C>]) -> CurvePoint<C>
Compute the multiscalar multiplication of the given scalars and points
Sourcepub fn msm_iter<I, J>(scalars: I, points: J) -> CurvePoint<C>
pub fn msm_iter<I, J>(scalars: I, points: J) -> CurvePoint<C>
Compute the multiscalar multiplication of the given scalars and points represented as streaming iterators
Sourcepub fn msm_results(
scalars: &[ScalarResult<C>],
points: &[CurvePoint<C>],
) -> CurvePointResult<C>
pub fn msm_results( scalars: &[ScalarResult<C>], points: &[CurvePoint<C>], ) -> CurvePointResult<C>
Compute the multiscalar multiplication of the given points with
ScalarResult
s
Sourcepub fn msm_results_iter<I, J>(scalars: I, points: J) -> CurvePointResult<C>
pub fn msm_results_iter<I, J>(scalars: I, points: J) -> CurvePointResult<C>
Compute the multiscalar multiplication of the given points with
ScalarResult
s as iterators. Assumes the iterators are non-empty
Sourcepub fn msm_authenticated(
scalars: &[AuthenticatedScalarResult<C>],
points: &[CurvePoint<C>],
) -> AuthenticatedPointResult<C>
pub fn msm_authenticated( scalars: &[AuthenticatedScalarResult<C>], points: &[CurvePoint<C>], ) -> AuthenticatedPointResult<C>
Compute the multiscalar multiplication of the given authenticated scalars and plaintext points
Sourcepub fn msm_authenticated_iter<I, J>(
scalars: I,
points: J,
) -> AuthenticatedPointResult<C>
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
impl<'a, C: CurveGroup> Add<&'a AuthenticatedPointResult<C>> for &'a CurvePoint<C>
lhs borrowed, rhs borrowed
Source§type Output = AuthenticatedPointResult<C>
type Output = AuthenticatedPointResult<C>
+
operator.Source§impl<'a, C: CurveGroup> Add<&'a AuthenticatedPointResult<C>> for CurvePoint<C>
lhs owned, rhs borrowed
impl<'a, C: CurveGroup> Add<&'a AuthenticatedPointResult<C>> for CurvePoint<C>
lhs owned, rhs borrowed
Source§type Output = AuthenticatedPointResult<C>
type Output = AuthenticatedPointResult<C>
+
operator.Source§impl<C: CurveGroup> Add<&C> for &CurvePoint<C>
impl<C: CurveGroup> Add<&C> for &CurvePoint<C>
Source§impl<'a, C: CurveGroup> Add<&'a C> for CurvePoint<C>
lhs owned, rhs borrowed
impl<'a, C: CurveGroup> Add<&'a C> for CurvePoint<C>
lhs owned, rhs borrowed
Source§impl<C: CurveGroup> Add<&CurvePoint<C>> for &AuthenticatedPointResult<C>
impl<C: CurveGroup> Add<&CurvePoint<C>> for &AuthenticatedPointResult<C>
Source§type Output = AuthenticatedPointResult<C>
type Output = AuthenticatedPointResult<C>
+
operator.Source§fn add(self, other: &CurvePoint<C>) -> AuthenticatedPointResult<C>
fn add(self, other: &CurvePoint<C>) -> AuthenticatedPointResult<C>
+
operation. Read moreSource§impl<C: CurveGroup> Add<&CurvePoint<C>> for &CurvePoint<C>
impl<C: CurveGroup> Add<&CurvePoint<C>> for &CurvePoint<C>
Source§type Output = CurvePoint<C>
type Output = CurvePoint<C>
+
operator.Source§impl<C: CurveGroup> Add<&CurvePoint<C>> for &MpcPointResult<C>
impl<C: CurveGroup> Add<&CurvePoint<C>> for &MpcPointResult<C>
Source§type Output = MpcPointResult<C>
type Output = MpcPointResult<C>
+
operator.Source§impl<C: CurveGroup> Add<&CurvePoint<C>> for &CurvePointResult<C>
impl<C: CurveGroup> Add<&CurvePoint<C>> for &CurvePointResult<C>
Source§type Output = ResultHandle<C, CurvePoint<C>>
type Output = ResultHandle<C, CurvePoint<C>>
+
operator.Source§impl<'a, C: CurveGroup> Add<&'a CurvePoint<C>> for AuthenticatedPointResult<C>
lhs owned, rhs borrowed
impl<'a, C: CurveGroup> Add<&'a CurvePoint<C>> for AuthenticatedPointResult<C>
lhs owned, rhs borrowed
Source§type Output = AuthenticatedPointResult<C>
type Output = AuthenticatedPointResult<C>
+
operator.Source§impl<'a, C: CurveGroup> Add<&'a CurvePoint<C>> for CurvePoint<C>
lhs owned, rhs borrowed
impl<'a, C: CurveGroup> Add<&'a CurvePoint<C>> for CurvePoint<C>
lhs owned, rhs borrowed
Source§type Output = CurvePoint<C>
type Output = CurvePoint<C>
+
operator.Source§impl<'a, C: CurveGroup> Add<&'a CurvePoint<C>> for MpcPointResult<C>
lhs owned, rhs borrowed
impl<'a, C: CurveGroup> Add<&'a CurvePoint<C>> for MpcPointResult<C>
lhs owned, rhs borrowed
Source§type Output = MpcPointResult<C>
type Output = MpcPointResult<C>
+
operator.Source§impl<'a, C: CurveGroup> Add<&'a CurvePoint<C>> for CurvePointResult<C>
lhs owned, rhs borrowed
impl<'a, C: CurveGroup> Add<&'a CurvePoint<C>> for CurvePointResult<C>
lhs owned, rhs borrowed
Source§type Output = ResultHandle<C, CurvePoint<C>>
type Output = ResultHandle<C, CurvePoint<C>>
+
operator.Source§impl<'a, C: CurveGroup> Add<&'a MpcPointResult<C>> for &'a CurvePoint<C>
lhs borrowed, rhs borrowed
impl<'a, C: CurveGroup> Add<&'a MpcPointResult<C>> for &'a CurvePoint<C>
lhs borrowed, rhs borrowed
Source§type Output = MpcPointResult<C>
type Output = MpcPointResult<C>
+
operator.Source§impl<'a, C: CurveGroup> Add<&'a MpcPointResult<C>> for CurvePoint<C>
lhs owned, rhs borrowed
impl<'a, C: CurveGroup> Add<&'a MpcPointResult<C>> for CurvePoint<C>
lhs owned, rhs borrowed
Source§type Output = MpcPointResult<C>
type Output = MpcPointResult<C>
+
operator.Source§impl<'a, C: CurveGroup> Add<&'a ResultHandle<C, CurvePoint<C>>> for &'a CurvePoint<C>
lhs borrowed, rhs borrowed
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>>
type Output = ResultHandle<C, CurvePoint<C>>
+
operator.Source§impl<'a, C: CurveGroup> Add<&'a ResultHandle<C, CurvePoint<C>>> for CurvePoint<C>
lhs owned, rhs borrowed
impl<'a, C: CurveGroup> Add<&'a ResultHandle<C, CurvePoint<C>>> for CurvePoint<C>
lhs owned, rhs borrowed
Source§type Output = ResultHandle<C, CurvePoint<C>>
type Output = ResultHandle<C, CurvePoint<C>>
+
operator.Source§impl<'a, C: CurveGroup> Add<AuthenticatedPointResult<C>> for &'a CurvePoint<C>
lhs borrowed, rhs owned
impl<'a, C: CurveGroup> Add<AuthenticatedPointResult<C>> for &'a CurvePoint<C>
lhs borrowed, rhs owned
Source§type Output = AuthenticatedPointResult<C>
type Output = AuthenticatedPointResult<C>
+
operator.Source§impl<C: CurveGroup> Add<AuthenticatedPointResult<C>> for CurvePoint<C>
lhs owned, rhs owned
impl<C: CurveGroup> Add<AuthenticatedPointResult<C>> for CurvePoint<C>
lhs owned, rhs owned
Source§type Output = AuthenticatedPointResult<C>
type Output = AuthenticatedPointResult<C>
+
operator.Source§impl<'a, C: CurveGroup> Add<C> for &'a CurvePoint<C>
lhs borrowed, rhs owned
impl<'a, C: CurveGroup> Add<C> for &'a CurvePoint<C>
lhs borrowed, rhs owned
Source§impl<C: CurveGroup> Add<C> for CurvePoint<C>
lhs owned, rhs owned
impl<C: CurveGroup> Add<C> for CurvePoint<C>
lhs owned, rhs owned
Source§impl<'a, C: CurveGroup> Add<CurvePoint<C>> for &'a AuthenticatedPointResult<C>
lhs borrowed, rhs owned
impl<'a, C: CurveGroup> Add<CurvePoint<C>> for &'a AuthenticatedPointResult<C>
lhs borrowed, rhs owned
Source§type Output = AuthenticatedPointResult<C>
type Output = AuthenticatedPointResult<C>
+
operator.Source§impl<'a, C: CurveGroup> Add<CurvePoint<C>> for &'a CurvePoint<C>
lhs borrowed, rhs owned
impl<'a, C: CurveGroup> Add<CurvePoint<C>> for &'a CurvePoint<C>
lhs borrowed, rhs owned
Source§type Output = CurvePoint<C>
type Output = CurvePoint<C>
+
operator.Source§impl<'a, C: CurveGroup> Add<CurvePoint<C>> for &'a MpcPointResult<C>
lhs borrowed, rhs owned
impl<'a, C: CurveGroup> Add<CurvePoint<C>> for &'a MpcPointResult<C>
lhs borrowed, rhs owned
Source§type Output = MpcPointResult<C>
type Output = MpcPointResult<C>
+
operator.Source§impl<'a, C: CurveGroup> Add<CurvePoint<C>> for &'a CurvePointResult<C>
lhs borrowed, rhs owned
impl<'a, C: CurveGroup> Add<CurvePoint<C>> for &'a CurvePointResult<C>
lhs borrowed, rhs owned
Source§type Output = ResultHandle<C, CurvePoint<C>>
type Output = ResultHandle<C, CurvePoint<C>>
+
operator.Source§impl<C: CurveGroup> Add<CurvePoint<C>> for AuthenticatedPointResult<C>
lhs owned, rhs owned
impl<C: CurveGroup> Add<CurvePoint<C>> for AuthenticatedPointResult<C>
lhs owned, rhs owned
Source§type Output = AuthenticatedPointResult<C>
type Output = AuthenticatedPointResult<C>
+
operator.Source§impl<C: CurveGroup> Add<CurvePoint<C>> for MpcPointResult<C>
lhs owned, rhs owned
impl<C: CurveGroup> Add<CurvePoint<C>> for MpcPointResult<C>
lhs owned, rhs owned
Source§type Output = MpcPointResult<C>
type Output = MpcPointResult<C>
+
operator.Source§impl<C: CurveGroup> Add<CurvePoint<C>> for CurvePointResult<C>
lhs owned, rhs owned
impl<C: CurveGroup> Add<CurvePoint<C>> for CurvePointResult<C>
lhs owned, rhs owned
Source§type Output = ResultHandle<C, CurvePoint<C>>
type Output = ResultHandle<C, CurvePoint<C>>
+
operator.Source§impl<'a, C: CurveGroup> Add<MpcPointResult<C>> for &'a CurvePoint<C>
lhs borrowed, rhs owned
impl<'a, C: CurveGroup> Add<MpcPointResult<C>> for &'a CurvePoint<C>
lhs borrowed, rhs owned
Source§type Output = MpcPointResult<C>
type Output = MpcPointResult<C>
+
operator.Source§impl<C: CurveGroup> Add<MpcPointResult<C>> for CurvePoint<C>
lhs owned, rhs owned
impl<C: CurveGroup> Add<MpcPointResult<C>> for CurvePoint<C>
lhs owned, rhs owned
Source§type Output = MpcPointResult<C>
type Output = MpcPointResult<C>
+
operator.Source§impl<'a, C: CurveGroup> Add<ResultHandle<C, CurvePoint<C>>> for &'a CurvePoint<C>
lhs borrowed, rhs owned
impl<'a, C: CurveGroup> Add<ResultHandle<C, CurvePoint<C>>> for &'a CurvePoint<C>
lhs borrowed, rhs owned
Source§type Output = ResultHandle<C, CurvePoint<C>>
type Output = ResultHandle<C, CurvePoint<C>>
+
operator.Source§impl<C: CurveGroup> Add<ResultHandle<C, CurvePoint<C>>> for CurvePoint<C>
lhs owned, rhs owned
impl<C: CurveGroup> Add<ResultHandle<C, CurvePoint<C>>> for CurvePoint<C>
lhs owned, rhs owned
Source§type Output = ResultHandle<C, CurvePoint<C>>
type Output = ResultHandle<C, CurvePoint<C>>
+
operator.Source§impl<C: CurveGroup> Add for CurvePoint<C>
lhs owned, rhs owned
impl<C: CurveGroup> Add for CurvePoint<C>
lhs owned, rhs owned
Source§type Output = CurvePoint<C>
type Output = CurvePoint<C>
+
operator.Source§impl<C: CurveGroup> AddAssign for CurvePoint<C>
impl<C: CurveGroup> AddAssign for CurvePoint<C>
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
+=
operation. Read moreSource§impl<C: Clone + CurveGroup> Clone for CurvePoint<C>
impl<C: Clone + CurveGroup> Clone for CurvePoint<C>
Source§fn clone(&self) -> CurvePoint<C>
fn clone(&self) -> CurvePoint<C>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<C: Debug + CurveGroup> Debug for CurvePoint<C>
impl<C: Debug + CurveGroup> Debug for CurvePoint<C>
Source§impl<'de, C: CurveGroup> Deserialize<'de> for CurvePoint<C>
impl<'de, C: CurveGroup> Deserialize<'de> for CurvePoint<C>
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Source§impl<C: CurveGroup> From<&ResultValue<C>> for CurvePoint<C>
impl<C: CurveGroup> From<&ResultValue<C>> for CurvePoint<C>
Source§fn from(value: &ResultValue<C>) -> Self
fn from(value: &ResultValue<C>) -> Self
Source§impl<C: CurveGroup> From<C> for CurvePoint<C>
impl<C: CurveGroup> From<C> for CurvePoint<C>
Source§impl<C: CurveGroup> From<CurvePoint<C>> for NetworkPayload<C>
impl<C: CurveGroup> From<CurvePoint<C>> for NetworkPayload<C>
Source§fn from(point: CurvePoint<C>) -> Self
fn from(point: CurvePoint<C>) -> Self
Source§impl<C: CurveGroup> From<ResultValue<C>> for CurvePoint<C>
impl<C: CurveGroup> From<ResultValue<C>> for CurvePoint<C>
Source§fn from(value: ResultValue<C>) -> Self
fn from(value: ResultValue<C>) -> Self
Source§impl<C: CurveGroup> Mul<&AuthenticatedScalarResult<C>> for &CurvePoint<C>
impl<C: CurveGroup> Mul<&AuthenticatedScalarResult<C>> for &CurvePoint<C>
Source§type Output = AuthenticatedPointResult<C>
type Output = AuthenticatedPointResult<C>
*
operator.Source§impl<'a, C: CurveGroup> Mul<&'a CurvePoint<C>> for &'a AuthenticatedScalarResult<C>
lhs borrowed, rhs borrowed
impl<'a, C: CurveGroup> Mul<&'a CurvePoint<C>> for &'a AuthenticatedScalarResult<C>
lhs borrowed, rhs borrowed
Source§type Output = AuthenticatedPointResult<C>
type Output = AuthenticatedPointResult<C>
*
operator.Source§impl<'a, C: CurveGroup> Mul<&'a CurvePoint<C>> for &'a MpcScalarResult<C>
lhs borrowed, rhs borrowed
impl<'a, C: CurveGroup> Mul<&'a CurvePoint<C>> for &'a MpcScalarResult<C>
lhs borrowed, rhs borrowed
Source§type Output = MpcPointResult<C>
type Output = MpcPointResult<C>
*
operator.Source§impl<'a, C: CurveGroup> Mul<&'a CurvePoint<C>> for &'a ScalarResult<C>
lhs borrowed, rhs borrowed
impl<'a, C: CurveGroup> Mul<&'a CurvePoint<C>> for &'a ScalarResult<C>
lhs borrowed, rhs borrowed
Source§type Output = ResultHandle<C, CurvePoint<C>>
type Output = ResultHandle<C, CurvePoint<C>>
*
operator.Source§impl<'a, C: CurveGroup> Mul<&'a CurvePoint<C>> for &'a Scalar<C>
lhs borrowed, rhs borrowed
impl<'a, C: CurveGroup> Mul<&'a CurvePoint<C>> for &'a Scalar<C>
lhs borrowed, rhs borrowed
Source§type Output = CurvePoint<C>
type Output = CurvePoint<C>
*
operator.Source§impl<'a, C: CurveGroup> Mul<&'a CurvePoint<C>> for AuthenticatedScalarResult<C>
lhs owned, rhs borrowed
impl<'a, C: CurveGroup> Mul<&'a CurvePoint<C>> for AuthenticatedScalarResult<C>
lhs owned, rhs borrowed
Source§type Output = AuthenticatedPointResult<C>
type Output = AuthenticatedPointResult<C>
*
operator.Source§impl<'a, C: CurveGroup> Mul<&'a CurvePoint<C>> for MpcScalarResult<C>
lhs owned, rhs borrowed
impl<'a, C: CurveGroup> Mul<&'a CurvePoint<C>> for MpcScalarResult<C>
lhs owned, rhs borrowed
Source§type Output = MpcPointResult<C>
type Output = MpcPointResult<C>
*
operator.Source§impl<'a, C: CurveGroup> Mul<&'a CurvePoint<C>> for ScalarResult<C>
lhs owned, rhs borrowed
impl<'a, C: CurveGroup> Mul<&'a CurvePoint<C>> for ScalarResult<C>
lhs owned, rhs borrowed
Source§type Output = ResultHandle<C, CurvePoint<C>>
type Output = ResultHandle<C, CurvePoint<C>>
*
operator.Source§impl<'a, C: CurveGroup> Mul<&'a CurvePoint<C>> for Scalar<C>
lhs owned, rhs borrowed
impl<'a, C: CurveGroup> Mul<&'a CurvePoint<C>> for Scalar<C>
lhs owned, rhs borrowed
Source§type Output = CurvePoint<C>
type Output = CurvePoint<C>
*
operator.Source§impl<C: CurveGroup> Mul<&MpcScalarResult<C>> for &CurvePoint<C>
impl<C: CurveGroup> Mul<&MpcScalarResult<C>> for &CurvePoint<C>
Source§type Output = MpcPointResult<C>
type Output = MpcPointResult<C>
*
operator.Source§impl<C: CurveGroup> Mul<&ResultHandle<C, Scalar<C>>> for &CurvePoint<C>
impl<C: CurveGroup> Mul<&ResultHandle<C, Scalar<C>>> for &CurvePoint<C>
Source§type Output = ResultHandle<C, CurvePoint<C>>
type Output = ResultHandle<C, CurvePoint<C>>
*
operator.Source§impl<'a, C: CurveGroup> Mul<&'a ResultHandle<C, Scalar<C>>> for CurvePoint<C>
lhs owned, rhs borrowed
impl<'a, C: CurveGroup> Mul<&'a ResultHandle<C, Scalar<C>>> for CurvePoint<C>
lhs owned, rhs borrowed
Source§type Output = ResultHandle<C, CurvePoint<C>>
type Output = ResultHandle<C, CurvePoint<C>>
*
operator.Source§impl<C: CurveGroup> Mul<&Scalar<C>> for &CurvePoint<C>
impl<C: CurveGroup> Mul<&Scalar<C>> for &CurvePoint<C>
Source§impl<'a, C: CurveGroup> Mul<&'a Scalar<C>> for CurvePoint<C>
lhs owned, rhs borrowed
impl<'a, C: CurveGroup> Mul<&'a Scalar<C>> for CurvePoint<C>
lhs owned, rhs borrowed
Source§impl<'a, C: CurveGroup> Mul<CurvePoint<C>> for &'a AuthenticatedScalarResult<C>
lhs borrowed, rhs owned
impl<'a, C: CurveGroup> Mul<CurvePoint<C>> for &'a AuthenticatedScalarResult<C>
lhs borrowed, rhs owned
Source§type Output = AuthenticatedPointResult<C>
type Output = AuthenticatedPointResult<C>
*
operator.Source§impl<'a, C: CurveGroup> Mul<CurvePoint<C>> for &'a MpcScalarResult<C>
lhs borrowed, rhs owned
impl<'a, C: CurveGroup> Mul<CurvePoint<C>> for &'a MpcScalarResult<C>
lhs borrowed, rhs owned
Source§type Output = MpcPointResult<C>
type Output = MpcPointResult<C>
*
operator.Source§impl<'a, C: CurveGroup> Mul<CurvePoint<C>> for &'a ScalarResult<C>
lhs borrowed, rhs owned
impl<'a, C: CurveGroup> Mul<CurvePoint<C>> for &'a ScalarResult<C>
lhs borrowed, rhs owned
Source§type Output = ResultHandle<C, CurvePoint<C>>
type Output = ResultHandle<C, CurvePoint<C>>
*
operator.Source§impl<'a, C: CurveGroup> Mul<CurvePoint<C>> for &'a Scalar<C>
lhs borrowed, rhs owned
impl<'a, C: CurveGroup> Mul<CurvePoint<C>> for &'a Scalar<C>
lhs borrowed, rhs owned
Source§type Output = CurvePoint<C>
type Output = CurvePoint<C>
*
operator.Source§impl<C: CurveGroup> Mul<CurvePoint<C>> for AuthenticatedScalarResult<C>
lhs owned, rhs owned
impl<C: CurveGroup> Mul<CurvePoint<C>> for AuthenticatedScalarResult<C>
lhs owned, rhs owned
Source§type Output = AuthenticatedPointResult<C>
type Output = AuthenticatedPointResult<C>
*
operator.Source§impl<C: CurveGroup> Mul<CurvePoint<C>> for MpcScalarResult<C>
lhs owned, rhs owned
impl<C: CurveGroup> Mul<CurvePoint<C>> for MpcScalarResult<C>
lhs owned, rhs owned
Source§type Output = MpcPointResult<C>
type Output = MpcPointResult<C>
*
operator.Source§impl<C: CurveGroup> Mul<CurvePoint<C>> for ScalarResult<C>
lhs owned, rhs owned
impl<C: CurveGroup> Mul<CurvePoint<C>> for ScalarResult<C>
lhs owned, rhs owned
Source§type Output = ResultHandle<C, CurvePoint<C>>
type Output = ResultHandle<C, CurvePoint<C>>
*
operator.Source§impl<C: CurveGroup> Mul<CurvePoint<C>> for Scalar<C>
lhs owned, rhs owned
impl<C: CurveGroup> Mul<CurvePoint<C>> for Scalar<C>
lhs owned, rhs owned
Source§type Output = CurvePoint<C>
type Output = CurvePoint<C>
*
operator.Source§impl<'a, C: CurveGroup> Mul<ResultHandle<C, Scalar<C>>> for &'a CurvePoint<C>
lhs borrowed, rhs owned
impl<'a, C: CurveGroup> Mul<ResultHandle<C, Scalar<C>>> for &'a CurvePoint<C>
lhs borrowed, rhs owned
Source§type Output = ResultHandle<C, CurvePoint<C>>
type Output = ResultHandle<C, CurvePoint<C>>
*
operator.Source§impl<C: CurveGroup> Mul<ResultHandle<C, Scalar<C>>> for CurvePoint<C>
lhs owned, rhs owned
impl<C: CurveGroup> Mul<ResultHandle<C, Scalar<C>>> for CurvePoint<C>
lhs owned, rhs owned
Source§type Output = ResultHandle<C, CurvePoint<C>>
type Output = ResultHandle<C, CurvePoint<C>>
*
operator.Source§impl<'a, C: CurveGroup> Mul<Scalar<C>> for &'a CurvePoint<C>
lhs borrowed, rhs owned
impl<'a, C: CurveGroup> Mul<Scalar<C>> for &'a CurvePoint<C>
lhs borrowed, rhs owned
Source§impl<C: CurveGroup> Mul<Scalar<C>> for CurvePoint<C>
lhs owned, rhs owned
impl<C: CurveGroup> Mul<Scalar<C>> for CurvePoint<C>
lhs owned, rhs owned
Source§impl<C: CurveGroup> MulAssign<&Scalar<C>> for CurvePoint<C>
impl<C: CurveGroup> MulAssign<&Scalar<C>> for CurvePoint<C>
Source§fn mul_assign(&mut self, rhs: &Scalar<C>)
fn mul_assign(&mut self, rhs: &Scalar<C>)
*=
operation. Read moreSource§impl<C: CurveGroup> Neg for &CurvePoint<C>
impl<C: CurveGroup> Neg for &CurvePoint<C>
Source§impl<C: CurveGroup> Neg for CurvePoint<C>
impl<C: CurveGroup> Neg for CurvePoint<C>
Source§impl<C: PartialEq + CurveGroup> PartialEq for CurvePoint<C>
impl<C: PartialEq + CurveGroup> PartialEq for CurvePoint<C>
Source§impl<C: CurveGroup> Serialize for CurvePoint<C>
impl<C: CurveGroup> Serialize for CurvePoint<C>
Source§impl<'a, C: CurveGroup> Sub<&'a AuthenticatedPointResult<C>> for &'a CurvePoint<C>
lhs borrowed, rhs borrowed
impl<'a, C: CurveGroup> Sub<&'a AuthenticatedPointResult<C>> for &'a CurvePoint<C>
lhs borrowed, rhs borrowed
Source§type Output = AuthenticatedPointResult<C>
type Output = AuthenticatedPointResult<C>
-
operator.Source§impl<'a, C: CurveGroup> Sub<&'a AuthenticatedPointResult<C>> for CurvePoint<C>
lhs owned, rhs borrowed
impl<'a, C: CurveGroup> Sub<&'a AuthenticatedPointResult<C>> for CurvePoint<C>
lhs owned, rhs borrowed
Source§type Output = AuthenticatedPointResult<C>
type Output = AuthenticatedPointResult<C>
-
operator.Source§impl<C: CurveGroup> Sub<&CurvePoint<C>> for &AuthenticatedPointResult<C>
impl<C: CurveGroup> Sub<&CurvePoint<C>> for &AuthenticatedPointResult<C>
Source§type Output = AuthenticatedPointResult<C>
type Output = AuthenticatedPointResult<C>
-
operator.Source§fn sub(self, other: &CurvePoint<C>) -> AuthenticatedPointResult<C>
fn sub(self, other: &CurvePoint<C>) -> AuthenticatedPointResult<C>
-
operation. Read moreSource§impl<C: CurveGroup> Sub<&CurvePoint<C>> for &CurvePoint<C>
impl<C: CurveGroup> Sub<&CurvePoint<C>> for &CurvePoint<C>
Source§type Output = CurvePoint<C>
type Output = CurvePoint<C>
-
operator.Source§impl<C: CurveGroup> Sub<&CurvePoint<C>> for &MpcPointResult<C>
impl<C: CurveGroup> Sub<&CurvePoint<C>> for &MpcPointResult<C>
Source§type Output = MpcPointResult<C>
type Output = MpcPointResult<C>
-
operator.Source§impl<C: CurveGroup> Sub<&CurvePoint<C>> for &CurvePointResult<C>
impl<C: CurveGroup> Sub<&CurvePoint<C>> for &CurvePointResult<C>
Source§type Output = ResultHandle<C, CurvePoint<C>>
type Output = ResultHandle<C, CurvePoint<C>>
-
operator.Source§impl<'a, C: CurveGroup> Sub<&'a CurvePoint<C>> for AuthenticatedPointResult<C>
lhs owned, rhs borrowed
impl<'a, C: CurveGroup> Sub<&'a CurvePoint<C>> for AuthenticatedPointResult<C>
lhs owned, rhs borrowed
Source§type Output = AuthenticatedPointResult<C>
type Output = AuthenticatedPointResult<C>
-
operator.Source§impl<'a, C: CurveGroup> Sub<&'a CurvePoint<C>> for CurvePoint<C>
lhs owned, rhs borrowed
impl<'a, C: CurveGroup> Sub<&'a CurvePoint<C>> for CurvePoint<C>
lhs owned, rhs borrowed
Source§type Output = CurvePoint<C>
type Output = CurvePoint<C>
-
operator.Source§impl<'a, C: CurveGroup> Sub<&'a CurvePoint<C>> for MpcPointResult<C>
lhs owned, rhs borrowed
impl<'a, C: CurveGroup> Sub<&'a CurvePoint<C>> for MpcPointResult<C>
lhs owned, rhs borrowed
Source§type Output = MpcPointResult<C>
type Output = MpcPointResult<C>
-
operator.Source§impl<'a, C: CurveGroup> Sub<&'a CurvePoint<C>> for CurvePointResult<C>
lhs owned, rhs borrowed
impl<'a, C: CurveGroup> Sub<&'a CurvePoint<C>> for CurvePointResult<C>
lhs owned, rhs borrowed
Source§type Output = ResultHandle<C, CurvePoint<C>>
type Output = ResultHandle<C, CurvePoint<C>>
-
operator.Source§impl<C: CurveGroup> Sub<&ResultHandle<C, CurvePoint<C>>> for &CurvePoint<C>
impl<C: CurveGroup> Sub<&ResultHandle<C, CurvePoint<C>>> for &CurvePoint<C>
Source§type Output = ResultHandle<C, CurvePoint<C>>
type Output = ResultHandle<C, CurvePoint<C>>
-
operator.Source§impl<'a, C: CurveGroup> Sub<AuthenticatedPointResult<C>> for &'a CurvePoint<C>
lhs borrowed, rhs owned
impl<'a, C: CurveGroup> Sub<AuthenticatedPointResult<C>> for &'a CurvePoint<C>
lhs borrowed, rhs owned
Source§type Output = AuthenticatedPointResult<C>
type Output = AuthenticatedPointResult<C>
-
operator.Source§impl<C: CurveGroup> Sub<AuthenticatedPointResult<C>> for CurvePoint<C>
lhs owned, rhs owned
impl<C: CurveGroup> Sub<AuthenticatedPointResult<C>> for CurvePoint<C>
lhs owned, rhs owned
Source§type Output = AuthenticatedPointResult<C>
type Output = AuthenticatedPointResult<C>
-
operator.Source§impl<'a, C: CurveGroup> Sub<CurvePoint<C>> for &'a AuthenticatedPointResult<C>
lhs borrowed, rhs owned
impl<'a, C: CurveGroup> Sub<CurvePoint<C>> for &'a AuthenticatedPointResult<C>
lhs borrowed, rhs owned
Source§type Output = AuthenticatedPointResult<C>
type Output = AuthenticatedPointResult<C>
-
operator.Source§impl<'a, C: CurveGroup> Sub<CurvePoint<C>> for &'a CurvePoint<C>
lhs borrowed, rhs owned
impl<'a, C: CurveGroup> Sub<CurvePoint<C>> for &'a CurvePoint<C>
lhs borrowed, rhs owned
Source§type Output = CurvePoint<C>
type Output = CurvePoint<C>
-
operator.Source§impl<'a, C: CurveGroup> Sub<CurvePoint<C>> for &'a MpcPointResult<C>
lhs borrowed, rhs owned
impl<'a, C: CurveGroup> Sub<CurvePoint<C>> for &'a MpcPointResult<C>
lhs borrowed, rhs owned
Source§type Output = MpcPointResult<C>
type Output = MpcPointResult<C>
-
operator.Source§impl<'a, C: CurveGroup> Sub<CurvePoint<C>> for &'a CurvePointResult<C>
lhs borrowed, rhs owned
impl<'a, C: CurveGroup> Sub<CurvePoint<C>> for &'a CurvePointResult<C>
lhs borrowed, rhs owned
Source§type Output = ResultHandle<C, CurvePoint<C>>
type Output = ResultHandle<C, CurvePoint<C>>
-
operator.Source§impl<C: CurveGroup> Sub<CurvePoint<C>> for AuthenticatedPointResult<C>
lhs owned, rhs owned
impl<C: CurveGroup> Sub<CurvePoint<C>> for AuthenticatedPointResult<C>
lhs owned, rhs owned
Source§type Output = AuthenticatedPointResult<C>
type Output = AuthenticatedPointResult<C>
-
operator.Source§impl<C: CurveGroup> Sub<CurvePoint<C>> for MpcPointResult<C>
lhs owned, rhs owned
impl<C: CurveGroup> Sub<CurvePoint<C>> for MpcPointResult<C>
lhs owned, rhs owned
Source§type Output = MpcPointResult<C>
type Output = MpcPointResult<C>
-
operator.Source§impl<C: CurveGroup> Sub<CurvePoint<C>> for CurvePointResult<C>
lhs owned, rhs owned
impl<C: CurveGroup> Sub<CurvePoint<C>> for CurvePointResult<C>
lhs owned, rhs owned
Source§type Output = ResultHandle<C, CurvePoint<C>>
type Output = ResultHandle<C, CurvePoint<C>>
-
operator.Source§impl<C: CurveGroup> Sub for CurvePoint<C>
lhs owned, rhs owned
impl<C: CurveGroup> Sub for CurvePoint<C>
lhs owned, rhs owned
Source§type Output = CurvePoint<C>
type Output = CurvePoint<C>
-
operator.Source§impl<C: CurveGroup> SubAssign for CurvePoint<C>
impl<C: CurveGroup> SubAssign for CurvePoint<C>
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-=
operation. Read moreSource§impl<C: CurveGroup> Sum for CurvePoint<C>
impl<C: CurveGroup> Sum for CurvePoint<C>
impl<C: Copy + CurveGroup> Copy for CurvePoint<C>
impl<C: Eq + CurveGroup> Eq for CurvePoint<C>
impl<C: CurveGroup> StructuralPartialEq for CurvePoint<C>
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> 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
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>
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