fix: keychain optional pw and use interfaces for validators and selectors instead (#924)

This commit is contained in:
Vasco Santos 2021-04-22 09:53:55 +02:00 committed by GitHub
parent 64f3af897b
commit 88b04156bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 7 deletions

View File

@ -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",

View File

@ -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]
@ -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]

View File

@ -26,7 +26,7 @@ require('node-forge/lib/sha512')
* @property {number} keyLength
*
* @typedef {Object} KeychainOptions
* @property {string} pass
* @property {string} [pass]
* @property {DekOptions} [dek]
*/