Class OnionMessagePath


  • public class OnionMessagePath
    extends Object
    A path for sending an [`msgs::OnionMessage`].
    • Method Detail

      • get_intermediate_nodes

        public byte[][] get_intermediate_nodes()
        Nodes on the path between the sender and the destination. Returns a copy of the field.
      • set_intermediate_nodes

        public void set_intermediate_nodes​(byte[][] val)
        Nodes on the path between the sender and the destination.
      • get_destination

        public Destination get_destination()
        The recipient of the message.
      • set_destination

        public void set_destination​(Destination val)
        The recipient of the message.
      • of

        public static OnionMessagePath of​(byte[][] intermediate_nodes_arg,
                                          Destination destination_arg)
        Constructs a new OnionMessagePath given each field