pub fn verify(
    public: &PublicKey,
    msg: &[u8],
    signature: &Signature,
    ) -> Result<()>
{
    ensure!(public.verify(msg, signature).is_ok(), "Signature invalid.");
    Ok(())
}
/// Verify a signature of a byte slice.
Verify a signature of a byte slice.
Verify a signature of a byte slice .
pub fn verify(
    public: &PublicKey,
    msg: &[u8],
    signature: &Signature,
    ) -> Result<()>
{
    ensure!(public.verify(msg, signature).is_ok(), "Signature invalid.");
    Ok(())
}
pub fn verify ( public : & PublicKey , msg : & [ u8 ] , signature : & Signature , ) -> Result < ( ) > { ensure ! ( public verify ( msg signature ) is_ok ( ) " " ) ; Ok ( ( ) ) }
Verify a signature of a byte slice.
Verify a signature of a byte slice .
public
&PublicKey
msg
&[u8]
signature
&Signature
public
&PublicKey
msg
&[u8]
signature
&Signature