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
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[]