Class RevokeAndAckPayload
- Namespace
- NLightning.Domain.Protocol.Payloads
- Assembly
- NLightning.Domain.dll
Represents the payload for the revoke_and_ack message.
public class RevokeAndAckPayload : IChannelMessagePayload, IMessagePayload
- Inheritance
-
RevokeAndAckPayload
- Implements
- Inherited Members
Remarks
Initializes a new instance of the RevokeAndAckPayload class.
Constructors
RevokeAndAckPayload(ChannelId, CompactPubKey, ReadOnlyMemory<byte>)
Represents the payload for the revoke_and_ack message.
public RevokeAndAckPayload(ChannelId channelId, CompactPubKey nextPerCommitmentPoint, ReadOnlyMemory<byte> perCommitmentSecret)
Parameters
channelId
ChannelIdnextPerCommitmentPoint
CompactPubKeyperCommitmentSecret
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
NextPerCommitmentPoint
The next per commitment point
public CompactPubKey NextPerCommitmentPoint { get; }
Property Value
PerCommitmentSecret
len is the per commitment secret
public ReadOnlyMemory<byte> PerCommitmentSecret { get; }