Package fr. acinq. lightning. channel
Types
Channel has been aborted before it was funded (because we did not receive a FundingCreated or FundingSigned message for example)
Channel Actions (outputs produced by the state machine).
Internal configuration option impacting the channel's structure or behavior. This must be set when creating the channel and cannot be changed afterwards.
Channel Events (inputs to be fed to the state machine).
Subset of Bolt 9 features used to configure a channel and applicable over the lifetime of that channel. Even if one of these features is later disabled at the connection level, it will still apply to the channel until the channel is upgraded or closed.
Channel secrets and keys, generated from a funding key BIP32 path
This gives the reason for creating a new channel
Channel state.
A channel type is a specific set of feature bits that represent persistent channel features as defined in Bolt 2.
Channel is closed i.t its funding tx has been spent and the spending transactions have been confirmed, it can be forgotten
about remoteNextCommitInfo: we either:
Details about a force-close where we published our commitment.
Channel keys recovered from the channel's funding public key (note that we obviously cannot recover the funding private key) These keys can be used to spend our outputs from a commit tx that has been published to the blockchain, without any other information than the node's seed ("backup less backup")
Details about a force-close where they published their commitment.
Details about a force-close where they published one of their revoked commitments.
Channel static parameters.
waitForTheirReestablishMessage == true means that we want to wait until we've received their channel_reestablish message before we send ours (for example, to extract encrypted backup data from extra fields) waitForTheirReestablishMessage == false means that we've already sent our channel_reestablish message