hypercore 10.0.0-alpha.40 → 10.0.0-alpha.41
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 +3 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -195,10 +195,10 @@ module.exports = class Hypercore extends EventEmitter {
|
|
|
195
195
|
// Only override the block encryption if its either not already set or if
|
|
196
196
|
// the caller provided a different key.
|
|
197
197
|
if (
|
|
198
|
-
!
|
|
199
|
-
!b4a.equals(
|
|
198
|
+
!s.encryption ||
|
|
199
|
+
!b4a.equals(s.encryption.key, opts.encryptionKey)
|
|
200
200
|
) {
|
|
201
|
-
|
|
201
|
+
s.encryption = new BlockEncryption(opts.encryptionKey, s.key)
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
|