Struct MpcStarkPointResult

Source
pub struct MpcStarkPointResult { /* private fields */ }
Expand description

Defines a secret shared type of a curve point

Implementations§

Source§

impl MpcStarkPointResult

Defines the result handle type that represents a future result of an MpcStarkPoint

Source

pub fn new_shared(value: StarkPointResult) -> MpcStarkPointResult

Creates an MpcStarkPoint from a given underlying point assumed to be a secret share

Source

pub fn id(&self) -> ResultId

Get the ID of the underlying share’s result

Source

pub fn fabric(&self) -> &MpcFabric

Borrow the fabric that this result is allocated in

Source

pub fn open(&self) -> ResultHandle<StarkPoint>

Open the value; both parties send their shares to the counterparty

Source

pub fn open_batch(values: &[MpcStarkPointResult]) -> Vec<StarkPointResult>

Open a batch of values

Source§

impl MpcStarkPointResult

Source

pub fn batch_add( a: &[MpcStarkPointResult], b: &[MpcStarkPointResult], ) -> Vec<MpcStarkPointResult>

Add two batches of values

Source

pub fn batch_add_public( a: &[MpcStarkPointResult], b: &[StarkPointResult], ) -> Vec<MpcStarkPointResult>

Add a batch of MpcStarkPointResults to a batch of StarkPointResults

Source§

impl MpcStarkPointResult

Source

pub fn batch_sub( a: &[MpcStarkPointResult], b: &[MpcStarkPointResult], ) -> Vec<MpcStarkPointResult>

Subtract two batches of values

Source

pub fn batch_sub_public( a: &[MpcStarkPointResult], b: &[StarkPointResult], ) -> Vec<MpcStarkPointResult>

Subtract a batch of MpcStarkPointResults to a batch of StarkPointResults

Source§

impl MpcStarkPointResult

Source

pub fn batch_neg(values: &[MpcStarkPointResult]) -> Vec<MpcStarkPointResult>

Negate a batch of values

Source§

impl MpcStarkPointResult

Source

pub fn batch_mul( a: &[MpcScalarResult], b: &[MpcStarkPointResult], ) -> Vec<MpcStarkPointResult>

Multiply a batch of MpcStarkPointResults with a batch of MpcScalarResults

Source

pub fn batch_mul_public( a: &[ScalarResult], b: &[MpcStarkPointResult], ) -> Vec<MpcStarkPointResult>

Multiply a batch of MpcStarkPointResults with a batch of ScalarResults

Source

pub fn batch_mul_generator(a: &[MpcScalarResult]) -> Vec<MpcStarkPointResult>

Multiply a batch of MpcScalarResults by the generator

Trait Implementations§

Source§

impl Add<&MpcStarkPointResult> for &MpcStarkPointResult

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<&'a MpcStarkPointResult> for &'a StarkPointResult

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 &'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 MpcStarkPointResult

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<'a> Add<&'a MpcStarkPointResult> for StarkPointResult

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<'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<&ResultHandle<StarkPoint>> for &MpcStarkPointResult

Source§

type Output = MpcStarkPointResult

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

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

lhs owned, rhs borrowed

Source§

type Output = MpcStarkPointResult

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 &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 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<MpcStarkPointResult> for &'a MpcStarkPointResult

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<'a> Add<MpcStarkPointResult> for &'a StarkPointResult

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<'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 StarkPointResult

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 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<ResultHandle<StarkPoint>> for &'a MpcStarkPointResult

lhs borrowed, rhs owned

Source§

type Output = MpcStarkPointResult

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 MpcStarkPointResult

lhs owned, rhs owned

Source§

type Output = MpcStarkPointResult

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 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 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 for MpcStarkPointResult

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 Clone for MpcStarkPointResult

Source§

fn clone(&self) -> MpcStarkPointResult

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 MpcStarkPointResult

Source§

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

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

impl From<ResultHandle<StarkPoint>> for MpcStarkPointResult

Source§

fn from(value: StarkPointResult) -> Self

Converts to this type from the input type.
Source§

impl Mul<&MpcScalarResult> for &MpcStarkPointResult

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<'a> Mul<&'a MpcScalarResult> for MpcStarkPointResult

lhs owned, rhs borrowed

Source§

type Output = MpcStarkPointResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

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

lhs borrowed, rhs borrowed

Source§

type Output = MpcStarkPointResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

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

lhs borrowed, rhs borrowed

Source§

type Output = MpcStarkPointResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

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

lhs borrowed, rhs borrowed

Source§

type Output = MpcStarkPointResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

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

lhs owned, rhs borrowed

Source§

type Output = MpcStarkPointResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

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

lhs owned, rhs borrowed

Source§

type Output = MpcStarkPointResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

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

lhs owned, rhs borrowed

Source§

type Output = MpcStarkPointResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

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

Source§

type Output = MpcStarkPointResult

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 MpcStarkPointResult

lhs owned, rhs borrowed

Source§

type Output = MpcStarkPointResult

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 &MpcStarkPointResult

Source§

type Output = MpcStarkPointResult

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 MpcStarkPointResult

lhs owned, rhs borrowed

Source§

type Output = MpcStarkPointResult

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<MpcScalarResult> for &'a MpcStarkPointResult

lhs borrowed, rhs owned

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<MpcScalarResult> for MpcStarkPointResult

lhs owned, rhs owned

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<'a> Mul<MpcStarkPointResult> for &'a MpcScalarResult

lhs borrowed, rhs owned

Source§

type Output = MpcStarkPointResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

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

lhs borrowed, rhs owned

Source§

type Output = MpcStarkPointResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

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

lhs borrowed, rhs owned

Source§

type Output = MpcStarkPointResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<MpcStarkPointResult> for MpcScalarResult

lhs owned, rhs owned

Source§

type Output = MpcStarkPointResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<MpcStarkPointResult> for ScalarResult

lhs owned, rhs owned

Source§

type Output = MpcStarkPointResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<MpcStarkPointResult> for Scalar

lhs owned, rhs owned

Source§

type Output = MpcStarkPointResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

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

lhs borrowed, rhs owned

Source§

type Output = MpcStarkPointResult

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 MpcStarkPointResult

lhs owned, rhs owned

Source§

type Output = MpcStarkPointResult

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 MpcStarkPointResult

lhs borrowed, rhs owned

Source§

type Output = MpcStarkPointResult

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 MpcStarkPointResult

lhs owned, rhs owned

Source§

type Output = MpcStarkPointResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Neg for &MpcStarkPointResult

Source§

type Output = MpcStarkPointResult

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl Neg for MpcStarkPointResult

Source§

type Output = MpcStarkPointResult

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl Sub<&MpcStarkPointResult> for &MpcStarkPointResult

Source§

type Output = MpcStarkPointResult

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

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

lhs owned, rhs borrowed

Source§

type Output = MpcStarkPointResult

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

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

Source§

type Output = MpcStarkPointResult

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

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

lhs owned, rhs borrowed

Source§

type Output = MpcStarkPointResult

The resulting type after applying the - operator.
Source§

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

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<'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<MpcStarkPointResult> for &'a MpcStarkPointResult

lhs borrowed, rhs owned

Source§

type Output = MpcStarkPointResult

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

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

lhs borrowed, rhs owned

Source§

type Output = MpcStarkPointResult

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<ResultHandle<StarkPoint>> for MpcStarkPointResult

lhs owned, rhs owned

Source§

type Output = MpcStarkPointResult

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: StarkPointResult) -> 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 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 for MpcStarkPointResult

lhs owned, rhs owned

Source§

type Output = MpcStarkPointResult

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more

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