ChannelTlv

sealed class ChannelTlv : Tlv

Types

ChannelOriginTlv
Link copied to clipboard
common
data class ChannelOriginTlv(channelOrigin: ChannelOrigin) : ChannelTlv
ChannelTypeTlv
Link copied to clipboard
common
data class ChannelTypeTlv(channelType: ChannelType) : ChannelTlv
ChannelVersionTlv
Link copied to clipboard
common
data class ChannelVersionTlv(channelType: ChannelType) : ChannelTlv

This legacy TLV was used before ChannelType was introduced: it should be removed whenever possible.

UpfrontShutdownScriptTlv
Link copied to clipboard
common
data class UpfrontShutdownScriptTlv(scriptPubkey: ByteVector) : ChannelTlv

Commitment to where the funds will go in case of a mutual close, which remote node will enforce in case we're compromised.

Functions

write
Link copied to clipboard
common
open fun write(): ByteArray
abstract fun write(out: Output)

Properties

tag
Link copied to clipboard
common
abstract val tag: Long

TLV fields start with a tag that uniquely identifies the type of field within a specific namespace (usually a lightning message). See https://github.com/lightningnetwork/lightning-rfc/blob/master/01-messaging.md#type-length-value-format.

Inheritors

ChannelTlv
Link copied to clipboard
ChannelTlv
Link copied to clipboard
ChannelTlv
Link copied to clipboard
ChannelTlv
Link copied to clipboard