From 5fe3502865a9d9e187bb9560dc42bb7a1439e588 Mon Sep 17 00:00:00 2001 From: Estevan Castilho Date: Sat, 29 Aug 2026 02:28:12 +0000 Subject: Identity mixins --- lib/concepts/Hash.mli | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib/concepts/Hash.mli') diff --git a/lib/concepts/Hash.mli b/lib/concepts/Hash.mli index ca50406..256f3cd 100644 --- a/lib/concepts/Hash.mli +++ b/lib/concepts/Hash.mli @@ -4,12 +4,15 @@ type hash (** the size of a hash, in bytes *) val size : int -(** given a bag of bytes, compute it's hash *) +(** given a bag of bytes, compute its hash *) val hash_of_bytes : bytes -> hash -(** given a blob, compute it's hash *) +(** given a blob, compute its hash *) val hash_of_blob : Blob.t -> hash +(** given an int, compute its hash *) +val hash_of_int : int -> hash + (** given a hash, return a representation of it as a string (/not/ the usual hex representation!) *) val to_raw_string : hash -> string -- cgit v1.2.3