Back to Sway

keccak256

docs/reference/src/documentation/operations/hashing/keccak256.md

0.71.0417 B
Original Source

keccak256

To use the keccak256 function we must import it.

sway
{{#include ../../../code/operations/hashing/src/lib.sw:import_keccak256}}

To hash multiple values we wrap them into a tuple however other compound types may be used.

sway
{{#include ../../../code/operations/hashing/src/lib.sw:keccak256}}