SetupMessage

interface SetupMessage : LightningMessage

Functions

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

Properties

type
Link copied to clipboard
common
abstract 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.

Inheritors

Init
Link copied to clipboard
Warning
Link copied to clipboard
Error
Link copied to clipboard
Ping
Link copied to clipboard
Pong
Link copied to clipboard