TLV with unknown types. TLV represents Type-Length-Value format. and it is designed to be ignorable if the semantics is not clear to the node. So that P2P messages can be forward compatible. See bolt01 For the detail.
All other concrete TLV types (e.g. InitTLV
) has methods
To convert to/from this type.
Record Field | Description |
Full Usage:
Type
Field type: uint64
|
|
Full Usage:
Value
Field type: byte array
|
|
Instance member | Description |
Full Usage:
this.ToBytes
Returns: uint8[]
|
|
Static member | Description |
Full Usage:
GenericTLV.TryCreateFromBytes(b)
Parameters:
byte array
Returns: Result<(GenericTLV * byte[]), string>
|
|
Full Usage:
GenericTLV.TryCreateManyFromBytes(bytes)
Parameters:
byte array
Returns: Result<GenericTLV[], string>
|
|