aboutsummaryrefslogtreecommitdiffstats
path: root/test-data/dat
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2017-10-30 22:22:56 -0700
committerBryan Newbold <bnewbold@robocracy.org>2017-10-30 22:22:56 -0700
commitf2bc3a84fc723e1f05079d84891660c87b596b34 (patch)
treecd5c932cf76df327bf6ff7a336fbb291c8f9bb8c /test-data/dat
parent5c9d990068107e54a4d8206b9fd1d2c606ec8e95 (diff)
downloadgeniza-f2bc3a84fc723e1f05079d84891660c87b596b34.tar.gz
geniza-f2bc3a84fc723e1f05079d84891660c87b596b34.zip
add another example dat archive (and README)
Diffstat (limited to 'test-data/dat')
-rw-r--r--test-data/dat/README.md25
-rw-r--r--test-data/dat/alphabet/.dat/content.bitfieldbin0 -> 3360 bytes
-rw-r--r--test-data/dat/alphabet/.dat/content.key1
-rw-r--r--test-data/dat/alphabet/.dat/content.secret_key1
-rw-r--r--test-data/dat/alphabet/.dat/content.signaturesbin0 -> 416 bytes
-rw-r--r--test-data/dat/alphabet/.dat/content.treebin0 -> 472 bytes
-rw-r--r--test-data/dat/alphabet/.dat/metadata.bitfieldbin0 -> 3360 bytes
-rw-r--r--test-data/dat/alphabet/.dat/metadata.databin0 -> 307 bytes
-rw-r--r--test-data/dat/alphabet/.dat/metadata.key1
-rw-r--r--test-data/dat/alphabet/.dat/metadata.latest0
-rw-r--r--test-data/dat/alphabet/.dat/metadata.ogdbin0 -> 1 bytes
-rw-r--r--test-data/dat/alphabet/.dat/metadata.secret_key1
-rw-r--r--test-data/dat/alphabet/.dat/metadata.signaturesbin0 -> 480 bytes
-rw-r--r--test-data/dat/alphabet/.dat/metadata.treebin0 -> 552 bytes
-rw-r--r--test-data/dat/alphabet/a1
-rw-r--r--test-data/dat/alphabet/b1
-rw-r--r--test-data/dat/alphabet/c1
-rw-r--r--test-data/dat/alphabet/d1
-rw-r--r--test-data/dat/alphabet/e1
-rw-r--r--test-data/dat/alphabet/f1
20 files changed, 35 insertions, 0 deletions
diff --git a/test-data/dat/README.md b/test-data/dat/README.md
new file mode 100644
index 0000000..0eec5b9
--- /dev/null
+++ b/test-data/dat/README.md
@@ -0,0 +1,25 @@
+
+## simple
+
+This is a simple (but not the simplest possible) dat archive: a single short
+README file, which is added in one version and modified in the second (to
+include a self-reference to the dat address).
+
+## alphabet
+
+This dat archive is intended to match the content tree examples from the
+`hypercore` registry.
+
+To generate single-character files with no trailing newline:
+
+ echo -n 'a' > a
+ echo -n 'b' > b
+ echo -n 'c' > c
+ echo -n 'd' > d
+ echo -n 'e' > e
+ echo -n 'f' > f
+
+## tree
+
+This archive has a bunch of deeply nested folders, to demonstrate hyperdrive
+lookup behavior.
diff --git a/test-data/dat/alphabet/.dat/content.bitfield b/test-data/dat/alphabet/.dat/content.bitfield
new file mode 100644
index 0000000..f2037c2
--- /dev/null
+++ b/test-data/dat/alphabet/.dat/content.bitfield
Binary files differ
diff --git a/test-data/dat/alphabet/.dat/content.key b/test-data/dat/alphabet/.dat/content.key
new file mode 100644
index 0000000..2fe98bf
--- /dev/null
+++ b/test-data/dat/alphabet/.dat/content.key
@@ -0,0 +1 @@
+=;'IRKMw,8W \ No newline at end of file
diff --git a/test-data/dat/alphabet/.dat/content.secret_key b/test-data/dat/alphabet/.dat/content.secret_key
new file mode 100644
index 0000000..55d4997
--- /dev/null
+++ b/test-data/dat/alphabet/.dat/content.secret_key
@@ -0,0 +1 @@
+2*r8!I*kY(³4R+)2=;'IRKMw,8W \ No newline at end of file
diff --git a/test-data/dat/alphabet/.dat/content.signatures b/test-data/dat/alphabet/.dat/content.signatures
new file mode 100644
index 0000000..78ccecb
--- /dev/null
+++ b/test-data/dat/alphabet/.dat/content.signatures
Binary files differ
diff --git a/test-data/dat/alphabet/.dat/content.tree b/test-data/dat/alphabet/.dat/content.tree
new file mode 100644
index 0000000..8799ca6
--- /dev/null
+++ b/test-data/dat/alphabet/.dat/content.tree
Binary files differ
diff --git a/test-data/dat/alphabet/.dat/metadata.bitfield b/test-data/dat/alphabet/.dat/metadata.bitfield
new file mode 100644
index 0000000..6d17118
--- /dev/null
+++ b/test-data/dat/alphabet/.dat/metadata.bitfield
Binary files differ
diff --git a/test-data/dat/alphabet/.dat/metadata.data b/test-data/dat/alphabet/.dat/metadata.data
new file mode 100644
index 0000000..0753229
--- /dev/null
+++ b/test-data/dat/alphabet/.dat/metadata.data
Binary files differ
diff --git a/test-data/dat/alphabet/.dat/metadata.key b/test-data/dat/alphabet/.dat/metadata.key
new file mode 100644
index 0000000..3daadea
--- /dev/null
+++ b/test-data/dat/alphabet/.dat/metadata.key
@@ -0,0 +1 @@
+!C'2(Z)F:Qf!;7 \ No newline at end of file
diff --git a/test-data/dat/alphabet/.dat/metadata.latest b/test-data/dat/alphabet/.dat/metadata.latest
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/test-data/dat/alphabet/.dat/metadata.latest
diff --git a/test-data/dat/alphabet/.dat/metadata.ogd b/test-data/dat/alphabet/.dat/metadata.ogd
new file mode 100644
index 0000000..f76dd23
--- /dev/null
+++ b/test-data/dat/alphabet/.dat/metadata.ogd
Binary files differ
diff --git a/test-data/dat/alphabet/.dat/metadata.secret_key b/test-data/dat/alphabet/.dat/metadata.secret_key
new file mode 100644
index 0000000..b821528
--- /dev/null
+++ b/test-data/dat/alphabet/.dat/metadata.secret_key
@@ -0,0 +1 @@
+8Sڗ-2o7:O}c'vR!C'2(Z)F:Qf!;7 \ No newline at end of file
diff --git a/test-data/dat/alphabet/.dat/metadata.signatures b/test-data/dat/alphabet/.dat/metadata.signatures
new file mode 100644
index 0000000..51de650
--- /dev/null
+++ b/test-data/dat/alphabet/.dat/metadata.signatures
Binary files differ
diff --git a/test-data/dat/alphabet/.dat/metadata.tree b/test-data/dat/alphabet/.dat/metadata.tree
new file mode 100644
index 0000000..5387139
--- /dev/null
+++ b/test-data/dat/alphabet/.dat/metadata.tree
Binary files differ
diff --git a/test-data/dat/alphabet/a b/test-data/dat/alphabet/a
new file mode 100644
index 0000000..2e65efe
--- /dev/null
+++ b/test-data/dat/alphabet/a
@@ -0,0 +1 @@
+a \ No newline at end of file
diff --git a/test-data/dat/alphabet/b b/test-data/dat/alphabet/b
new file mode 100644
index 0000000..63d8dbd
--- /dev/null
+++ b/test-data/dat/alphabet/b
@@ -0,0 +1 @@
+b \ No newline at end of file
diff --git a/test-data/dat/alphabet/c b/test-data/dat/alphabet/c
new file mode 100644
index 0000000..3410062
--- /dev/null
+++ b/test-data/dat/alphabet/c
@@ -0,0 +1 @@
+c \ No newline at end of file
diff --git a/test-data/dat/alphabet/d b/test-data/dat/alphabet/d
new file mode 100644
index 0000000..c59d9b6
--- /dev/null
+++ b/test-data/dat/alphabet/d
@@ -0,0 +1 @@
+d \ No newline at end of file
diff --git a/test-data/dat/alphabet/e b/test-data/dat/alphabet/e
new file mode 100644
index 0000000..9cbe6ea
--- /dev/null
+++ b/test-data/dat/alphabet/e
@@ -0,0 +1 @@
+e \ No newline at end of file
diff --git a/test-data/dat/alphabet/f b/test-data/dat/alphabet/f
new file mode 100644
index 0000000..4d1ae35
--- /dev/null
+++ b/test-data/dat/alphabet/f
@@ -0,0 +1 @@
+f \ No newline at end of file