Skip to content

Commit

Permalink
bump k256
Browse files Browse the repository at this point in the history
  • Loading branch information
RajeshRk18 committed Nov 21, 2023
1 parent 3a15c93 commit ac8969e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust-k256/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ impl PlumeSignature<'_> {
// don't forget to check `c` is `Output<Sha256>` in the #API
let c = Output::<Sha256>::from_slice(self.c);
// TODO should we allow `c` input greater than BaseField::MODULUS?
let c_scalar = &Scalar::reduce_nonzero(U256::from_be_byte_array(c.clone()));
let c_scalar = &Scalar::reduce_nonzero(U256::from_be_byte_array(c.to_owned()));
/* @skaunov would be glad to discuss with @Divide-By-0 excessive of the following check.
Though I should notice that it at least doesn't breaking anything. */
if c_scalar.is_zero().into() {
Expand Down

0 comments on commit ac8969e

Please sign in to comment.