Type Alias cggmp21::IncompleteKeyShare

source ·
pub type IncompleteKeyShare<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 n doesn’t overflow u16::MAX, and that n >= 2
  • Signer index i is less than n
  • 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§

struct IncompleteKeyShare<E>(/* private fields */);