Why web3.sha on console and web3_sha3 on JSON-RPC yields the different value? which should I use?

Yuki_tYuki_t Member Posts: 1
I'm trying to call a function of my smart contract via JSON-RPC on my local network.
And now I'm making the data-sentence for transaction.
The following shows each command yields the different value.

*Javascript Console
> web3.sha3('multiply(uint)')

>curl --data '{"jsonrpc":"2.0","method": "web3_sha3", "params": ["multiply(uint)"], "id": 4}' localhost:8545

Which should I use?
(Now I have another problem, so I can not verify on actual running...)
Which is not "Keccak SHA-3" ?
Sign In or Register to comment.