*Set hash length to 32
This commit is contained in:
parent
bbbe813360
commit
7028609da4
|
@ -106,7 +106,7 @@ export class SwarmClient extends Client {
|
||||||
|
|
||||||
public async join(topic: Buffer | Uint8Array | string): Promise<void> {
|
public async join(topic: Buffer | Uint8Array | string): Promise<void> {
|
||||||
if (typeof topic === "string") {
|
if (typeof topic === "string") {
|
||||||
topic = blake2b(topic);
|
topic = blake2b(topic, { dkLen: 32 });
|
||||||
}
|
}
|
||||||
|
|
||||||
this._topics.add(topic);
|
this._topics.add(topic);
|
||||||
|
|
Loading…
Reference in New Issue