@@ -594,14 +594,14 @@ pub trait ChannelSigner {
594
594
/// Policy checks should be implemented in this function, including checking the amount
595
595
/// sent to us and checking the HTLCs.
596
596
///
597
- /// The preimages of outgoing HTLCs that were fulfilled since the last commitment are provided.
597
+ /// The preimages of outbound HTLCs that were fulfilled since the last commitment are provided.
598
598
/// A validating signer should ensure that an HTLC output is removed only when the matching
599
599
/// preimage is provided, or when the value to holder is restored.
600
600
///
601
601
/// Note that all the relevant preimages will be provided, but there may also be additional
602
602
/// irrelevant or duplicate preimages.
603
603
fn validate_holder_commitment ( & self , holder_tx : & HolderCommitmentTransaction ,
604
- preimages : Vec < PaymentPreimage > ) -> Result < ( ) , ( ) > ;
604
+ outbound_htlc_preimages : Vec < PaymentPreimage > ) -> Result < ( ) , ( ) > ;
605
605
606
606
/// Returns the holder's channel public keys and basepoints.
607
607
fn pubkeys ( & self ) -> & ChannelPublicKeys ;
@@ -1080,7 +1080,7 @@ impl ChannelSigner for InMemorySigner {
1080
1080
chan_utils:: build_commitment_secret ( & self . commitment_seed , idx)
1081
1081
}
1082
1082
1083
- fn validate_holder_commitment ( & self , _holder_tx : & HolderCommitmentTransaction , _preimages : Vec < PaymentPreimage > ) -> Result < ( ) , ( ) > {
1083
+ fn validate_holder_commitment ( & self , _holder_tx : & HolderCommitmentTransaction , _outbound_htlc_preimages : Vec < PaymentPreimage > ) -> Result < ( ) , ( ) > {
1084
1084
Ok ( ( ) )
1085
1085
}
1086
1086
@@ -1102,7 +1102,7 @@ impl ChannelSigner for InMemorySigner {
1102
1102
const MISSING_PARAMS_ERR : & ' static str = "ChannelSigner::provide_channel_parameters must be called before signing operations" ;
1103
1103
1104
1104
impl EcdsaChannelSigner for InMemorySigner {
1105
- fn sign_counterparty_commitment ( & self , commitment_tx : & CommitmentTransaction , _inbound_preimages : Vec < PaymentPreimage > , _outbound_preimages : Vec < PaymentPreimage > , secp_ctx : & Secp256k1 < secp256k1:: All > ) -> Result < ( Signature , Vec < Signature > ) , ( ) > {
1105
+ fn sign_counterparty_commitment ( & self , commitment_tx : & CommitmentTransaction , _inbound_htlc_preimages : Vec < PaymentPreimage > , _outbound_htlc_preimages : Vec < PaymentPreimage > , secp_ctx : & Secp256k1 < secp256k1:: All > ) -> Result < ( Signature , Vec < Signature > ) , ( ) > {
1106
1106
let trusted_tx = commitment_tx. trust ( ) ;
1107
1107
let keys = trusted_tx. keys ( ) ;
1108
1108
@@ -1254,7 +1254,7 @@ impl TaprootChannelSigner for InMemorySigner {
1254
1254
todo ! ( )
1255
1255
}
1256
1256
1257
- fn partially_sign_counterparty_commitment ( & self , counterparty_nonce : PublicNonce , commitment_tx : & CommitmentTransaction , incoming_preimages : Vec < PaymentPreimage > , outgoing_preimages : Vec < PaymentPreimage > , secp_ctx : & Secp256k1 < All > ) -> Result < ( PartialSignatureWithNonce , Vec < schnorr:: Signature > ) , ( ) > {
1257
+ fn partially_sign_counterparty_commitment ( & self , counterparty_nonce : PublicNonce , commitment_tx : & CommitmentTransaction , inbound_htlc_preimages : Vec < PaymentPreimage > , outbound_htlc_preimages : Vec < PaymentPreimage > , secp_ctx : & Secp256k1 < All > ) -> Result < ( PartialSignatureWithNonce , Vec < schnorr:: Signature > ) , ( ) > {
1258
1258
todo ! ( )
1259
1259
}
1260
1260
0 commit comments