Struct vsss_rs::pedersen::StdPedersenResult

source ·
pub struct StdPedersenResult<G, I, S>
where G: Group + GroupEncoding + Default, I: ShareIdentifier, S: Share<Identifier = I>,
{ /* private fields */ }
Expand description

The std result to use when an allocator is available

Trait Implementations§

source§

impl<G, I, S> PedersenResult<G, I, S> for StdPedersenResult<G, I, S>
where G: Group + GroupEncoding + Default, I: ShareIdentifier, S: Share<Identifier = I>,

§

type ShareSet = Vec<S>

The secret shares
§

type FeldmanVerifierSet = Vec<G>

The feldman verifier set
§

type PedersenVerifierSet = Vec<G>

The pedersen verifier set
source§

fn new( blinder: G::Scalar, secret_shares: Self::ShareSet, blinder_shares: Self::ShareSet, feldman_verifier_set: Self::FeldmanVerifierSet, pedersen_verifier_set: Self::PedersenVerifierSet ) -> Self

Create a new result
source§

fn blinder(&self) -> G::Scalar

The blinder used by split secret
source§

fn secret_shares(&self) -> &Self::ShareSet

The secret shares generated by split secret
source§

fn blinder_shares(&self) -> &Self::ShareSet

The blinder shares generated by split secret
source§

fn feldman_verifier_set(&self) -> &Self::FeldmanVerifierSet

The feldman verifier set for verifying secrets w/o blinders
source§

fn pedersen_verifier_set(&self) -> &Self::PedersenVerifierSet

The pedersen verifier set for verifying secrets w/blinders

Auto Trait Implementations§

§

impl<G, I, S> Freeze for StdPedersenResult<G, I, S>
where <G as Group>::Scalar: Freeze,

§

impl<G, I, S> RefUnwindSafe for StdPedersenResult<G, I, S>

§

impl<G, I, S> Send for StdPedersenResult<G, I, S>
where S: Send,

§

impl<G, I, S> Sync for StdPedersenResult<G, I, S>
where S: Sync,

§

impl<G, I, S> Unpin for StdPedersenResult<G, I, S>
where <G as Group>::Scalar: Unpin, S: Unpin, G: Unpin,

§

impl<G, I, S> UnwindSafe for StdPedersenResult<G, I, S>
where <G as Group>::Scalar: UnwindSafe, S: UnwindSafe, G: 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> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

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> Same for T

§

type Output = T

Should always be Self
source§

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

§

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

§

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.