wrap
Wrap the given packet in an additional layer of onion encryption for the previous hop.
Return
an encrypted failure packet that can be sent to the destination node.
Parameters
packet
failure packet.
shared Secret
destination node's shared secret.