В Thu, 01 Aug 2019 19:01:06 +0000 Andrew Chow <achow101-li...@achow101.com> wrote:
> I spoke to some people OOB and they said that they didn't really like > the idea of having a prefix string (partially because they've already > implemented some proprietary types by simply squatting on unused > types). Matching the prefix string adds additional complexity to the > parser code. I do not oppose the idea of "{0xFC}|{private_type}" strongly, but I would like to note that for those who do not want to deal with additional complexity of handling a prefixed string, they can simply not use it at all. Since this is a private construction, and their private format specifies 'no prefix', they can just ignore everything that does not start with "{0xFC}|{0x00}", thus any further complexity regarding the prefix is also ignored. The only added complexity is one condition check: second_byte_of_the_key != 0 My other argument for conflict-avoidance prefix as a first thing after 0xFC is that the set of future users of PSBT and private types is most likely much larger than the current set of those who already implemented proprietary types on their own, and thus the overall benefit for the whole industry will likely be bigger when 'i do not want conflict avoidance' decision have to be explicit, by setting the prefix to 0x00, and the set of possible conflicting types are limited only to those entities that made this explicit decision. Regarding the 'squatted' types, it seems to me that this only matters in the discussed context if they squatted on 0xFC type in particular. In other cases, they will need to implement changes anyway, to be compatible with the BIP. Maybe they could consider that one additional condition check is a small burden, and maybe they can tolerate that, for the benefit of reducing possibility of interoperability problems between other future PSBT/private types implementors. _______________________________________________ bitcoin-dev mailing list bitcoin-dev@lists.linuxfoundation.org https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev