5b4c8ac232
In this commit, we extend the Hop struct to carry an arbitrary set of TLV values, and add a new field that allows us to distinguish between the modern and legacy TLV payload. We add a new `PackPayload` method that will be used to encode the combined required routing TLV fields along any set of TLV fields that were specified as part of path finding. Finally, the `ToSphinxPath` has been extended to be able to recognize if a hop needs the modern, or legacy payload. |
||
---|---|---|
.. | ||
bench_test.go | ||
onion_types.go | ||
primitive_test.go | ||
primitive.go | ||
record_test.go | ||
record.go | ||
stream.go | ||
tlv_test.go | ||
truncated_test.go | ||
truncated.go | ||
varint_test.go | ||
varint.go |