corestore 6.18.3 → 6.18.4
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 +2 -2
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -368,7 +368,7 @@ module.exports = class Corestore extends ReadyResource {
|
|
|
368
368
|
if (!this.opened) await this.ready()
|
|
369
369
|
|
|
370
370
|
const keyPair = {
|
|
371
|
-
publicKey: b4a.
|
|
371
|
+
publicKey: b4a.allocUnsafeSlow(sodium.crypto_sign_PUBLICKEYBYTES),
|
|
372
372
|
secretKey: b4a.alloc(sodium.crypto_sign_SECRETKEYBYTES)
|
|
373
373
|
}
|
|
374
374
|
|
|
@@ -561,7 +561,7 @@ function validateGetOptions (opts) {
|
|
|
561
561
|
|
|
562
562
|
function generateNamespace (namespace, name) {
|
|
563
563
|
if (!b4a.isBuffer(name)) name = b4a.from(name)
|
|
564
|
-
const out = b4a.
|
|
564
|
+
const out = b4a.allocUnsafeSlow(32)
|
|
565
565
|
sodium.crypto_generichash_batch(out, [namespace, name])
|
|
566
566
|
return out
|
|
567
567
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "corestore",
|
|
3
|
-
"version": "6.18.
|
|
3
|
+
"version": "6.18.4",
|
|
4
4
|
"description": "A Hypercore factory that simplifies managing collections of cores.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
],
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"brittle": "^3.2.2",
|
|
28
|
+
"rache": "^1.0.0",
|
|
28
29
|
"random-access-memory": "^6.2.0",
|
|
29
30
|
"standard": "^17.1.0",
|
|
30
|
-
"test-tmp": "^1.0.2"
|
|
31
|
-
"rache": "^1.0.0"
|
|
31
|
+
"test-tmp": "^1.0.2"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"b4a": "^1.6.4",
|