@@ -104,76 +104,76 @@ pub struct Pong {
104
104
pub struct OpenChannel {
105
105
/// The genesis hash of the blockchain where the channel is to be opened
106
106
pub chain_hash : BlockHash ,
107
- /// A temporary channel ID, until the funding is established
107
+ /// A temporary channel ID, until the funding outpoint is announced
108
108
pub temporary_channel_id : [ u8 ; 32 ] ,
109
109
/// The channel value
110
110
pub funding_satoshis : u64 ,
111
111
/// The amount to push to the counterparty as part of the open, in milli-satoshi
112
112
pub push_msat : u64 ,
113
- /// The threshold below which outputs should be omitted
113
+ /// The threshold below which outputs on sender broadcast transactions will be omitted
114
114
pub dust_limit_satoshis : u64 ,
115
- /// The maximum total HTLC value in flight, in milli-satoshi
115
+ /// The maximum inbound HTLC value in flight on sender , in milli-satoshi
116
116
pub max_htlc_value_in_flight_msat : u64 ,
117
- /// The minimum value for the counterparty to keep in the channel
117
+ /// The minimum value unencumbered by HTLCs for the counterparty to keep in the channel
118
118
pub channel_reserve_satoshis : u64 ,
119
- /// The minimum HTLC size, in milli-satoshi
119
+ /// The minimum HTLC size incoming to sender , in milli-satoshi
120
120
pub htlc_minimum_msat : u64 ,
121
- /// The feerate per 1000-weight of the transaction
121
+ /// The feerate per 1000-weight of sender generated transactions, until updated by update_fee
122
122
pub feerate_per_kw : u32 ,
123
- /// The minimum to_self_delay for the counterparty's transactions
123
+ /// The number of blocks which the counterparty will have to wait to claim on-chain funds if they broadcast a commitment transaction
124
124
pub to_self_delay : u16 ,
125
- /// The maximum number of accepted HTLCs
125
+ /// The maximum number of inbound HTLCs on sender
126
126
pub max_accepted_htlcs : u16 ,
127
- /// The funding public key
127
+ /// The sender's key controlling the funding transaction
128
128
pub funding_pubkey : PublicKey ,
129
- /// The funding public key
129
+ /// Used to derive a revocation key for transactions broadcast by counterparty
130
130
pub revocation_basepoint : PublicKey ,
131
- /// The payment point
131
+ /// Used to derive a payment key to sender for transactions broadcast by counterparty
132
132
pub payment_point : PublicKey ,
133
- /// The delayed payment basepoint
133
+ /// Used to derive a payment key to sender for transactions broadcast by sender
134
134
pub delayed_payment_basepoint : PublicKey ,
135
- /// The HTLC basepoint
135
+ /// Used to derive an HTLC payment key to sender
136
136
pub htlc_basepoint : PublicKey ,
137
- /// The first transaction's per commitment point
137
+ /// The first to-be-broadcast-by-sender transaction's per commitment point
138
138
pub first_per_commitment_point : PublicKey ,
139
139
/// Channel flags
140
140
pub channel_flags : u8 ,
141
- /// Optionally, the scriptPubkey when we collaboratively close
141
+ /// Optionally, a request to pre-set the to-sender output's scriptPubkey for when we collaboratively close
142
142
pub shutdown_scriptpubkey : OptionalField < Script > ,
143
143
}
144
144
145
145
/// An accept_channel message to be sent or received from a peer
146
146
#[ derive( Clone ) ]
147
147
pub struct AcceptChannel {
148
- /// A temporary channel ID, until the funding is established
148
+ /// A temporary channel ID, until the funding outpoint is announced
149
149
pub temporary_channel_id : [ u8 ; 32 ] ,
150
- /// The threshold below which outputs should be omitted
150
+ /// The threshold below which outputs on sender broadcast transactions will be omitted
151
151
pub dust_limit_satoshis : u64 ,
152
- /// The maximum total HTLC value in flight, in milli-satoshi
152
+ /// The maximum inbound HTLC value in flight on sender , in milli-satoshi
153
153
pub max_htlc_value_in_flight_msat : u64 ,
154
- /// The minimum value for the counterparty to keep in the channel
154
+ /// The minimum value unencumbered by HTLCs for the counterparty to keep in the channel
155
155
pub channel_reserve_satoshis : u64 ,
156
- /// The minimum HTLC size, in milli-satoshi
156
+ /// The minimum HTLC size incoming to sender , in milli-satoshi
157
157
pub htlc_minimum_msat : u64 ,
158
158
/// Minimum depth of the funding transaction before the channel is considered open
159
159
pub minimum_depth : u32 ,
160
- /// The minimum to_self_delay for the counterparty's transactions
160
+ /// The number of blocks which the counterparty will have to wait to claim on-chain funds if they broadcast a commitment transaction
161
161
pub to_self_delay : u16 ,
162
- /// The maximum number of accepted HTLCs
162
+ /// The maximum number of inbound HTLCs on sender
163
163
pub max_accepted_htlcs : u16 ,
164
- /// The funding public key
164
+ /// The sender's key controlling the funding transaction
165
165
pub funding_pubkey : PublicKey ,
166
- /// The funding public key
166
+ /// Used to derive a revocation key for transactions broadcast by counterparty
167
167
pub revocation_basepoint : PublicKey ,
168
- /// The payment point
168
+ /// Used to derive a payment key to sender for transactions broadcast by counterparty
169
169
pub payment_point : PublicKey ,
170
- /// The delayed payment basepoint
170
+ /// Used to derive a payment key to sender for transactions broadcast by sender
171
171
pub delayed_payment_basepoint : PublicKey ,
172
- /// The HTLC basepoint
172
+ /// Used to derive an HTLC payment key to sender for transactions broadcast by counterparty
173
173
pub htlc_basepoint : PublicKey ,
174
- /// The first transaction's per commitment point
174
+ /// The first to-be-broadcast-by-sender transaction's per commitment point
175
175
pub first_per_commitment_point : PublicKey ,
176
- /// Optionally, the scriptPubkey when we collaboratively close
176
+ /// Optionally, a request to pre-set the to-sender output's scriptPubkey for when we collaboratively close
177
177
pub shutdown_scriptpubkey : OptionalField < Script > ,
178
178
}
179
179
@@ -193,7 +193,7 @@ pub struct FundingCreated {
193
193
/// A funding_signed message to be sent or received from a peer
194
194
#[ derive( Clone ) ]
195
195
pub struct FundingSigned {
196
- /// The channel ID, which is the funding transaction ID mixed with the funding output index
196
+ /// The channel ID
197
197
pub channel_id : [ u8 ; 32 ] ,
198
198
/// The signature of the channel acceptor (fundee) on the funding transaction
199
199
pub signature : Signature ,
@@ -238,7 +238,7 @@ pub struct UpdateAddHTLC {
238
238
pub htlc_id : u64 ,
239
239
/// The HTLC value in milli-satoshi
240
240
pub amount_msat : u64 ,
241
- /// The payment hash
241
+ /// The payment hash, the pre-image of which controls HTLC redemption
242
242
pub payment_hash : PaymentHash ,
243
243
/// The expiry height of the HTLC
244
244
pub cltv_expiry : u32 ,
@@ -252,7 +252,7 @@ pub struct UpdateFulfillHTLC {
252
252
pub channel_id : [ u8 ; 32 ] ,
253
253
/// The HTLC ID
254
254
pub htlc_id : u64 ,
255
- /// The pre-image of the payment hash
255
+ /// The pre-image of the payment hash, allowing HTLC redemption
256
256
pub payment_preimage : PaymentPreimage ,
257
257
}
258
258
@@ -296,7 +296,7 @@ pub struct RevokeAndACK {
296
296
pub channel_id : [ u8 ; 32 ] ,
297
297
/// The secret corresponding to the per-commitment point
298
298
pub per_commitment_secret : [ u8 ; 32 ] ,
299
- /// The next transaction's per-commitment point
299
+ /// The next sender-broadcast commitment transaction's per-commitment point
300
300
pub next_per_commitment_point : PublicKey ,
301
301
}
302
302
@@ -490,8 +490,7 @@ pub struct UnsignedNodeAnnouncement {
490
490
/// An alias, for UI purposes. This should be sanitized before use. There is no guarantee
491
491
/// of uniqueness.
492
492
pub alias : [ u8 ; 32 ] ,
493
- /// List of addresses on which this node is reachable. Note that you may only have up to one
494
- /// address of each type, if you have more, they may be silently discarded or we may panic!
493
+ /// List of addresses on which this node is reachable
495
494
pub addresses : Vec < NetAddress > ,
496
495
pub ( crate ) excess_address_data : Vec < u8 > ,
497
496
pub ( crate ) excess_data : Vec < u8 > ,
@@ -508,7 +507,7 @@ pub struct NodeAnnouncement {
508
507
/// The unsigned part of a channel_announcement
509
508
#[ derive( PartialEq , Clone , Debug ) ]
510
509
pub struct UnsignedChannelAnnouncement {
511
- /// The advertised features
510
+ /// The advertised channel features
512
511
pub features : ChannelFeatures ,
513
512
/// The genesis hash of the blockchain where the channel is to be opened
514
513
pub chain_hash : BlockHash ,
@@ -527,13 +526,13 @@ pub struct UnsignedChannelAnnouncement {
527
526
/// A channel_announcement message to be sent or received from a peer
528
527
#[ derive( PartialEq , Clone , Debug ) ]
529
528
pub struct ChannelAnnouncement {
530
- /// A signature of the announcement by the node key of the first node
529
+ /// Authentication of the announcement by the first public node
531
530
pub node_signature_1 : Signature ,
532
- /// A signature of the announcement by the node key of the second node
531
+ /// Authentication of the announcement by the second public node
533
532
pub node_signature_2 : Signature ,
534
- /// The funding signature of the first node
533
+ /// Proof of funding UTXO ownership by the first public node
535
534
pub bitcoin_signature_1 : Signature ,
536
- /// The funding signature of the second node
535
+ /// Proof of funding UTXO ownership by the second public node
537
536
pub bitcoin_signature_2 : Signature ,
538
537
/// The actual announcement
539
538
pub contents : UnsignedChannelAnnouncement ,
@@ -552,11 +551,11 @@ pub struct UnsignedChannelUpdate {
552
551
pub flags : u8 ,
553
552
/// The number of blocks to subtract from incoming HTLC cltv_expiry values
554
553
pub cltv_expiry_delta : u16 ,
555
- /// The minimum HTLC value in milli-satoshi
554
+ /// The minimum HTLC size incoming to sender, in milli-satoshi
556
555
pub htlc_minimum_msat : u64 ,
557
- /// Optionally, the maximum HTLC value in milli-satoshi
556
+ /// Optionally, the maximum HTLC value incoming to sender, in milli-satoshi
558
557
pub htlc_maximum_msat : OptionalField < u64 > ,
559
- /// The base HTLC fee in milli-satoshi
558
+ /// The base HTLC fee charged by sender, in milli-satoshi
560
559
pub fee_base_msat : u32 ,
561
560
/// The amount to fee multiplier, in micro-satoshi
562
561
pub fee_proportional_millionths : u32 ,
0 commit comments