pub fn verify(&self, signature: &[u8], message: &[u8]) -> Result<(), Error> {
        let public_key = signature::UnparsedPublicKey::new(
            &signature::RSA_PSS_2048_8192_SHA256,
            self.keypair.public_key().as_ref(),
        );
        public_key.verify(message, signature)?;
        Ok(())
    }
/// Verifies that a message was signed by the public key of the Provider.key keypair.
///```
/// # use ring::{signature, rand};
/// # use arloader::crypto::Provider;
/// # use std::path::PathBuf;
/// #
/// # #[tokio::main]
/// # async fn main() -> Result<(), Box<dyn std::error::Error>> {
/// let crypto = Provider::from_keypair_path(PathBuf::from("tests/fixtures/arweave-key-7eV1qae4qVNqsNChg3Scdi-DpOLJPCogct4ixoq1WNg.json")).await?;
/// let message = String::from("hello, world");
/// let rng = rand::SystemRandom::new();
/// let signature = crypto.sign(&message.as_bytes())?;
///
/// assert_eq!((), crypto.verify(&signature.as_ref(), &message.as_bytes())?);
/// # Ok(())
/// # }
/// ```
Verifies that a message was signed by the public key of the Provider.key keypair.




Verifies that a message was signed by the public key of the Provider . key keypair .
pub fn verify(&self, signature: &[u8], message: &[u8]) -> Result<(), Error> {
        let public_key = signature::UnparsedPublicKey::new(
            &signature::RSA_PSS_2048_8192_SHA256,
            self.keypair.public_key().as_ref(),
        );
        public_key.verify(message, signature)?;
        Ok(())
    }
pub fn verify ( & self , signature : & [ u8 ] , message : & [ u8 ] ) -> Result < ( ) , Error > { let public_key = signature :: UnparsedPublicKey :: new ( & signature :: RSA_PSS_2048_8192_SHA256 , self . keypair . public_key ( ) . as_ref ( ) , ) ; public_key . verify ( message , signature ) ? ; Ok ( ( ) ) }
Verifies that a message was signed by the public key of the Provider.key keypair.
Verifies that a message was signed by the public key of the Provider . key keypair .
&self
signature
&[u8]
message
&[u8]
&self
signature
&[u8]
message
&[u8]