Skip to content

Commit

Permalink
silence deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwicky committed May 21, 2024
1 parent 8488fe9 commit bd66e82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crypto/keys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub fn clamp_scalar_bytes(mut scalar_bytes: [u8; PRIVATE_KEY_SIZE]) -> Scalar {
scalar_bytes[0] &= 248;
scalar_bytes[31] &= 127;
scalar_bytes[31] |= 64;

#[allow(deprecated)]
Scalar::from_bits(scalar_bytes)
}

Expand Down

0 comments on commit bd66e82

Please sign in to comment.