pub struct SecretKeySet { /* private fields */ }
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 constuctor is identical to the SecretKey::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 constuctor is identical to the SecretKey::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§

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.