Init

data class Init(features: ByteVector, tlvs: TlvStream<InitTlv>) : SetupMessage

Types

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

Functions

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

Properties

features
Link copied to clipboard
common
val features: ByteVector
networks
Link copied to clipboard
common
val networks: List<ByteVector32>
tlvs
Link copied to clipboard
common
val tlvs: TlvStream<InitTlv>
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.