DecryptedPacket

data class DecryptedPacket(payload: ByteVector, nextPacket: OnionRoutingPacket, sharedSecret: ByteVector32)

Decrypting an onion packet yields a payload for the current node and the encrypted packet for the next node.

Parameters

payload

decrypted payload for this node.

nextPacket

packet for the next node.

sharedSecret

shared secret for the sending node, which we will need to return failure messages.

Constructors

DecryptedPacket
Link copied to clipboard
common
fun DecryptedPacket(payload: ByteVector, nextPacket: OnionRoutingPacket, sharedSecret: ByteVector32)

Properties

isLastPacket
Link copied to clipboard
common
val isLastPacket: Boolean
nextPacket
Link copied to clipboard
common
val nextPacket: OnionRoutingPacket
payload
Link copied to clipboard
common
val payload: ByteVector
sharedSecret
Link copied to clipboard
common
val sharedSecret: ByteVector32