sha3

Helper function that will sha3 any value using keccak256

Usage

visionWeb.sha3(string);

Parameters

ParameterDescriptionTypeDefault
stringThe string that needs to be hashed using Keccak-256 SHA3 algorithmstring-
prefixNeed to set encoding to hexbooleantrue

Returns

String-The result hashed using the Keccak-256 SHA3 algorithm.

Example

visionWeb.sha3("vision");
> 0x3ffb1278e9186b76ad7d65d6cd93ae157059c833489d39569fda8d4d4a722e72