@@ -1588,7 +1588,7 @@ trait InitialRemoteCommitmentReceiver<SP: Deref> where SP::Target: SignerProvide
1588
1588
let funding_redeemscript = context.get_funding_redeemscript();
1589
1589
let funding_txo = context.get_funding_txo().unwrap();
1590
1590
let funding_txo_script = funding_redeemscript.to_p2wsh();
1591
- let obscure_factor = get_commitment_transaction_number_obscure_factor(&context.get_holder_pubkeys().payment_point , &context.get_counterparty_pubkeys().payment_point , context.is_outbound());
1591
+ let obscure_factor = get_commitment_transaction_number_obscure_factor(&context.get_holder_pubkeys().payment_basepoint , &context.get_counterparty_pubkeys().payment_basepoint , context.is_outbound());
1592
1592
let shutdown_script = context.shutdown_scriptpubkey.clone().map(|script| script.into_inner());
1593
1593
let mut monitor_signer = signer_provider.derive_channel_signer(context.channel_value_satoshis, context.channel_keys_id);
1594
1594
monitor_signer.provide_channel_parameters(&context.channel_transaction_parameters);
@@ -2483,7 +2483,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
2483
2483
let counterparty_pubkeys = ChannelPublicKeys {
2484
2484
funding_pubkey: common_fields.funding_pubkey,
2485
2485
revocation_basepoint: RevocationBasepoint::from(common_fields.revocation_basepoint),
2486
- payment_point : common_fields.payment_basepoint,
2486
+ payment_basepoint : common_fields.payment_basepoint,
2487
2487
delayed_payment_basepoint: DelayedPaymentBasepoint::from(common_fields.delayed_payment_basepoint),
2488
2488
htlc_basepoint: HtlcBasepoint::from(common_fields.htlc_basepoint)
2489
2489
};
@@ -2749,7 +2749,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
2749
2749
2750
2750
log_trace!(logger, "Building commitment transaction number {} (really {} xor {}) for channel {} for {}, generated by {} with fee {}...",
2751
2751
commitment_number, (INITIAL_COMMITMENT_NUMBER - commitment_number),
2752
- get_commitment_transaction_number_obscure_factor(&self.get_holder_pubkeys().payment_point , &self.get_counterparty_pubkeys().payment_point , self.is_outbound()),
2752
+ get_commitment_transaction_number_obscure_factor(&self.get_holder_pubkeys().payment_basepoint , &self.get_counterparty_pubkeys().payment_basepoint , self.is_outbound()),
2753
2753
&self.channel_id,
2754
2754
if local { "us" } else { "remote" }, if generated_by_local { "us" } else { "remote" }, feerate_per_kw);
2755
2755
@@ -7975,7 +7975,7 @@ impl<SP: Deref> OutboundV1Channel<SP> where SP::Target: SignerProvider {
7975
7975
max_accepted_htlcs: self.context.holder_max_accepted_htlcs,
7976
7976
funding_pubkey: keys.funding_pubkey,
7977
7977
revocation_basepoint: keys.revocation_basepoint.to_public_key(),
7978
- payment_basepoint: keys.payment_point ,
7978
+ payment_basepoint: keys.payment_basepoint ,
7979
7979
delayed_payment_basepoint: keys.delayed_payment_basepoint.to_public_key(),
7980
7980
htlc_basepoint: keys.htlc_basepoint.to_public_key(),
7981
7981
first_per_commitment_point,
@@ -8116,7 +8116,7 @@ impl<SP: Deref> InboundV1Channel<SP> where SP::Target: SignerProvider {
8116
8116
let counterparty_pubkeys = ChannelPublicKeys {
8117
8117
funding_pubkey: msg.common_fields.funding_pubkey,
8118
8118
revocation_basepoint: RevocationBasepoint::from(msg.common_fields.revocation_basepoint),
8119
- payment_point : msg.common_fields.payment_basepoint,
8119
+ payment_basepoint : msg.common_fields.payment_basepoint,
8120
8120
delayed_payment_basepoint: DelayedPaymentBasepoint::from(msg.common_fields.delayed_payment_basepoint),
8121
8121
htlc_basepoint: HtlcBasepoint::from(msg.common_fields.htlc_basepoint)
8122
8122
};
@@ -8189,7 +8189,7 @@ impl<SP: Deref> InboundV1Channel<SP> where SP::Target: SignerProvider {
8189
8189
max_accepted_htlcs: self.context.holder_max_accepted_htlcs,
8190
8190
funding_pubkey: keys.funding_pubkey,
8191
8191
revocation_basepoint: keys.revocation_basepoint.to_public_key(),
8192
- payment_basepoint: keys.payment_point ,
8192
+ payment_basepoint: keys.payment_basepoint ,
8193
8193
delayed_payment_basepoint: keys.delayed_payment_basepoint.to_public_key(),
8194
8194
htlc_basepoint: keys.htlc_basepoint.to_public_key(),
8195
8195
first_per_commitment_point,
@@ -8381,7 +8381,7 @@ impl<SP: Deref> OutboundV2Channel<SP> where SP::Target: SignerProvider {
8381
8381
max_accepted_htlcs: self.context.holder_max_accepted_htlcs,
8382
8382
funding_pubkey: keys.funding_pubkey,
8383
8383
revocation_basepoint: keys.revocation_basepoint.to_public_key(),
8384
- payment_basepoint: keys.payment_point ,
8384
+ payment_basepoint: keys.payment_basepoint ,
8385
8385
delayed_payment_basepoint: keys.delayed_payment_basepoint.to_public_key(),
8386
8386
htlc_basepoint: keys.htlc_basepoint.to_public_key(),
8387
8387
first_per_commitment_point,
@@ -8439,7 +8439,7 @@ impl<SP: Deref> InboundV2Channel<SP> where SP::Target: SignerProvider {
8439
8439
let counterparty_pubkeys = ChannelPublicKeys {
8440
8440
funding_pubkey: msg.common_fields.funding_pubkey,
8441
8441
revocation_basepoint: RevocationBasepoint(msg.common_fields.revocation_basepoint),
8442
- payment_point : msg.common_fields.payment_basepoint,
8442
+ payment_basepoint : msg.common_fields.payment_basepoint,
8443
8443
delayed_payment_basepoint: DelayedPaymentBasepoint(msg.common_fields.delayed_payment_basepoint),
8444
8444
htlc_basepoint: HtlcBasepoint(msg.common_fields.htlc_basepoint)
8445
8445
};
@@ -8530,7 +8530,7 @@ impl<SP: Deref> InboundV2Channel<SP> where SP::Target: SignerProvider {
8530
8530
max_accepted_htlcs: self.context.holder_max_accepted_htlcs,
8531
8531
funding_pubkey: keys.funding_pubkey,
8532
8532
revocation_basepoint: keys.revocation_basepoint.to_public_key(),
8533
- payment_basepoint: keys.payment_point ,
8533
+ payment_basepoint: keys.payment_basepoint ,
8534
8534
delayed_payment_basepoint: keys.delayed_payment_basepoint.to_public_key(),
8535
8535
htlc_basepoint: keys.htlc_basepoint.to_public_key(),
8536
8536
first_per_commitment_point,
@@ -10367,7 +10367,7 @@ mod tests {
10367
10367
let counterparty_pubkeys = ChannelPublicKeys {
10368
10368
funding_pubkey: public_from_secret_hex(&secp_ctx, "1552dfba4f6cf29a62a0af13c8d6981d36d0ef8d61ba10fb0fe90da7634d7e13"),
10369
10369
revocation_basepoint: RevocationBasepoint::from(PublicKey::from_slice(&<Vec<u8>>::from_hex("02466d7fcae563e5cb09a0d1870bb580344804617879a14949cf22285f1bae3f27").unwrap()[..]).unwrap()),
10370
- payment_point : public_from_secret_hex(&secp_ctx, "4444444444444444444444444444444444444444444444444444444444444444"),
10370
+ payment_basepoint : public_from_secret_hex(&secp_ctx, "4444444444444444444444444444444444444444444444444444444444444444"),
10371
10371
delayed_payment_basepoint: DelayedPaymentBasepoint::from(public_from_secret_hex(&secp_ctx, "1552dfba4f6cf29a62a0af13c8d6981d36d0ef8d61ba10fb0fe90da7634d7e13")),
10372
10372
htlc_basepoint: HtlcBasepoint::from(public_from_secret_hex(&secp_ctx, "4444444444444444444444444444444444444444444444444444444444444444"))
10373
10373
};
@@ -10379,7 +10379,7 @@ mod tests {
10379
10379
chan.context.channel_transaction_parameters.funding_outpoint = Some(funding_info);
10380
10380
signer.provide_channel_parameters(&chan.context.channel_transaction_parameters);
10381
10381
10382
- assert_eq!(counterparty_pubkeys.payment_point .serialize()[..],
10382
+ assert_eq!(counterparty_pubkeys.payment_basepoint .serialize()[..],
10383
10383
<Vec<u8>>::from_hex("032c0b7cf95324a07d05398b240174dc0c2be444d96b159aa6c7f7b1e668680991").unwrap()[..]);
10384
10384
10385
10385
assert_eq!(counterparty_pubkeys.funding_pubkey.serialize()[..],
0 commit comments