[][src]Struct frost_dalek::keygen::IndividualPublicKey

pub struct IndividualPublicKey {
    pub index: u32,
    pub share: RistrettoPoint,
}

A public verification share for a participant.

Any participant can recalculate the public verification share, which is the public half of a SecretKey, of any other participant in the protocol.

Fields

index: u32

The participant index to which this key belongs.

share: RistrettoPoint

The public verification share.

Implementations

impl IndividualPublicKey[src]

pub fn verify(
    &self,
    parameters: &Parameters,
    commitments: &[RistrettoPoint]
) -> Result<(), ()>
[src]

Any participant can compute the public verification share of any other participant.

This is done by re-computing each IndividualPublicKey as \(Y_i\) s.t.:

\[ Y_i = \prod_{j=1}^{n} \prod_{k=0}^{t-1} \phi_{jk}^{i^{k} \mod q} \]

for each Participant index \(i\).

Inputs

Returns

A Result with either an empty Ok or Err value, depending on whether or not the verification was successful.

Trait Implementations

impl Clone for IndividualPublicKey[src]

impl Debug for IndividualPublicKey[src]

impl From<&'_ SecretKey> for IndividualPublicKey[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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