package cactus

  1. Overview
  2. Docs
type t

The type for keys.

val t : t Repr.t
val encode : t -> string

encode is an encoding function. The resultant encoded values must have size encoded_size.

val encoded_size : int

encoded_size is the size of the result of encode, expressed in number of bytes.

val decode : string -> t

decode s is the decoded form of the encoded value of string s. Must satisfy decode (encode t) = t.

OCaml

Innovation. Community. Security.