@@ -43,6 +43,8 @@ use crate::ln::channel::ANCHOR_OUTPUT_VALUE_SATOSHI;
43
43
use crate :: ln:: { chan_utils, PaymentPreimage } ;
44
44
use crate :: ln:: chan_utils:: { HTLCOutputInCommitment , make_funding_redeemscript, ChannelPublicKeys , HolderCommitmentTransaction , ChannelTransactionParameters , CommitmentTransaction , ClosingTransaction } ;
45
45
use crate :: ln:: msgs:: { UnsignedChannelAnnouncement , UnsignedGossipMessage } ;
46
+ #[ cfg( taproot) ]
47
+ use crate :: ln:: msgs:: PartialSignatureWithNonce ;
46
48
use crate :: ln:: script:: ShutdownScript ;
47
49
use crate :: offers:: invoice:: UnsignedBolt12Invoice ;
48
50
use crate :: offers:: invoice_request:: UnsignedInvoiceRequest ;
@@ -1127,35 +1129,35 @@ impl TaprootChannelSigner for InMemorySigner {
1127
1129
todo ! ( )
1128
1130
}
1129
1131
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 > ) , ( ) > {
1131
1133
todo ! ( )
1132
1134
}
1133
1135
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 > ) , ( ) > {
1135
1137
todo ! ( )
1136
1138
}
1137
1139
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 , ( ) > {
1139
1141
todo ! ( )
1140
1142
}
1141
1143
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 , ( ) > {
1143
1145
todo ! ( )
1144
1146
}
1145
1147
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 , ( ) > {
1147
1149
todo ! ( )
1148
1150
}
1149
1151
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 , ( ) > {
1151
1153
todo ! ( )
1152
1154
}
1153
1155
1154
1156
fn partially_sign_closing_transaction ( & self , closing_tx : & ClosingTransaction , secp_ctx : & Secp256k1 < All > ) -> Result < PartialSignature , ( ) > {
1155
1157
todo ! ( )
1156
1158
}
1157
1159
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 , ( ) > {
1159
1161
todo ! ( )
1160
1162
}
1161
1163
}
0 commit comments