Skip to content

Commit

Permalink
always return error in detect_cheater
Browse files Browse the repository at this point in the history
  • Loading branch information
conradoplg committed Jul 18, 2024
1 parent 453bdc2 commit b73e6e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frost-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -680,5 +680,6 @@ fn detect_cheater<C: Ciphersuite>(
)?;
}

Ok(())
// We should never reach here; but we return an error to be safe.
Err(Error::InvalidSignature)
}

0 comments on commit b73e6e3

Please sign in to comment.