aboutsummaryrefslogblamecommitdiffstats
path: root/lib/concepts/Hash.mli
blob: b100cd7702c25c0a765aeb7581058cdd01929011 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                                            

         

                                       
 




                                                          
(** an abstract value representing a hash *)
type hash

(** given a value, compute it's hash *)
val hash_of_value : Value.value -> hash

(** given two hashes, are they the same? *)
val hash_equals : hash -> hash -> bool

(** given a hash, return a `bytes` representation of it *)
val bytes_of_hash : hash -> bytes