OnionMessagePayloadTlv

sealed class OnionMessagePayloadTlv : Tlv

Types

EncryptedData
Link copied to clipboard
common
data class EncryptedData(data: ByteVector) : OnionMessagePayloadTlv

Onion messages always use route blinding, even in the forward direction. This ensures that intermediate nodes can't know whether they're forwarding a message or its reply. The sender must provide some encrypted data for each intermediate node which lets them locate the next node.

ReplyPath
Link copied to clipboard
common
data class ReplyPath(blindedRoute: RouteBlinding.BlindedRoute) : OnionMessagePayloadTlv

Onion messages may provide a reply path, allowing the recipient to send a message back to the original sender. The reply path uses route blinding, which ensures that the sender doesn't leak its identity to the recipient.

Functions

write
Link copied to clipboard
common
open fun write(): ByteArray
abstract fun write(out: Output)

Properties

tag
Link copied to clipboard
common
abstract val tag: Long

TLV fields start with a tag that uniquely identifies the type of field within a specific namespace (usually a lightning message). See https://github.com/lightningnetwork/lightning-rfc/blob/master/01-messaging.md#type-length-value-format.

Inheritors

OnionMessagePayloadTlv
Link copied to clipboard
OnionMessagePayloadTlv
Link copied to clipboard