Table of Contents

Class TxSignaturesPayload

Namespace
NLightning.Bolts.BOLT2.Payloads
Assembly
NLightning.Bolts.dll

Represents a tx_signatures payload.

public class TxSignaturesPayload : IMessagePayload
Inheritance
TxSignaturesPayload
Implements
Inherited Members

Remarks

The tx_signatures payload signals the provision of transaction signatures.

Constructors

TxSignaturesPayload(ChannelId, byte[], List<Witness>)

Initializes a new instance of the TxSignaturesPayload class.

public TxSignaturesPayload(ChannelId channelId, byte[] txId, List<Witness> witnesses)

Parameters

channelId ChannelId

The channel id.

txId byte[]

The transaction id.

witnesses List<Witness>

The witnesses.

Exceptions

ArgumentException

TxId must be 32 bytes

Properties

ChannelId

The channel id.

public ChannelId ChannelId { get; }

Property Value

ChannelId

TxId

The transaction id.

public byte[] TxId { get; }

Property Value

byte[]

Witnesses

The witnesses.

public List<Witness> Witnesses { get; }

Property Value

List<Witness>

Methods

DeserializeAsync(Stream)

Deserialize a TxSignaturesPayload from a stream.

public static Task<TxSignaturesPayload> DeserializeAsync(Stream stream)

Parameters

stream Stream

The stream to deserialize from.

Returns

Task<TxSignaturesPayload>

The deserialized TxSignaturesPayload.

Exceptions

PayloadSerializationException

Error deserializing Payload

SerializeAsync(Stream)

Serializes the message payload to a stream.

public Task SerializeAsync(Stream stream)

Parameters

stream Stream

The stream to serialize to.

Returns

Task

A task that represents the asynchronous operation.

See Also