aboutsummaryrefslogtreecommitdiffstats
path: root/papers/sleep.md
diff options
context:
space:
mode:
author=^._.^= <maxogden@users.noreply.github.com>2017-12-08 16:28:20 -0800
committerGitHub <noreply@github.com>2017-12-08 16:28:20 -0800
commitaec3a57822c5200d6b5f7551bc1dc5e9821769b6 (patch)
tree853d1591f685465b8bac1ce79c3a5c6b72356376 /papers/sleep.md
parent02c899d36f48d73836fc4cd4db56fe6bf09b85f5 (diff)
parentce7a857da282b952433a9ddb615c16f1e5b3a23e (diff)
downloaddat-docs-aec3a57822c5200d6b5f7551bc1dc5e9821769b6.tar.gz
dat-docs-aec3a57822c5200d6b5f7551bc1dc5e9821769b6.zip
Merge pull request #95 from bnewbold/bnewbold-spec-tweaks
Yet more paper tweaks
Diffstat (limited to 'papers/sleep.md')
-rw-r--r--papers/sleep.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/papers/sleep.md b/papers/sleep.md
index 63dbe48..d7349f4 100644
--- a/papers/sleep.md
+++ b/papers/sleep.md
@@ -47,11 +47,11 @@ SLEEP files are laid out like this:
````
- 32 byte header
- - 4 bytes - magic byte (value varies depending on which file, used to quickly identify which file type it is)
+ - 4 bytes Uint32BE ("Big-Endian") - magic byte (value varies depending on which file, used to quickly identify which file type it is)
- 1 byte - version number of the file header protocol, current version is 0
- 2 byte Uint16BE - entry size, describes how long each entry in the file is
- 1 byte - length prefix for body
- - rest of 32 byte header - string describing key algorithm (in dat 'ed25519'). length of this string matches the length in the previous length prefix field. This string must fit within the 32 byte header limitation (24 bytes reserved for string). Unused bytes should be filled with zeroes.
+ - rest of 32 byte header - string describing key or hash algorithm. length of this string matches the length in the previous length prefix field. This string must fit within the 32 byte header limitation (24 bytes reserved for string). Unused bytes should be filled with zeroes.
Possible values in the Dat implementation for the body field are:
@@ -421,4 +421,4 @@ These are the field definitions:
- `mtime` - POSIX modified_at time
- `mtime` - POSIX created_at time
-## References \ No newline at end of file
+## References