Class CommitmentSignedPayload
- Namespace
- NLightning.Bolts.BOLT2.Payloads
- Assembly
- NLightning.Bolts.dll
Represents the payload for the commitment_signed message.
public class CommitmentSignedPayload : IMessagePayload
- Inheritance
-
CommitmentSignedPayload
- Implements
- Inherited Members
Remarks
Initializes a new instance of the CommitmentSignedPayload class.
Constructors
CommitmentSignedPayload(ChannelId, ECDSASignature, IEnumerable<ECDSASignature>)
Represents the payload for the commitment_signed message.
public CommitmentSignedPayload(ChannelId channelId, ECDSASignature signature, IEnumerable<ECDSASignature> htlcSignatures)
Parameters
channelId
ChannelIdsignature
ECDSASignaturehtlcSignatures
IEnumerable<ECDSASignature>
Remarks
Initializes a new instance of the CommitmentSignedPayload class.
Properties
ChannelId
The channel_id this message refers to
public ChannelId ChannelId { get; set; }
Property Value
HtlcSignatures
List containing HTLCs signatures
public IEnumerable<ECDSASignature> HtlcSignatures { get; set; }
Property Value
- IEnumerable<ECDSASignature>
NumHtlcs
Number of HTLCs outputs
public ushort NumHtlcs { get; }
Property Value
Signature
The signature for the commitment transaction
public ECDSASignature Signature { get; set; }
Property Value
- ECDSASignature
Methods
DeserializeAsync(Stream)
Deserializes the payload from a stream.
public static Task<CommitmentSignedPayload> DeserializeAsync(Stream stream)
Parameters
stream
StreamThe stream to deserialize from.
Returns
- Task<CommitmentSignedPayload>
The deserialized payload.
Exceptions
- PayloadSerializationException
Error deserializing Payload
SerializeAsync(Stream)
Serializes the message payload to a stream.
public Task SerializeAsync(Stream stream)
Parameters
stream
StreamThe stream to serialize to.
Returns
- Task
A task that represents the asynchronous operation.