Hashpack / hashconnect

Hashconnect library, readme in progress
BSD Zero Clause License
46 stars 38 forks source link

Decryption error when connecting wallet. #185

Closed pawelzygmuntowski closed 10 months ago

pawelzygmuntowski commented 1 year ago

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 commented 1 year ago

Please try upgrading to hashconnect v0.2.9

pawelzygmuntowski commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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.