diff --git a/elliptic-curve/CHANGELOG.md b/elliptic-curve/CHANGELOG.md index 7d50c6e18..cb834fb16 100644 --- a/elliptic-curve/CHANGELOG.md +++ b/elliptic-curve/CHANGELOG.md @@ -7,8 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## 0.14.0 (UNRELEASED) ### Changed - Edition changed to 2024 and MSRV bumped to 1.85 ([#1759]) +- Accept mixed-case hex-encoded strings in `FromStr` impl for `ScalarValue` ([#2037]) [#1759]: https://github.com/RustCrypto/traits/pull/1759 +[#2037]: https://github.com/RustCrypto/traits/pull/2037 ## 0.13.8 (2023-11-18) ### Changed diff --git a/elliptic-curve/src/scalar/value.rs b/elliptic-curve/src/scalar/value.rs index 6cdf5f97b..08e0a1eb8 100644 --- a/elliptic-curve/src/scalar/value.rs +++ b/elliptic-curve/src/scalar/value.rs @@ -396,7 +396,7 @@ where fn from_str(hex: &str) -> Result { let mut bytes = FieldBytes::::default(); - base16ct::lower::decode(hex, &mut bytes)?; + base16ct::mixed::decode(hex, &mut bytes)?; Self::from_slice(&bytes) } }