@@ -137,7 +137,7 @@ impl_writeable_tlv_based!(StaticPaymentOutputDescriptor, {
137
137
/// [`SpendableOutputs`]: crate::util::events::Event::SpendableOutputs
138
138
#[ derive( Clone , Debug , PartialEq , Eq ) ]
139
139
pub enum SpendableOutputDescriptor {
140
- /// An output to a script which was provided via [`KeysInterface `] directly, either from
140
+ /// An output to a script which was provided via [`SignerProvider `] directly, either from
141
141
/// [`get_destination_script`] or [`get_shutdown_scriptpubkey`], thus you should already
142
142
/// know how to spend it. No secret keys are provided as LDK was never given any key.
143
143
/// These may include outputs from a transaction punishing our counterparty or claiming an HTLC
@@ -517,7 +517,7 @@ pub trait SignerProvider {
517
517
/// [`BaseSign::channel_keys_id`].
518
518
fn derive_channel_signer ( & self , channel_value_satoshis : u64 , channel_keys_id : [ u8 ; 32 ] ) -> Self :: Signer ;
519
519
520
- /// Reads a [`Signer`] for this [`KeysInterface `] from the given input stream.
520
+ /// Reads a [`Signer`] for this [`SignerProvider `] from the given input stream.
521
521
/// This is only called during deserialization of other objects which contain
522
522
/// [`Sign`]-implementing objects (i.e., [`ChannelMonitor`]s and [`ChannelManager`]s).
523
523
/// The bytes are exactly those which `<Self::Signer as Writeable>::write()` writes, and
@@ -545,9 +545,6 @@ pub trait SignerProvider {
545
545
fn get_shutdown_scriptpubkey ( & self ) -> ShutdownScript ;
546
546
}
547
547
548
- /// A trait to describe an object which can get user secrets and key material.
549
- pub trait KeysInterface : EntropySource + NodeSigner + SignerProvider { }
550
-
551
548
#[ derive( Clone ) ]
552
549
/// A simple implementation of [`Sign`] that just keeps the private keys in memory.
553
550
///
@@ -954,8 +951,8 @@ impl ReadableArgs<SecretKey> for InMemorySigner {
954
951
}
955
952
}
956
953
957
- /// Simple [`KeysInterface`] implementation that takes a 32-byte seed for use as a BIP 32 extended
958
- /// key and derives keys from that.
954
+ /// Simple implementation of [`EntropySource`], [`NodeSigner`], and [`SignerProvider`] that takes a
955
+ /// 32-byte seed for use as a BIP 32 extended key and derives keys from that.
959
956
///
960
957
/// Your `node_id` is seed/0'.
961
958
/// Unilateral closes may use seed/1'.
@@ -1331,8 +1328,6 @@ impl SignerProvider for KeysManager {
1331
1328
}
1332
1329
}
1333
1330
1334
- impl KeysInterface for KeysManager { }
1335
-
1336
1331
/// Similar to [`KeysManager`], but allows the node using this struct to receive phantom node
1337
1332
/// payments.
1338
1333
///
@@ -1425,8 +1420,6 @@ impl SignerProvider for PhantomKeysManager {
1425
1420
}
1426
1421
}
1427
1422
1428
- impl KeysInterface for PhantomKeysManager { }
1429
-
1430
1423
impl PhantomKeysManager {
1431
1424
/// Constructs a [`PhantomKeysManager`] given a 32-byte seed and an additional `cross_node_seed`
1432
1425
/// that is shared across all nodes that intend to participate in [phantom node payments]
0 commit comments