pub struct Contribution<P: OsstPoint> {
pub index: u32,
pub commitment: P,
pub response: P::Scalar,
}Expand description
A single custodian’s contribution to the threshold proof
Fields§
§index: u32Custodian’s index (1-indexed)
commitment: PSchnorr commitment u_i = g^{r_i}
response: P::ScalarSchnorr response s_i = r_i + c_i * x_i
Implementations§
Trait Implementations§
Source§impl<P: Clone + OsstPoint> Clone for Contribution<P>
impl<P: Clone + OsstPoint> Clone for Contribution<P>
Source§fn clone(&self) -> Contribution<P>
fn clone(&self) -> Contribution<P>
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<P> Freeze for Contribution<P>
impl<P> RefUnwindSafe for Contribution<P>
impl<P> Send for Contribution<P>
impl<P> Sync for Contribution<P>
impl<P> Unpin for Contribution<P>
impl<P> UnwindSafe for Contribution<P>
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