package sodium-fmt

  1. Overview
  2. Docs

Bigbytes offers versions of each of the above formatters, which get their value from a Sodium.bigbytes value.

type storage = Sodium.bigbytes
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>).