From adee34fe18ac9bcc59b2fab4a9f57260c30619a7 Mon Sep 17 00:00:00 2001 From: Steven Roose Date: Wed, 31 Jan 2024 15:19:18 +0000 Subject: [PATCH] schnorr: Change verify_schnorr error return type From InvalidSignature to IncorrectSignature; the former prints the message "malformed signature", which doesn't represent the correct error. --- src/schnorr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/schnorr.rs b/src/schnorr.rs index 7c92a48..b284dcb 100644 --- a/src/schnorr.rs +++ b/src/schnorr.rs @@ -181,7 +181,7 @@ impl Secp256k1 { if ret == 1 { Ok(()) } else { - Err(Error::InvalidSignature) + Err(Error::IncorrectSignature) } } }