Struct StarkPoint

Source
pub struct StarkPoint(/* private fields */);
Expand description

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

Implementations§

Source§

impl StarkPoint

Source

pub fn identity() -> StarkPoint

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 to_affine(&self) -> Affine<StarknetCurveConfig>

Convert the point to affine

Source

pub fn from_affine_coords(x: BigUint, y: BigUint) -> Self

Construct a StarkPoint from its affine coordinates

Source

pub fn generator() -> StarkPoint

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<StarkPoint, SerializationError>

Deserialize a point from a byte buffer

Source

pub fn from_uniform_bytes(buf: [u8; 96]) -> Result<StarkPoint, HashToCurveError>

Convert a uniform byte buffer to a StarkPoint 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 StarkPoint

MSM Implementation

Source

pub fn msm(scalars: &[Scalar], points: &[StarkPoint]) -> StarkPoint

Compute the multiscalar multiplication of the given scalars and points

Source

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

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

Source

pub fn msm_results( scalars: &[ScalarResult], points: &[StarkPoint], ) -> StarkPointResult

Compute the multiscalar multiplication of the given points with ScalarResults

Source

pub fn msm_results_iter<I, J>(scalars: I, points: J) -> StarkPointResult
where I: IntoIterator<Item = ScalarResult>, J: IntoIterator<Item = StarkPoint>,

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], points: &[StarkPoint], ) -> AuthenticatedStarkPointResult

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

Source

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

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> Add<&'a AuthenticatedStarkPointResult> for &'a StarkPoint

lhs borrowed, rhs borrowed

Source§

type Output = AuthenticatedStarkPointResult

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a> Add<&'a AuthenticatedStarkPointResult> for StarkPoint

lhs owned, rhs borrowed

Source§

type Output = AuthenticatedStarkPointResult

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a> Add<&'a MpcStarkPointResult> for &'a StarkPoint

lhs borrowed, rhs borrowed

Source§

type Output = MpcStarkPointResult

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a> Add<&'a MpcStarkPointResult> for StarkPoint

lhs owned, rhs borrowed

Source§

type Output = MpcStarkPointResult

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<&Projective<StarknetCurveConfig>> for &StarkPoint

Source§

type Output = StarkPoint

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &Projective<StarknetCurveConfig>) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a> Add<&'a Projective<StarknetCurveConfig>> for StarkPoint

lhs owned, rhs borrowed

Source§

type Output = StarkPoint

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a> Add<&'a ResultHandle<StarkPoint>> for &'a StarkPoint

lhs borrowed, rhs borrowed

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a> Add<&'a ResultHandle<StarkPoint>> for StarkPoint

lhs owned, rhs borrowed

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<&StarkPoint> for &AuthenticatedStarkPointResult

Source§

type Output = AuthenticatedStarkPointResult

The resulting type after applying the + operator.
Source§

fn add(self, other: &StarkPoint) -> AuthenticatedStarkPointResult

Performs the + operation. Read more
Source§

impl Add<&StarkPoint> for &MpcStarkPointResult

Source§

type Output = MpcStarkPointResult

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a> Add<&'a StarkPoint> for &'a Projective<StarknetCurveConfig>

lhs borrowed, rhs borrowed

Source§

type Output = StarkPoint

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<&StarkPoint> for &StarkPointResult

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<&StarkPoint> for &StarkPoint

Source§

type Output = StarkPoint

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a> Add<&'a StarkPoint> for AuthenticatedStarkPointResult

lhs owned, rhs borrowed

Source§

type Output = AuthenticatedStarkPointResult

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a> Add<&'a StarkPoint> for MpcStarkPointResult

lhs owned, rhs borrowed

Source§

type Output = MpcStarkPointResult

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a> Add<&'a StarkPoint> for Projective<StarknetCurveConfig>

lhs owned, rhs borrowed

Source§

type Output = StarkPoint

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a> Add<&'a StarkPoint> for StarkPointResult

lhs owned, rhs borrowed

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a> Add<&'a StarkPoint> for StarkPoint

lhs owned, rhs borrowed

Source§

type Output = StarkPoint

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a> Add<AuthenticatedStarkPointResult> for &'a StarkPoint

lhs borrowed, rhs owned

Source§

type Output = AuthenticatedStarkPointResult

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<AuthenticatedStarkPointResult> for StarkPoint

lhs owned, rhs owned

Source§

type Output = AuthenticatedStarkPointResult

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a> Add<MpcStarkPointResult> for &'a StarkPoint

lhs borrowed, rhs owned

Source§

type Output = MpcStarkPointResult

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<MpcStarkPointResult> for StarkPoint

lhs owned, rhs owned

Source§

type Output = MpcStarkPointResult

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a> Add<Projective<StarknetCurveConfig>> for &'a StarkPoint

lhs borrowed, rhs owned

Source§

type Output = StarkPoint

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<Projective<StarknetCurveConfig>> for StarkPoint

