Skip to content

Commit 233cac7

Browse files
addressing PR comments
TICKET: WP-6122
1 parent 5e2f1c3 commit 233cac7

File tree

1 file changed

+2
-7
lines changed
  • modules/sdk-lib-mpc/src/tss/eddsa-mps

1 file changed

+2
-7
lines changed

modules/sdk-lib-mpc/src/tss/eddsa-mps/dkg.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,8 @@ export class DKG {
9696
* @private
9797
*/
9898
private async initBrowserWasm(): Promise<void> {
99-
if (
100-
typeof window !== 'undefined' &&
101-
/* checks for electron processes */
102-
!window.process &&
103-
!window.process?.['type']
104-
) {
99+
/* checks for electron processes */
100+
if (typeof window !== 'undefined' && !window.process?.['type']) {
105101
/* This is only needed for browsers/web because it uses fetch to resolve the wasm asset for the web */
106102
const initMPS = await import('@silencelaboratories/eddsa-wasm-ll-web');
107103
await initMPS.default();
@@ -309,7 +305,6 @@ export class DKG {
309305
}
310306
const keyShare = this.dkgSession!.keyshare();
311307
this.keyShare = Buffer.from(keyShare.toBytes());
312-
// this.dkgSession?.free(); // Revisit this
313308
return this.keyShare;
314309
}
315310

0 commit comments

Comments
 (0)