Skip to content

Commit

Permalink
fix: keychain optional pw and use interfaces for validators and selec…
Browse files Browse the repository at this point in the history
…tors instead (#924)
  • Loading branch information
vasco-santos authored Apr 22, 2021
1 parent 64f3af8 commit 88b0415
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
"it-pipe": "^1.1.0",
"it-take": "1.0.0",
"libp2p-crypto": "^0.19.0",
"libp2p-interfaces": "^0.10.1",
"libp2p-interfaces": "^0.10.3",
"libp2p-utils": "^0.3.1",
"mafmt": "^9.0.0",
"merge-options": "^3.0.4",
Expand Down
7 changes: 2 additions & 5 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ const { updateSelfPeerRecord } = require('./record/utils')
* @property {MuxedStream} stream
* @property {string} protocol
*
* @typedef {{ [key: string]: function (Uint8Array, Uint8Array[]): number }} DhtSelectors
* @typedef {{ [key: string]: { func: (key: Uint8Array, value: Uint8Array) => Promise<void> }}} DhtValidators
*
* @typedef {Object} RandomWalkOptions
* @property {boolean} [enabled = false]
* @property {number} [queriesPerPeriod = 1]
Expand All @@ -70,8 +67,8 @@ const { updateSelfPeerRecord } = require('./record/utils')
* @property {number} [kBucketSize = 20]
* @property {RandomWalkOptions} [randomWalk]
* @property {boolean} [clientMode]
* @property {DhtSelectors} [selectors]
* @property {DhtValidators} [validators]
* @property {import('libp2p-interfaces/src/types').DhtSelectors} [selectors]
* @property {import('libp2p-interfaces/src/types').DhtValidators} [validators]
*
* @typedef {Object} KeychainOptions
* @property {Datastore} [datastore]
Expand Down
2 changes: 1 addition & 1 deletion src/keychain/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ require('node-forge/lib/sha512')
* @property {number} keyLength
*
* @typedef {Object} KeychainOptions
* @property {string} pass
* @property {string} [pass]
* @property {DekOptions} [dek]
*/

Expand Down

0 comments on commit 88b0415

Please sign in to comment.