File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -540,8 +540,7 @@ pub struct LocalCommitmentTransaction {
540540 // Which order the signatures should go in when constructing the final commitment tx witness.
541541 // The user should be able to reconstruc this themselves, so we don't bother to expose it.
542542 our_sig_first : bool ,
543- /// The key derivation parameters for this commitment transaction
544- pub local_keys : TxCreationKeys ,
543+ pub ( crate ) local_keys : TxCreationKeys ,
545544 /// The feerate paid per 1000-weight-unit in this commitment transaction. This value is
546545 /// controlled by the channel initiator.
547546 pub feerate_per_kw : u32 ,
@@ -606,6 +605,12 @@ impl LocalCommitmentTransaction {
606605 }
607606 }
608607
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+
609614 /// Get the txid of the local commitment transaction contained in this
610615 /// LocalCommitmentTransaction
611616 pub fn txid ( & self ) -> Txid {
You can’t perform that action at this time.
0 commit comments