]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Drop build_anchor_input_witness for now - need Witness mapping
authorMatt Corallo <git@bluematt.me>
Wed, 26 Oct 2022 21:55:40 +0000 (21:55 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 27 Oct 2022 20:15:06 +0000 (20:15 +0000)
lightning/src/ln/chan_utils.rs

index a8c9dcc826e540d91e4020c67789df23e30297a4..3f52bd48717a4417f750a6fb99e6c91b75bb28ac 100644 (file)
@@ -737,7 +737,7 @@ pub(crate) fn get_anchor_output<'a>(commitment_tx: &'a Transaction, funding_pubk
 }
 
 /// Returns the witness required to satisfy and spend an anchor input.
-pub fn build_anchor_input_witness(funding_key: &PublicKey, funding_sig: &Signature) -> Witness {
+pub(crate) fn build_anchor_input_witness(funding_key: &PublicKey, funding_sig: &Signature) -> Witness {
        let anchor_redeem_script = chan_utils::get_anchor_redeemscript(funding_key);
        let mut funding_sig = funding_sig.serialize_der().to_vec();
        funding_sig.push(EcdsaSighashType::All as u8);