pub fn verify(pk: &PublicKey, msg: &[u8], signature: &[u8]) -> Result<(), String> {
        if pk.verify(msg, signature) {
            return Ok(());
        }

        Err("Signature is not valid.".to_string())
    }
/// Verify the Ed25519 signature on a message using the public key.
Verify the Ed25519 signature on a message using the public key.
Verify the Ed25519 signature on a message using the public key .
pub fn verify(pk: &PublicKey, msg: &[u8], signature: &[u8]) -> Result<(), String> {
        if pk.verify(msg, signature) {
            return Ok(());
        }
        Err("Signature is not valid.".to_string())
    }
pub fn verify ( pk : & PublicKey , msg : & [ u8 ] , signature : & [ u8 ] ) -> Result < ( ) , String > { if pk . verify ( msg , signature ) { return Ok ( ( ) ) ; } Err ( " " . to_string ( ) ) }
Verify the Ed25519 signature on a message using the public key.
Verify the Ed25519 signature on a message using the public key .
pk
&PublicKey
msg
&[u8]
signature
&[u8]