lightningnetwork / lightning-onion

Onion Routed Micropayments for the Lightning Network
MIT License
398 stars 127 forks source link

CHDR introducing version #5

Closed andreabenetton closed 5 years ago

andreabenetton commented 7 years ago

Hi Roastbeef,

Although in the original paper is not expected, IMHO it would be appropriate to add a byte at the beginning of Common header to be used to versioning the Hornet protocol (as indeed exists in the IP protocol). My proposal is:

Bit 0-3 4-7 8-15 16-23 24-
0 Version Future Uses Control Type Hops ...

Andrea