pub struct DkgResult {
pub public_key_set: PublicKeySet,
pub secret_key_share: Option<SecretKeyShare>,
}Expand description
DKG result
Fields§
§public_key_set: PublicKeySetPublic key set to verify threshold signatures
Secret Key share: None if the node was not participating in the DKG and did not receive encrypted shares.
Implementations§
Source§impl DkgResult
impl DkgResult
Sourcepub fn new(
public_key_set: PublicKeySet,
secret_key_share: Option<SecretKeyShare>,
) -> Self
pub fn new( public_key_set: PublicKeySet, secret_key_share: Option<SecretKeyShare>, ) -> Self
Create DkgResult from components
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DkgResult
impl RefUnwindSafe for DkgResult
impl Send for DkgResult
impl Sync for DkgResult
impl Unpin for DkgResult
impl UnsafeUnpin for DkgResult
impl UnwindSafe for DkgResult
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