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:
parent
a1d8c90a46
commit
adee34fe18
|
@ -181,7 +181,7 @@ impl<C: Verification> Secp256k1<C> {
|
|||
if ret == 1 {
|
||||
Ok(())
|
||||
} else {
|
||||
Err(Error::InvalidSignature)
|
||||
Err(Error::IncorrectSignature)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue