You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fold sign_holder_commitment_htlc_transactions into sign_holder_commitment
Signing the commitment transaction is almost always followed by signing the attached HTLC transactions, so fold the signing operations into a single method.
Copy file name to clipboardExpand all lines: lightning/src/util/enforcing_trait_impls.rs
+3-23Lines changed: 3 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -8,14 +8,13 @@
8
8
// licenses.
9
9
10
10
use ln::chan_utils::{HTLCOutputInCommitment,ChannelPublicKeys,HolderCommitmentTransaction,CommitmentTransaction,ChannelTransactionParameters,TrustedCommitmentTransaction};
11
-
use ln::{chan_utils,msgs};
11
+
use ln::msgs;
12
12
use chain::keysinterface::{ChannelKeys,InMemoryChannelKeys};
13
13
14
14
use std::cmp;
15
15
use std::sync::{Mutex,Arc};
16
16
17
-
use bitcoin::blockdata::transaction::{Transaction,SigHashType};
18
-
use bitcoin::util::bip143;
17
+
use bitcoin::blockdata::transaction::Transaction;
19
18
20
19
use bitcoin::secp256k1;
21
20
use bitcoin::secp256k1::key::{SecretKey,PublicKey};
@@ -72,7 +71,7 @@ impl ChannelKeys for EnforcingChannelKeys {
0 commit comments