7

I'm reading about the gossip protocol and wanted to know what a TLV is. I can't find what it means anywhere.

Murch
  • 71,155
  • 33
  • 180
  • 600
CriptoLuis
  • 71
  • 1

1 Answers1

8

TLV stands for type-length-value. It's an encoding scheme used when protocols allow for optional elements in their messages.

The type is a label telling you what field you're looking at, the length tells you how long the field is, and the value provides the actual field data.

Murch
  • 71,155
  • 33
  • 180
  • 600