Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
BOLT 1: Spec field formatting and parsing #622
This rewrites tools/extract-formats.py to handle TLVs and subtypes (@niftynei did that, I just refactored as that built on my prior code which was awful). The new format is still simple CSV, but much more regular.
But it also replaces raw lengths with types in the spec. I think this makes it much clearer, as well as making building on top more accessible.