From f2bc3a84fc723e1f05079d84891660c87b596b34 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 30 Oct 2017 22:22:56 -0700 Subject: add another example dat archive (and README) --- test-data/dat/README.md | 25 ++++++++++++++++++++++++ test-data/dat/alphabet/.dat/content.bitfield | Bin 0 -> 3360 bytes test-data/dat/alphabet/.dat/content.key | 1 + test-data/dat/alphabet/.dat/content.secret_key | 1 + test-data/dat/alphabet/.dat/content.signatures | Bin 0 -> 416 bytes test-data/dat/alphabet/.dat/content.tree | Bin 0 -> 472 bytes test-data/dat/alphabet/.dat/metadata.bitfield | Bin 0 -> 3360 bytes test-data/dat/alphabet/.dat/metadata.data | Bin 0 -> 307 bytes test-data/dat/alphabet/.dat/metadata.key | 1 + test-data/dat/alphabet/.dat/metadata.latest | 0 test-data/dat/alphabet/.dat/metadata.ogd | Bin 0 -> 1 bytes test-data/dat/alphabet/.dat/metadata.secret_key | 1 + test-data/dat/alphabet/.dat/metadata.signatures | Bin 0 -> 480 bytes test-data/dat/alphabet/.dat/metadata.tree | Bin 0 -> 552 bytes test-data/dat/alphabet/a | 1 + test-data/dat/alphabet/b | 1 + test-data/dat/alphabet/c | 1 + test-data/dat/alphabet/d | 1 + test-data/dat/alphabet/e | 1 + test-data/dat/alphabet/f | 1 + 20 files changed, 35 insertions(+) create mode 100644 test-data/dat/README.md create mode 100644 test-data/dat/alphabet/.dat/content.bitfield create mode 100644 test-data/dat/alphabet/.dat/content.key create mode 100644 test-data/dat/alphabet/.dat/content.secret_key create mode 100644 test-data/dat/alphabet/.dat/content.signatures create mode 100644 test-data/dat/alphabet/.dat/content.tree create mode 100644 test-data/dat/alphabet/.dat/metadata.bitfield create mode 100644 test-data/dat/alphabet/.dat/metadata.data create mode 100644 test-data/dat/alphabet/.dat/metadata.key create mode 100644 test-data/dat/alphabet/.dat/metadata.latest create mode 100644 test-data/dat/alphabet/.dat/metadata.ogd create mode 100644 test-data/dat/alphabet/.dat/metadata.secret_key create mode 100644 test-data/dat/alphabet/.dat/metadata.signatures create mode 100644 test-data/dat/alphabet/.dat/metadata.tree create mode 100644 test-data/dat/alphabet/a create mode 100644 test-data/dat/alphabet/b create mode 100644 test-data/dat/alphabet/c create mode 100644 test-data/dat/alphabet/d create mode 100644 test-data/dat/alphabet/e create mode 100644 test-data/dat/alphabet/f 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 Binary files /dev/null and b/test-data/dat/alphabet/.dat/content.bitfield 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 Binary files /dev/null and b/test-data/dat/alphabet/.dat/content.signatures 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 Binary files /dev/null and b/test-data/dat/alphabet/.dat/content.tree 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 Binary files /dev/null and b/test-data/dat/alphabet/.dat/metadata.bitfield 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 Binary files /dev/null and b/test-data/dat/alphabet/.dat/metadata.data 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 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 Binary files /dev/null and b/test-data/dat/alphabet/.dat/metadata.ogd 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 Binary files /dev/null and b/test-data/dat/alphabet/.dat/metadata.signatures 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 Binary files /dev/null and b/test-data/dat/alphabet/.dat/metadata.tree 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 -- cgit v1.2.3