@@ -292,9 +292,6 @@ pub trait BaseSign {
292292 ///
293293 /// An external signer implementation should check that the commitment has not been revoked.
294294 ///
295- /// May return an error if key derivation fails. Callers, such as [`ChannelMonitor`], will
296- /// panic in such a case.
297- ///
298295 /// [`ChannelMonitor`]: crate::chain::channelmonitor::ChannelMonitor
299296 // TODO: Document the things someone using this interface should enforce before signing.
300297 // TODO: Key derivation failure should panic rather than Err
@@ -537,7 +534,7 @@ pub trait KeysInterface {
537534/// This implementation performs no policy checks and is insufficient by itself as
538535/// a secure external signer.
539536pub struct InMemorySigner {
540- /// Private key of an anchor transaction.
537+ /// Private key of an anchor or 2-of-2 multisig transaction.
541538 pub funding_key : SecretKey ,
542539 /// Holder secret key for blinded revocation pubkey.
543540 pub revocation_base_key : SecretKey ,
@@ -915,8 +912,7 @@ impl ReadableArgs<SecretKey> for InMemorySigner {
915912 let secp_ctx = Secp256k1 :: signing_only ( ) ;
916913 let holder_channel_pubkeys =
917914 InMemorySigner :: make_holder_keys ( & secp_ctx, & funding_key, & revocation_base_key,
918- & payment_key, & delayed_payment_base_key,
919- & htlc_base_key) ;
915+ & payment_key, & delayed_payment_base_key, & htlc_base_key) ;
920916 let keys_id = Readable :: read ( reader) ?;
921917
922918 read_tlv_fields ! ( reader, { } ) ;
@@ -941,7 +937,7 @@ impl ReadableArgs<SecretKey> for InMemorySigner {
941937/// key and derives keys from that.
942938///
943939/// Your `node_id` is seed/0'.
944- /// [`ChannelMonitor`] closes may use seed/1'.
940+ /// Unilateral closes may use seed/1'.
945941/// Cooperative closes may use seed/2'.
946942/// The two close keys may be needed to claim on-chain funds!
947943///
@@ -950,8 +946,6 @@ impl ReadableArgs<SecretKey> for InMemorySigner {
950946///
951947/// Note that switching between this struct and [`PhantomKeysManager`] will invalidate any
952948/// previously issued invoices and attempts to pay previous invoices will fail.
953- ///
954- /// [`ChannelMonitor`]: crate::chain::channelmonitor::ChannelMonitor
955949pub struct KeysManager {
956950 secp_ctx : Secp256k1 < secp256k1:: All > ,
957951 node_secret : SecretKey ,
0 commit comments