decrypt Payload
fun decryptPayload(privateKey: PrivateKey, blindingEphemeralKey: PublicKey, encryptedPayload: ByteVector): Pair<ByteVector, PublicKey>
Content copied to clipboard
Decrypt the encrypted payload (usually found in the onion) that contains instructions to locate the next node.
Return
a tuple (decrypted payload, unblinding ephemeral key for the next node)
Parameters
private Key
this node's private key.
blinding Ephemeral Key
unblinding ephemeral key.
encrypted Payload
encrypted payload for this node.