You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BIP 174: clarify format of proprietary extensions.
"Variable length string identifier" is not defined anywhere, and the suggestion
to use "0x00" is also deeply unclear. I assumed it meant a nul-terminated
string!
Be explicit: you mean it must be a compact siz1\e unsigned int length, followed
by that many identifier bytes, followed by a compact size unsigned int subtype,
followed by optional keydata.
Signed-off-by: Rusty Russell <[email protected]>
** Value: Any value data as defined by the proprietary type user.
259
259
*** <tt><data></tt>
260
260
@@ -336,10 +336,10 @@ values are valid, then it does not matter which is chosen as either way the tran
336
336
===Proprietary Use Type===
337
337
338
338
For all global, per-input, and per-output maps, the types <tt>0xFC</tt> is reserved for proprietary use.
339
-
The proprietary use type requires keys that follow the type with a variable length string identifer, then a subtype.
339
+
The proprietary use type requires keys that follow the type with a compact size unsigned integer representing the length of the string identifer, followed by the string identifier, then a subtype, and finally any key data.
340
340
341
341
The identifier can be any variable length string that software can use to identify whether the particular data in the proprietary type can be used by it.
342
-
It can also be the empty string and just be a single <tt>0x00</tt> byte although this is not recommended.
342
+
It can also be the empty string although this is not recommended.
343
343
344
344
The subtype is defined by the proprietary type user and can mean whatever they want it to mean.
345
345
The subtype must also be a compact size unsigned integer in the same form as the normal types.
0 commit comments