[][src]Struct schnorr::threshold::Keys

pub struct Keys {
    pub u_i: Scalar,
    pub y_i: RistrettoPoint,
    pub party_index: usize,
}

Fields

u_i: Scalary_i: RistrettoPointparty_index: usize

Methods

impl Keys[src]

pub fn phase1_create(index: usize) -> Keys[src]

Phase 1 Each player selects a random Scalar and computes its assoicated "Public Point" basically raised to the group basepoint
This is a keypair

pub fn phase1_broadcast(&self) -> (KeyGenBroadcastMessage1, Scalar)[src]

Phase 1.1 Each Player samples a random nonce Scalar to produce a commitment to the PublicPoint and shares this hash based commitement with the other players.

pub fn phase1_verify_com_phase2_distribute(
    &self,
    params: &ShamirSecretSharing,
    blind_vec: &Vec<Scalar>,
    y_vec: &Vec<RistrettoPoint>,
    bc1_vec: &Vec<KeyGenBroadcastMessage1>,
    parties: &[usize]
) -> Result<(VerifiableSS, Vec<Scalar>, usize), SchnorrError>
[src]

pub fn phase2_verify_vss_construct_keypair(
    &self,
    params: &ShamirSecretSharing,
    y_vec: &Vec<RistrettoPoint>,
    secret_shares_vec: &Vec<Scalar>,
    vss_scheme_vec: &Vec<VerifiableSS>,
    index: &usize
) -> Result<SharedKeys, SchnorrError>
[src]

pub fn update_shared_key(
    shared_key: &SharedKeys,
    parties_in: &[usize],
    secret_shares_vec: &Vec<Scalar>
) -> SharedKeys
[src]

Auto Trait Implementations

impl RefUnwindSafe for Keys

impl Send for Keys

impl Sync for Keys

impl Unpin for Keys

impl UnwindSafe for Keys

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, U> Cast<U> for T where
    U: FromCast<T>, 

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

impl<T> FromBits<T> for T

impl<T> FromCast<T> for T

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

impl<T, U> IntoBits<U> for T where
    U: FromBits<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

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