Shutdown

data class Shutdown(channelId: ByteVector32, scriptPubKey: ByteVector, tlvStream: TlvStream<ShutdownTlv>) : ChannelMessage, HasChannelId, HasEncryptedChannelData

Types

Companion
Link copied to clipboard
common
object Companion : LightningMessageReader<Shutdown>

Functions

withChannelData
Link copied to clipboard
common
open fun withChannelData(data: ByteVector): HasEncryptedChannelData
open fun withChannelData(ecd: EncryptedChannelData): HasEncryptedChannelData
withNonEmptyChannelData
Link copied to clipboard
common
open override fun withNonEmptyChannelData(ecd: EncryptedChannelData): Shutdown
write
Link copied to clipboard
common
open fun write(): ByteArray
open override fun write(out: Output)

Properties

channelData
Link copied to clipboard
common
open override val channelData: EncryptedChannelData
channelId
Link copied to clipboard
common
open override val channelId: ByteVector32
scriptPubKey
Link copied to clipboard
common
val scriptPubKey: ByteVector
tlvStream
Link copied to clipboard
common
val tlvStream: TlvStream<ShutdownTlv>
type
Link copied to clipboard
common
open override val type: Long

Once decrypted, lightning messages start with a 2-byte type that uniquely identifies the kind of message received. See https://github.com/lightningnetwork/lightning-rfc/blob/master/01-messaging.md#lightning-message-format.