Split out KeysInterface into EntropySource, NodeSigner, and SignerProvider.
[rust-lightning] / lightning / src / ln / functional_tests.rs
index 79c85e75447d5bb959ef391c5941d0d62db933ff..f18f28a13c4a70fd9b46228857a4d24aa7657619 100644 (file)
@@ -17,7 +17,7 @@ use crate::chain::chaininterface::LowerBoundedFeeEstimator;
 use crate::chain::channelmonitor;
 use crate::chain::channelmonitor::{CLTV_CLAIM_BUFFER, LATENCY_GRACE_PERIOD_BLOCKS, ANTI_REORG_DELAY};
 use crate::chain::transaction::OutPoint;
-use crate::chain::keysinterface::{BaseSign, KeysInterface};
+use crate::chain::keysinterface::{BaseSign, EntropySource, KeysInterface};
 use crate::ln::{PaymentPreimage, PaymentSecret, PaymentHash};
 use crate::ln::channel::{commitment_tx_base_weight, COMMITMENT_TX_WEIGHT_PER_HTLC, CONCURRENT_INBOUND_HTLC_FEE_BUFFER, FEE_SPIKE_BUFFER_FEE_INCREASE_MULTIPLE, MIN_AFFORDABLE_HTLC_COUNT};
 use crate::ln::channelmanager::{self, PaymentId, RAACommitmentOrder, PaymentSendFailure, BREAKDOWN_TIMEOUT, MIN_CLTV_EXPIRY_DELTA};
@@ -5258,9 +5258,10 @@ fn test_dynamic_spendable_outputs_local_htlc_timeout_tx() {
 
 #[test]
 fn test_key_derivation_params() {
-       // This test is a copy of test_dynamic_spendable_outputs_local_htlc_timeout_tx, with
-       // a key manager rotation to test that key_derivation_params returned in DynamicOutputP2WSH
-       // let us re-derive the channel key set to then derive a delayed_payment_key.
+       // This test is a copy of test_dynamic_spendable_outputs_local_htlc_timeout_tx, with a key
+       // manager rotation to test that `channel_keys_id` returned in
+       // [`SpendableOutputDescriptor::DelayedPaymentOutput`] let us re-derive the channel key set to
+       // then derive a `delayed_payment_key`.
 
        let chanmon_cfgs = create_chanmon_cfgs(3);