12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364typeversion=[`Cidv0|`Cidv1|`Cidv2|`Cidv3]moduletypeS=sigtypemultihash(** The type for multihashes *)typet(** A content-addressed identifier. *)valv:version:version->base:Multibase.Encoding.t->codec:Multicodec.t->hash:multihash->t(** Build a CID, this performs no checks on any of the inputs *)valversion:t->version(** The CID version. *)valbase:t->Multibase.Encoding.t(** The multibase encoding of the CID. *)valcodec:t->Multicodec.t(** The multicodec type of the data *)valhash:t->multihash(** The multihash of the CID *)valequal:t->t->bool(** Tests the equality of two CIDs. *)valof_string:string->(t,[`Msgofstring|`UnsupportedofMultibase.Encoding.t])result(** [of_string s] takes an encoded string [s] that is the CID and
pulls out each of the parts that make it up. *)valof_cstruct:base:Multibase.Encoding.t->Cstruct.t->(t,[`Msgofstring|`UnsupportedofMultibase.Encoding.t])result(** [of_cstruct ~base buf] builds a value representing a CID. The buffer
should not be encoded with the multibase encoding. *)valto_string:t->string(** [to_string t] converts the CID to a multibase encoded string. Errors happen
if the base encoding is not supported. This may raise an exception of the base
encoding format is not supported. *)valto_cstruct:t->Cstruct.t(** [to_cstruct t] returns a buffer with the bytes corresponding to the unencoded
CID. *)valpp_human:Format.formatter->t->unit(** Pretty-prints a CID. *)endmoduletypeIntf=sigmoduletypeS=SmoduleMake(H:Multihash.S):Swithtypemultihash=Cstruct.tH.tincludeSwithtypemultihash=Cstruct.tMultihash_digestif.tend