[−][src]Struct schnorr::threshold::Keys
Fields
u_i: Scalar
y_i: RistrettoPoint
party_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]
&self,
params: &ShamirSecretSharing,
blind_vec: &Vec<Scalar>,
y_vec: &Vec<RistrettoPoint>,
bc1_vec: &Vec<KeyGenBroadcastMessage1>,
parties: &[usize]
) -> Result<(VerifiableSS, Vec<Scalar>, usize), SchnorrError>
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]
&self,
params: &ShamirSecretSharing,
y_vec: &Vec<RistrettoPoint>,
secret_shares_vec: &Vec<Scalar>,
vss_scheme_vec: &Vec<VerifiableSS>,
index: &usize
) -> Result<SharedKeys, SchnorrError>
pub fn update_shared_key(
shared_key: &SharedKeys,
parties_in: &[usize],
secret_shares_vec: &Vec<Scalar>
) -> SharedKeys
[src]
shared_key: &SharedKeys,
parties_in: &[usize],
secret_shares_vec: &Vec<Scalar>
) -> SharedKeys
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> Cast<U> for T where
U: FromCast<T>,
U: FromCast<T>,
fn cast(self) -> U
impl<T> From<T> for T
[src]
impl<T> FromBits<T> for T
fn from_bits(t: T) -> T
impl<T> FromCast<T> for T
fn from_cast(t: T) -> T
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> IntoBits<U> for T where
U: FromBits<T>,
U: FromBits<T>,
fn into_bits(self) -> U
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,