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

Generate a secure password for lnd wallet unlock #50

Closed
hsjoberg opened this issue Aug 20, 2019 · 4 comments
Closed

Generate a secure password for lnd wallet unlock #50

hsjoberg opened this issue Aug 20, 2019 · 4 comments
Labels
security Related to security of the app
Milestone

Comments

@hsjoberg
Copy link
Owner

No description provided.

@hsjoberg hsjoberg added the security Related to security of the app label Aug 20, 2019
@hsjoberg hsjoberg added this to the MVP milestone Aug 20, 2019
@hsjoberg
Copy link
Owner Author

Cannot be stored in Keychain really as it's difficult to reach the keychain in native code before this gets merged: oblador/react-native-keychain#220

Also this is scary: oblador/react-native-keychain#152

@hsjoberg
Copy link
Owner Author

Can be moved to keychain later on.

@hsjoberg
Copy link
Owner Author

How to reach AsyncStorage items from Java:

import com.facebook.react.modules.storage.ReactDatabaseSupplier;
import android.database.sqlite.SQLiteDatabase;
import com.facebook.react.modules.storage.AsyncLocalStorageUtil;
[...]
SQLiteDatabase readableDatabase = ReactDatabaseSupplier.getInstance(getReactApplicationContext()).getReadableDatabase();
if (readableDatabase != null) {
  String impl = AsyncLocalStorageUtil.getItemImpl(readableDatabase, "bitcoinUnit");
  Log.d(TAG, "impl: " + impl);
}
else {
  Log.e(TAG, "ReadableDatabase NULL");
}

@hsjoberg
Copy link
Owner Author

Implemented in dc7f360

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
security Related to security of the app
Projects
None yet
Development

No branches or pull requests

1 participant