/// This verifies whether the author of one proposal is the validator signer
This verifies whether the author of one proposal is the validator signer
This verifies whether the author of one proposal is the validator signer
fn verify_author(&self, author: Option<Author>) -> Result<(), Error> {
        let validator_signer_author = &self.signer()?.author();
        let author = author
            .ok_or_else(|| Error::InvalidProposal("No author found in the proposal".into()))?;
        if validator_signer_author != &author {
            return Err(Error::InvalidProposal(
                "Proposal author is not validator signer!".into(),
            ));
        }
        Ok(())
    }
fn verify_author ( & self , author : Option < Author > ) -> Result < ( ) , Error > { let validator_signer_author = & self . signer ( ) ? . author ( ) ; let author = author . ok_or_else ( | | Error :: InvalidProposal ( " " . into ( ) ) ) ? ; if validator_signer_author != & author { return Err ( Error :: InvalidProposal ( " " . into ( ) , ) ) ; } Ok ( ( ) ) }
This verifies whether the author of one proposal is the validator signer
This verifies whether the author of one proposal is the validator signer
&self
author
Option<Author>