LocalParams

data class LocalParams(nodeId: PublicKey, fundingKeyPath: KeyPath, dustLimit: Satoshi, maxHtlcValueInFlightMsat: Long, channelReserve: Satoshi, htlcMinimum: MilliSatoshi, toSelfDelay: CltvExpiryDelta, maxAcceptedHtlcs: Int, isFunder: Boolean, defaultFinalScriptPubKey: ByteVector, features: Features)

README: by design, we do not include channel private keys and secret here, so they won't be included in our backups (local files, encrypted peer backup, ...), so even if these backups were compromised channel private keys would not be leaked unless the main seed was also compromised. This means that they will be recomputed once when we convert serialized data to their "live" counterparts.

Constructors

LocalParams
Link copied to clipboard
common
fun LocalParams(from: LocalParams)
LocalParams
Link copied to clipboard
common
fun LocalParams(nodeId: PublicKey, fundingKeyPath: KeyPath, dustLimit: Satoshi, maxHtlcValueInFlightMsat: Long, channelReserve: Satoshi, htlcMinimum: MilliSatoshi, toSelfDelay: CltvExpiryDelta, maxAcceptedHtlcs: Int, isFunder: Boolean, defaultFinalScriptPubKey: ByteVector, features: Features)

Functions

export
Link copied to clipboard
common
fun export(nodeParams: NodeParams): LocalParams

Properties

channelReserve
Link copied to clipboard
common
val channelReserve: Satoshi
defaultFinalScriptPubKey
Link copied to clipboard
common
val defaultFinalScriptPubKey: ByteVector
dustLimit
Link copied to clipboard
common
val dustLimit: Satoshi
features
Link copied to clipboard
common
val features: Features
fundingKeyPath
Link copied to clipboard
common
val fundingKeyPath: KeyPath
htlcMinimum
Link copied to clipboard
common
val htlcMinimum: MilliSatoshi
isFunder
Link copied to clipboard
common
val isFunder: Boolean
maxAcceptedHtlcs
Link copied to clipboard
common
val maxAcceptedHtlcs: Int
maxHtlcValueInFlightMsat
Link copied to clipboard
common
val maxHtlcValueInFlightMsat: Long
nodeId
Link copied to clipboard
common
val nodeId: PublicKey
toSelfDelay
Link copied to clipboard
common
val toSelfDelay: CltvExpiryDelta