pub struct PartyAwaitingBitChallenge<'a> { /* private fields */ }
Expand description
A party which has committed to the bits of its value and is waiting for the aggregated value challenge from the dealer.
Implementations§
source§impl<'a> PartyAwaitingBitChallenge<'a>
impl<'a> PartyAwaitingBitChallenge<'a>
sourcepub fn apply_challenge(
self,
vc: &BitChallenge
) -> (PartyAwaitingPolyChallenge, PolyCommitment)
pub fn apply_challenge( self, vc: &BitChallenge ) -> (PartyAwaitingPolyChallenge, PolyCommitment)
Receive a BitChallenge
from the dealer and use it to
compute commitments to the party’s polynomial coefficients.
sourcepub fn apply_challenge_with_rng<T: RngCore + CryptoRng>(
self,
vc: &BitChallenge,
rng: &mut T
) -> (PartyAwaitingPolyChallenge, PolyCommitment)
pub fn apply_challenge_with_rng<T: RngCore + CryptoRng>( self, vc: &BitChallenge, rng: &mut T ) -> (PartyAwaitingPolyChallenge, PolyCommitment)
Receive a BitChallenge
from the dealer and use it to
compute commitments to the party’s polynomial coefficients.