Key.Of_hash
The simplest possible Key implementation is just a hash of the corresponding value.
Key
module H : Type.S
include Key_intf.S with type t = H.t with type hash = H.t
type t = H.t
The type for keys.
val t : t Type.t
type hash = H.t
val to_hash : t -> hash
val encoding : t Data_encoding.t
encoding is the data_encoding for t.
encoding
t
val pp : Stdlib.Format.formatter -> t -> unit
val of_hash : hash -> t