Skip to content

Commit

Permalink
exporting keystore wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterlong committed May 13, 2018
1 parent 0863e46 commit 2ab7f41
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -760,8 +760,8 @@ function UnlockPrivateKey() {

function ExportEthereumKeystore() {
var password = $("#keystore_pass").val();
configs.wallet.encrypt(password).then(function(data) {
dialog.showSaveDialog({defaultPath: configs.address.substring(0, 10)+'-keystore.json'},function (fileName) {
dialog.showSaveDialog({defaultPath: configs.address.substring(0, 10)+'-keystore.json'},function (fileName) {
configs.wallet.encrypt(password).then(function(data) {
var stream = fs.createWriteStream(fileName);
stream.once('open', function(fd) {
stream.write(data);
Expand Down
4 changes: 2 additions & 2 deletions views/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -664,13 +664,13 @@ <h5>Export Wallet Data</h5>
<div class="col-6">
<h5>Export Keystore Wallet</h5>
One of the safest ways to store your Ethereum and Tokens. Private keys are not recommended! Use a Keystore file for maximum security.
<form class="form-inline mt-3">
<div class="form-inline mt-3">
<div class="form-group mx-sm-3 mb-2">
<label for="inputPassword2" class="sr-only">New Password</label>
<input type="password" class="form-control" id="keystore_pass" placeholder="Password">
</div>
<button type="submit" onclick="ExportEthereumKeystore()" class="btn btn-primary mb-2">Export</button>
</form>
</div>

</div>

Expand Down

0 comments on commit 2ab7f41

Please sign in to comment.