package tezos-context

  1. Overview
  2. Docs
include Irmin.Hash.S
type t

The type for digest hashes.

val hash : ((string -> unit) -> unit) -> t

Compute a deterministic store key from a sequence of strings.

val short_hash : t -> int

short_hash h is a small hash of h, to be used for instance as the `hash` function of an OCaml Hashtbl.

val hash_size : int

hash_size is the size of hash results, in bytes.

Value Types

val t : t Irmin.Type.t

t is the value type for t.

val to_raw_string : t -> string
val to_context_hash : t -> Tezos_crypto.Context_hash.t
val of_context_hash : Tezos_crypto.Context_hash.t -> t