Module Crypto.Key_type

The KeyType of a cryptoKey.

type t =
  1. | Public
  2. | Private
  3. | Secret
val to_js : t -> Js.js_string Js.t
val of_js : Js.js_string Js.t -> t
  • raises Invalid_argument

    on an unrecognised string.