@@ -6807,22 +6807,19 @@ mod tests {
6807
6807
use crate :: ln:: chan_utils:: { htlc_success_tx_weight, htlc_timeout_tx_weight} ;
6808
6808
use crate :: chain:: BestBlock ;
6809
6809
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 } ;
6811
6811
use crate :: chain:: transaction:: OutPoint ;
6812
6812
use crate :: util:: config:: UserConfig ;
6813
6813
use crate :: util:: enforcing_trait_impls:: EnforcingSigner ;
6814
6814
use crate :: util:: errors:: APIError ;
6815
6815
use crate :: util:: test_utils;
6816
6816
use crate :: util:: test_utils:: OnGetShutdownScriptpubkey ;
6817
- use bitcoin:: secp256k1:: { Secp256k1 , ecdsa:: Signature , Scalar } ;
6817
+ use bitcoin:: secp256k1:: { Secp256k1 , ecdsa:: Signature } ;
6818
6818
use bitcoin:: secp256k1:: ffi:: Signature as FFISignature ;
6819
6819
use bitcoin:: secp256k1:: { SecretKey , PublicKey } ;
6820
- use bitcoin:: secp256k1:: ecdh:: SharedSecret ;
6821
- use bitcoin:: secp256k1:: ecdsa:: RecoverableSignature ;
6822
6820
use bitcoin:: hashes:: sha256:: Hash as Sha256 ;
6823
6821
use bitcoin:: hashes:: Hash ;
6824
6822
use bitcoin:: hash_types:: WPubkeyHash ;
6825
- use bitcoin:: bech32:: u5;
6826
6823
use bitcoin:: PackedLockTime ;
6827
6824
use bitcoin:: util:: address:: WitnessVersion ;
6828
6825
use crate :: prelude:: * ;
@@ -6861,21 +6858,6 @@ mod tests {
6861
6858
fn get_secure_random_bytes ( & self ) -> [ u8 ; 32 ] { [ 0 ; 32 ] }
6862
6859
}
6863
6860
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
-
6879
6861
impl SignerProvider for Keys {
6880
6862
type Signer = InMemorySigner ;
6881
6863
0 commit comments