pub struct ChannelReestablish {
pub channel_id: ChannelId,
pub next_local_commitment_number: u64,
pub next_remote_commitment_number: u64,
pub your_last_per_commitment_secret: [u8; 32],
pub my_current_per_commitment_point: PublicKey,
pub next_funding: Option<NextFunding>,
pub my_current_funding_locked: Option<FundingLocked>,
}Expand description
A channel_reestablish message to be sent to or received from a peer.
Fields§
§channel_id: ChannelIdThe channel ID
next_local_commitment_number: u64The next commitment number for the sender
next_remote_commitment_number: u64The next commitment number for the recipient
your_last_per_commitment_secret: [u8; 32]Proof that the sender knows the per-commitment secret of a specific commitment transaction belonging to the recipient
my_current_per_commitment_point: PublicKeyThe sender’s per-commitment point for their current commitment transaction
next_funding: Option<NextFunding>The next funding transaction ID
Allows peers to finalize the signing steps of an interactive transaction construction, or safely abort that transaction if it was not signed by one of the peers, who has thus already removed it from its state.
If we’ve sent commtiment_signed for an interactively constructed transaction
during a signing session, but have not received tx_signatures we MUST set next_funding
to the txid of that interactive transaction, else we MUST NOT set it.
See the spec for further details on this:
channel_reestablish-sending node: https:///github.com/lightning/bolts/blob/247e83d/02-peer-protocol.md?plain=1#L2466-L2470channel_reestablish-receiving node: https:///github.com/lightning/bolts/blob/247e83d/02-peer-protocol.md?plain=1#L2520-L2531
my_current_funding_locked: Option<FundingLocked>The last funding txid sent by the sending node, which may be:
- the txid of the last
splice_lockedit sent, otherwise - the txid of the funding transaction if it sent
channel_ready, or else Noneif it has never sentchannel_readyorsplice_locked
Also contains a bitfield indicating which messages should be retransmitted.
Trait Implementations§
Source§impl Clone for ChannelReestablish
impl Clone for ChannelReestablish
Source§fn clone(&self) -> ChannelReestablish
fn clone(&self) -> ChannelReestablish
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ChannelReestablish
impl Debug for ChannelReestablish
Source§impl Hash for ChannelReestablish
impl Hash for ChannelReestablish
Source§impl LengthReadable for ChannelReestablish
impl LengthReadable for ChannelReestablish
Source§fn read_from_fixed_length_buffer<R: LengthLimitedRead>(
r: &mut R,
) -> Result<Self, DecodeError>
fn read_from_fixed_length_buffer<R: LengthLimitedRead>( r: &mut R, ) -> Result<Self, DecodeError>
Self in from the given LengthLimitedRead.