[−]Function cjdns_crypto::sign::ed25519::verify
pub fn verify(sm: &[u8], pk: &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(())
.