Open salahbm opened 1 year ago
Related https://github.com/ethers-io/ethers.js/issues/1503. From the discussion, it seems that pbkdf2's JS implementation is used which is very slow on Andriod, so somehow you can try using a native implementation.
Also can you try on v6?
Yeah I have tried native implamentation shown there previously, however, facing an error still. Thanks
For an immediate fix (as long as you don’t need a mnemonic) you can use new Wallet(hexlify(randomBytes(32)))
.
I’m working on a RN package that will install and configure everything for you too.
n immediate fix (as l
Thanks, appreciate it. But I need mnemoic. so looking forward to RN package be fixed...
@ricmoo Glad to hear that a RN package is on the way, really looking forward to it!
Ethers Version
5.7.2
Search Terms
No response
Describe the Problem
I have been using using ethers 5.7.2, because v6 didnt match with my environment. So the Problem is when I create the wallet on iOS device it works fast however not on the android; on the android device it takes around 1 min and around 30 secs on the android emulator.
Code Snippet
Contract ABI
No response
Errors
Environment
Ethereum (mainnet/ropsten/rinkeby/goerli), React Native/Expo/JavaScriptCore
Environment (Other)
No response