From 7028609da46d270275b5dbf416d78a6fb107c1f0 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 17 Feb 2023 21:03:42 -0500 Subject: [PATCH] *Set hash length to 32 --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index cd13156..4f22eb9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -106,7 +106,7 @@ export class SwarmClient extends Client { public async join(topic: Buffer | Uint8Array | string): Promise { if (typeof topic === "string") { - topic = blake2b(topic); + topic = blake2b(topic, { dkLen: 32 }); } this._topics.add(topic);