fn verify<P: AsRef<Self::Public>, M: AsRef<[u8]>>(sig: &Self::Signature, message: M, pubkey: P) -> bool {
		let public_key = untrusted::Input::from(&pubkey.as_ref().0[..]);
		let msg = untrusted::Input::from(message.as_ref());
		let sig = untrusted::Input::from(&sig.0[..]);

		match signature::verify(&signature::ED25519, public_key, msg, sig) {
			Ok(_) => true,
			_ => false,
		}
	}
/// Verify a signature on a message. Returns true if the signature is good.
Verify a signature on a message. Returns true if the signature is good.
Verify a signature on a message . Returns true if the signature is good .
fn verify<P: AsRef<Self::Public>, M: AsRef<[u8]>>(sig: &Self::Signature, message: M, pubkey: P) -> bool {
		let public_key = untrusted::Input::from(&pubkey.as_ref().0[..]);
		let msg = untrusted::Input::from(message.as_ref());
		let sig = untrusted::Input::from(&sig.0[..]);
		match signature::verify(&signature::ED25519, public_key, msg, sig) {
			Ok(_) => true,
			_ => false,
		}
	}
fn verify < P : AsRef < Self :: Public > , M : AsRef < [ u8 ] > > ( sig : & Self :: Signature , message : M , pubkey : P ) -> bool { let public_key = untrusted :: Input :: from ( & pubkey . as_ref ( ) . 0 [ .. ] ) ; let msg = untrusted :: Input :: from ( message . as_ref ( ) ) ; let sig = untrusted :: Input :: from ( & sig . 0 [ .. ] ) ; match signature :: verify ( & signature :: ED25519 , public_key , msg , sig ) { Ok ( _ ) => true , _ => false , } }
Verify a signature on a message.
Verify a signature on a message .
sig
&Self::Signature
message
M
pubkey
P
sig
&Self::Signature
message
M
pubkey
P