Commit f9661bdacce6cf38306dfab66da860f6e2e9c4be
update docs
Signed-off-by: wanderer <mjbecze@gmail.com>wanderer committed on 12/2/2017, 6:34:26 AM
Parent: 6fd6059129f2f7a3affd4fdc4f14a1a513f78811
Files changed
README.md | changed |
index.js | changed |
README.md | ||
---|---|---|
@@ -42,9 +42,9 @@ | ||
42 | 42 … | db: db, |
43 | 43 … | root: merkleroot |
44 | 44 … | }) |
45 | 45 … | |
46 | - const {value} = await verifier.get('monkey') | |
46 … | + const value = await verifier.get('monkey') | |
47 | 47 … | console.log(value.toString()) |
48 | 48 … | } |
49 | 49 … | |
50 | 50 … | main() |
index.js | |||
---|---|---|---|
@@ -37,11 +37,9 @@ | |||
37 | 37 … | return new RadixTree({dag: this.dag, root: root, appendKeyToRoot: true}) | |
38 | 38 … | } | |
39 | 39 … | ||
40 | 40 … | /** | |
41 | - * gets a value given a key. The promise resolves with an object containing | ||
42 | - * `node` the node in the merkle tree and `value` the value of the that the | ||
43 | - * node contains | ||
41 … | + * gets a value given a key | ||
44 | 42 … | * @param {*} key | |
45 | 43 … | * @return {Promise} | |
46 | 44 … | */ | |
47 | 45 … | async get (key, decode) { |
Built with git-ssb-web