package sodium-fmt

  1. Overview
  2. Docs

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

type storage = bytes
val secret_key : storage Fmt.t

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

OCaml

Innovation. Community. Security.