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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.