@@ -6807,22 +6807,19 @@ mod tests {
68076807 use crate :: ln:: chan_utils:: { htlc_success_tx_weight, htlc_timeout_tx_weight} ;
68086808 use crate :: chain:: BestBlock ;
68096809 use crate :: chain:: chaininterface:: { FeeEstimator , LowerBoundedFeeEstimator , ConfirmationTarget } ;
6810- use crate :: chain:: keysinterface:: { BaseSign , InMemorySigner , Recipient , KeyMaterial , EntropySource , NodeSigner , SignerProvider } ;
6810+ use crate :: chain:: keysinterface:: { BaseSign , InMemorySigner , EntropySource , SignerProvider } ;
68116811 use crate :: chain:: transaction:: OutPoint ;
68126812 use crate :: util:: config:: UserConfig ;
68136813 use crate :: util:: enforcing_trait_impls:: EnforcingSigner ;
68146814 use crate :: util:: errors:: APIError ;
68156815 use crate :: util:: test_utils;
68166816 use crate :: util:: test_utils:: OnGetShutdownScriptpubkey ;
6817- use bitcoin:: secp256k1:: { Secp256k1 , ecdsa:: Signature , Scalar } ;
6817+ use bitcoin:: secp256k1:: { Secp256k1 , ecdsa:: Signature } ;
68186818 use bitcoin:: secp256k1:: ffi:: Signature as FFISignature ;
68196819 use bitcoin:: secp256k1:: { SecretKey , PublicKey } ;
6820- use bitcoin:: secp256k1:: ecdh:: SharedSecret ;
6821- use bitcoin:: secp256k1:: ecdsa:: RecoverableSignature ;
68226820 use bitcoin:: hashes:: sha256:: Hash as Sha256 ;
68236821 use bitcoin:: hashes:: Hash ;
68246822 use bitcoin:: hash_types:: WPubkeyHash ;
6825- use bitcoin:: bech32:: u5;
68266823 use bitcoin:: PackedLockTime ;
68276824 use bitcoin:: util:: address:: WitnessVersion ;
68286825 use crate :: prelude:: * ;
@@ -6861,21 +6858,6 @@ mod tests {
68616858 fn get_secure_random_bytes ( & self ) -> [ u8 ; 32 ] { [ 0 ; 32 ] }
68626859 }
68636860
6864- impl NodeSigner for Keys {
6865- fn get_node_secret ( & self , _recipient : Recipient ) -> Result < SecretKey , ( ) > { panic ! ( ) ; }
6866-
6867- fn get_node_id ( & self , recipient : Recipient ) -> Result < PublicKey , ( ) > {
6868- let secp_ctx = Secp256k1 :: signing_only ( ) ;
6869- Ok ( PublicKey :: from_secret_key ( & secp_ctx, & self . get_node_secret ( recipient) ?) )
6870- }
6871-
6872- fn ecdh ( & self , _recipient : Recipient , _other_key : & PublicKey , _tweak : Option < & Scalar > ) -> Result < SharedSecret , ( ) > { panic ! ( ) ; }
6873-
6874- fn get_inbound_payment_key_material ( & self ) -> KeyMaterial { panic ! ( ) ; }
6875-
6876- fn sign_invoice ( & self , _hrp_bytes : & [ u8 ] , _invoice_data : & [ u5 ] , _recipient : Recipient ) -> Result < RecoverableSignature , ( ) > { panic ! ( ) ; }
6877- }
6878-
68796861 impl SignerProvider for Keys {
68806862 type Signer = InMemorySigner ;
68816863
0 commit comments