@@ -292,9 +292,6 @@ pub trait BaseSign {
292
292
///
293
293
/// An external signer implementation should check that the commitment has not been revoked.
294
294
///
295
- /// May return an error if key derivation fails. Callers, such as [`ChannelMonitor`], will
296
- /// panic in such a case.
297
- ///
298
295
/// [`ChannelMonitor`]: crate::chain::channelmonitor::ChannelMonitor
299
296
// TODO: Document the things someone using this interface should enforce before signing.
300
297
// TODO: Key derivation failure should panic rather than Err
@@ -537,7 +534,7 @@ pub trait KeysInterface {
537
534
/// This implementation performs no policy checks and is insufficient by itself as
538
535
/// a secure external signer.
539
536
pub struct InMemorySigner {
540
- /// Private key of an anchor transaction.
537
+ /// Private key of an anchor or 2-of-2 multisig transaction.
541
538
pub funding_key : SecretKey ,
542
539
/// Holder secret key for blinded revocation pubkey.
543
540
pub revocation_base_key : SecretKey ,
@@ -915,8 +912,7 @@ impl ReadableArgs<SecretKey> for InMemorySigner {
915
912
let secp_ctx = Secp256k1 :: signing_only ( ) ;
916
913
let holder_channel_pubkeys =
917
914
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) ;
920
916
let keys_id = Readable :: read ( reader) ?;
921
917
922
918
read_tlv_fields ! ( reader, { } ) ;
@@ -941,7 +937,7 @@ impl ReadableArgs<SecretKey> for InMemorySigner {
941
937
/// key and derives keys from that.
942
938
///
943
939
/// Your `node_id` is seed/0'.
944
- /// [`ChannelMonitor`] closes may use seed/1'.
940
+ /// Unilateral closes may use seed/1'.
945
941
/// Cooperative closes may use seed/2'.
946
942
/// The two close keys may be needed to claim on-chain funds!
947
943
///
@@ -950,8 +946,6 @@ impl ReadableArgs<SecretKey> for InMemorySigner {
950
946
///
951
947
/// Note that switching between this struct and [`PhantomKeysManager`] will invalidate any
952
948
/// previously issued invoices and attempts to pay previous invoices will fail.
953
- ///
954
- /// [`ChannelMonitor`]: crate::chain::channelmonitor::ChannelMonitor
955
949
pub struct KeysManager {
956
950
secp_ctx : Secp256k1 < secp256k1:: All > ,
957
951
node_secret : SecretKey ,
0 commit comments