Skip to content

Commit

Permalink
BFT-457: Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
aakoshh committed Jun 11, 2024
1 parent 6920c29 commit be8c970
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions node/libs/crypto/src/secp256k1/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,10 @@ impl ByteFmt for AggregateSignature {
fn normalize_recovery_id(v: u8) -> u8 {
match v {
// Case 0: raw/bare
v @ 0..=26 => (v % 4) as u8,
v @ 0..=26 => v % 4,
// Case 2: non-eip155 v value
v @ 27..=34 => ((v - 27) % 4) as u8,
v @ 27..=34 => (v - 27) % 4,
// Case 3: eip155 V value
v @ 35.. => ((v - 1) % 2) as u8,
v @ 35.. => (v - 1) % 2,
}
}

0 comments on commit be8c970

Please sign in to comment.