aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--papers/dat-paper.md2
-rw-r--r--papers/sleep.md6
2 files changed, 4 insertions, 4 deletions
diff --git a/papers/dat-paper.md b/papers/dat-paper.md
index 556edae..43b1b01 100644
--- a/papers/dat-paper.md
+++ b/papers/dat-paper.md
@@ -329,7 +329,7 @@ To generate this varint, you bitshift the 4-bit type integer onto the end of the
Type 0. Should be the first message sent on a channel.
- `discoveryKey` - A BLAKE2b keyed hash of the string 'hypercore' using the public key of the metadata register as the key.
-- `nonce` - 32 bytes of random binary data, used in our encryption scheme
+- `nonce` - 24 bytes (192 bits) of random binary data, used in our encryption scheme
```
message Feed {
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