Cryptography
One common use of bytes, beyond packing and unpacking, is
cryptography. The predefined module Crypto
provides the following
hashing functions, which are efficient because they are natively
supported by the Michelson virtual machine:
const blake2b: bytes => bytes;
const sha256: bytes => bytes;
const sha512: bytes => bytes;
const sha3: bytes => bytes;
const keccak: bytes => bytes;