From 769bd8e2eee5f322f5883407e9fd779cf2a59e97 Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Tue, 4 Oct 2016 13:26:51 -0700 Subject: Removed hex prefix from private key export For compatibility with Jaxx, MEW, and Geth. Fixes #687 --- CHANGELOG.md | 1 + ui/app/components/account-export.js | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ddc354e89..0cdfcd99c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ - Fix bug where chosen FIAT exchange rate does no persist when switching networks - Fix additional parameters that made MetaMask sometimes receive errors from Parity. - Fix bug where invalid transactions would still open the MetaMask popup. +- Removed hex prefix from private key export, to increase compatibility with Geth, MyEtherWallet, and Jaxx. ## 2.13.1 2016-09-23 diff --git a/ui/app/components/account-export.js b/ui/app/components/account-export.js index f36b9faeb..6d8b099a5 100644 --- a/ui/app/components/account-export.js +++ b/ui/app/components/account-export.js @@ -3,6 +3,7 @@ const h = require('react-hyperscript') const inherits = require('util').inherits const copyToClipboard = require('copy-to-clipboard') const actions = require('../actions') +const ethUtil = require('ethereumjs-util') module.exports = ExportAccountView @@ -61,7 +62,9 @@ ExportAccountView.prototype.render = function () { if (accountExported) { return h('div.privateKey', { - + style: { + margin: '0 20px', + }, }, [ h('label', 'Your private key (click to copy):'), h('p.error.cursor-pointer', { @@ -72,9 +75,9 @@ ExportAccountView.prototype.render = function () { width: '100%', }, onClick: function (event) { - copyToClipboard(accountDetail.privateKey) + copyToClipboard(ethUtil.stripHexPrefix(accountDetail.privateKey)) }, - }, accountDetail.privateKey), + }, ethUtil.stripHexPrefix(accountDetail.privateKey)), h('button', { onClick: () => this.props.dispatch(actions.backToAccountDetail(this.props.address)), }, 'Done'), -- cgit From 0b5984767ba5b1b94d95f7945c11cd294cad971b Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Tue, 4 Oct 2016 14:22:47 -0700 Subject: Add Opera compatibility - Fix incorrect OS key - Add additional icon image sizes. --- app/images/icon-32.png | Bin 0 -> 1730 bytes app/images/icon-64.png | Bin 0 -> 3573 bytes app/manifest.json | 5 +++-- 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 app/images/icon-32.png create mode 100644 app/images/icon-64.png diff --git a/app/images/icon-32.png b/app/images/icon-32.png new file mode 100644 index 000000000..f801ebb6b Binary files /dev/null and b/app/images/icon-32.png differ diff --git a/app/images/icon-64.png b/app/images/icon-64.png new file mode 100644 index 000000000..b3019ad65 Binary files /dev/null and b/app/images/icon-64.png differ diff --git a/app/manifest.json b/app/manifest.json index d6738a5fa..6f0eacf77 100644 --- a/app/manifest.json +++ b/app/manifest.json @@ -10,7 +10,7 @@ "suggested_key": { "windows": "Alt+Shift+M", "mac": "Alt+Shift+M", - "chromeos": "Search+M", + "chromeos": "Alt+Shift+M", "linux": "Alt+Shift+M" } } @@ -55,9 +55,10 @@ } ], "permissions": [ - "notifications", "storage", "tabs", + "clipboardWrite", + "clipboardRead", "http://localhost:8545/" ], "web_accessible_resources": [ -- cgit