@@ -395,7 +395,7 @@ class Torus {
395
395
decrypt ( tmpKey , {
396
396
...metadata ,
397
397
ciphertext : Buffer . from ( Buffer . from ( firstKey . Share , "base64" ) . toString ( "binary" ) . padStart ( 64 , "0" ) , "hex" ) ,
398
- } ) . catch ( ( err ) => log . debug ( "share decryption" , err ) )
398
+ } ) . catch ( ( err ) => log . error ( "share decryption" , err ) )
399
399
) ;
400
400
} else {
401
401
sharePromises . push ( Promise . resolve ( Buffer . from ( firstKey . Share . padStart ( 64 , "0" ) , "hex" ) ) ) ;
@@ -501,7 +501,6 @@ class Torus {
501
501
let finalEvmAddress = "" ;
502
502
if ( finalPubKey ) {
503
503
finalEvmAddress = generateAddressFromPubKey ( this . ec , finalPubKey . getX ( ) , finalPubKey . getY ( ) ) ;
504
- log . debug ( "> torus.js/retrieveShares" , { finalEvmAddress } ) ;
505
504
} else {
506
505
throw new Error ( "Invalid public key, this might be a bug, please report this to web3auth team" ) ;
507
506
}
@@ -542,8 +541,6 @@ class Torus {
542
541
{ verifier, verifierId } : { verifier : string ; verifierId : string } ,
543
542
enableOneKey : boolean
544
543
) : Promise < TorusPublicKey > {
545
- log . debug ( "> torus.js/getPublicAddress" , { endpoints, torusNodePubs, verifier, verifierId } ) ;
546
-
547
544
let finalKeyResult : LegacyVerifierLookupResponse | undefined ;
548
545
let isNewKey = false ;
549
546
@@ -573,7 +570,6 @@ class Torus {
573
570
} else {
574
571
throw new Error ( `node results do not match at first lookup ${ JSON . stringify ( keyResult || { } ) } , ${ JSON . stringify ( errorResult || { } ) } ` ) ;
575
572
}
576
- log . debug ( "> torus.js/getPublicAddress" , { finalKeyResult, isNewKey } ) ;
577
573
578
574
if ( finalKeyResult ) {
579
575
return this . formatLegacyPublicKeyData ( {
@@ -609,7 +605,6 @@ class Torus {
609
605
{ verifier, verifierId, extendedVerifierId } : { verifier : string ; verifierId : string ; extendedVerifierId ?: string } ,
610
606
enableOneKey : boolean
611
607
) : Promise < TorusPublicKey > {
612
- log . debug ( "> torus.js/getPublicAddress" , { endpoints, verifier, verifierId } ) ;
613
608
const keyAssignResult = await GetPubKeyOrKeyAssign ( {
614
609
endpoints,
615
610
network : this . network ,
@@ -628,7 +623,6 @@ class Torus {
628
623
if ( errorResult ) {
629
624
throw new Error ( `node results do not match at first lookup ${ JSON . stringify ( keyResult || { } ) } , ${ JSON . stringify ( errorResult || { } ) } ` ) ;
630
625
}
631
- log . debug ( "> torus.js/getPublicAddress" , { keyResult } ) ;
632
626
if ( ! keyResult ?. keys ) {
633
627
throw new Error ( `node results do not match at final lookup ${ JSON . stringify ( keyResult || { } ) } , ${ JSON . stringify ( errorResult || { } ) } ` ) ;
634
628
}
@@ -671,7 +665,6 @@ class Torus {
671
665
const oAuthX = oAuthPubKey . getX ( ) . toString ( 16 , 64 ) ;
672
666
const oAuthY = oAuthPubKey . getY ( ) . toString ( 16 , 64 ) ;
673
667
const oAuthAddress = generateAddressFromPubKey ( this . ec , oAuthPubKey . getX ( ) , oAuthPubKey . getY ( ) ) ;
674
- log . debug ( "> torus.js/getPublicAddress, oAuthKeyData" , { X : oAuthX , Y : oAuthY , oAuthAddress, nonce : nonce ?. toString ( 16 ) , pubNonce } ) ;
675
668
676
669
if ( ! finalPubKey ) {
677
670
throw new Error ( "Unable to derive finalPubKey" ) ;
@@ -755,7 +748,6 @@ class Torus {
755
748
const oAuthX = oAuthPubKey . getX ( ) . toString ( 16 , 64 ) ;
756
749
const oAuthY = oAuthPubKey . getY ( ) . toString ( 16 , 64 ) ;
757
750
const oAuthAddress = generateAddressFromPubKey ( this . ec , oAuthPubKey . getX ( ) , oAuthPubKey . getY ( ) ) ;
758
- log . debug ( "> torus.js/getPublicAddress, oAuthKeyData" , { X : oAuthX , Y : oAuthY , oAuthAddress, nonce : nonce ?. toString ( 16 ) , pubNonce } ) ;
759
751
760
752
if ( typeOfUser === "v2" && ! finalPubKey ) {
761
753
throw new Error ( "Unable to derive finalPubKey" ) ;
0 commit comments