Closed juans-chainsafe closed 1 year ago
Describe the bug If you try to logout and go back to the login scene is not possible because the logout button doesn't work.
To Reproduce Steps to reproduce the behavior:
Expected behavior Wallet is disconnected and is redirected to the SampleLogin scene
Desktop (please complete the following information):
Additional context
System.ArgumentException: Scalar is not in the interval [1, n - 1] Parameter name: d at Org.BouncyCastle.Crypto.Parameters.ECDomainParameters.ValidatePrivateScalar (Org.BouncyCastle.Math.BigInteger d) [0x00040] in /_/crypto/src/crypto/parameters/ECDomainParameters.cs:147 at Org.BouncyCastle.Crypto.Parameters.ECPrivateKeyParameters..ctor (System.String algorithm, Org.BouncyCastle.Math.BigInteger d, Org.BouncyCastle.Crypto.Parameters.ECDomainParameters parameters) [0x00009] in /_/crypto/src/crypto/parameters/ECPrivateKeyParameters.cs:36 at Org.BouncyCastle.Crypto.Parameters.ECPrivateKeyParameters..ctor (Org.BouncyCastle.Math.BigInteger d, Org.BouncyCastle.Crypto.Parameters.ECDomainParameters parameters) [0x00000] in /_/crypto/src/crypto/parameters/ECPrivateKeyParameters.cs:17 at KeyStoreManagerUtils.getPubKey (System.String sessionId) [0x00023] in /Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity.web3auth/Runtime/Plugins/Web3AuthSDK/Keystore/KeyStoreManagerUtils.cs:35 #0 GetStacktrace(int) #1 DebugStringToFile(DebugStringToFileData const&) #2 DebugLogHandler_CUSTOM_Internal_Log(LogType, LogOption, ScriptingBackendNativeStringPtrOpaque*, ScriptingBackendNativeObjectPtrOpaque*) #3 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object) #4 (Mono JIT Code) [DebugLogHandler.cs:10] UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[]) #5 (Mono JIT Code) [Logger.cs:61] UnityEngine.Logger:Log (UnityEngine.LogType,object) #6 (Mono JIT Code) [Debug.bindings.cs:102] UnityEngine.Debug:Log (object) #7 (Mono JIT Code) [KeyStoreManagerUtils.cs:43] KeyStoreManagerUtils:getPubKey (string) #8 (Mono JIT Code) [Web3Auth.cs:418] Web3Auth:sessionTimeOutAPI () #9 (Mono JIT Code) [Web3Auth.cs:353] Web3Auth:logout (System.Collections.Generic.Dictionary`2<string, object>) #10 (Mono JIT Code) [Web3Auth.cs:365] Web3Auth:logout (System.Uri,string) #11 (Mono JIT Code) [Web3AuthWallet.cs:66] ChainSafe.GamingSdk.Web3Auth.Web3AuthWallet/<WillStopAsync>d__8:MoveNext () #12 (Mono JIT Code) System.Runtime.CompilerServices.AsyncTaskMethodBuilder:Start<ChainSafe.GamingSdk.Web3Auth.Web3AuthWallet/<WillStopAsync>d__8> (ChainSafe.GamingSdk.Web3Auth.Web3AuthWallet/<WillStopAsync>d__8&) #13 (Mono JIT Code) ChainSafe.GamingSdk.Web3Auth.Web3AuthWallet:WillStopAsync () #14 (Mono JIT Code) ChainSafe.Gaming.Web3.Web3/<TerminateAsync>d__30:MoveNext () #15 (Mono JIT Code)
the error was on my end, due that when I execute setup.sh, I got 96 additional files to push, we don't need anymore to run that script.
Describe the bug If you try to logout and go back to the login scene is not possible because the logout button doesn't work.
To Reproduce Steps to reproduce the behavior:
Expected behavior Wallet is disconnected and is redirected to the SampleLogin scene
Desktop (please complete the following information):
Additional context