package tezos-crypto

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

The module for representing the hash version of a context

type t = private int

The type for hash versions.

include Tezos_stdlib.Compare.S with type t := t
val (=) : t -> t -> bool
val (<>) : t -> t -> bool
val (<) : t -> t -> bool
val (<=) : t -> t -> bool
val (>=) : t -> t -> bool
val (>) : t -> t -> bool
val compare : t -> t -> int
val equal : t -> t -> bool
val max : t -> t -> t
val min : t -> t -> t
val pp : Stdlib.Format.formatter -> t -> unit

pp is the pretty-printer for hash versions.

val encoding : t Data_encoding.t

encoding is the data encoding for hash versions.

val of_int : int -> t

of_int i is the hash version equivalent to i. This function raises Invalid_argument if i is not an unsigned 16-bit integer.

OCaml

Innovation. Community. Security.