Make mnemonic copyable
MODIFY
HiddenWallet/HiddenWallet.GUI/app/html/decryption-phase-content.html
HiddenWallet/HiddenWallet.GUI/app/html/decryption-phase-content.html
</div>
<button id="recover-wallet-button" class="btn btn-lg btn-primary btn-block" onclick="recoverWallet()">Recover</button>
</div>
+
+<div id="wallet-generated-content">
+ <h4><span class="label label-success">Wallet is generated successfully!</span></h4>
+ <label>Write down these mnemonic words:</label>
+ <h4><span class="label label-default" id="mnemonic-words"></span></h4>
+ <label>You can recover your wallet on any computer with:</label>
+ <br /><label>- the mnemonic words AND</label>
+ <br /><label>- your password AND</label>
+ <br /><label>- the wallet creation time:</label>
+ <label id="wallet-creation-time"></label>
+ <br />
+ <div>Unlike most other wallets if an attacker acquires your mnemonic words, it will not be able to hack your wallet without knowing your password. On the contrary, unlike other wallets, you will not be able to recover your wallet only with the mnemonic words if you lose your password.</div>
+ <br />
+ <button class="btn btn-lg btn-primary btn-block" onclick="decryptionPhaseShow()">Got it, go to decrypting!</button>
+</div>
\ No newline at end of file

MODIFY
HiddenWallet/HiddenWallet.GUI/app/js/decryption-phase.js
HiddenWallet/HiddenWallet.GUI/app/js/decryption-phase.js
@@ -17,6 +17,7 @@ function wait(ms) {
let walletExists;
function decryptionPhaseShow(menuItem = "") {
+ document.getElementById("menu").hidden = false;
document.getElementById("hide-btn").hidden = true;
if (menuItem === "") {
blockUntilApiReady();
@@ -81,16 +82,10 @@ function generateWallet() {
document.getElementById("generate-wallet-button").innerHTML = "Generate";
}
else {
- let message = "Write down these mnemonic words:\n\n"
- + json.Mnemonic + "\n\n"
- + "You can recover your wallet on any computer with:\n"
- + "- the mnemonic words AND\n"
- + "- your password AND\n"
- + "- the wallet creation time: " + json.CreationTime.substr(0, 10)
- + "\n\n"
- + "Unlike most other wallets if an attacker acquires your mnemonic words, it will not be able to hack your wallet without knowing your password. On the contrary, unlike other wallets, you will not be able to recover your wallet only with the mnemonic words if you lose your password.";
- alert("Wallet is successfully generated!\n\n" + message);
- decryptionPhaseShow();
+ document.getElementById("decryption-phase-content-frame").contentWindow.document.getElementById("mnemonic-words").innerHTML = json.Mnemonic;
+ document.getElementById("decryption-phase-content-frame").contentWindow.document.getElementById("wallet-creation-time").innerHTML = json.CreationTime.substr(0, 10);
+ document.getElementById("content").innerHTML = document.getElementById("decryption-phase-content-frame").contentWindow.document.getElementById("wallet-generated-content").innerHTML;
+ document.getElementById("menu").hidden = true;
}
document.getElementsByClassName("container").item(0).setAttribute("style", "pointer-events:all;");
});

Make mnemonic copyable