refactor, bench, fuzz: Drop unneeded UCharCast calls

The `CKey::Set()` template function handles `std::byte` just fine.
This commit is contained in:
Hennadii Stepanov
2024-04-06 15:46:53 +01:00
parent b5d21182e5
commit 56e1e5dd10
3 changed files with 3 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ void MockedDescriptorConverter::Init() {
// an extended one.
if (IdIsCompPubKey(i) || IdIsUnCompPubKey(i) || IdIsXOnlyPubKey(i) || IdIsConstPrivKey(i)) {
CKey privkey;
privkey.Set(UCharCast(key_data.begin()), UCharCast(key_data.end()), !IdIsUnCompPubKey(i));
privkey.Set(key_data.begin(), key_data.end(), !IdIsUnCompPubKey(i));
if (IdIsCompPubKey(i) || IdIsUnCompPubKey(i)) {
CPubKey pubkey{privkey.GetPubKey()};
keys_str[i] = HexStr(pubkey);