aboutsummaryrefslogtreecommitdiffstats
path: root/lib/concepts/Hash.mli
diff options
context:
space:
mode:
authorEstevan Castilho <tevo@riajuu.net>2026-08-29 02:28:12 +0000
committerEstevan Castilho <tevo@riajuu.net>2026-08-29 02:28:42 +0000
commit5fe3502865a9d9e187bb9560dc42bb7a1439e588 (patch)
treebf5c266fd9275e3c3841fb7579254930cd8a4e8d /lib/concepts/Hash.mli
parentf87767c3e5b0f1920a6179d5cd0d4613cca92658 (diff)
downloadRNT-5fe3502865a9d9e187bb9560dc42bb7a1439e588.tar.gz
RNT-5fe3502865a9d9e187bb9560dc42bb7a1439e588.zip
Identity mixins
Diffstat (limited to '')
-rw-r--r--lib/concepts/Hash.mli7
1 files changed, 5 insertions, 2 deletions
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