corestore 6.15.0 → 6.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +12 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -203,6 +203,18 @@ module.exports = class Corestore extends ReadyResource {
|
|
|
203
203
|
|
|
204
204
|
const publicKey = opts.publicKey || keyPair.publicKey
|
|
205
205
|
|
|
206
|
+
if (opts.compat === false) {
|
|
207
|
+
const manifest = { signer: { publicKey } } // default manifest
|
|
208
|
+
const key = Hypercore.key(manifest)
|
|
209
|
+
|
|
210
|
+
return {
|
|
211
|
+
manifest,
|
|
212
|
+
keyPair,
|
|
213
|
+
key,
|
|
214
|
+
discoveryKey: crypto.discoveryKey(key)
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
206
218
|
return {
|
|
207
219
|
manifest: null,
|
|
208
220
|
keyPair,
|