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.
This commit is contained in:
Steven Roose 2024-01-31 15:19:18 +00:00
parent a1d8c90a46
commit adee34fe18
No known key found for this signature in database
GPG Key ID: 2F2A88D7F8D68E87
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ impl<C: Verification> Secp256k1<C> {
if ret == 1 { if ret == 1 {
Ok(()) Ok(())
} else { } else {
Err(Error::InvalidSignature) Err(Error::IncorrectSignature)
} }
} }
} }