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 secret_key : storage Fmt.t

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

val public_key : storage Fmt.t

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

val signature : storage Fmt.t

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

val seed : storage Fmt.t

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

OCaml

Innovation. Community. Security.