lnd.xprv/tlv
Olaoluwa Osuntokun 5b4c8ac232
routing/route+tlv: add new TLV-EOB awareness to Hop+Route
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.
2019-08-22 18:53:00 -07:00
..
bench_test.go tlv/bench_test: add basic benchmark 2019-08-07 15:04:20 -07:00
onion_types.go routing/route+tlv: add new TLV-EOB awareness to Hop+Route 2019-08-22 18:53:00 -07:00
primitive_test.go tlv/primitive_test: add basic encode/decode tests for primitives 2019-08-08 15:57:48 -07:00
primitive.go tlv/primitive: use constructor for encoding/decoding type err 2019-08-08 15:57:48 -07:00
record_test.go routing/route+tlv: add new TLV-EOB awareness to Hop+Route 2019-08-22 18:53:00 -07:00
record.go routing/route+tlv: add new TLV-EOB awareness to Hop+Route 2019-08-22 18:53:00 -07:00
stream.go tlv/stream: create MaxRecordSize, remove lnwire import, add test 2019-08-21 18:12:57 -07:00
tlv_test.go tlv/stream: create MaxRecordSize, remove lnwire import, add test 2019-08-21 18:12:57 -07:00
truncated_test.go tlv/truncated: fix decoding bug in DTUint16 and DTUint32 2019-08-07 19:42:15 -07:00
truncated.go tlv/truncated: fix decoding bug in DTUint16 and DTUint32 2019-08-07 19:42:15 -07:00
varint_test.go tlv/varint_test: add tests vectors for custom Read/WriteVarInt 2019-08-07 15:03:18 -07:00
varint.go tlv/varint: add modified bitcoin varint 2019-08-07 15:03:05 -07:00