File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed 
modules/sdk-lib-mpc/src/tss/eddsa-mps Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff 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
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments