/// Handles a `ThresholdSign` message. If there is output, starts the next epoch. The function
/// may output a decision value.
Handles a `ThresholdSign` message. If there is output, starts the next epoch. The function
may output a decision value.
Handles a ` ThresholdSign ` message . If there is output starts the next epoch . The function may output a decision value .
fn handle_coin(&mut self, sender_id: &N, msg: threshold_sign::Message) -> Result<Step<N>> {
        let ts_step = match self.coin_state {
            CoinState::Decided(_) => return Ok(Step::default()), // Coin value is already decided.
            CoinState::InProgress(ref mut ts) => ts
                .handle_message(sender_id, msg)
                .map_err(Error::HandleThresholdSign)?,
        };
        self.on_coin_step(ts_step)
    }
fn handle_coin ( & mut self , sender_id : & N , msg : threshold_sign :: Message ) -> Result < Step < N > > { let ts_step = match self . coin_state { CoinState :: Decided ( _ ) => return Ok ( Step :: default ( ) ) , // Coin value is already decided. CoinState :: InProgress ( ref mut ts ) => ts . handle_message ( sender_id , msg ) . map_err ( Error :: HandleThresholdSign ) ? , } ; self . on_coin_step ( ts_step ) }
Handles a `ThresholdSign` message.
Handles a ` ThresholdSign ` message .
&mut self
sender_id
&N
msg
threshold_sign::Message