You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
935a716 added new wrappers for the
various channel keys, including a payment_key. However, the
`payment_key` has been unused in lightning since the introduction
(and broad requiring) of the `static_remotekey` feature.
Thus, we simply remove it (and an incredibly stale TODO) here.
Copy file name to clipboardExpand all lines: lightning/src/ln/channel_keys.rs
-20Lines changed: 0 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -111,26 +111,6 @@ impl DelayedPaymentKey {
111
111
}
112
112
key_read_write!(DelayedPaymentKey);
113
113
114
-
/// Master key used in conjunction with per_commitment_point to generate a [localpubkey](https://github.com/lightning/bolts/blob/master/03-transactions.md#key-derivation) for the latest state of a channel.
115
-
/// Also used to generate a commitment number in a commitment transaction or as a Payment Key for a remote node (not us) in an anchor output if `option_static_remotekey` is enabled.
116
-
/// Shared by both nodes in a channel establishment message flow.
117
-
#[derive(PartialEq,Eq,Clone,Copy,Debug,Hash)]
118
-
pubstructPaymentBasepoint(pubPublicKey);
119
-
basepoint_impl!(PaymentBasepoint);
120
-
key_read_write!(PaymentBasepoint);
121
-
122
-
123
-
/// [localpubkey](https://github.com/lightning/bolts/blob/master/03-transactions.md#localpubkey-local_htlcpubkey-remote_htlcpubkey-local_delayedpubkey-and-remote_delayedpubkey-derivation) is a child key of a payment basepoint,
124
-
/// that enables a secure hash-lock for off-chain payments without risk of funds getting stuck or stolen. A payment key is normally shared with a counterparty so that it can generate
125
-
/// a commitment transaction's to_remote ouput, which our node can claim in case the counterparty force closes the channel.
126
-
#[derive(PartialEq,Eq,Clone,Copy,Debug)]
127
-
pubstructPaymentKey(pubPublicKey);
128
-
129
-
implPaymentKey{
130
-
key_impl!(PaymentBasepoint,"localpubkey");
131
-
}
132
-
key_read_write!(PaymentKey);
133
-
134
114
/// Master key used in conjunction with per_commitment_point to generate [htlcpubkey](https://github.com/lightning/bolts/blob/master/03-transactions.md#key-derivation) for the latest state of a channel.
0 commit comments