I have tried to use sha3 but it return error since invalid address. Here is my code. The sha3 returns 32 bytes address. I wonder is there other function that returns 20 bytes .
var to_add = web3.sha3(str);
web3.eth.sendTransaction({from: '0xC5b0f45d8533909a80eA45Ed2FC42bd36C1Cccac', data:str,to:to_add},function(err, transactionHash)
str??? – goodvibration Nov 18 '20 at 17:45web3.sha3seems pretty old BTW. Are you still on web3.js v0.x? – goodvibration Nov 18 '20 at 17:47sha3give you an Ethereum address though? Moreover, what exactly is this address going to be good for (since obviously, no one will know its private key)? – goodvibration Nov 18 '20 at 18:14