Apply cargo fmt (#1146)

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
Alexandru Vasile authored and GitHub committed 2023-08-28 15:03:29 +02:00
1 parent b413e5e84e
commit 91a56fd580
18 files changed
+157 -74

No files matched your search

+2 -2
View File
@@ -176,10 +176,10 @@ impl Keypair {
/// ```
pub fn verify<M: AsRef<[u8]>>(sig: &Signature, message: M, pubkey: &PublicKey) -> bool {
let Ok(signature) = schnorrkel::Signature::from_bytes(&sig.0) else {
return false
return false;
};
let Ok(public) = schnorrkel::PublicKey::from_bytes(&pubkey.0) else {
return false
return false;
};
public
.verify_simple(SIGNING_CTX, message.as_ref(), &signature)