Skip to content

Commit

Permalink
ecdsa: remove useless debug assert (#258)
Browse files Browse the repository at this point in the history
This assertion duplicates an error handling check immediately below it.

It's likely a remnant of the retrofitting of the `der` crate for
signature parsing.
  • Loading branch information
tarcieri authored Feb 28, 2021
1 parent 369bfbb commit 385a3b3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion ecdsa/src/der.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ where

let r_range = find_scalar_range(input, r.as_bytes())?;
let s_range = find_scalar_range(input, s.as_bytes())?;
debug_assert_eq!(s_range.end, input.len());

if s_range.end != input.len() {
return Err(Error::new());
Expand Down

0 comments on commit 385a3b3

Please sign in to comment.