lhs owned, rhs owned

Source§

type Output = StarkPoint

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a> Add<ResultHandle<StarkPoint>> for &'a StarkPoint

lhs borrowed, rhs owned

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<ResultHandle<StarkPoint>> for StarkPoint

lhs owned, rhs owned

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a> Add<StarkPoint> for &'a AuthenticatedStarkPointResult

lhs borrowed, rhs owned

Source§

type Output = AuthenticatedStarkPointResult

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a> Add<StarkPoint> for &'a MpcStarkPointResult

lhs borrowed, rhs owned

Source§

type Output = MpcStarkPointResult

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a> Add<StarkPoint> for &'a Projective<StarknetCurveConfig>

lhs borrowed, rhs owned

Source§

type Output = StarkPoint

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a> Add<StarkPoint> for &'a StarkPointResult

lhs borrowed, rhs owned

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a> Add<StarkPoint> for &'a StarkPoint

lhs borrowed, rhs owned

Source§

type Output = StarkPoint

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<StarkPoint> for AuthenticatedStarkPointResult

lhs owned, rhs owned

Source§

type Output = AuthenticatedStarkPointResult

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<StarkPoint> for MpcStarkPointResult

lhs owned, rhs owned

Source§

type Output = MpcStarkPointResult

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<StarkPoint> for Projective<StarknetCurveConfig>

lhs owned, rhs owned

Source§

type Output = StarkPoint

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<StarkPoint> for StarkPointResult

lhs owned, rhs owned

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add for StarkPoint

lhs owned, rhs owned

Source§

type Output = StarkPoint

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl AddAssign for StarkPoint

Source§

fn add_assign(&mut self, rhs: Self)

Performs the += operation. Read more
Source§

impl Clone for StarkPoint

Source§

fn clone(&self) -> StarkPoint

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 StarkPoint

Source§

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

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

impl<'de> Deserialize<'de> for StarkPoint

Source§

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

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

impl From<&ResultValue> for StarkPoint

Source§

fn from(value: &ResultValue) -> Self

Converts to this type from the input type.
Source§

impl From<Projective<StarknetCurveConfig>> for StarkPoint

Source§

fn from(p: Projective<StarknetCurveConfig>) -> Self

Converts to this type from the input type.
Source§

impl From<ResultValue> for StarkPoint

Source§

fn from(value: ResultValue) -> Self

Converts to this type from the input type.
Source§

impl From<StarkPoint> for NetworkPayload

Source§

fn from(point: StarkPoint) -> Self

Converts to this type from the input type.
Source§

impl Mul<&AuthenticatedScalarResult> for &StarkPoint

Source§

type Output = AuthenticatedStarkPointResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<&MpcScalarResult> for &StarkPoint

Source§

type Output = MpcStarkPointResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<&ResultHandle<Scalar>> for &StarkPoint

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a ResultHandle<Scalar>> for StarkPoint

lhs owned, rhs borrowed

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<&Scalar> for &StarkPoint

Source§

type Output = StarkPoint

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a Scalar> for StarkPoint

lhs owned, rhs borrowed

Source§

type Output = StarkPoint

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a StarkPoint> for &'a AuthenticatedScalarResult

lhs borrowed, rhs borrowed

Source§

type Output = AuthenticatedStarkPointResult

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a StarkPoint) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a StarkPoint> for &'a MpcScalarResult

lhs borrowed, rhs borrowed

Source§

type Output = MpcStarkPointResult

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a StarkPoint) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a StarkPoint> for &'a ScalarResult

lhs borrowed, rhs borrowed

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a StarkPoint) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a StarkPoint> for &'a Scalar

lhs borrowed, rhs borrowed

Source§

type Output = StarkPoint

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a StarkPoint) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a StarkPoint> for AuthenticatedScalarResult

lhs owned, rhs borrowed

Source§

type Output = AuthenticatedStarkPointResult

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a StarkPoint) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a StarkPoint> for MpcScalarResult

lhs owned, rhs borrowed

Source§

type Output = MpcStarkPointResult

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a StarkPoint) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a StarkPoint> for ScalarResult

lhs owned, rhs borrowed

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a StarkPoint) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a StarkPoint> for Scalar

lhs owned, rhs borrowed

Source§

type Output = StarkPoint

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a StarkPoint) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<ResultHandle<Scalar>> for &'a StarkPoint

lhs borrowed, rhs owned

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<ResultHandle<Scalar>> for StarkPoint

lhs owned, rhs owned

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'a> Mul<Scalar> for &'a StarkPoint

lhs borrowed, rhs owned

Source§

type Output = StarkPoint

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<Scalar> for StarkPoint

lhs owned, rhs owned

Source§

type Output = StarkPoint

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'a> Mul<StarkPoint> for &'a AuthenticatedScalarResult

lhs borrowed, rhs owned

Source§

