EncryptedData

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.

Constructors

EncryptedData
Link copied to clipboard
common
fun EncryptedData(data: ByteVector)

Types

Companion
Link copied to clipboard
common
object Companion : TlvValueReader<OnionMessagePayloadTlv.EncryptedData>

Functions

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

Properties

data
Link copied to clipboard
common
val data: ByteVector
tag
Link copied to clipboard
common
open override 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.