package octez-proto-libs

  1. Overview
  2. Docs
Octez protocol libraries

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-18.1.tar.gz
sha256=aa2f5bc99cc4ca2217c52a1af2a2cdfd3b383208cb859ca2e79ca0903396ca1d
sha512=d68bb3eb615e3dcccc845fddfc9901c95b3c6dc8e105e39522ce97637b1308a7fa7aa1d271351d5933febd7476b2819e1694f31198f1f0919681f1f9cc97cb3a

doc/octez-proto-libs.protocol-environment/Tezos_protocol_environment/V4/Make/Context_hash/Version/index.html

Module Context_hash.Version

The module for representing the hash version of a context

type t = Tezos_crypto.Hashed.Context_hash.Version.t

The type for hash versions.

include 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 : 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.