type Output = AuthenticatedStarkPointResult

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: StarkPoint) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<StarkPoint> for &'a MpcScalarResult

lhs borrowed, rhs owned

Source§

type Output = MpcStarkPointResult

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: StarkPoint) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<StarkPoint> for &'a ScalarResult

lhs borrowed, rhs owned

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: StarkPoint) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<StarkPoint> for &'a Scalar

lhs borrowed, rhs owned

Source§

type Output = StarkPoint

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: StarkPoint) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<StarkPoint> for AuthenticatedScalarResult

lhs owned, rhs owned

Source§

type Output = AuthenticatedStarkPointResult

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: StarkPoint) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<StarkPoint> for MpcScalarResult

lhs owned, rhs owned

Source§

type Output = MpcStarkPointResult

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: StarkPoint) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<StarkPoint> for ScalarResult

lhs owned, rhs owned

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: StarkPoint) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<StarkPoint> for Scalar

lhs owned, rhs owned

Source§

type Output = StarkPoint

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: StarkPoint) -> Self::Output

Performs the * operation. Read more
Source§

impl MulAssign<&Scalar> for StarkPoint

Source§

fn mul_assign(&mut self, rhs: &Scalar)

Performs the *= operation. Read more
Source§

impl Neg for &StarkPoint

Source§

type Output = StarkPoint

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl Neg for StarkPoint

Source§

type Output = StarkPoint

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl PartialEq for StarkPoint

Source§

fn eq(&self, other: &StarkPoint) -> 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 StarkPoint

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> Sub<&'a AuthenticatedStarkPointResult> for &'a StarkPoint

lhs borrowed, rhs borrowed

Source§

type Output = AuthenticatedStarkPointResult

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &'a AuthenticatedStarkPointResult) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a> Sub<&'a AuthenticatedStarkPointResult> for StarkPoint

lhs owned, rhs borrowed

Source§

type Output = AuthenticatedStarkPointResult

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &'a AuthenticatedStarkPointResult) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<&ResultHandle<StarkPoint>> for &StarkPoint

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<&StarkPoint> for &AuthenticatedStarkPointResult

Source§

type Output = AuthenticatedStarkPointResult

The resulting type after applying the - operator.
Source§

fn sub(self, other: &StarkPoint) -> AuthenticatedStarkPointResult

Performs the - operation. Read more
Source§

impl Sub<&StarkPoint> for &MpcStarkPointResult

Source§

type Output = MpcStarkPointResult

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<&StarkPoint> for &StarkPointResult

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<&StarkPoint> for &StarkPoint

Source§

type Output = StarkPoint

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<'a> Sub<&'a StarkPoint> for AuthenticatedStarkPointResult

lhs owned, rhs borrowed

Source§

type Output = AuthenticatedStarkPointResult

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &'a StarkPoint) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a> Sub<&'a StarkPoint> for MpcStarkPointResult

lhs owned, rhs borrowed

Source§

type Output = MpcStarkPointResult

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &'a StarkPoint) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a> Sub<&'a StarkPoint> for StarkPointResult

lhs owned, rhs borrowed

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &'a StarkPoint) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a> Sub<&'a StarkPoint> for StarkPoint

lhs owned, rhs borrowed

Source§

type Output = StarkPoint

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &'a StarkPoint) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a> Sub<AuthenticatedStarkPointResult> for &'a StarkPoint

lhs borrowed, rhs owned

Source§

type Output = AuthenticatedStarkPointResult

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<AuthenticatedStarkPointResult> for StarkPoint

lhs owned, rhs owned

Source§

type Output = AuthenticatedStarkPointResult

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<'a> Sub<StarkPoint> for &'a AuthenticatedStarkPointResult

lhs borrowed, rhs owned

Source§

type Output = AuthenticatedStarkPointResult

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<'a> Sub<StarkPoint> for &'a MpcStarkPointResult

lhs borrowed, rhs owned

Source§

type Output = MpcStarkPointResult

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<'a> Sub<StarkPoint> for &'a StarkPointResult

lhs borrowed, rhs owned

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<'a> Sub<StarkPoint> for &'a StarkPoint

lhs borrowed, rhs owned

Source§

type Output = StarkPoint

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<StarkPoint> for AuthenticatedStarkPointResult

lhs owned, rhs owned

Source§

type Output = AuthenticatedStarkPointResult

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<StarkPoint> for MpcStarkPointResult

lhs owned, rhs owned

Source§

type Output = MpcStarkPointResult

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<StarkPoint> for StarkPointResult

lhs owned, rhs owned

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub for StarkPoint

lhs owned, rhs owned

Source§

type Output = StarkPoint

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl SubAssign for StarkPoint

Source§

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more
Source§

impl Sum for StarkPoint

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 Copy for StarkPoint

Source§

impl Eq for StarkPoint

Source§

impl StructuralPartialEq for StarkPoint

Auto Trait Implementations§

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>,