Module Hash.Bytes

Bytes offers versions of each of the above formatters, which get their value from a bytes value.

type storage = bytes
val hash : storage Fmt.t

hash formats a hash in this fashion: (Hash.hash AAAAAA==). If the storage value is not Sodium.Hash.size bytes long, it will be formatted as (Hash.hash <size mismatch>).