CommitSig

data class CommitSig(channelId: ByteVector32, signature: ByteVector64, htlcSignatures: List<ByteVector64>, tlvStream: TlvStream<CommitSigTlv>) : HtlcMessage, HasChannelId, HasEncryptedChannelData

Types

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

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): CommitSig
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
htlcSignatures
Link copied to clipboard
common
val htlcSignatures: List<ByteVector64>
signature
Link copied to clipboard
common
val signature: ByteVector64
tlvStream
Link copied to clipboard
common
val tlvStream: TlvStream<CommitSigTlv>
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.