DotNetLightning


GenericTLV Type

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 fields

Record Field Description

Type

Full Usage: Type

Field type: uint64
Field type: uint64

Value

Full Usage: Value

Field type: byte array
Field type: byte array

Instance members

Instance member Description

this.ToBytes

Full Usage: this.ToBytes

Returns: uint8[]
Returns: uint8[]

Static members

Static member Description

GenericTLV.TryCreateFromBytes(b)

Full Usage: GenericTLV.TryCreateFromBytes(b)

Parameters:
    b : byte array

Returns: Result<(GenericTLV * byte[]), string>
b : byte array
Returns: Result<(GenericTLV * byte[]), string>

GenericTLV.TryCreateManyFromBytes(bytes)

Full Usage: GenericTLV.TryCreateManyFromBytes(bytes)

Parameters:
    bytes : byte array

Returns: Result<GenericTLV[], string>

consumes all bytes.

bytes : byte array
Returns: Result<GenericTLV[], string>