computeEphemeralPublicKeysAndSharedSecrets

fun computeEphemeralPublicKeysAndSharedSecrets(sessionKey: PrivateKey, publicKeys: List<PublicKey>): Pair<List<PublicKey>, List<ByteVector32>>

Compute the ephemeral public keys and shared secrets for all nodes on the route.

Return

a tuple (ephemeral public keys, shared secrets).

Parameters

sessionKey

this node's session key.

publicKeys

public keys of each node on the route.