"Dual Object Notation" -> "Twofold Object Notation"
[ton] / ton / __init__.py
diff --git a/ton/__init__.py b/ton/__init__.py
new file mode 100644 (file)
index 0000000..157ec10
--- /dev/null
@@ -0,0 +1,10 @@
+import collections
+import struct
+
+from ton import binary, string
+
+def binary_to_string(b):
+    return string.serialize(binary.deserialize(b))
+
+def string_to_binary(s):
+    return binary.serialize(string.deserialize(s))