Author: Oleg Andreev 2015-11-06 09:32:02
Published on: 2015-11-06T09:32:02+00:00
In the given context, it is stated that one and zero should be defined as arrays of length one to avoid any possibility of mutation in the transaction. However, this statement contradicts with the previous rule which states that they should be minimally encoded. The minimally-encoded "zero" is an array of length zero, not one. To resolve this contradiction, it is suggested to define explicitly that IF/NOTIF argument must be either a zero-length array or a single byte 0x01. This would ensure that the transaction remains secure and free from any possible mutations caused by changing the length of the array.
Updated on: 2023-06-11T00:55:57.149834+00:00