You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running polkadot.js over IOS using react-native. keypair.toJson and keypair.unlock each take almost 60 seconds. Same code I run in a browser extension and it works fine.
The numbers while creating the keyPair:
• cryptoWaitReady 67.58516716957092 milliseconds.
• naclDecrypt 2.701167106628418 milliseconds.
• new Keyring 0.1640000343322754 milliseconds.
• keyring.addFromUri 2326.9085409641266 milliseconds.
• keyPair.toJson 53572.15112495422 milliseconds.
While trying to signAndSend():
• cryptoWaitReady 0.061165809631347656 milliseconds.
• new Keyring 0.009291887283325195 milliseconds.
• keyring.addFromJson 3.1981661319732666 milliseconds.
• keypair.unlock 56587.29391694069 milliseconds.
The text was updated successfully, but these errors were encountered:
To make it work we have to compile the normal JS WASM functions to ASM.js (everything else uses WASM - so this is the happy path), which is not optimal at all. We also cannot use pure JS for those functions (where available, e.g. non-sr25519) since BigInt support is spotty at best and the used underlying libs only use bn.
Any PRs to optimize the RN paths would certainly be appreciated.
(This is not a platform I can actually look at myself, I have never worked in that environment and previous efforts to even get a test app running has been fruitless, so it really is as stated - "best effort, assuming it works", hence "any PRs" above.)
I am running polkadot.js over IOS using react-native.
keypair.toJson
andkeypair.unlock
each take almost 60 seconds. Same code I run in a browser extension and it works fine.The numbers while creating the keyPair:
• cryptoWaitReady 67.58516716957092 milliseconds.
• naclDecrypt 2.701167106628418 milliseconds.
• new Keyring 0.1640000343322754 milliseconds.
• keyring.addFromUri 2326.9085409641266 milliseconds.
• keyPair.toJson 53572.15112495422 milliseconds.
While trying to signAndSend():
• cryptoWaitReady 0.061165809631347656 milliseconds.
• new Keyring 0.009291887283325195 milliseconds.
• keyring.addFromJson 3.1981661319732666 milliseconds.
• keypair.unlock 56587.29391694069 milliseconds.
The text was updated successfully, but these errors were encountered: