Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskeane committed Dec 15, 2023
1 parent a3d1ee4 commit 4e0842f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ dht.listen(/** listening port, can be anything */ 8468);
const keys = ed25519.createKeyPair();

// store mutable value
dht.put(keys.publicKey, (sign, r) => sign({ v: 'example-mutable'}, keys.secretKey));
await dht.put(keys.publicKey, (sign, r) => sign({ v: 'example-mutable'}, keys.secretKey));

// retrieve mutable value
const value = await dht.get({ k: keys.publicKey });
Expand Down

0 comments on commit 4e0842f

Please sign in to comment.