create
Create an encrypted onion packet that contains payloads for all nodes in the list.
Return
An onion packet with all shared secrets. The onion packet can be sent to the first node in the list, and the shared secrets (one per node) can be used to parse returned failure messages if needed.
Parameters
session Key
session key.
public Keys
node public keys (one per node).
payloads
payloads (one per node).
associated Data
associated data.
packet Length
length of the onion-encrypted payload (1300 for payment onions, 400 for trampoline onions).