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
{{ message }}
Repository navigation
Script disassembly for short byte arrays is confusing #7996
ScriptToAsmString will convert any push shorter than 4 bytes to a number before display. This can lead to some confusion if you were expecting a hex-encoded blob as it does for longer-than-4-byte chunks. I'm not sure this is even documented anywhere.
I think this has always been the case. It'd make some sense if at least the hexadecimal were clearly distinguishable from decimal values, for example with a prefix. But as @apoelstra already says this is now ambiguous.
Activity
apoelstra commentedon May 4, 2016
This is stronger than just confusion -- for numbers between 10 000 000 and 2^32, it is ambiguous whether they are decimal numbers or hex-encoded data.
laanwj commentedon May 5, 2016
I think this has always been the case. It'd make some sense if at least the hexadecimal were clearly distinguishable from decimal values, for example with a prefix. But as @apoelstra already says this is now ambiguous.