package sodium-fmt

  1. Overview
  2. Docs

Module Sodium_fmt.SignSource

Sign defines formatters for types defined in Sodium.Sign.

secret_key formats a secret_key in this fashion: (Sign.secret_key AAAAAA==).

public_key formats a public_key in this fashion: (Sign.public_key AAAAAA==).

keypair formats a keypair in this fashion: ((Sign.secret_key AAAAAA==) (Sign.public_key AAAAAA==)).

signature formats a signature in this fashion: (Sign.signature AAAAAA==).

seed formats a seed in this fashion: (Sign.seed AAAAAA==).

Sourcemodule type S = sig ... end
Sourcemodule Bytes : S with type storage = bytes

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

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

OCaml

Innovation. Community. Security.