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

fix(wallet): resolve slow scrypt encryption/decryption with react #892

Merged
merged 2 commits into from
Apr 17, 2023
Merged

fix(wallet): resolve slow scrypt encryption/decryption with react #892

merged 2 commits into from
Apr 17, 2023

Conversation

ixje
Copy link
Member

@ixje ixje commented Apr 14, 2023

fix #891

I can't explain the difference between packages, I just know there is a speed difference despite both being pure-js.
I've considered hash-wasm as alternative to ethereum-cryptography, but it was actually slower and required more changes.

@ixje ixje requested a review from snowypowers April 14, 2023 07:43
@snowypowers
Copy link
Member

snowypowers commented Apr 15, 2023

Is there really a speed difference? Just looking at the test runtimes (this PR and an older run ), the runtimes are very similar.

I am not opposed to using ethereum's package since its more modern & supported but calling it a fix without any stats is not ideal. Do you have any runtime numbers? How about pitching this as a "modernization" instead of a true speed fix?

@ixje
Copy link
Member Author

ixje commented Apr 15, 2023 via email

@ixje ixje merged commit 4f49f4b into CityOfZion:dev Apr 17, 2023
@ixje ixje deleted the replace-scrypt-js2 branch April 17, 2023 06:50
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

Successfully merging this pull request may close these issues.

None yet

2 participants