Class ChannelReestablishPayload
- Namespace
- NLightning.Domain.Protocol.Payloads
- Assembly
- NLightning.Domain.dll
Represents the payload for the channel_reestablish message.
public class ChannelReestablishPayload : IMessagePayload
- Inheritance
-
ChannelReestablishPayload
- Implements
- Inherited Members
Remarks
Initializes a new instance of the ChannelReestablishPayload class.
Constructors
ChannelReestablishPayload(ChannelId, PubKey, ulong, ulong, ReadOnlyMemory<byte>)
Represents the payload for the channel_reestablish message.
public ChannelReestablishPayload(ChannelId channelId, PubKey myCurrentPerCommitmentPoint, ulong nextCommitmentNumber, ulong nextRevocationNumber, ReadOnlyMemory<byte> yourLastPerCommitmentSecret)
Parameters
channelId
ChannelIdThe channel ID.
myCurrentPerCommitmentPoint
PubKeynextCommitmentNumber
ulongnextRevocationNumber
ulongyourLastPerCommitmentSecret
ReadOnlyMemory<byte>
Remarks
Initializes a new instance of the ChannelReestablishPayload class.
Properties
ChannelId
Gets the channel ID.
public ChannelId ChannelId { get; }
Property Value
MyCurrentPerCommitmentPoint
The current per commitment point
public PubKey MyCurrentPerCommitmentPoint { get; }
Property Value
- PubKey
NextCommitmentNumber
The commitment transaction counter
public ulong NextCommitmentNumber { get; }
Property Value
NextRevocationNumber
The commitment counter it expects for the next revoke and ack message
public ulong NextRevocationNumber { get; }
Property Value
YourLastPerCommitmentSecret
The last per commitment secret received
public ReadOnlyMemory<byte> YourLastPerCommitmentSecret { get; }