RouteBlindingEncryptedDataTlv

sealed class RouteBlindingEncryptedDataTlv : Tlv

Types

NextBlinding
Link copied to clipboard
common
data class NextBlinding(blinding: PublicKey) : RouteBlindingEncryptedDataTlv

Blinding override for the rest of the route.

OutgoingNodeId
Link copied to clipboard
common
data class OutgoingNodeId(nodeId: PublicKey) : RouteBlindingEncryptedDataTlv

Id of the next node.

Padding
Link copied to clipboard
common
data class Padding(dummy: ByteVector) : RouteBlindingEncryptedDataTlv

Some padding can be added to ensure all payloads are the same size to improve privacy.

PathId
Link copied to clipboard
common
data class PathId(data: ByteVector) : RouteBlindingEncryptedDataTlv

The final recipient may store some data in the encrypted payload for itself to avoid storing it locally. It can for example put a payment_hash to verify that the route is used for the correct invoice. It should use that field to detect when blinded routes are used outside of their intended use (malicious probing) and react accordingly (ignore the message or send an error depending on the use-case).

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

RouteBlindingEncryptedDataTlv
Link copied to clipboard
RouteBlindingEncryptedDataTlv
Link copied to clipboard
RouteBlindingEncryptedDataTlv
Link copied to clipboard
RouteBlindingEncryptedDataTlv
Link copied to clipboard