RevokeAndAck

data class RevokeAndAck(channelId: ByteVector32, perCommitmentSecret: PrivateKey, nextPerCommitmentPoint: PublicKey, tlvStream: TlvStream<RevokeAndAckTlv>) : HtlcMessage, HasChannelId, HasEncryptedChannelData

Types

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

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): RevokeAndAck
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
nextPerCommitmentPoint
Link copied to clipboard
common
val nextPerCommitmentPoint: PublicKey
perCommitmentSecret
Link copied to clipboard
common
val perCommitmentSecret: PrivateKey
tlvStream
Link copied to clipboard
common
val tlvStream: TlvStream<RevokeAndAckTlv>
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.