lnd.xprv/tlv
Olaoluwa Osuntokun aea529d9f6
tlv: add new Type() and Encode() methods to Record
In this commit, we add two new method so the `Record` struct: Type() and
Encode(). These are useful when a caller is handling a record and may
not know its underlying type and may need to encode a record in
isolation.
2019-08-22 18:52:58 -07:00
..
bench_test.go tlv/bench_test: add basic benchmark 2019-08-07 15:04:20 -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.go tlv: add new Type() and Encode() methods to Record 2019-08-22 18:52:58 -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