-
Notifications
You must be signed in to change notification settings - Fork 3
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
Generating wallet on web hangs #30
Comments
Root issue appears to be from pointycastle library |
Workaround: use fast_rsa package to generate the keys, then load using Example usage:
|
Hi @elliotsayes thank you for your report! We did some tests and conclude the same as you. We tested with a simple Flutter Web project and we could generate a wallet, but it took more than 10 minutes having frozen UI. We also tested Our approach to this issue will be to create an interface to abstract the wallet generation. As we don't have this feature on ArDrive Web we will not work on this fix for now, but it's on our roadmap and when the time comes we will release this implementation. |
Hi @karlprieb that makes sense to me. What I don't understand though is why dart does not support plugins (i.e. js on web) without flutter SDK... seems like they want to tie you to flutter if you are using dart libraries |
Calling
Wallet.generate()
when compiled for web seems to never complete.To reproduce:
test/wallets_test.html
:dart test test/wallets_test.dart -N "generate wallet" --platform chrome
01:17 +0: wallets: generate wallet
The text was updated successfully, but these errors were encountered: