What is Nostr?
Thomas Zander [ARCHIVE] /
npub1du3…yg93
2023-06-07 15:26:27
in reply to nevent1q…daqz

Thomas Zander [ARCHIVE] on Nostr: 📅 Original date posted:2014-10-14 📝 Original message:On Tuesday 14. October ...

📅 Original date posted:2014-10-14
📝 Original message:On Tuesday 14. October 2014 04.34.16 Pieter Wuille wrote:
> This means that scripts that use booleans as inputs will be inherently
> malleable.

I've ran into this issue in C++ often enough,
a funny example is assigning "2" to a native c++ bool and then you can do a
if (myBool == true)
else if (myBool == false)
and neither of them will hit.

> I
> would like to change BIP62 to also state that interpreted booleans
> must be of minimal encoded size (in addition to numbers).

What about rejecting a script where a bool is not explicitly zero or one?
--
Thomas Zander
Author Public Key
npub1du3xh5wgds32a5fweqkd9k45kh30wl7kv2kyu8ugz9c2ztdg00tqqvyg93