aboutsummaryrefslogtreecommitdiffstats
path: root/lib/protocols/Addressable.mli
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/protocols/Addressable.mli11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/protocols/Addressable.mli b/lib/protocols/Addressable.mli
new file mode 100644
index 0000000..2d9c14d
--- /dev/null
+++ b/lib/protocols/Addressable.mli
@@ -0,0 +1,11 @@
+type t
+
+class type implementation = object
+ method address : Concepts.Hash.hash
+end
+
+val make : #implementation -> Handle.protocol
+
+val from : Handle.t -> t Handle.interface option
+
+val address : t Handle.interface -> Concepts.Hash.hash