From: Matt Corallo Date: Wed, 26 Oct 2022 21:55:40 +0000 (+0000) Subject: Drop build_anchor_input_witness for now - need Witness mapping X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=46a1a8ebb7973b73b8dbe0baeac63d139f1c6d65;p=rust-lightning Drop build_anchor_input_witness for now - need Witness mapping --- diff --git a/lightning/src/ln/chan_utils.rs b/lightning/src/ln/chan_utils.rs index a8c9dcc82..3f52bd487 100644 --- a/lightning/src/ln/chan_utils.rs +++ b/lightning/src/ln/chan_utils.rs @@ -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);