From ccacec9d0b90a28ec42b5a65c1e126fe9b00105f Mon Sep 17 00:00:00 2001 From: m2049r <30435443+m2049r@users.noreply.github.com> Date: Sat, 30 Sep 2017 09:17:47 +0200 Subject: [PATCH] Added explicit info about keeping mnemonic seed safe (#92) --- app/build.gradle | 4 +- .../xmrwallet/GenerateReviewFragment.java | 16 ++++++- .../com/m2049r/xmrwallet/LoginActivity.java | 3 ++ app/src/main/res/menu/wallet_details_menu.xml | 12 +++++ app/src/main/res/raw/help_create.html | 22 ++++++++-- app/src/main/res/raw/help_details.html | 44 +++++++++++++++++++ 6 files changed, 95 insertions(+), 6 deletions(-) create mode 100644 app/src/main/res/menu/wallet_details_menu.xml create mode 100644 app/src/main/res/raw/help_details.html diff --git a/app/build.gradle b/app/build.gradle index 8d2266d..c70deaa 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -8,8 +8,8 @@ android { applicationId "com.m2049r.xmrwallet" minSdkVersion 21 targetSdkVersion 25 - versionCode 23 - versionName "1.0" + versionCode 24 + versionName "1.0.1" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" externalNativeBuild { cmake { diff --git a/app/src/main/java/com/m2049r/xmrwallet/GenerateReviewFragment.java b/app/src/main/java/com/m2049r/xmrwallet/GenerateReviewFragment.java index 27c8a57..4891fde 100644 --- a/app/src/main/java/com/m2049r/xmrwallet/GenerateReviewFragment.java +++ b/app/src/main/java/com/m2049r/xmrwallet/GenerateReviewFragment.java @@ -19,9 +19,12 @@ package com.m2049r.xmrwallet; import android.content.Context; import android.os.AsyncTask; import android.os.Bundle; +import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.util.Log; import android.view.LayoutInflater; +import android.view.Menu; +import android.view.MenuInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; @@ -214,4 +217,15 @@ public class GenerateReviewFragment extends Fragment { boolean backOk() { return !type.equals(GenerateReviewFragment.VIEW_TYPE_ACCEPT); } -} + + @Override + public void onCreate(@Nullable Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setHasOptionsMenu(true); + } + + @Override + public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { + inflater.inflate(R.menu.wallet_details_menu, menu); + } +} \ No newline at end of file diff --git a/app/src/main/java/com/m2049r/xmrwallet/LoginActivity.java b/app/src/main/java/com/m2049r/xmrwallet/LoginActivity.java index 3d3aea8..71156dd 100644 --- a/app/src/main/java/com/m2049r/xmrwallet/LoginActivity.java +++ b/app/src/main/java/com/m2049r/xmrwallet/LoginActivity.java @@ -973,6 +973,9 @@ public class LoginActivity extends AppCompatActivity case R.id.action_create_help: HelpFragment.displayHelp(getSupportFragmentManager(),R.raw.help_create); return true; + case R.id.action_details_help: + HelpFragment.displayHelp(getSupportFragmentManager(),R.raw.help_details); + return true; case R.id.action_lincense_info: LicensesFragment.displayLicensesFragment(getSupportFragmentManager()); return true; diff --git a/app/src/main/res/menu/wallet_details_menu.xml b/app/src/main/res/menu/wallet_details_menu.xml new file mode 100644 index 0000000..0ab31c1 --- /dev/null +++ b/app/src/main/res/menu/wallet_details_menu.xml @@ -0,0 +1,12 @@ + + + + + + \ No newline at end of file diff --git a/app/src/main/res/raw/help_create.html b/app/src/main/res/raw/help_create.html index bfb3039..1e15873 100644 --- a/app/src/main/res/raw/help_create.html +++ b/app/src/main/res/raw/help_create.html @@ -15,9 +15,25 @@ In all cases you need to name your wallet and give it a password. The password i securing your wallet data on the device. Use a strong password - better a passphrase.

New Address

-You need a new Monero Address.
-No need to enter additional info. - +You need a new Monero Address - no need to enter additional info. +

Take Note of your Mnemonic Seed!

+

+ On the following screen you will find your 25-word "Mnemonic Seed". + This is the only data needed to recover your wallet at a later time + and gain full access to your funds. + Keeping this secure and private is very important, as it gives anyone + full access to your funds! +

+

+ If you loose your wallet password, you can still recover your wallet with the mnemonic seed. +

+

+ There is no way to recover it if it is lost! Your funds would be lost. + The mnemonic seed can also never be changed, and if it is stolen or otherwise compromised, + you will have to move your funds to new wallet (with a new mnemonic seed). Therefore, it is best + that you backup your mnemonic seed by writing it down and storing it in multiple safe + and secure places. +

Recover from Seed

You already have a Monero Address and want to recover the transactions from the blockchain.
Enter your Seed in the field "Mnemonic Seed". If you know the block number of the first diff --git a/app/src/main/res/raw/help_details.html b/app/src/main/res/raw/help_details.html new file mode 100644 index 0000000..b781648 --- /dev/null +++ b/app/src/main/res/raw/help_details.html @@ -0,0 +1,44 @@ + + + + + +

Wallet Details

+Here you see the details of your wallet. + + +

Mnemonic Seed

+

+ Your 25-word "Mnemonic Seed". This is the only data needed to recover your wallet at a later + time and gain full access to your funds. + Keeping this secure and private is very important, as it gives anyone + full access to your funds! +

+

+ If you loose your wallet password, you can still recover your wallet with the mnemonic seed. +

+

+ There is no way to recover it if it is lost! Your funds would be lost. + The mnemonic seed can also never be changed, and if it is stolen or otherwise compromised, + you will have to move your funds to new wallet (with a new mnemonic seed). Therefore, it is best + that you backup your mnemonic seed by writing it down and storing it in multiple safe + and secure places. +

+ +

Public Address

+This is your account number. You can use it to receive funds. A sender needs to know nothing +more. + +

View Key

+This key is required for creating a view-only wallet or for recovering from keys. + +

Spend Key

+This is key is required for recovering from keys. + + +