File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -540,8 +540,7 @@ pub struct LocalCommitmentTransaction {
540
540
// Which order the signatures should go in when constructing the final commitment tx witness.
541
541
// The user should be able to reconstruc this themselves, so we don't bother to expose it.
542
542
our_sig_first : bool ,
543
- /// The key derivation parameters for this commitment transaction
544
- pub local_keys : TxCreationKeys ,
543
+ pub ( crate ) local_keys : TxCreationKeys ,
545
544
/// The feerate paid per 1000-weight-unit in this commitment transaction. This value is
546
545
/// controlled by the channel initiator.
547
546
pub feerate_per_kw : u32 ,
@@ -606,6 +605,12 @@ impl LocalCommitmentTransaction {
606
605
}
607
606
}
608
607
608
+ /// The pre-calculated transaction creation public keys.
609
+ /// An external validating signer should not trust these keys.
610
+ pub fn trust_key_derivation ( & self ) -> & TxCreationKeys {
611
+ & self . local_keys
612
+ }
613
+
609
614
/// Get the txid of the local commitment transaction contained in this
610
615
/// LocalCommitmentTransaction
611
616
pub fn txid ( & self ) -> Txid {
You can’t perform that action at this time.
0 commit comments