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

		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.
///
/// This doesn't use the type system to ensure that `sig` and `pubkey` are the correct
/// size. Use it only if you're coming from byte buffers and need the speed.
Verify a signature on a message. Returns true if the signature is good.
This doesn't use the type system to ensure that `sig` and `pubkey` are the correct
size. Use it only if you're coming from byte buffers and need the speed.
Verify a signature on a message . Returns true if the signature is good . This doesn ' t use the type system to ensure that ` sig ` and ` pubkey ` are the correct size . Use it only if you ' re coming from byte buffers and need the speed .
fn verify_weak<P: AsRef<[u8]>, M: AsRef<[u8]>>(sig: &[u8], message: M, pubkey: P) -> bool {
		let public_key = untrusted::Input::from(pubkey.as_ref());
		let msg = untrusted::Input::from(message.as_ref());
		let sig = untrusted::Input::from(sig);
		match signature::verify(&signature::ED25519, public_key, msg, sig) {
			Ok(_) => true,
			_ => false,
		}
	}
fn verify_weak < P : AsRef < [ u8 ] > , M : AsRef < [ u8 ] > > ( sig : & [ u8 ] , message : M , pubkey : P ) -> bool { let public_key = untrusted :: Input :: from ( pubkey . as_ref ( ) ) ; let msg = untrusted :: Input :: from ( message . as_ref ( ) ) ; let sig = untrusted :: Input :: from ( sig ) ; 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
&[u8]
message
M
pubkey
P
sig
&[u8]
message
M
pubkey
P