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