in both geth and web3.js, when we call
requirement of using web3.fromAscii before sha3 is deprecated new usage: 'web3.sha3("hello")' see https://github.com/ethereum/web3.js/pull/205 if you need to hash hex value, you can do 'sha3("0xfff", true)' "b21dbc7a5eb6042d91f8f584af266f1a512ac89520f43562c6c1e37eab6eb0c4"
So I proceed to do this:
upon which I get:
This does not match the original value that I intended to get, namely
I was wondering if someone could explain to me why the two values are different. The reason I'm asking is that I'd like to sha3 this:
which gives me a invalid byte index error, but I know that
is not going to get me what I want, based on the above observations.