We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ChannelSigner::get_funding_spk
1 parent 77b6fd4 commit e711b26Copy full SHA for e711b26
lightning/src/sign/mod.rs
@@ -1393,6 +1393,15 @@ pub trait ChannelSigner {
1393
}
1394
ret
1395
1396
+
1397
+ /// Get the script pubkey of the funding transaction
1398
+ fn get_funding_spk(&self) -> ScriptBuf {
1399
+ let params = self.get_channel_parameters().unwrap();
1400
+ let holder_pubkey = params.holder_pubkeys.funding_pubkey;
1401
+ let counterparty_pubkey =
1402
+ params.counterparty_parameters.as_ref().unwrap().pubkeys.funding_pubkey;
1403
+ make_funding_redeemscript(&holder_pubkey, &counterparty_pubkey).to_p2wsh()
1404
+ }
1405
1406
1407
/// Specifies the recipient of an invoice.
0 commit comments