user132448: I'm building my own Bitcoin script interpreter for learning purposes.
I've compared my results with https://siminchen.github.io/bitcoinIDE/build/editor.html
And the script OP_16 OP_SHA256 which results from:
0x4A44DC15364204A80FE80E9039455CC1608281820FE2B24F1E5233ADE6AF1DD5

That is the hash of the string representation of '10' (16 in hex)
Instead of the hash of the bits
(which is: c555eab45d08845ae9f10d452a99bfcb06f74a50b988fe7e48dd323789b88ee3)
Does the bitcoin script interpreter hash the string representation of any hex value, instead of hashing the raw number?
edit: Is it a normal behavior, to prevent things like SHA256(1) == SHA256(01)?
Thank you all for your answers.

user208: No, the correct result should be c555eab45d08845ae9f10d452a99bfcb06f74a50b988fe7e48dd323789b88ee3.
I think this interpreter is just wrong. Looking at the source code, it has other deviations from the protocol (e.g. OP_MUL, which doesn't exist).

132448: <p>I'm building my own Bitcoin script interpreter for learning purposes.
I've compared my results with <a href="https://siminchen.github.io/bitcoinIDE/build/editor.html" rel="nofollow noreferrer">https://siminchen.github.io/bitcoinIDE/build/editor.html</a></p>
<p>And the script <code>OP_16 OP_SHA256</code> which results from:</p>
<pre><code>0x4A44DC15364204A80FE80E9039455CC1608281820FE2B24F1E5233ADE6AF1DD5
</code></pre>
<p>That is the hash of the string representation of '10' (16 in hex)</p>
<p>Instead of the hash of the bits
(which is: <code>c555eab45d08845ae9f10d452a99bfcb06f74a50b988fe7e48dd323789b88ee3</code>)</p>
<p>Does the bitcoin script interpreter hash the string representation of any hex value, instead of hashing the raw number?</p>
<p>edit: Is it a normal behavior, to prevent things like <code>SHA256(1) == SHA256(01)</code>?</p>
<p>Thank you all for your answers.</p>
 208: <p>No, the correct result should be <code>c555eab45d08845ae9f10d452a99bfcb06f74a50b988fe7e48dd323789b88ee3</code>.</p>
<p>I think this interpreter is just wrong. Looking at the source code, it has other deviations from the protocol (e.g. <code>OP_MUL</code>, which doesn't exist).</p>
