I use flutter SDK
v 1.3.0
this code returns error
try {
await Web3AuthFlutter.init(Web3AuthOptions(
clientId: Config.web3AuthClientId,
network: Config.isDev ? Network.testnet : Network.mainnet,
redirectUrl: redirectUrl,));
} catch(e){
print(e);
}
ERROR
I/flutter ( 8546): PlatformException(error, While parsing a protocol message, the input ended unexpectedly in the middle of a field. This could mean either that the input has been truncated or that an embedded message misreported its own length., While parsing a protocol message, the input ended unexpectedly in the middle of a field. This could mean either that the input has been truncated or that an embedded message misreported its own length., null)
Additional Error message
W/AndroidKeystoreAesGcm(15746): encountered a potentially transient KeyStore error, will wait and retry
W/AndroidKeystoreAesGcm(15746): javax.crypto.AEADBadTagException
W/AndroidKeystoreAesGcm(15746): at android.security.keystore2.AndroidKeyStoreCipherSpiBase.engineDoFinal(AndroidKeyStoreCipherSpiBase.java:617)
W/AndroidKeystoreAesGcm(15746): at javax.crypto.Cipher.doFinal(Cipher.java:2113)
W/AndroidKeystoreAesGcm(15746): at com.google.crypto.tink.integration.android.AndroidKeystoreAesGcm.decryptInternal(AndroidKeystoreAesGcm.java:115)
W/AndroidKeystoreAesGcm(15746): at com.google.crypto.tink.integration.android.AndroidKeystoreAesGcm.decrypt(AndroidKeystoreAesGcm.java:97)
W/AndroidKeystoreAesGcm(15746): at com.google.crypto.tink.KeysetHandle.decrypt(KeysetHandle.java:845)
W/AndroidKeystoreAesGcm(15746): at com.google.crypto.tink.KeysetHandle.readWithAssociatedData(KeysetHandle.java:732)
W/AndroidKeystoreAesGcm(15746): at com.google.crypto.tink.KeysetHandle.read(KeysetHandle.java:713)
W/AndroidKeystoreAesGcm(15746): at com.google.crypto.tink.integration.android.AndroidKeysetManager$Builder.read(AndroidKeysetManager.java:315)
W/AndroidKeystoreAesGcm(15746): at com.google.crypto.tink.integration.android.AndroidKeysetManager$Builder.readOrGenerateNewKeyset(AndroidKeysetManager.java:288)
W/AndroidKeystoreAesGcm(15746): at com.google.crypto.tink.integration.android.AndroidKeysetManager$Builder.build(AndroidKeysetManager.java:239)
W/AndroidKeystoreAesGcm(15746): at androidx.security.crypto.EncryptedSharedPreferences.create(EncryptedSharedPreferences.java:169)
W/AndroidKeystoreAesGcm(15746): at com.web3auth.core.keystore.KeyStoreManagerUtils.initializePreferences(KeyStoreManagerUtils.kt:39)
W/AndroidKeystoreAesGcm(15746): at com.web3auth.core.Web3Auth.(Web3Auth.kt:71)
W/AndroidKeystoreAesGcm(15746): at com.web3auth.flutter.web3auth_flutter.Web3AuthFlutterPlugin.runMethodCall(Web3AuthFlutterPlugin.kt:97)
W/AndroidKeystoreAesGcm(15746): at com.web3auth.flutter.web3auth_flutter.Web3AuthFlutterPlugin.access$runMethodCall(Web3AuthFlutterPlugin.kt:28)
W/AndroidKeystoreAesGcm(15746): at com.web3auth.flutter.web3auth_flutter.Web3AuthFlutterPlugin$onMethodCall$1.invokeSuspend(Web3AuthFlutterPlugin.kt:74)
W/AndroidKeystoreAesGcm(15746): at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
W/AndroidKeystoreAesGcm(15746): at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
W/AndroidKeystoreAesGcm(15746): at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
W/AndroidKeystoreAesGcm(15746): at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
W/AndroidKeystoreAesGcm(15746): at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
W/AndroidKeystoreAesGcm(15746): at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
W/AndroidKeystoreAesGcm(15746): Caused by: android.security.KeyStoreException: Signature/MAC verification failed
W/AndroidKeystoreAesGcm(15746): at android.security.KeyStore2.getKeyStoreException(KeyStore2.java:408)
W/AndroidKeystoreAesGcm(15746): at android.security.KeyStoreOperation.handleExceptions(KeyStoreOperation.java:78)
W/AndroidKeystoreAesGcm(15746): at android.security.KeyStoreOperation.finish(KeyStoreOperation.java:127)
W/AndroidKeystoreAesGcm(15746): at android.security.keystore2.KeyStoreCryptoOperationChunkedStreamer$MainDataStream.finish(KeyStoreCryptoOperationChunkedStreamer.java:228)
W/AndroidKeystoreAesGcm(15746): at android.security.keystore2.KeyStoreCryptoOperationChunkedStreamer.doFinal(KeyStoreCryptoOperationChunkedStreamer.java:181)
W/AndroidKeystoreAesGcm(15746): at android.security.keystore2.AndroidKeyStoreAuthenticatedAESCipherSpi$BufferAllOutputUntilDoFinalStreamer.doFinal(AndroidKeyStoreAuthenticatedAESCipherSpi.java:396)
W/AndroidKeystoreAesGcm(15746): at android.security.keystore2.AndroidKeyStoreCipherSpiBase.engineDoFinal(AndroidKeyStoreCipherSpiBase.java:609)
W/AndroidKeystoreAesGcm(15746): … 21 more
W/AndroidKeysetManager(15746): cannot decrypt keyset:
W/AndroidKeysetManager(15746): javax.crypto.AEADBadTagException
W/AndroidKeysetManager(15746): at android.security.keystore2.AndroidKeyStoreCipherSpiBase.engineDoFinal(AndroidKeyStoreCipherSpiBase.java:617)
W/AndroidKeysetManager(15746): at javax.crypto.Cipher.doFinal(Cipher.java:2113)
W/AndroidKeysetManager(15746): at com.google.crypto.tink.integration.android.AndroidKeystoreAesGcm.decryptInternal(AndroidKeystoreAesGcm.java:115)
W/AndroidKeysetManager(15746): at com.google.crypto.tink.integration.android.AndroidKeystoreAesGcm.decrypt(AndroidKeystoreAesGcm.java:101)
W/AndroidKeysetManager(15746): at com.google.crypto.tink.KeysetHandle.decrypt(KeysetHandle.java:845)
W/AndroidKeysetManager(15746): at com.google.crypto.tink.KeysetHandle.readWithAssociatedData(KeysetHandle.java:732)
W/AndroidKeysetManager(15746): at com.google.crypto.tink.KeysetHandle.read(KeysetHandle.java:713)
W/AndroidKeysetManager(15746): at com.google.crypto.tink.integration.android.AndroidKeysetManager$Builder.read(AndroidKeysetManager.java:315)
W/AndroidKeysetManager(15746): at com.google.crypto.tink.integration.android.AndroidKeysetManager$Builder.readOrGenerateNewKeyset(AndroidKeysetManager.java:288)
W/AndroidKeysetManager(15746): at com.google.crypto.tink.integration.android.AndroidKeysetManager$Builder.build(AndroidKeysetManager.java:239)
W/AndroidKeysetManager(15746): at androidx.security.crypto.EncryptedSharedPreferences.create(EncryptedSharedPreferences.java:169)
W/AndroidKeysetManager(15746): at com.web3auth.core.keystore.KeyStoreManagerUtils.initializePreferences(KeyStoreManagerUtils.kt:39)
W/AndroidKeysetManager(15746): at com.web3auth.core.Web3Auth.(Web3Auth.kt:71)
W/AndroidKeysetManager(15746): at com.web3auth.flutter.web3auth_flutter.Web3AuthFlutterPlugin.runMethodCall(Web3AuthFlutterPlugin.kt:97)
W/AndroidKeysetManager(15746): at com.web3auth.flutter.web3auth_flutter.Web3AuthFlutterPlugin.access$runMethodCall(Web3AuthFlutterPlugin.kt:28)
W/AndroidKeysetManager(15746): at com.web3auth.flutter.web3auth_flutter.Web3AuthFlutterPlugin$onMethodCall$1.invokeSuspend(Web3AuthFlutterPlugin.kt:74)
W/AndroidKeysetManager(15746): at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
W/AndroidKeysetManager(15746): at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
W/AndroidKeysetManager(15746): at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
W/AndroidKeysetManager(15746): at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
W/AndroidKeysetManager(15746): at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
W/AndroidKeysetManager(15746): at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
W/AndroidKeysetManager(15746): Caused by: android.security.KeyStoreException: Signature/MAC verification failed
W/AndroidKeysetManager(15746): at android.security.KeyStore2.getKeyStoreException(KeyStore2.java:408)
W/AndroidKeysetManager(15746): at android.security.KeyStoreOperation.handleExceptions(KeyStoreOperation.java:78)
W/AndroidKeysetManager(15746): at android.security.KeyStoreOperation.finish(KeyStoreOperation.java:127)
W/AndroidKeysetManager(15746): at android.security.keystore2.KeyStoreCryptoOperationChunkedStreamer$MainDataStream.finish(KeyStoreCryptoOperationChunkedStreamer.java:228)
W/AndroidKeysetManager(15746): at android.security.keystore2.KeyStoreCryptoOperationChunkedStreamer.doFinal(KeyStoreCryptoOperationChunkedStreamer.java:181)
W/AndroidKeysetManager(15746): at android.security.keystore2.AndroidKeyStoreAuthenticatedAESCipherSpi$BufferAllOutputUntilDoFinalStreamer.doFinal(AndroidKeyStoreAuthenticatedAESCipherSpi.java:396)
W/AndroidKeysetManager(15746): at android.security.keystore2.AndroidKeyStoreCipherSpiBase.engineDoFinal(AndroidKeyStoreCipherSpiBase.java:609)
W/AndroidKeysetManager(15746): … 21 more
What can i do?