/// Verify a signature on a message with this `PublicKey`.
Verify a signature on a message with this `PublicKey`.
Verify a signature on a message with this ` PublicKey ` .
pub fn verify(
        &self,
        message: impl AsRef<[u8]>,
        signature: &Signature,
    ) -> Result<bool, HederaError> {
        match self.0.verify_strict(message.as_ref(), &signature.0) {
            Ok(_) => Ok(true),
            Err(error) => {
                if error.to_string() == "Verification equation was not satisfied" {
                    Ok(false)
                } else {
                    Err(error.into())
                }
            }
        }
    }
pub fn verify ( & self , message : impl AsRef < [ u8 ] > , signature : & Signature , ) -> Result < bool , HederaError > { match self . 0 . verify_strict ( message . as_ref ( ) , & signature . 0 ) { Ok ( _ ) => Ok ( true ) , Err ( error ) => { if error . to_string ( ) == " " { Ok ( false ) } else { Err ( error . into ( ) ) } } } }
Verify a signature on a message with this `PublicKey`.
Verify a signature on a message with this ` PublicKey ` .
&self
message
impl AsRef<[u8]>
signature
&Signature