*Set hash length to 32

This commit is contained in:
Derrick Hammer 2023-02-17 21:03:42 -05:00
parent bbbe813360
commit 7028609da4
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ export class SwarmClient extends Client {
public async join(topic: Buffer | Uint8Array | string): Promise<void> {
if (typeof topic === "string") {
topic = blake2b(topic);
topic = blake2b(topic, { dkLen: 32 });
}
this._topics.add(topic);