Compare commits

..

2 Commits

Author SHA1 Message Date
Derrick Hammer ee3e71351c
*Update dist 2023-02-17 21:03:50 -05:00
Derrick Hammer 7028609da4
*Set hash length to 32 2023-02-17 21:03:42 -05:00
2 changed files with 2 additions and 2 deletions

2
dist/index.js vendored
View File

@ -76,7 +76,7 @@ export class SwarmClient extends Client {
}
async join(topic) {
if (typeof topic === "string") {
topic = blake2b(topic);
topic = blake2b(topic, { dkLen: 32 });
}
this._topics.add(topic);
this.callModule("join", { id: this.id, topic });

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);