Closed ggwpez closed 4 years ago
Using the standard scrypt
parameters on Android is slower than on PC and since it has to unlock the wallet twice at startup right now, the App crashes after 9 seconds of startup time. Steffen said that Android probably stops Apps when they dont react withing a given time after startup.
So i need to fix the Java app before being able to test this with standard parameter.
If you implement the wallet wrapper type as suggested in my review comment, there's only one unlock happening. Also, you changed the parameters from2, 1
to the keystore.StandardScrypt(N,P)
standard ones, which causes the long startup time now.
I think we should just use 2, 1 here for the time being. If this code is ever to be used in production, we make the parameters configurable.
Added
CreateAccount(keystorePath, password string) (*Address, error)
ImportAccount(keystorePath, password, secretKey string) (*Address, error)