Table of Contents

Class ToLocalOutputInfo

Namespace
NLightning.Domain.Bitcoin.Transactions.Outputs
Assembly
NLightning.Domain.dll

Represents the information needed to construct a to_local output in a commitment transaction. This follows the BOLT #3 specification for to_local outputs.

public class ToLocalOutputInfo : IOutputInfo
Inheritance
ToLocalOutputInfo
Implements
Inherited Members

Constructors

ToLocalOutputInfo(LightningMoney, CompactPubKey, CompactPubKey, ushort)

Creates a new instance of ToLocalOutputInfo.

public ToLocalOutputInfo(LightningMoney amount, CompactPubKey localDelayedPaymentPubKey, CompactPubKey revocationPubKey, ushort toSelfDelay)

Parameters

amount LightningMoney
localDelayedPaymentPubKey CompactPubKey
revocationPubKey CompactPubKey
toSelfDelay ushort

Properties

Amount

Gets the amount of the output.

public LightningMoney Amount { get; }

Property Value

LightningMoney

Index

Gets or sets the index of the output in the transaction once it's created.

public ushort? Index { get; set; }

Property Value

ushort?

LocalDelayedPaymentPubKey

Gets the local's delayed payment public key.

public CompactPubKey LocalDelayedPaymentPubKey { get; }

Property Value

CompactPubKey

OutputType

Gets the type of the output.

public OutputType OutputType { get; }

Property Value

OutputType

RevocationPubKey

Gets the remote's revocation public key.

public CompactPubKey RevocationPubKey { get; }

Property Value

CompactPubKey

ToSelfDelay

Gets the CSV delay for the to_local output.

public ushort ToSelfDelay { get; }

Property Value

ushort

TransactionId

Gets or sets the transaction ID of the output once it's created.

public TxId? TransactionId { get; set; }

Property Value

TxId?