Define blinded hop features for use in BOLT 12
authorJeffrey Czyz <jkczyz@gmail.com>
Fri, 16 Dec 2022 20:06:33 +0000 (14:06 -0600)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 6 Jan 2023 04:39:24 +0000 (22:39 -0600)
commitb50fc4e32c8b19566fe699cb7cccfe3887928fa3
tree3ae0ba38f61f6226d54f19165b30a9a24d77e023
parentd985ced7e31bde8273a934c2b620604ee4fb2111
Define blinded hop features for use in BOLT 12

BOLT 12 invoices may contain blinded_payinfo for each hop in a blinded
path. Each blinded_payinfo contains features, whose length must be
encoded since there may be multiple hops.

Note these features are also needed in the BOLT 4 encrypted_data_tlv
stream. But since they are a single TLV record, the length must *not* be
encoded there.
lightning/src/ln/features.rs