@@ -239,7 +239,7 @@ pub trait ChannelKeys : Send+Clone {
239
239
/// An external signer implementation should check that the commitment has not been revoked.
240
240
//
241
241
// TODO: Document the things someone using this interface should enforce before signing.
242
- fn sign_holder_commitment < T : secp256k1:: Signing + secp256k1:: Verification > ( & self , commitment_tx : & HolderCommitmentTransaction , secp_ctx : & Secp256k1 < T > ) -> Result < ( Signature , Vec < Signature > ) , ( ) > ;
242
+ fn sign_holder_commitment < T : secp256k1:: Signing + secp256k1:: Verification > ( & self , commitment_tx : & HolderCommitmentTransaction , secp_ctx : & Secp256k1 < T > ) -> Result < Signature , ( ) > ;
243
243
244
244
/// Same as sign_holder_commitment, but exists only for tests to get access to holder commitment
245
245
/// transactions which will be broadcasted later, after the channel has moved on to a newer
@@ -481,12 +481,11 @@ impl ChannelKeys for InMemoryChannelKeys {
481
481
Ok ( ( commitment_sig, htlc_sigs) )
482
482
}
483
483
484
- fn sign_holder_commitment < T : secp256k1:: Signing + secp256k1:: Verification > ( & self , commitment_tx : & HolderCommitmentTransaction , secp_ctx : & Secp256k1 < T > ) -> Result < ( Signature , Vec < Signature > ) , ( ) > {
484
+ fn sign_holder_commitment < T : secp256k1:: Signing + secp256k1:: Verification > ( & self , commitment_tx : & HolderCommitmentTransaction , secp_ctx : & Secp256k1 < T > ) -> Result < Signature , ( ) > {
485
485
let funding_pubkey = PublicKey :: from_secret_key ( secp_ctx, & self . funding_key ) ;
486
486
let funding_redeemscript = make_funding_redeemscript ( & funding_pubkey, & self . counterparty_pubkeys ( ) . funding_pubkey ) ;
487
487
let sig = commitment_tx. trust ( ) . built_transaction ( ) . sign ( & self . funding_key , & funding_redeemscript, self . channel_value_satoshis , secp_ctx) ;
488
- let htlc_sigs = self . sign_holder_commitment_htlc_transactions ( & commitment_tx, secp_ctx) ?;
489
- Ok ( ( sig, htlc_sigs) )
488
+ Ok ( sig)
490
489
}
491
490
492
491
#[ cfg( any( test, feature = "unsafe_revoked_tx_signing" ) ) ]
0 commit comments