mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 05:57:59 +01:00
refactor, bench, fuzz: Drop unneeded UCharCast calls
The `CKey::Set()` template function handles `std::byte` just fine.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user