LightningMessage

interface LightningMessage

Types

Companion
Link copied to clipboard
common
object Companion

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

HtlcMessage
Link copied to clipboard
SetupMessage
Link copied to clipboard
RoutingMessage
Link copied to clipboard
HasTimestamp
Link copied to clipboard
UpdateMessage
Link copied to clipboard
HasTemporaryChannelId
Link copied to clipboard
HasChannelId
Link copied to clipboard
HasChainHash
Link copied to clipboard
HasEncryptedChannelData
Link copied to clipboard
PayToOpenRequest
Link copied to clipboard
PayToOpenResponse
Link copied to clipboard
FCMToken
Link copied to clipboard
UnsetFCMToken
Link copied to clipboard
SwapInRequest
Link copied to clipboard
SwapInResponse
Link copied to clipboard
SwapInPending
Link copied to clipboard
SwapInConfirmed
Link copied to clipboard
PhoenixAndroidLegacyInfo
Link copied to clipboard
PhoenixAndroidLegacyMigrate
Link copied to clipboard