diff --git a/rust-k256/src/lib.rs b/rust-k256/src/lib.rs index a8955bb..eac3129 100644 --- a/rust-k256/src/lib.rs +++ b/rust-k256/src/lib.rs @@ -105,7 +105,7 @@ impl PlumeSignature<'_> { // don't forget to check `c` is `Output` in the #API let c = Output::::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() {