appditto / nanodart

Dart library for the NANO and BANANO cryptocurrencies - supports key generation, signing, encryption, and more.
MIT License
15 stars 6 forks source link

Does not work on Web #3

Open azbuky opened 2 years ago

azbuky commented 2 years ago

When trying the library in a flutter web app the following UnsupportedError is raised

Unsupported operation: Uint64List not supported on the web.
oexza commented 2 years ago

Show stopper. I thought I could use on the web @appditto @bbedward I'd appreciate if you could point in the right direction how to make this work.

bbedward commented 1 year ago

You can represent uint64 as 2 uint32 each representing half the bits, it’s not the most straightforward thing in the world but can be done.

It’s also possible the data doesn’t even need 64 bits to be represented, I don’t recall what part of the library is using uint64

oexza commented 1 year ago

Thanks @bbedward actually it would seem like tweetnacl is the real culprit here, since it uses Int64List all over the place. here I wonder if there is a way to remove the dependency on tweetnacl.