From 634625d832873b75b3d9c049db2e95fda31135ae Mon Sep 17 00:00:00 2001 From: Estevan Castilho Date: Thu, 13 Aug 2026 00:21:41 +0000 Subject: Make hashes printable readably --- lib/concepts/Hash.mli | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/concepts/Hash.mli') diff --git a/lib/concepts/Hash.mli b/lib/concepts/Hash.mli index 44fb3d0..f40d9aa 100644 --- a/lib/concepts/Hash.mli +++ b/lib/concepts/Hash.mli @@ -19,6 +19,9 @@ val to_raw_string : hash -> string (** given a string containing a representation of a hash (as per `to_raw_string`), return the corresponding hash *) val of_raw_string : string -> hash +(** given a hash, return a representation of it as a string suitable for being displayed to humans *) +val to_hum_string : hash -> string + (** compare two hashes lexicographically *) val compare : hash -> hash -> Ordering.ordering -- cgit v1.2.3