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
IFeeServicenodeOptions
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
FundingOutputlocalPaymentBasepoint
PubKeyremotePaymentBasepoint
PubKeylocalDelayedPubKey
PubKeyrevocationPubKey
PubKeytoLocalAmount
LightningMoneytoRemoteAmount
LightningMoneytoSelfDelay
uintcommitmentNumber
CommitmentNumberisChannelFunder
boolsecrets
BitcoinSecret[]
Returns
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
FundingOutputlocalPaymentBasepoint
PubKeyremotePaymentBasepoint
PubKeylocalDelayedPubKey
PubKeyrevocationPubKey
PubKeytoLocalAmount
LightningMoneytoRemoteAmount
LightningMoneytoSelfDelay
uintcommitmentNumber
CommitmentNumberisChannelFunder
boolofferedHtlcs
IEnumerable<OfferedHtlcOutput>receivedHtlcs
IEnumerable<ReceivedHtlcOutput>secrets
BitcoinSecret[]