Table of Contents

Class CommitmentTransactionFactory

Namespace
NLightning.Bolts.BOLT3.Factories
Assembly
NLightning.Bolts.dll
public class CommitmentTransactionFactory
Inheritance
CommitmentTransactionFactory
Inherited Members

Constructors

CommitmentTransactionFactory(IFeeService)

public CommitmentTransactionFactory(IFeeService feeService)

Parameters

feeService IFeeService

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