aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Ogden <max@maxogden.com>2016-08-05 12:36:01 -0700
committerMax Ogden <max@maxogden.com>2016-08-05 12:36:01 -0700
commit6879daedad2d53e32d1d9d7bf8b1c74574bc28ef (patch)
treeb3895848ba6ee8b4462f83059bacba347b87dc53
parent2b6ddccb62e7c425ed2a88b8cd9f94322d31aaaa (diff)
downloaddat-docs-6879daedad2d53e32d1d9d7bf8b1c74574bc28ef.tar.gz
dat-docs-6879daedad2d53e32d1d9d7bf8b1c74574bc28ef.zip
minor edits
-rw-r--r--sleep.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/sleep.md b/sleep.md
index 046f52e..08811e9 100644
--- a/sleep.md
+++ b/sleep.md
@@ -65,7 +65,7 @@ All non-leaf nodes contain these three pieces of information:
- The cryptographic signature of the hash
- The span of bytes that the the nodes children cover
-When initializing a register an asymmetric Ed25519 keypair is derived. The private key is never shared. The public key is used as the URL for the register. When signing hashes in the tree the public key is used to generate an EdDSA signature. For the example register above, 'abcd', the register index (in pseudocode) would be:
+When initializing a register an asymmetric Ed25519 keypair is derived. The private key is never shared. The public key is used as the URL for the register. When signing hashes in the tree the public key is used to generate an EdDSA signature. For the example register above, 'abcd', the register index (in JSON) would be:
```js
var keys = {
@@ -119,7 +119,7 @@ var index = {
}
```
-The above representation of the tree is in hierarchical object notation. However due to the properties of the in-order node indexes we can represent the same data in a flat index while still allowing traversals.
+The above representation of the tree is in JSON. However due to the properties of the in-order node indexes we can represent the same data in a flat index while still allowing traversals.
# File format
@@ -195,7 +195,7 @@ Given a tree like this you might want to look up in a `meta.dat` file the metada
6─┘
```
-If you wanted to look up the metadata for 3, you could read the third (or any!) entry from meta.dat:
+If you wanted to look up the metadata for 3, you could read the third (or any!) entry from sleep.dat:
First you have to read the varint at the beginning of the file so you know how big the header is: