package multihash

  1. Overview
  2. Docs
val digest : Multicodec.multihash -> Cstruct.t -> (Cstruct.t, [ `Unsupported | `Msg of string ]) result

digest ident v should digest v using the hash function related to ident

val digest_string : Multicodec.multihash -> string -> (string, [ `Unsupported | `Msg of string ]) result

digest ident v should digest v using the hash function related to ident

val iter : Multicodec.multihash -> ((Cstruct.t -> unit) -> unit) -> (Cstruct.t, [ `Unsupported | `Msg of string ]) result
val iter_string : Multicodec.multihash -> ((string -> unit) -> unit) -> (string, [ `Unsupported | `Msg of string ]) result

digest ident v should digest v using the hash function related to ident

val is_supported : Multicodec.multihash -> bool

A subset of Multicodec.multihash that this hasher supports

OCaml

Innovation. Community. Security.