File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -304,7 +304,7 @@ impl FromStr for DescriptorPublicKey {
304
304
) ) ;
305
305
}
306
306
307
- let ( key_part, origin) = parse_xkey_origin ( s) ?;
307
+ let ( key_part, origin) = parse_key_origin ( s) ?;
308
308
309
309
if key_part. contains ( "pub" ) {
310
310
let ( xpub, derivation_path, wildcard) =
@@ -491,7 +491,7 @@ impl FromStr for DescriptorSecretKey {
491
491
type Err = DescriptorKeyParseError ;
492
492
493
493
fn from_str ( s : & str ) -> Result < Self , Self :: Err > {
494
- let ( key_part, origin) = parse_xkey_origin ( s) ?;
494
+ let ( key_part, origin) = parse_key_origin ( s) ?;
495
495
496
496
if key_part. len ( ) <= 52 {
497
497
let sk = bitcoin:: PrivateKey :: from_str ( key_part)
@@ -514,7 +514,7 @@ impl FromStr for DescriptorSecretKey {
514
514
}
515
515
516
516
// Parse the origin information part of a descriptor key.
517
- fn parse_xkey_origin ( s : & str ) -> Result < ( & str , Option < bip32:: KeySource > ) , DescriptorKeyParseError > {
517
+ fn parse_key_origin ( s : & str ) -> Result < ( & str , Option < bip32:: KeySource > ) , DescriptorKeyParseError > {
518
518
for ch in s. as_bytes ( ) {
519
519
if * ch < 20 || * ch > 127 {
520
520
return Err ( DescriptorKeyParseError (
You can’t perform that action at this time.
0 commit comments