mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-28 06:29:49 +00:00
Apply cargo fmt (#1146)
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
1 parent
b413e5e84e
commit
91a56fd580
18 files changed
+157
-74
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user