pub struct DkgContribution {
pub party_idx: u32,
pub shares: HashMap<u32, String>,
pub commitment_hex: String,
}Expand description
A DKG contribution from one party.
Fields§
§party_idx: u32Shamir share for each other party.
commitment_hex: StringVSS commitment (SEC1 compressed, hex).
Trait Implementations§
Source§impl Clone for DkgContribution
impl Clone for DkgContribution
Source§fn clone(&self) -> DkgContribution
fn clone(&self) -> DkgContribution
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DkgContribution
impl Debug for DkgContribution
Source§impl<'de> Deserialize<'de> for DkgContribution
impl<'de> Deserialize<'de> for DkgContribution
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DkgContribution
impl RefUnwindSafe for DkgContribution
impl Send for DkgContribution
impl Sync for DkgContribution
impl Unpin for DkgContribution
impl UnsafeUnpin for DkgContribution
impl UnwindSafe for DkgContribution
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