Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decryption error when connecting wallet. #185

Closed
pawelzygmuntowski opened this issue Nov 20, 2023 · 4 comments
Closed

Decryption error when connecting wallet. #185

pawelzygmuntowski opened this issue Nov 20, 2023 · 4 comments

Comments

@pawelzygmuntowski
Copy link

When attempting to connect to a local wallet using hashconnect.connectToLocalWallet();, I am getting a decryption error. The error is as follows:
Error: Invalid encrypted text received. Decryption halted. at SimpleCrypto3._decrypt
I am getting this error not only in my local implementation but in the demo: https://hashpack.github.io/hashconnect/
here as well. Same error.
I tried making a new wallet from scratch. It didn't help.
Will this be fixed anytime soon?

@teacoat
Copy link
Contributor

teacoat commented Nov 20, 2023

Please try upgrading to hashconnect v0.2.9

@pawelzygmuntowski
Copy link
Author

Unfortunately I'm already on v0.2.9. From what I can see it uses the newest version of simple-crypto-js as well. So not sure what could be wrong, as it is literally a new account and wallet (I tried with a few accounts and wallets, all got the same error.

@teacoat
Copy link
Contributor

teacoat commented Nov 20, 2023

This is because crypto-js recently introduced a change that broke simple-crypto-js, we are working through this atm but ensuring you are using crypto-js v4.1.1 is how to get around this

@pawelzygmuntowski
Copy link
Author

Oh yeah, thank you for this specific info. When I used 4.1.1 exactly as the resolution it connected for now. Hope you guys can manage the fix soon, in the meantime this should work.

@teacoat teacoat closed this as completed Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants