11use super :: * ;
22
33/// Signs the BIP-322 simple from spec-compliant string encodings.
4+ #[ allow( clippy:: result_large_err) ]
45pub fn sign_simple_encoded ( address : & str , message : & str , wif_private_key : & str ) -> Result < String > {
56 let address = Address :: from_str ( address)
67 . context ( error:: AddressParse { address } ) ?
@@ -20,6 +21,7 @@ pub fn sign_simple_encoded(address: &str, message: &str, wif_private_key: &str)
2021}
2122
2223/// Signs the BIP-322 full from spec-compliant string encodings.
24+ #[ allow( clippy:: result_large_err) ]
2325pub fn sign_full_encoded ( address : & str , message : & str , wif_private_key : & str ) -> Result < String > {
2426 let address = Address :: from_str ( address)
2527 . context ( error:: AddressParse { address } ) ?
@@ -38,6 +40,7 @@ pub fn sign_full_encoded(address: &str, message: &str, wif_private_key: &str) ->
3840}
3941
4042/// Signs in the BIP-322 simple format from proper Rust types and returns the witness.
43+ #[ allow( clippy:: result_large_err) ]
4144pub fn sign_simple (
4245 address : & Address ,
4346 message : impl AsRef < [ u8 ] > ,
@@ -51,6 +54,7 @@ pub fn sign_simple(
5154}
5255
5356/// Signs in the BIP-322 full format from proper Rust types and returns the full transaction.
57+ #[ allow( clippy:: result_large_err) ]
5458pub fn sign_full (
5559 address : & Address ,
5660 message : impl AsRef < [ u8 ] > ,
@@ -180,7 +184,7 @@ pub fn create_message_signature_taproot(
180184
181185 let key_pair = key_pair
182186 . tap_tweak ( & secp, to_sign. inputs [ 0 ] . tap_merkle_root )
183- . to_inner ( ) ;
187+ . to_keypair ( ) ;
184188
185189 let signature = if let Some ( aux_rand) = aux_rand {
186190 secp. sign_schnorr_with_aux_rand (
0 commit comments