pub fn add_round_signature(&mut self, validator_signer: &ValidatorSigner) {
        if self.round_signature.is_some() {
            return; // round signature is already set
        }
        self.round_signature.replace(
            validator_signer
                .sign_message(common::round_hash(self.vote_data().proposed().round()))
                .expect("Failed to sign round")
                .into(),
        );
    }
/// Generates a round signature, which can then be used for aggregating a timeout certificate.
/// Typically called for generating vote messages that are sent upon timeouts.
Generates a round signature, which can then be used for aggregating a timeout certificate.
Typically called for generating vote messages that are sent upon timeouts.
Generates a round signature which can then be used for aggregating a timeout certificate . Typically called for generating vote messages that are sent upon timeouts .
pub fn add_round_signature(&mut self, validator_signer: &ValidatorSigner) {
        if self.round_signature.is_some() {
            return; // round signature is already set
        }
        self.round_signature.replace(
            validator_signer
                .sign_message(common::round_hash(self.vote_data().proposed().round()))
                .expect("Failed to sign round")
                .into(),
        );
    }
pub fn add_round_signature ( & mut self , validator_signer : & ValidatorSigner ) { if self . round_signature . is_some ( ) { return ; // round signature is already set } self . round_signature . replace ( validator_signer . sign_message ( common :: round_hash ( self . vote_data ( ) . proposed ( ) . round ( ) ) ) . expect ( " " ) . into ( ) , ) ; }
Generates a round signature, which can then be used for aggregating a timeout certificate.
Generates a round signature which can then be used for aggregating a timeout certificate .
&mut self
validator_signer
&ValidatorSigner
&mut self
validator_signer
&ValidatorSigner