@@ -527,11 +527,11 @@ impl Descriptor<DescriptorPublicKey> {
527527 struct Derivator ( u32 ) ;
528528
529529 impl PkTranslator < DescriptorPublicKey , DerivedDescriptorKey , ( ) > for Derivator {
530- fn f_pk ( & mut self , pk : & DescriptorPublicKey ) -> Result < DerivedDescriptorKey , ( ) > {
530+ fn pk ( & mut self , pk : & DescriptorPublicKey ) -> Result < DerivedDescriptorKey , ( ) > {
531531 Ok ( pk. clone ( ) . derive ( self . 0 ) )
532532 }
533533
534- fn f_pkh ( & mut self , pkh : & DescriptorPublicKey ) -> Result < DerivedDescriptorKey , ( ) > {
534+ fn pkh ( & mut self , pkh : & DescriptorPublicKey ) -> Result < DerivedDescriptorKey , ( ) > {
535535 Ok ( pkh. clone ( ) . derive ( self . 0 ) )
536536 }
537537 }
@@ -574,14 +574,14 @@ impl Descriptor<DescriptorPublicKey> {
574574 PkTranslator < DerivedDescriptorKey , bitcoin:: PublicKey , ConversionError >
575575 for Derivator < ' a , C >
576576 {
577- fn f_pk (
577+ fn pk (
578578 & mut self ,
579579 pk : & DerivedDescriptorKey ,
580580 ) -> Result < bitcoin:: PublicKey , ConversionError > {
581581 pk. derive_public_key ( & self . 0 )
582582 }
583583
584- fn f_pkh (
584+ fn pkh (
585585 & mut self ,
586586 pkh : & DerivedDescriptorKey ,
587587 ) -> Result < bitcoin:: hashes:: hash160:: Hash , ConversionError > {
@@ -633,15 +633,15 @@ impl Descriptor<DescriptorPublicKey> {
633633 impl < ' a , C : secp256k1:: Signing > Translator < String , DescriptorPublicKey , Error >
634634 for KeyMapWrapper < ' a , C >
635635 {
636- fn f_pk ( & mut self , pk : & String ) -> Result < DescriptorPublicKey , Error > {
636+ fn pk ( & mut self , pk : & String ) -> Result < DescriptorPublicKey , Error > {
637637 parse_key ( pk, & mut self . 0 , self . 1 )
638638 }
639639
640- fn f_pkh ( & mut self , pkh : & String ) -> Result < DescriptorPublicKey , Error > {
640+ fn pkh ( & mut self , pkh : & String ) -> Result < DescriptorPublicKey , Error > {
641641 parse_key ( pkh, & mut self . 0 , self . 1 )
642642 }
643643
644- fn f_sha256 ( & mut self , sha256 : & String ) -> Result < sha256:: Hash , Error > {
644+ fn sha256 ( & mut self , sha256 : & String ) -> Result < sha256:: Hash , Error > {
645645 let hash =
646646 sha256:: Hash :: from_str ( sha256) . map_err ( |e| Error :: Unexpected ( e. to_string ( ) ) ) ?;
647647 Ok ( hash)
@@ -661,15 +661,15 @@ impl Descriptor<DescriptorPublicKey> {
661661 struct KeyMapLookUp < ' a > ( & ' a KeyMap ) ;
662662
663663 impl < ' a > Translator < DescriptorPublicKey , String , ( ) > for KeyMapLookUp < ' a > {
664- fn f_pk ( & mut self , pk : & DescriptorPublicKey ) -> Result < String , ( ) > {
664+ fn pk ( & mut self , pk : & DescriptorPublicKey ) -> Result < String , ( ) > {
665665 key_to_string ( pk, self . 0 )
666666 }
667667
668- fn f_pkh ( & mut self , pkh : & DescriptorPublicKey ) -> Result < String , ( ) > {
668+ fn pkh ( & mut self , pkh : & DescriptorPublicKey ) -> Result < String , ( ) > {
669669 key_to_string ( pkh, self . 0 )
670670 }
671671
672- fn f_sha256 ( & mut self , sha256 : & sha256:: Hash ) -> Result < String , ( ) > {
672+ fn sha256 ( & mut self , sha256 : & sha256:: Hash ) -> Result < String , ( ) > {
673673 Ok ( sha256. to_string ( ) )
674674 }
675675 }
0 commit comments