Table of Contents

Class RevokeAndAckPayload

Namespace
NLightning.Domain.Protocol.Payloads
Assembly
NLightning.Domain.dll

Represents the payload for the revoke_and_ack message.

public class RevokeAndAckPayload : IMessagePayload
Inheritance
RevokeAndAckPayload
Implements
Inherited Members

Remarks

Initializes a new instance of the RevokeAndAckPayload class.

Constructors

RevokeAndAckPayload(ChannelId, PubKey, ReadOnlyMemory<byte>)

Represents the payload for the revoke_and_ack message.

public RevokeAndAckPayload(ChannelId channelId, PubKey nextPerCommitmentPoint, ReadOnlyMemory<byte> perCommitmentSecret)

Parameters

channelId ChannelId
nextPerCommitmentPoint PubKey
perCommitmentSecret ReadOnlyMemory<byte>

Remarks

Initializes a new instance of the RevokeAndAckPayload class.

Properties

ChannelId

The channel_id this message refers to

public ChannelId ChannelId { get; }

Property Value

ChannelId

NextPerCommitmentPoint

The next per commitment point

public PubKey NextPerCommitmentPoint { get; }

Property Value

PubKey

PerCommitmentSecret

len is the per commitment secret

public ReadOnlyMemory<byte> PerCommitmentSecret { get; }

Property Value

ReadOnlyMemory<byte>