• Calculate the keccak256 hash of the input bytes.

    Parameters

    • message: Bytes

      the data that needs to be hashed

    Returns Bytes

    Example

    const message = Bytes.fromUtf8String("Hello, SEDA!");

    const hash = keccak256(message);

    Console.log(hash.toHexString()); // "5faa8e7e66ee9174b800ee6506e8af494f0e945cd99b03d8bc834ae446fe0e1c"