web3-utilsFunctionssha3Rawsha3Raw Callablesha3Raw(data: Bytes): stringWill calculate the sha3 of the input but does return the hash value instead of null if for example a empty string is passed.@exampleconosle.log(web3.utils.sha3Raw('web3.js'));> 0x63667efb1961039c9bb0d6ea7a5abdd223a3aca7daa5044ad894226e1f83919aconsole.log(web3.utils.sha3Raw(''));> 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470Parametersdata: Bytesthe input to hashReturns stringthe Keccak-256 hash of the input
Will calculate the sha3 of the input but does return the hash value instead of null if for example a empty string is passed.