Function sodiumoxide::crypto::sign::ed25519::verify
[−]
[src]
pub fn verify(sm: &[u8], PublicKey: &PublicKey) -> Result<Vec<u8>, ()>
verify() verifies the signature in sm using the signer's public key pk.
verify() returns the message Ok(m).
If the signature fails verification, verify() returns Err(()).