Struct blsttc::SecretKeySet [−][src]
pub struct SecretKeySet { /* fields omitted */ }
Expand description
A secret key and an associated set of secret key shares.
Implementations
Creates a set of secret key shares, where any threshold + 1
of them can collaboratively
sign and decrypt. This constructor is identical to the SecretKeySet::try_random()
in every
way except that this constructor panics if the other returns an error.
Panic
Panics if the threshold
is too large for the coefficients to fit into a Vec
.
Creates a set of secret key shares, where any threshold + 1
of them can collaboratively
sign and decrypt. This constructor is identical to the SecretKeySet::random()
in every
way except that this constructor returns an Err
where the random
would panic.
Returns the threshold t
: any set of t + 1
signature shares can be combined into a full
signature.
Returns the i
-th secret key share.
Returns the corresponding public key set. That information can be shared publicly.
Trait Implementations
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for SecretKeySet
impl Send for SecretKeySet
impl Sync for SecretKeySet
impl Unpin for SecretKeySet
impl UnwindSafe for SecretKeySet
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V