Table of Contents

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 ChannelId

The channel ID.

myCurrentPerCommitmentPoint PubKey
nextCommitmentNumber ulong
nextRevocationNumber ulong
yourLastPerCommitmentSecret ReadOnlyMemory<byte>

Remarks

Initializes a new instance of the ChannelReestablishPayload class.

Properties

ChannelId

Gets the channel ID.

public ChannelId ChannelId { get; }

Property Value

ChannelId

MyCurrentPerCommitmentPoint

The current per commitment point

public PubKey MyCurrentPerCommitmentPoint { get; }

Property Value

PubKey

NextCommitmentNumber

The commitment transaction counter

public ulong NextCommitmentNumber { get; }

Property Value

ulong

NextRevocationNumber

The commitment counter it expects for the next revoke and ack message

public ulong NextRevocationNumber { get; }

Property Value

ulong

YourLastPerCommitmentSecret

The last per commitment secret received

public ReadOnlyMemory<byte> YourLastPerCommitmentSecret { get; }

Property Value

ReadOnlyMemory<byte>