Table of Contents

Class CommitmentTransactionFactory

Namespace
NLightning.Infrastructure.Bitcoin.Factories
Assembly
NLightning.Infrastructure.Bitcoin.dll
public class CommitmentTransactionFactory : ICommitmentTransactionFactory
Inheritance
CommitmentTransactionFactory
Implements
Inherited Members

Constructors

CommitmentTransactionFactory(IFeeService, IOptions<NodeOptions>)

public CommitmentTransactionFactory(IFeeService feeService, IOptions<NodeOptions> nodeOptions)

Parameters

feeService IFeeService
nodeOptions IOptions<NodeOptions>

Methods

CreateCommitmentTransaction(FundingOutput, PubKey, PubKey, PubKey, PubKey, LightningMoney, LightningMoney, uint, CommitmentNumber, bool, params BitcoinSecret[])

public CommitmentTransaction CreateCommitmentTransaction(FundingOutput fundingOutput, PubKey localPaymentBasepoint, PubKey remotePaymentBasepoint, PubKey localDelayedPubKey, PubKey revocationPubKey, LightningMoney toLocalAmount, LightningMoney toRemoteAmount, uint toSelfDelay, CommitmentNumber commitmentNumber, bool isChannelFunder, params BitcoinSecret[] secrets)

Parameters

fundingOutput FundingOutput
localPaymentBasepoint PubKey
remotePaymentBasepoint PubKey
localDelayedPubKey PubKey
revocationPubKey PubKey
toLocalAmount LightningMoney
toRemoteAmount LightningMoney
toSelfDelay uint
commitmentNumber CommitmentNumber
isChannelFunder bool
secrets BitcoinSecret[]

Returns

CommitmentTransaction

CreateCommitmentTransaction(FundingOutput, PubKey, PubKey, PubKey, PubKey, LightningMoney, LightningMoney, uint, CommitmentNumber, bool, IEnumerable<OfferedHtlcOutput>, IEnumerable<ReceivedHtlcOutput>, params BitcoinSecret[])

public CommitmentTransaction CreateCommitmentTransaction(FundingOutput fundingOutput, PubKey localPaymentBasepoint, PubKey remotePaymentBasepoint, PubKey localDelayedPubKey, PubKey revocationPubKey, LightningMoney toLocalAmount, LightningMoney toRemoteAmount, uint toSelfDelay, CommitmentNumber commitmentNumber, bool isChannelFunder, IEnumerable<OfferedHtlcOutput> offeredHtlcs, IEnumerable<ReceivedHtlcOutput> receivedHtlcs, params BitcoinSecret[] secrets)

Parameters

fundingOutput FundingOutput
localPaymentBasepoint PubKey
remotePaymentBasepoint PubKey
localDelayedPubKey PubKey
revocationPubKey PubKey
toLocalAmount LightningMoney
toRemoteAmount LightningMoney
toSelfDelay uint
commitmentNumber CommitmentNumber
isChannelFunder bool
offeredHtlcs IEnumerable<OfferedHtlcOutput>
receivedHtlcs IEnumerable<ReceivedHtlcOutput>
secrets BitcoinSecret[]

Returns

CommitmentTransaction