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
Hi
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)')
>"0x07a10d224c92a39ae2a5296666da4dd2011b599cecfc44e06459783efe2a55f7"

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

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.