DotNetLightning


KeyExtensions Module

Type extensions

Type extension Description

this.ChannelPrivKeys

Full Usage: this.ChannelPrivKeys

Parameters:
    channelIndex : int

Returns: ChannelPrivKeys

Extended Type: NodeMasterPrivKey

channelIndex : int
Returns: ChannelPrivKeys

this.DeriveChild

Full Usage: this.DeriveChild

Parameters:
Returns: Option<PerCommitmentSecret>

Extended Type: PerCommitmentSecret

thisCommitmentNumber : CommitmentNumber
childCommitmentNumber : CommitmentNumber
Returns: Option<PerCommitmentSecret>

this.DeriveCommitmentPubKeys

Full Usage: this.DeriveCommitmentPubKeys

Parameters:
Returns: CommitmentPubKeys

Extended Type: PerCommitmentPoint

channelPubKeys : ChannelPubKeys
Returns: CommitmentPubKeys

this.DeriveDelayedPaymentPrivKey

Full Usage: this.DeriveDelayedPaymentPrivKey

Parameters:
Returns: DelayedPaymentPrivKey

Extended Type: PerCommitmentPoint

delayedPaymentBasepointSecret : DelayedPaymentBasepointSecret
Returns: DelayedPaymentPrivKey

this.DeriveDelayedPaymentPubKey

Full Usage: this.DeriveDelayedPaymentPubKey

Parameters:
Returns: DelayedPaymentPubKey

Extended Type: PerCommitmentPoint

delayedPaymentBasepoint : DelayedPaymentBasepoint
Returns: DelayedPaymentPubKey

this.DeriveHtlcPrivKey

Full Usage: this.DeriveHtlcPrivKey

Parameters:
Returns: HtlcPrivKey

Extended Type: PerCommitmentPoint

htlcBasepointSecret : HtlcBasepointSecret
Returns: HtlcPrivKey

this.DeriveHtlcPubKey

Full Usage: this.DeriveHtlcPubKey

Parameters:
Returns: HtlcPubKey

Extended Type: PerCommitmentPoint

htlcBasepoint : HtlcBasepoint
Returns: HtlcPubKey

this.DerivePaymentPrivKey

Full Usage: this.DerivePaymentPrivKey

Parameters:
Returns: PaymentPrivKey

Extended Type: PerCommitmentPoint

paymentBasepointSecret : PaymentBasepointSecret
Returns: PaymentPrivKey

this.DerivePaymentPubKey

Full Usage: this.DerivePaymentPubKey

Parameters:
Returns: PaymentPubKey

Extended Type: PerCommitmentPoint

paymentBasepoint : PaymentBasepoint
Returns: PaymentPubKey

this.DerivePerCommitmentPoint

Full Usage: this.DerivePerCommitmentPoint

Parameters:
Returns: PerCommitmentPoint

Extended Type: CommitmentSeed

commitmentNumber : CommitmentNumber
Returns: PerCommitmentPoint

this.DerivePerCommitmentSecret

Full Usage: this.DerivePerCommitmentSecret

Parameters:
Returns: PerCommitmentSecret

Extended Type: CommitmentSeed

commitmentNumber : CommitmentNumber
Returns: PerCommitmentSecret

this.DerivePrivKey

Full Usage: this.DerivePrivKey

Parameters:
    basepointSecret : Key

Returns: Key

Extended Type: PerCommitmentPoint

basepointSecret : Key
Returns: Key

this.DerivePubKey

Full Usage: this.DerivePubKey

Parameters:
Returns: PubKey

Extended Type: PerCommitmentPoint

basepoint : PubKey
Returns: PubKey

this.DeriveRevocationPrivKey

Full Usage: this.DeriveRevocationPrivKey

Parameters:
Returns: RevocationPrivKey

Extended Type: PerCommitmentSecret

revocationBasepointSecret : RevocationBasepointSecret
Returns: RevocationPrivKey

this.DeriveRevocationPubKey

Full Usage: this.DeriveRevocationPubKey

Parameters:
Returns: RevocationPubKey

Extended Type: PerCommitmentPoint

revocationBasepoint : RevocationBasepoint
Returns: RevocationPubKey

this.LockTime

Full Usage: this.LockTime

Parameters:
    () : unit

Returns: LockTime

Extended Type: ObscuredCommitmentNumber

() : unit
Returns: LockTime

this.LockTime

Full Usage: this.LockTime

Returns: LockTime

Extended Type: ObscuredCommitmentNumber

Returns: LockTime

this.Obscure

Full Usage: this.Obscure

Parameters:
Returns: ObscuredCommitmentNumber

Extended Type: CommitmentNumber

isFunder : bool
localPaymentBasepoint : PaymentBasepoint
remotePaymentBasepoint : PaymentBasepoint
Returns: ObscuredCommitmentNumber

CommitmentNumber.ObscureFactor(isFunder) (localPaymentBasepoint) (remotePaymentBasepoint)

Full Usage: CommitmentNumber.ObscureFactor(isFunder) (localPaymentBasepoint) (remotePaymentBasepoint)

Parameters:
Returns: UInt48

Extended Type: CommitmentNumber

isFunder : bool
localPaymentBasepoint : PaymentBasepoint
remotePaymentBasepoint : PaymentBasepoint
Returns: UInt48

this.PreviousUnsubsumed

Full Usage: this.PreviousUnsubsumed

Parameters:
    () : unit

Returns: Option<CommitmentNumber>

Extended Type: CommitmentNumber

() : unit
Returns: Option<CommitmentNumber>

this.Sequence

Full Usage: this.Sequence

Parameters:
    () : unit

Returns: Sequence

Extended Type: ObscuredCommitmentNumber

() : unit
Returns: Sequence

this.Sequence

Full Usage: this.Sequence

Returns: Sequence

Extended Type: ObscuredCommitmentNumber

Returns: Sequence

this.SignHtlcTx

Full Usage: this.SignHtlcTx

Parameters:
Returns: TransactionSignature * PSBT

Extended Type: ChannelPrivKeys

psbt : PSBT
perCommitmentPoint : PerCommitmentPoint
Returns: TransactionSignature * PSBT

this.SignWithFundingPrivKey

Full Usage: this.SignWithFundingPrivKey

Parameters:
Returns: TransactionSignature * PSBT

Extended Type: ChannelPrivKeys

psbt : PSBT
Returns: TransactionSignature * PSBT

this.Subsumes

Full Usage: this.Subsumes

Parameters:
Returns: bool

Extended Type: CommitmentNumber

other : CommitmentNumber
Returns: bool

ObscuredCommitmentNumber.TryFromLockTimeAndSequence(lockTime) (sequence)

Full Usage: ObscuredCommitmentNumber.TryFromLockTimeAndSequence(lockTime) (sequence)

Parameters:
Returns: Option<ObscuredCommitmentNumber>

Extended Type: ObscuredCommitmentNumber

lockTime : LockTime
sequence : Sequence
Returns: Option<ObscuredCommitmentNumber>

this.Unobscure

Full Usage: this.Unobscure

Parameters:
Returns: CommitmentNumber

Extended Type: ObscuredCommitmentNumber

isFunder : bool
localPaymentBasepoint : PaymentBasepoint
remotePaymentBasepoint : PaymentBasepoint
Returns: CommitmentNumber