lnd.xprv/tlv
Conner Fromknecht 7c94bbb4a2
tlv/truncated: add truncated integer encodings
This commit adds the truncated integer encodings used in the
variable-size onion payloads. The amount and cltv delta both use the
truncated encoding to shave bytes in the overall size, and will likely
be used in the future for additional extensions where size is a
constraint.
2019-08-07 15:04:33 -07:00
..
bench_test.go tlv/bench_test: add basic benchmark 2019-08-07 15:04:20 -07:00
primitive.go tlv: zero alloc encoding for extended types 2019-08-07 15:04:08 -07:00
record.go tlv/record: adds various tlv record constructors 2019-08-07 15:03:43 -07:00
stream.go tlv/stream: adds tlv stream encoding/decoding 2019-08-07 15:03:56 -07:00
truncated.go tlv/truncated: add truncated integer encodings 2019-08-07 15:04:33 -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