pub type CoreKeyShare<E> = Valid<DirtyCoreKeyShare<E>>;Expand description
Core key share
Core key share is type alias to DirtyCoreKeyShare wrapped into Valid<T>, meaning
that the key share has been validated that:
- Number of signers
ndoesn’t overflowu16::MAX, and that n >= 2 - Signer index
iis less thann - Signer public commitment matches the secret share
- Threshold value is within range
2 <= t <= n - All signers commitments sum up to public key
It’s impossible to obtain CoreKeyShare for the key share that doesn’t meet above requirements.
Only immutable access to the key share is provided. If you need to change content of the key share,
you need to obtain dirty key share via Valid::into_inner, modify the key share, and validate it
again to obtain CoreKeyShare.
Aliased Type§
pub struct CoreKeyShare<E>(/* private fields */);Implementations§
Trait Implementations§
Source§fn as_ref(&self) -> &CoreKeyShare<E>
fn as_ref(&self) -> &CoreKeyShare<E>
Converts this type into a shared reference of the (usually inferred) input type.