From a3efcf130b9fd5654fdf5b132eda204fb5cfdce8 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 16 Dec 2022 09:47:36 -0500 Subject: [PATCH] *Use bufId not id --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 5057e53..dff7e09 100644 --- a/src/index.ts +++ b/src/index.ts @@ -320,7 +320,7 @@ export default class DHTCache extends EventEmitter { let bufId = b4a.from(toId as Uint8Array) as Buffer; - if (!(signature && crypto.verify(bufData, signature, id))) { + if (!(signature && crypto.verify(bufData, signature, bufId))) { return; }