@@ -104,76 +104,76 @@ pub struct Pong {
104104pub struct OpenChannel {
105105 /// The genesis hash of the blockchain where the channel is to be opened
106106 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
108108 pub temporary_channel_id : [ u8 ; 32 ] ,
109109 /// The channel value
110110 pub funding_satoshis : u64 ,
111111 /// The amount to push to the counterparty as part of the open, in milli-satoshi
112112 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
114114 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
116116 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
118118 pub channel_reserve_satoshis : u64 ,
119- /// The minimum HTLC size, in milli-satoshi
119+ /// The minimum HTLC size incoming to sender , in milli-satoshi
120120 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
122122 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
124124 pub to_self_delay : u16 ,
125- /// The maximum number of accepted HTLCs
125+ /// The maximum number of inbound HTLCs on sender
126126 pub max_accepted_htlcs : u16 ,
127- /// The funding public key
127+ /// The sender's key controlling the funding transaction
128128 pub funding_pubkey : PublicKey ,
129- /// The funding public key
129+ /// Used to derive a revocation key for transactions broadcast by counterparty
130130 pub revocation_basepoint : PublicKey ,
131- /// The payment point
131+ /// Used to derive a payment key to sender for transactions broadcast by counterparty
132132 pub payment_point : PublicKey ,
133- /// The delayed payment basepoint
133+ /// Used to derive a payment key to sender for transactions broadcast by sender
134134 pub delayed_payment_basepoint : PublicKey ,
135- /// The HTLC basepoint
135+ /// Used to derive an HTLC payment key to sender
136136 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
138138 pub first_per_commitment_point : PublicKey ,
139139 /// Channel flags
140140 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
142142 pub shutdown_scriptpubkey : OptionalField < Script > ,
143143}
144144
145145/// An accept_channel message to be sent or received from a peer
146146#[ derive( Clone ) ]
147147pub struct AcceptChannel {
148- /// A temporary channel ID, until the funding is established
148+ /// A temporary channel ID, until the funding outpoint is announced
149149 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
151151 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
153153 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
155155 pub channel_reserve_satoshis : u64 ,
156- /// The minimum HTLC size, in milli-satoshi
156+ /// The minimum HTLC size incoming to sender , in milli-satoshi
157157 pub htlc_minimum_msat : u64 ,
158158 /// Minimum depth of the funding transaction before the channel is considered open
159159 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
161161 pub to_self_delay : u16 ,
162- /// The maximum number of accepted HTLCs
162+ /// The maximum number of inbound HTLCs on sender
163163 pub max_accepted_htlcs : u16 ,
164- /// The funding public key
164+ /// The sender's key controlling the funding transaction
165165 pub funding_pubkey : PublicKey ,
166- /// The funding public key
166+ /// Used to derive a revocation key for transactions broadcast by counterparty
167167 pub revocation_basepoint : PublicKey ,
168- /// The payment point
168+ /// Used to derive a payment key to sender for transactions broadcast by counterparty
169169 pub payment_point : PublicKey ,
170- /// The delayed payment basepoint
170+ /// Used to derive a payment key to sender for transactions broadcast by sender
171171 pub delayed_payment_basepoint : PublicKey ,
172- /// The HTLC basepoint
172+ /// Used to derive an HTLC payment key to sender for transactions broadcast by counterparty
173173 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
175175 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
177177 pub shutdown_scriptpubkey : OptionalField < Script > ,
178178}
179179
@@ -193,7 +193,7 @@ pub struct FundingCreated {
193193/// A funding_signed message to be sent or received from a peer
194194#[ derive( Clone ) ]
195195pub struct FundingSigned {
196- /// The channel ID, which is the funding transaction ID mixed with the funding output index
196+ /// The channel ID
197197 pub channel_id : [ u8 ; 32 ] ,
198198 /// The signature of the channel acceptor (fundee) on the funding transaction
199199 pub signature : Signature ,
@@ -238,7 +238,7 @@ pub struct UpdateAddHTLC {
238238 pub htlc_id : u64 ,
239239 /// The HTLC value in milli-satoshi
240240 pub amount_msat : u64 ,
241- /// The payment hash
241+ /// The payment hash, the pre-image of which controls HTLC redemption
242242 pub payment_hash : PaymentHash ,
243243 /// The expiry height of the HTLC
244244 pub cltv_expiry : u32 ,
@@ -252,7 +252,7 @@ pub struct UpdateFulfillHTLC {
252252 pub channel_id : [ u8 ; 32 ] ,
253253 /// The HTLC ID
254254 pub htlc_id : u64 ,
255- /// The pre-image of the payment hash
255+ /// The pre-image of the payment hash, allowing HTLC redemption
256256 pub payment_preimage : PaymentPreimage ,
257257}
258258
@@ -296,7 +296,7 @@ pub struct RevokeAndACK {
296296 pub channel_id : [ u8 ; 32 ] ,
297297 /// The secret corresponding to the per-commitment point
298298 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
300300 pub next_per_commitment_point : PublicKey ,
301301}
302302
@@ -490,8 +490,7 @@ pub struct UnsignedNodeAnnouncement {
490490 /// An alias, for UI purposes. This should be sanitized before use. There is no guarantee
491491 /// of uniqueness.
492492 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
495494 pub addresses : Vec < NetAddress > ,
496495 pub ( crate ) excess_address_data : Vec < u8 > ,
497496 pub ( crate ) excess_data : Vec < u8 > ,
@@ -508,7 +507,7 @@ pub struct NodeAnnouncement {
508507/// The unsigned part of a channel_announcement
509508#[ derive( PartialEq , Clone , Debug ) ]
510509pub struct UnsignedChannelAnnouncement {
511- /// The advertised features
510+ /// The advertised channel features
512511 pub features : ChannelFeatures ,
513512 /// The genesis hash of the blockchain where the channel is to be opened
514513 pub chain_hash : BlockHash ,
@@ -527,13 +526,13 @@ pub struct UnsignedChannelAnnouncement {
527526/// A channel_announcement message to be sent or received from a peer
528527#[ derive( PartialEq , Clone , Debug ) ]
529528pub 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
531530 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
533532 pub node_signature_2 : Signature ,
534- /// The funding signature of the first node
533+ /// Proof of funding UTXO ownership by the first public node
535534 pub bitcoin_signature_1 : Signature ,
536- /// The funding signature of the second node
535+ /// Proof of funding UTXO ownership by the second public node
537536 pub bitcoin_signature_2 : Signature ,
538537 /// The actual announcement
539538 pub contents : UnsignedChannelAnnouncement ,
@@ -552,11 +551,11 @@ pub struct UnsignedChannelUpdate {
552551 pub flags : u8 ,
553552 /// The number of blocks to subtract from incoming HTLC cltv_expiry values
554553 pub cltv_expiry_delta : u16 ,
555- /// The minimum HTLC value in milli-satoshi
554+ /// The minimum HTLC size incoming to sender, in milli-satoshi
556555 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
558557 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
560559 pub fee_base_msat : u32 ,
561560 /// The amount to fee multiplier, in micro-satoshi
562561 pub fee_proportional_millionths : u32 ,
0 commit comments