hypercore 10.32.0 → 10.32.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/lib/verifier.js +1 -1
- package/package.json +1 -1
package/lib/verifier.js
CHANGED
|
@@ -177,7 +177,7 @@ module.exports = class Verifier {
|
|
|
177
177
|
if (inp.hash && inp.hash !== 'blake2b') throw BAD_ARGUMENT('Only Blake2b hashes are supported')
|
|
178
178
|
|
|
179
179
|
if (inp.prologue) {
|
|
180
|
-
if (!(b4a.isBuffer(inp.prologue.hash) && inp.prologue.hash.byteLength === 32) || !inp.prologue.length) {
|
|
180
|
+
if (!(b4a.isBuffer(inp.prologue.hash) && inp.prologue.hash.byteLength === 32) || !(inp.prologue.length >= 0)) {
|
|
181
181
|
throw BAD_ARGUMENT('Invalid prologue')
|
|
182
182
|
}
|
|
183
183
|
manifest.prologue = inp.prologue
|