HasEncryptedChannelData

interface HasEncryptedChannelData : LightningMessage

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
abstract fun withNonEmptyChannelData(ecd: EncryptedChannelData): HasEncryptedChannelData
write
Link copied to clipboard
common
open fun write(): ByteArray
abstract fun write(out: Output)

Properties

channelData
Link copied to clipboard
common
abstract val channelData: EncryptedChannelData
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

FundingSigned
Link copied to clipboard
CommitSig
Link copied to clipboard
RevokeAndAck
Link copied to clipboard
ChannelReestablish
Link copied to clipboard
Shutdown
Link copied to clipboard
ClosingSigned
Link copied to clipboard