@@ -43,6 +43,8 @@ use crate::ln::channel::ANCHOR_OUTPUT_VALUE_SATOSHI;
4343use crate :: ln:: { chan_utils, PaymentPreimage } ;
4444use crate :: ln:: chan_utils:: { HTLCOutputInCommitment , make_funding_redeemscript, ChannelPublicKeys , HolderCommitmentTransaction , ChannelTransactionParameters , CommitmentTransaction , ClosingTransaction } ;
4545use crate :: ln:: msgs:: { UnsignedChannelAnnouncement , UnsignedGossipMessage } ;
46+ #[ cfg( taproot) ]
47+ use crate :: ln:: msgs:: PartialSignatureWithNonce ;
4648use crate :: ln:: script:: ShutdownScript ;
4749use crate :: offers:: invoice:: UnsignedBolt12Invoice ;
4850use crate :: offers:: invoice_request:: UnsignedInvoiceRequest ;
@@ -1127,35 +1129,35 @@ impl TaprootChannelSigner for InMemorySigner {
11271129 todo ! ( )
11281130 }
11291131
1130- fn partially_sign_counterparty_commitment ( & self , commitment_tx : & CommitmentTransaction , preimages : Vec < PaymentPreimage > , secp_ctx : & Secp256k1 < All > ) -> Result < ( PartialSignature , Vec < Signature > ) , ( ) > {
1132+ fn partially_sign_counterparty_commitment ( & self , commitment_tx : & CommitmentTransaction , preimages : Vec < PaymentPreimage > , secp_ctx : & Secp256k1 < All > ) -> Result < ( PartialSignatureWithNonce , Vec < schnorr :: Signature > ) , ( ) > {
11311133 todo ! ( )
11321134 }
11331135
1134- fn partially_sign_holder_commitment_and_htlcs ( & self , commitment_tx : & HolderCommitmentTransaction , secp_ctx : & Secp256k1 < All > ) -> Result < ( PartialSignature , Vec < Signature > ) , ( ) > {
1136+ fn partially_sign_holder_commitment_and_htlcs ( & self , commitment_tx : & HolderCommitmentTransaction , secp_ctx : & Secp256k1 < All > ) -> Result < ( PartialSignature , Vec < schnorr :: Signature > ) , ( ) > {
11351137 todo ! ( )
11361138 }
11371139
1138- fn sign_justice_revoked_output ( & self , justice_tx : & Transaction , input : usize , amount : u64 , per_commitment_key : & SecretKey , secp_ctx : & Secp256k1 < All > ) -> Result < Signature , ( ) > {
1140+ fn sign_justice_revoked_output ( & self , justice_tx : & Transaction , input : usize , amount : u64 , per_commitment_key : & SecretKey , secp_ctx : & Secp256k1 < All > ) -> Result < schnorr :: Signature , ( ) > {
11391141 todo ! ( )
11401142 }
11411143
1142- fn sign_justice_revoked_htlc ( & self , justice_tx : & Transaction , input : usize , amount : u64 , per_commitment_key : & SecretKey , htlc : & HTLCOutputInCommitment , secp_ctx : & Secp256k1 < All > ) -> Result < Signature , ( ) > {
1144+ fn sign_justice_revoked_htlc ( & self , justice_tx : & Transaction , input : usize , amount : u64 , per_commitment_key : & SecretKey , htlc : & HTLCOutputInCommitment , secp_ctx : & Secp256k1 < All > ) -> Result < schnorr :: Signature , ( ) > {
11431145 todo ! ( )
11441146 }
11451147
1146- fn sign_holder_htlc_transaction ( & self , htlc_tx : & Transaction , input : usize , htlc_descriptor : & HTLCDescriptor , secp_ctx : & Secp256k1 < All > ) -> Result < Signature , ( ) > {
1148+ fn sign_holder_htlc_transaction ( & self , htlc_tx : & Transaction , input : usize , htlc_descriptor : & HTLCDescriptor , secp_ctx : & Secp256k1 < All > ) -> Result < schnorr :: Signature , ( ) > {
11471149 todo ! ( )
11481150 }
11491151
1150- fn sign_counterparty_htlc_transaction ( & self , htlc_tx : & Transaction , input : usize , amount : u64 , per_commitment_point : & PublicKey , htlc : & HTLCOutputInCommitment , secp_ctx : & Secp256k1 < All > ) -> Result < Signature , ( ) > {
1152+ fn sign_counterparty_htlc_transaction ( & self , htlc_tx : & Transaction , input : usize , amount : u64 , per_commitment_point : & PublicKey , htlc : & HTLCOutputInCommitment , secp_ctx : & Secp256k1 < All > ) -> Result < schnorr :: Signature , ( ) > {
11511153 todo ! ( )
11521154 }
11531155
11541156 fn partially_sign_closing_transaction ( & self , closing_tx : & ClosingTransaction , secp_ctx : & Secp256k1 < All > ) -> Result < PartialSignature , ( ) > {
11551157 todo ! ( )
11561158 }
11571159
1158- fn sign_holder_anchor_input ( & self , anchor_tx : & Transaction , input : usize , secp_ctx : & Secp256k1 < All > ) -> Result < Signature , ( ) > {
1160+ fn sign_holder_anchor_input ( & self , anchor_tx : & Transaction , input : usize , secp_ctx : & Secp256k1 < All > ) -> Result < schnorr :: Signature , ( ) > {
11591161 todo ! ( )
11601162 }
11611163}
0 commit comments