evgeniy.chernomortsev
|
6efe9d02fb
|
fix: harden hex string parsing (#646)
Improve Data(hexString:) to handle edge cases:
- Reject odd-length strings (return nil)
- Support optional 0x/0X prefix
- Trim leading/trailing whitespace
- Handle empty strings correctly
Add comprehensive unit tests for hex parsing.
|
2025-12-09 15:01:59 +04:00 |
|