Skip to content

Commit adee34f

Browse files
committed
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.
1 parent a1d8c90 commit adee34f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/schnorr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ impl<C: Verification> Secp256k1<C> {
181181
if ret == 1 {
182182
Ok(())
183183
} else {
184-
Err(Error::InvalidSignature)
184+
Err(Error::IncorrectSignature)
185185
}
186186
}
187187
}

0 commit comments

Comments
 (0)