Helper function that will sha3 any value using keccak256
Usage
visionWeb.sha3(string);
Parameters
Parameter | Description | Type | Default |
---|---|---|---|
string | The string that needs to be hashed using Keccak-256 SHA3 algorithm | string | - |
prefix | Need to set encoding to hex | boolean | true |
Returns
String-The result hashed using the Keccak-256 SHA3 algorithm.
Example
visionWeb.sha3("vision");
> 0x3ffb1278e9186b76ad7d65d6cd93ae157059c833489d39569fda8d4d4a722e72