@@ -401,7 +401,7 @@ class Torus {
401
401
decrypt ( tmpKey , {
402
402
...metadata ,
403
403
ciphertext : Buffer . from ( Buffer . from ( firstKey . Share , "base64" ) . toString ( "binary" ) . padStart ( 64 , "0" ) , "hex" ) ,
404
- } ) . catch ( ( err ) => log . debug ( "share decryption" , err ) )
404
+ } ) . catch ( ( err ) => log . error ( "share decryption" , err ) )
405
405
) ;
406
406
} else {
407
407
sharePromises . push ( Promise . resolve ( Buffer . from ( firstKey . Share . padStart ( 64 , "0" ) , "hex" ) ) ) ;
@@ -506,7 +506,6 @@ class Torus {
506
506
let finalEvmAddress = "" ;
507
507
if ( finalPubKey ) {
508
508
finalEvmAddress = generateAddressFromPubKey ( this . ec , finalPubKey . getX ( ) , finalPubKey . getY ( ) ) ;
509
- log . debug ( "> torus.js/retrieveShares" , { finalEvmAddress } ) ;
510
509
} else {
511
510
throw new Error ( "Invalid public key, this might be a bug, please report this to web3auth team" ) ;
512
511
}
@@ -547,8 +546,6 @@ class Torus {
547
546
{ verifier, verifierId } : { verifier : string ; verifierId : string } ,
548
547
enableOneKey : boolean
549
548
) : Promise < TorusPublicKey > {
550
- log . debug ( "> torus.js/getPublicAddress" , { endpoints, torusNodePubs, verifier, verifierId } ) ;
551
-
552
549
let finalKeyResult : LegacyVerifierLookupResponse | undefined ;
553
550
let isNewKey = false ;
554
551
@@ -579,7 +576,6 @@ class Torus {
579
576
} else {
580
577
throw new Error ( `node results do not match at first lookup ${ JSON . stringify ( keyResult || { } ) } , ${ JSON . stringify ( errorResult || { } ) } ` ) ;
581
578
}
582
- log . debug ( "> torus.js/getPublicAddress" , { finalKeyResult, isNewKey } ) ;
583
579
584
580
if ( finalKeyResult ) {
585
581
return this . formatLegacyPublicKeyData ( {
@@ -596,7 +592,6 @@ class Torus {
596
592
{ verifier, verifierId, extendedVerifierId } : { verifier : string ; verifierId : string ; extendedVerifierId ?: string } ,
597
593
enableOneKey : boolean
598
594
) : Promise < TorusPublicKey > {
599
- log . debug ( "> torus.js/getPublicAddress" , { endpoints, verifier, verifierId } ) ;
600
595
const keyAssignResult = await GetPubKeyOrKeyAssign ( {
601
596
endpoints,
602
597
network : this . network ,
@@ -616,7 +611,6 @@ class Torus {
616
611
if ( errorResult ) {
617
612
throw new Error ( `node results do not match at first lookup ${ JSON . stringify ( keyResult || { } ) } , ${ JSON . stringify ( errorResult || { } ) } ` ) ;
618
613
}
619
- log . debug ( "> torus.js/getPublicAddress" , { keyResult } ) ;
620
614
if ( ! keyResult ?. keys ) {
621
615
throw new Error ( `node results do not match at final lookup ${ JSON . stringify ( keyResult || { } ) } , ${ JSON . stringify ( errorResult || { } ) } ` ) ;
622
616
}
@@ -659,7 +653,6 @@ class Torus {
659
653
const oAuthX = oAuthPubKey . getX ( ) . toString ( 16 , 64 ) ;
660
654
const oAuthY = oAuthPubKey . getY ( ) . toString ( 16 , 64 ) ;
661
655
const oAuthAddress = generateAddressFromPubKey ( this . ec , oAuthPubKey . getX ( ) , oAuthPubKey . getY ( ) ) ;
662
- log . debug ( "> torus.js/getPublicAddress, oAuthKeyData" , { X : oAuthX , Y : oAuthY , oAuthAddress, nonce : nonce ?. toString ( 16 ) , pubNonce } ) ;
663
656
664
657
if ( ! finalPubKey ) {
665
658
throw new Error ( "Unable to derive finalPubKey" ) ;
@@ -743,7 +736,6 @@ class Torus {
743
736
const oAuthX = oAuthPubKey . getX ( ) . toString ( 16 , 64 ) ;
744
737
const oAuthY = oAuthPubKey . getY ( ) . toString ( 16 , 64 ) ;
745
738
const oAuthAddress = generateAddressFromPubKey ( this . ec , oAuthPubKey . getX ( ) , oAuthPubKey . getY ( ) ) ;
746
- log . debug ( "> torus.js/getPublicAddress, oAuthKeyData" , { X : oAuthX , Y : oAuthY , oAuthAddress, nonce : nonce ?. toString ( 16 ) , pubNonce } ) ;
747
739
748
740
if ( typeOfUser === "v2" && ! finalPubKey ) {
749
741
throw new Error ( "Unable to derive finalPubKey" ) ;
0 commit comments