package conex

  1. Overview
  2. Docs

Module type Conex_private.FSSource

A simple IO module type for certain private key operations.

Sourceval ids : unit -> Conex_resource.identifier list

ids () is the list of available identifiers.

Sourceval read : (float -> Conex_resource.timestamp option) -> Conex_resource.identifier -> (string * Conex_resource.timestamp, string) result

read id is either the content and creation timestamp of id, or an error.

Sourceval write : Conex_resource.identifier -> string -> (unit, string) result

write id data stores data as id persistently, or errors.