Skip to main content

sha3Raw

Callable

  • sha3Raw(data: Bytes): string

  • Will calculate the sha3 of the input but does return the hash value instead of null if for example a empty string is passed.

    @example
    conosle.log(web3.utils.sha3Raw('web3.js'));
    > 0x63667efb1961039c9bb0d6ea7a5abdd223a3aca7daa5044ad894226e1f83919a

    console.log(web3.utils.sha3Raw(''));
    > 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470

    Parameters

    • data: Bytes

      the input to hash

    Returns string

    • the Keccak-256 hash of the input