ChannelReestablish

data class ChannelReestablish(channelId: ByteVector32, nextLocalCommitmentNumber: Long, nextRemoteRevocationNumber: Long, yourLastCommitmentSecret: PrivateKey, myCurrentPerCommitmentPoint: PublicKey, tlvStream: TlvStream<ChannelReestablishTlv>) : HasChannelId, HasEncryptedChannelData

Types

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

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): ChannelReestablish
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
myCurrentPerCommitmentPoint
Link copied to clipboard
common
val myCurrentPerCommitmentPoint: PublicKey
nextLocalCommitmentNumber
Link copied to clipboard
common
val nextLocalCommitmentNumber: Long
nextRemoteRevocationNumber
Link copied to clipboard
common
val nextRemoteRevocationNumber: Long
tlvStream
Link copied to clipboard
common
val tlvStream: TlvStream<ChannelReestablishTlv>
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.

yourLastCommitmentSecret
Link copied to clipboard
common
val yourLastCommitmentSecret: PrivateKey