Back to Sway

Hashing

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

0.71.0616 B
Original Source

Hashing

The hash module contains the following functions:

<!-- no toc -->

They take one generic argument T and return a b256 (hash of T).

To hash multiple values the values must be wrapped into one type such as a tuple, array, struct & enum.