X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Fsign%2Ftaproot.rs;h=f2d3f62831374a5091d55a9825f46e494f66e459;hb=c70ea1d987baef7b0d658d476eb09c281f98bd65;hp=2c9eb6970464e8f81940c3d3d876bf6e0cfcfc4f;hpb=f862aa9f5f95b89b3d202f425669a4c7dfcdce3e;p=rust-lightning diff --git a/lightning/src/sign/taproot.rs b/lightning/src/sign/taproot.rs index 2c9eb697..f2d3f628 100644 --- a/lightning/src/sign/taproot.rs +++ b/lightning/src/sign/taproot.rs @@ -1,5 +1,6 @@ //! Defines a Taproot-specific signer type. +use alloc::vec::Vec; use bitcoin::blockdata::transaction::Transaction; use bitcoin::secp256k1; use bitcoin::secp256k1::{PublicKey, schnorr::Signature, Secp256k1, SecretKey}; @@ -50,8 +51,7 @@ pub trait TaprootChannelSigner: ChannelSigner { /// An external signer implementation should check that the commitment has not been revoked. /// // TODO: Document the things someone using this interface should enforce before signing. - fn finalize_holder_commitment(&self, commitment_number: u64, - commitment_tx: &HolderCommitmentTransaction, + fn finalize_holder_commitment(&self, commitment_tx: &HolderCommitmentTransaction, counterparty_partial_signature: PartialSignatureWithNonce, secp_ctx: &Secp256k1 ) -> Result;