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

issues running with flutter web #5

Open
christian-rogobete opened this issue Oct 21, 2020 · 2 comments
Open

issues running with flutter web #5

christian-rogobete opened this issue Oct 21, 2020 · 2 comments

Comments

@christian-rogobete
Copy link

Hello, when running with flutter web, there are 2 issues that cause exceptions:

  1. random key generation

when trying to generate a key like this:
Uint8List secret = ed25519.TweetNaclFast.randombytes(32);

there is a RangeError thrown because of this line (tweetnacl_base.dart 3150 and 3157):
rnd = Int64(jrandom.nextInt(1<<32));

this can be fixed by using the range (1<<31). see also dart-lang sdk issue

however, after fixing this, the next problem appears:

  1. Unsupported operation: Int64List not supported on the web.

dart2js does not support 64-bit integers and thus does not support Int64List or Uint64List. Dart code compiled via dart2js results in a runtime exception if either of those lists is used. see this article - last line

there are multiple Int64List used in the code. Can you please fix this?

@wsldoc
Copy link

wsldoc commented Jun 28, 2021

Unsupported operation: Int64List not supported on the web.
I also met the issue, do you fix it now?

@oexza
Copy link

oexza commented Jul 8, 2022

Big Issue. Any fix on the horizon? @jspschool

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

3 participants