Skip to content

Commit dd8e4ce

Browse files
authored
elliptic-curve: use base16ct::mixed in FromStr impl for ScalarValue (#2037)
Closes #1643
1 parent c6ab1b1 commit dd8e4ce

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

elliptic-curve/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77
## 0.14.0 (UNRELEASED)
88
### Changed
99
- Edition changed to 2024 and MSRV bumped to 1.85 ([#1759])
10+
- Accept mixed-case hex-encoded strings in `FromStr` impl for `ScalarValue` ([#2037])
1011

1112
[#1759]: https://github.com/RustCrypto/traits/pull/1759
13+
[#2037]: https://github.com/RustCrypto/traits/pull/2037
1214

1315
## 0.13.8 (2023-11-18)
1416
### Changed

elliptic-curve/src/scalar/value.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ where
396396

397397
fn from_str(hex: &str) -> Result<Self> {
398398
let mut bytes = FieldBytes::<C>::default();
399-
base16ct::lower::decode(hex, &mut bytes)?;
399+
base16ct::mixed::decode(hex, &mut bytes)?;
400400
Self::from_slice(&bytes)
401401
}
402402
}

0 commit comments

Comments
 (0)