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: (Generichash.hash AAAAAA==). If the storage value is not between Sodium.Generichash.size_min and Sodium.Generichash.size_max bytes long, it will be formatted as (Generichash.hash <size mismatch>).

val secret_key : storage Fmt.t

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

OCaml

Innovation. Community. Security.