aboutsummaryrefslogtreecommitdiffstats
path: root/diy-dat/src
diff options
context:
space:
mode:
Diffstat (limited to 'diy-dat/src')
-rw-r--r--diy-dat/src/SUMMARY.md13
-rw-r--r--diy-dat/src/book.toml2
-rw-r--r--diy-dat/src/chapter_1.md1
-rw-r--r--diy-dat/src/dat-logo.svg15
-rw-r--r--diy-dat/src/discovery.md1
-rw-r--r--diy-dat/src/drive.md7
-rw-r--r--diy-dat/src/integration.md1
-rw-r--r--diy-dat/src/intro.md4
-rw-r--r--diy-dat/src/network.md6
-rw-r--r--diy-dat/src/protocol.md1
-rw-r--r--diy-dat/src/references.md1
-rw-r--r--diy-dat/src/sleep.md22
12 files changed, 74 insertions, 0 deletions
diff --git a/diy-dat/src/SUMMARY.md b/diy-dat/src/SUMMARY.md
new file mode 100644
index 0000000..325d020
--- /dev/null
+++ b/diy-dat/src/SUMMARY.md
@@ -0,0 +1,13 @@
+# Summary
+
+[Implement Dat Yourself!](./intro.md)
+
+- [SLEEP v2 files and registers](./sleep.md)
+- [Drive metadata and files](./drive.md)
+- [Protocol](./protocol.md)
+- [Discovery](./discovery.md)
+- [Integration](./integration.md)
+
+-----------
+
+[References](./references.md)
diff --git a/diy-dat/src/book.toml b/diy-dat/src/book.toml
new file mode 100644
index 0000000..ecd5983
--- /dev/null
+++ b/diy-dat/src/book.toml
@@ -0,0 +1,2 @@
+title = "DIY Dat Notes"
+author = "You!"
diff --git a/diy-dat/src/chapter_1.md b/diy-dat/src/chapter_1.md
new file mode 100644
index 0000000..b743fda
--- /dev/null
+++ b/diy-dat/src/chapter_1.md
@@ -0,0 +1 @@
+# Chapter 1
diff --git a/diy-dat/src/dat-logo.svg b/diy-dat/src/dat-logo.svg
new file mode 100644
index 0000000..d76b80b
--- /dev/null
+++ b/diy-dat/src/dat-logo.svg
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg version="1.1" id="dat-data-logo" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="240px" height="240px" viewBox="0 0 240 240" enable-background="new 0 0 240 240" xml:space="preserve">
+ <polygon fill="#35B44F" points="224,179.5 119.5,239.5 15,179.5 15,59.5 119.5,-0.5 224,59.5 "/>
+ <g>
+ <path fill="#FFFFFF" d="M74.707,76.498c4.863,0,7.782,1.768,10.789,4.598l-0.53-6.721V59.43h13v61.992H87.353l-0.884-4.333h-0.354 c-3.095,3.095-7.429,5.394-11.673,5.394c-10.877,0-17.952-8.666-17.952-22.993C56.49,85.164,65.421,76.498,74.707,76.498z M77.801,111.872c2.831,0,5.041-1.061,7.164-3.98V89.94c-2.299-2.122-4.864-2.83-7.252-2.83c-4.156,0-7.87,3.891-7.87,12.204 C69.843,107.98,72.761,111.872,77.801,111.872z"/>
+ <path fill="#FFFFFF" d="M131.303,93.212c-0.265-3.891-2.21-6.367-6.898-6.367c-3.713,0-7.429,1.503-11.673,3.979l-4.599-8.578 c5.571-3.36,11.85-5.748,18.747-5.748c11.232,0,17.422,6.367,17.422,19.809v25.115h-10.613l-0.972-4.51h-0.265 c-3.713,3.272-7.87,5.571-12.823,5.571c-7.96,0-13-5.837-13-13.265C106.63,100.021,113.97,94.98,131.303,93.212z M124.052,112.402 c3.007,0,4.953-1.415,7.251-3.714v-7.694c-9.285,1.238-12.292,3.891-12.292,7.251C119.011,111.075,120.957,112.402,124.052,112.402 z"/>
+ <path fill="#FFFFFF" d="M157.214,87.729h-6.013v-9.64l6.72-0.531l1.503-11.673h10.79v11.673h10.523v10.17h-10.523v17.598 c0,4.952,2.21,6.986,5.66,6.986c1.414,0,3.007-0.442,4.156-0.884l2.033,9.462c-2.298,0.707-5.482,1.592-9.727,1.592 c-10.878,0-15.123-6.809-15.123-16.979V87.729z"/>
+ </g>
+ <g>
+ <path fill="#FFFFFF" d="M63.75,136.841h8.962c11.969,0,17.688,7.547,17.688,19.28c0,11.792-5.719,19.575-17.629,19.575H63.75 V136.841z M72.417,173.396c10.554,0,15.152-7.134,15.152-17.276c0-10.082-4.598-16.981-15.152-16.981h-5.955v34.256H72.417z"/>
+ <path fill="#FFFFFF" d="M116.516,162.371h-15.388l-4.54,13.325h-2.772l13.738-38.855h2.712l13.679,38.855h-2.888L116.516,162.371z M115.75,160.071l-2.476-7.252c-1.533-4.599-2.948-8.667-4.304-13.443h-0.236c-1.355,4.776-2.712,8.844-4.304,13.443l-2.476,7.252 H115.75z"/>
+ <path fill="#FFFFFF" d="M135.44,139.199h-12.382v-2.359h27.416v2.359h-12.322v36.496h-2.712V139.199z"/>
+ <path fill="#FFFFFF" d="M172.287,162.371h-15.388l-4.54,13.325h-2.772l13.738-38.855h2.712l13.678,38.855h-2.888L172.287,162.371z M171.521,160.071l-2.477-7.252c-1.532-4.599-2.947-8.667-4.304-13.443h-0.235c-1.356,4.776-2.712,8.844-4.305,13.443l-2.476,7.252 H171.521z"/>
+ </g>
+</svg> \ No newline at end of file
diff --git a/diy-dat/src/discovery.md b/diy-dat/src/discovery.md
new file mode 100644
index 0000000..af6b0e4
--- /dev/null
+++ b/diy-dat/src/discovery.md
@@ -0,0 +1 @@
+# Discovery
diff --git a/diy-dat/src/drive.md b/diy-dat/src/drive.md
new file mode 100644
index 0000000..6d8073b
--- /dev/null
+++ b/diy-dat/src/drive.md
@@ -0,0 +1,7 @@
+
+- [Drive metadata and files](./drive.md)
+ - [x] read full history ("log")
+ - [x] read file tree ("ls")
+ - [x] import file to register
+ - [x] export file from register
+ - [x] import/export directories recursively
diff --git a/diy-dat/src/integration.md b/diy-dat/src/integration.md
new file mode 100644
index 0000000..50a133c
--- /dev/null
+++ b/diy-dat/src/integration.md
@@ -0,0 +1 @@
+# Integration
diff --git a/diy-dat/src/intro.md b/diy-dat/src/intro.md
new file mode 100644
index 0000000..b61f4f8
--- /dev/null
+++ b/diy-dat/src/intro.md
@@ -0,0 +1,4 @@
+
+![dat logo](./dat-logo.svg)
+
+This is the intro page!
diff --git a/diy-dat/src/network.md b/diy-dat/src/network.md
new file mode 100644
index 0000000..40ac7d5
--- /dev/null
+++ b/diy-dat/src/network.md
@@ -0,0 +1,6 @@
+
+- [Networking](./network.md)
+ - [x] send/receive encrypted messages to a known host
+ - [ ] receive entire register from a known host
+ - [ ] share (upload) register to a known host
+ - [ ] bitfields
diff --git a/diy-dat/src/protocol.md b/diy-dat/src/protocol.md
new file mode 100644
index 0000000..fbd34d1
--- /dev/null
+++ b/diy-dat/src/protocol.md
@@ -0,0 +1 @@
+# Protocol
diff --git a/diy-dat/src/references.md b/diy-dat/src/references.md
new file mode 100644
index 0000000..b18be66
--- /dev/null
+++ b/diy-dat/src/references.md
@@ -0,0 +1 @@
+# References
diff --git a/diy-dat/src/sleep.md b/diy-dat/src/sleep.md
new file mode 100644
index 0000000..9168b23
--- /dev/null
+++ b/diy-dat/src/sleep.md
@@ -0,0 +1,22 @@
+# SLEEP v2 files and registers
+
+## read/write file headers
+
+Some info here...
+
+## read/write file chunks as raw bytes
+
+Some there...
+
+## pread/pwrite file chunks without seeking
+
+## read data entries by index
+
+## append data entries
+
+## verify entire register (signatures and merkel tree)
+
+## receive and insert data out of order
+
+## bitfields
+