pub fn verify_metadata_signature(&self) -> Result<(), TransactionError> {
        let challenge = TransactionOutput::build_metadata_signature_challenge(
            &self.script,
            &self.features,
            &self.sender_offset_public_key,
            &self.metadata_signature.public_nonce(),
            &self.commitment,
        );
        if !self.metadata_signature.verify_challenge(
            &(&self.commitment + &self.sender_offset_public_key),
            &challenge,
            &PedersenCommitmentFactory::default(),
        ) {
            return Err(TransactionError::InvalidSignatureError(
                "Metadata signature not valid!".to_string(),
            ));
        }
        Ok(())
    }
/// Verify that the metadata signature is valid
Verify that the metadata signature is valid
Verify that the metadata signature is valid
pub fn verify_metadata_signature(&self) -> Result<(), TransactionError> {
        let challenge = TransactionOutput::build_metadata_signature_challenge(
            &self.script,
            &self.features,
            &self.sender_offset_public_key,
            &self.metadata_signature.public_nonce(),
            &self.commitment,
        );
        if !self.metadata_signature.verify_challenge(
            &(&self.commitment + &self.sender_offset_public_key),
            &challenge,
            &PedersenCommitmentFactory::default(),
        ) {
            return Err(TransactionError::InvalidSignatureError(
                "Metadata signature not valid!".to_string(),
            ));
        }
        Ok(())
    }
pub fn verify_metadata_signature ( & self ) -> Result < ( ) , TransactionError > { let challenge = TransactionOutput :: build_metadata_signature_challenge ( & self . script , & self . features , & self . sender_offset_public_key , & self . metadata_signature . public_nonce ( ) , & self . commitment , ) ; if ! self . metadata_signature . verify_challenge ( & ( & self . commitment + & self . sender_offset_public_key ) , & challenge , & PedersenCommitmentFactory :: default ( ) , ) { return Err ( TransactionError :: InvalidSignatureError ( " " . to_string ( ) , ) ) ; } Ok ( ( ) ) }
Verify that the metadata signature is valid
Verify that the metadata signature is valid
&self
&self