DotNetLightning


Scripts Module

Functions to work wth LN-specific bitcoin scripts.

Functions and values

Function or value Description

funding fundingPubKey0 fundingPubKey1

Full Usage: funding fundingPubKey0 fundingPubKey1

Parameters:
Returns: Script
fundingPubKey0 : FundingPubKey
fundingPubKey1 : FundingPubKey
Returns: Script

htlcOffered localHtlcPubKey remoteHtlcPubKey revocationPubKey ph

Full Usage: htlcOffered localHtlcPubKey remoteHtlcPubKey revocationPubKey ph

Parameters:
Returns: Script
localHtlcPubKey : HtlcPubKey
remoteHtlcPubKey : HtlcPubKey
revocationPubKey : RevocationPubKey
ph : PaymentHash
Returns: Script

htlcReceived localHTLCPubKey remoteHTLCPubKey revocationPubKey ph lockTime

Full Usage: htlcReceived localHTLCPubKey remoteHTLCPubKey revocationPubKey ph lockTime

Parameters:
Returns: Script
localHTLCPubKey : HtlcPubKey
remoteHTLCPubKey : HtlcPubKey
revocationPubKey : RevocationPubKey
ph : PaymentHash
lockTime : uint32
Returns: Script

toLocalDelayed revocationPubKey arg2 localDelayedPaymentPubKey

Full Usage: toLocalDelayed revocationPubKey arg2 localDelayedPaymentPubKey

Parameters:
Returns: Script
revocationPubKey : RevocationPubKey
arg1 : BlockHeightOffset16
localDelayedPaymentPubKey : DelayedPaymentPubKey
Returns: Script