pub fn receive_precommitments(
        self,
        nonce_precommitments: Vec<NoncePrecommitment>,
    ) -> (PartyAwaitingCommitments<'t>, NonceCommitment) {
        let counterparties = self
            .counterparties
            .into_iter()
            .zip(nonce_precommitments)
            .map(|(counterparty, precommitment)| counterparty.precommit_nonce(precommitment))
            .collect();
        // Store received nonce precommitments in next state
        (
            PartyAwaitingCommitments {
                transcript: self.transcript,
                multikey: self.multikey,
                x_i: self.x_i,
                r_i: self.r_i,
                counterparties,
            },
            self.R_i,
        )
    }
/// Provide nonce precommitments to the party and transition to the next round.
Provide nonce precommitments to the party and transition to the next round.
Provide nonce precommitments to the party and transition to the next round .
pub fn receive_precommitments(
        self,
        nonce_precommitments: Vec<NoncePrecommitment>,
    ) -> (PartyAwaitingCommitments<'t>, NonceCommitment) {
        let counterparties = self
            .counterparties
            .into_iter()
            .zip(nonce_precommitments)
            .map(|(counterparty, precommitment)| counterparty.precommit_nonce(precommitment))
            .collect();
        // Store received nonce precommitments in next state
        (
            PartyAwaitingCommitments {
                transcript: self.transcript,
                multikey: self.multikey,
                x_i: self.x_i,
                r_i: self.r_i,
                counterparties,
            },
            self.R_i,
        )
    }
pub fn receive_precommitments ( self , nonce_precommitments : Vec < NoncePrecommitment > , ) -> ( PartyAwaitingCommitments < ' t > , NonceCommitment ) { let counterparties = self . counterparties . into_iter ( ) . zip ( nonce_precommitments ) . map ( | ( counterparty , precommitment ) | counterparty . precommit_nonce ( precommitment ) ) . collect ( ) ; // Store received nonce precommitments in next state ( PartyAwaitingCommitments { transcript : self . transcript , multikey : self . multikey , x_i : self . x_i , r_i : self . r_i , counterparties , } , self . R_i , ) }
Provide nonce precommitments to the party and transition to the next round.
Provide nonce precommitments to the party and transition to the next round .
self
nonce_precommitments
Vec<NoncePrecommitment>
self
nonce_precommitments
Vec<NoncePrecommitment>