pub struct KeyPackage {
pub identifier: u16,
pub group_public_key: AffinePoint,
pub min_participants: u16,
pub max_participants: u16,
/* private fields */
}Expand description
A participant’s key package containing their secret share and group info.
Fields§
§identifier: u16Participant identifier (1-based, non-zero).
group_public_key: AffinePointThe group’s combined public key PK = G * s.
min_participants: u16Min participants required to sign (threshold).
max_participants: u16Max participants that hold shares.
Implementations§
Source§impl KeyPackage
impl KeyPackage
Get the secret share scalar.
Sourcepub fn public_key(&self) -> AffinePoint
pub fn public_key(&self) -> AffinePoint
Compute the public key corresponding to this share: PK_i = G * sk_i.
Get the secret share bytes (for serialization).
Trait Implementations§
Source§impl Clone for KeyPackage
impl Clone for KeyPackage
Source§fn clone(&self) -> KeyPackage
fn clone(&self) -> KeyPackage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for KeyPackage
impl RefUnwindSafe for KeyPackage
impl Send for KeyPackage
impl Sync for KeyPackage
impl Unpin for KeyPackage
impl UnsafeUnpin for KeyPackage
impl UnwindSafe for KeyPackage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more