corestore 6.0.1-alpha.10 → 6.0.1-alpha.11
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 +1 -1
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -81,7 +81,7 @@ module.exports = class Corestore extends EventEmitter {
|
|
|
81
81
|
|
|
82
82
|
const namespace = this._getPrereadyUserData(core, USERDATA_NAMESPACE_KEY)
|
|
83
83
|
const { publicKey, sign } = await this.keys.createHypercoreKeyPair(b4a.toString(name), namespace)
|
|
84
|
-
if (!
|
|
84
|
+
if (!b4a.equals(publicKey, core.key)) throw new Error('Stored core key does not match the provided name')
|
|
85
85
|
|
|
86
86
|
// TODO: Should Hypercore expose a helper for this, or should preready return keypair/sign?
|
|
87
87
|
core.sign = sign
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "corestore",
|
|
3
|
-
"version": "6.0.1-alpha.
|
|
3
|
+
"version": "6.0.1-alpha.11",
|
|
4
4
|
"description": "A Hypercore factory that simplifies managing collections of cores.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"b4a": "^1.3.1",
|
|
31
|
-
"hypercore": "next",
|
|
32
31
|
"blake2b-universal": "^1.0.1",
|
|
33
32
|
"derive-key": "^1.0.1",
|
|
34
|
-
"hypercore
|
|
33
|
+
"hypercore": "next",
|
|
34
|
+
"hypercore-crypto": "^3.2.1",
|
|
35
35
|
"safety-catch": "^1.0.1",
|
|
36
36
|
"sodium-universal": "^3.0.4"
|
|
37
37
|
}
|