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