Skip to main content

AnyKeyShare

Trait AnyKeyShare 

Source
pub trait AnyKeyShare<E: Curve>: AsRef<IncompleteKeyShare<E>> {
    // Provided methods
    fn n(&self) -> u16 { ... }
    fn min_signers(&self) -> u16 { ... }
    fn shared_public_key(&self) -> NonZero<Point<E>> { ... }
}
Expand description

Any (validated) key share

Implemented for both KeyShare and IncompleteKeyShare. Used in methods that accept both types of key shares, like reconstruct_secret_key.

Provided Methods§

Source

fn n(&self) -> u16

Returns amount of key co-holders

Source

fn min_signers(&self) -> u16

Returns threshold

Threshold is an amount of signers required to cooperate in order to sign a message and/or generate presignature

Source

fn shared_public_key(&self) -> NonZero<Point<E>>

Returns public key shared by signers

Implementors§