What is Nostr?
Oleg Andreev [ARCHIVE] /
npub13f3…7cz5
2023-06-07 17:44:17
in reply to nevent1q…ec36

Oleg Andreev [ARCHIVE] on Nostr: 📅 Original date posted:2015-11-06 📝 Original message:> One and zero should be ...

📅 Original date posted:2015-11-06
📝 Original message:> One and zero should be defined as arrays of length one. Otherwise, it is still possible to mutate the transaction by changing the length of the array.
>
> They should also be minimally encoded but that is covered by previous rules.

These two lines contradict each other. Minimally-encoded "zero" is an array of length zero, not one. I'd suggest defining this explicitly here as "IF/NOTIF argument must be either zero-length array or a single byte 0x01".
Author Public Key
npub13f3qkf0gj3zwnypll339zsjsjsw2xxxnm5m3xzyzrdxtuvxafq4qmv7cz5