File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ static void BIP324_ECDH(benchmark::Bench& bench)
27
27
28
28
bench.batch (1 ).unit (" ecdh" ).run ([&] {
29
29
CKey key;
30
- key.Set (UCharCast ( key_data.data ()), UCharCast ( key_data.data () ) + 32 , true );
30
+ key.Set (key_data.data (), key_data.data () + 32 , true );
31
31
EllSwiftPubKey our_ellswift (our_ellswift_data);
32
32
EllSwiftPubKey their_ellswift (their_ellswift_data);
33
33
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ static void EllSwiftCreate(benchmark::Bench& bench)
17
17
bench.batch (1 ).unit (" pubkey" ).run ([&] {
18
18
auto ret = key.EllSwiftCreate (MakeByteSpan (entropy));
19
19
/* Use the first 32 bytes of the ellswift encoded public key as next private key. */
20
- key.Set (UCharCast ( ret.data ()), UCharCast ( ret.data () ) + 32 , true );
20
+ key.Set (ret.data (), ret.data () + 32 , true );
21
21
assert (key.IsValid ());
22
22
/* Use the last 32 bytes of the ellswift encoded public key as next entropy. */
23
23
std::copy (ret.begin () + 32 , ret.begin () + 64 , MakeWritableByteSpan (entropy).begin ());
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ void MockedDescriptorConverter::Init() {
15
15
// an extended one.
16
16
if (IdIsCompPubKey (i) || IdIsUnCompPubKey (i) || IdIsXOnlyPubKey (i) || IdIsConstPrivKey (i)) {
17
17
CKey privkey;
18
- privkey.Set (UCharCast ( key_data.begin ()), UCharCast ( key_data.end () ), !IdIsUnCompPubKey (i));
18
+ privkey.Set (key_data.begin (), key_data.end (), !IdIsUnCompPubKey (i));
19
19
if (IdIsCompPubKey (i) || IdIsUnCompPubKey (i)) {
20
20
CPubKey pubkey{privkey.GetPubKey ()};
21
21
keys_str[i] = HexStr (pubkey);
You can’t perform that action at this time.
0 commit comments