Browse Source

Merge pull request #1660 from prusnak/master

fix spelling of TREZOR and SatoshiLabs
283
Neil 9 years ago
parent
commit
78d59d6aa5
  1. 16
      RELEASE-NOTES
  2. 2
      contrib/build-wine/README
  3. 6
      plugins/trezor/__init__.py
  4. 4
      plugins/trezor/plugin.py
  5. 4
      plugins/trezor/qt_generic.py
  6. 2
      plugins/trezor/trezor.py

16
RELEASE-NOTES

@ -8,7 +8,7 @@
* the install wizard has been rewritten and improved * the install wizard has been rewritten and improved
* support minikeys as used in Casascius coins for private key import * support minikeys as used in Casascius coins for private key import
and sweeping and sweeping
* much improved support for Trezor and KeepKey devices: * much improved support for TREZOR and KeepKey devices:
- full device information display - full device information display
- initialize a new or wiped device in 4 ways: - initialize a new or wiped device in 4 ways:
1) device generates a new wallet 1) device generates a new wallet
@ -17,7 +17,7 @@
4) you enter a master private key 4) you enter a master private key
- KeepKey secure seed recovery (KeepKey only) - KeepKey secure seed recovery (KeepKey only)
- change / set / disable PIN - change / set / disable PIN
- set homescreen (Trezor only) - set homescreen (TREZOR only)
- set a session timeout. Once a session has timed out, further use - set a session timeout. Once a session has timed out, further use
of the device requires your PIN and passhphrase to be re-entered of the device requires your PIN and passhphrase to be re-entered
- enable / disable passphrases - enable / disable passphrases
@ -91,8 +91,8 @@
output). The BIP21 URI scheme is extended with 'name', 'sig', output). The BIP21 URI scheme is extended with 'name', 'sig',
'time', 'exp'. 'time', 'exp'.
* Arbitrary m-of-n multisig wallets are supported (n<=15). * Arbitrary m-of-n multisig wallets are supported (n<=15).
* Multisig transactions can be signed with Trezor. When you create * Multisig transactions can be signed with TREZOR. When you create
the multisig wallet, just enter the xpub of your existing Trezor the multisig wallet, just enter the xpub of your existing TREZOR
wallet. wallet.
* Transaction fees set manually in the GUI are retained, including * Transaction fees set manually in the GUI are retained, including
when the user uses the '!' shortcut. when the user uses the '!' shortcut.
@ -119,7 +119,7 @@
* More efficient coin selection. Spend oldest coins first, and * More efficient coin selection. Spend oldest coins first, and
minimize the number of transaction inputs. minimize the number of transaction inputs.
* Plugins are loaded independently of the GUI. As a result, Openalias, * Plugins are loaded independently of the GUI. As a result, Openalias,
TrustedCoin and Trezor wallets can be used with the command TrustedCoin and TREZOR wallets can be used with the command
line. Example: 'electrum payto <openalias> <amount>' line. Example: 'electrum payto <openalias> <amount>'
* The command line has been refactored: * The command line has been refactored:
- Arguments are parsed with argparse. - Arguments are parsed with argparse.
@ -198,8 +198,8 @@
* Fix thread timing bug (#1054) * Fix thread timing bug (#1054)
# Release 2.0.1 - bugfixes # Release 2.0.1 - bugfixes
* Fix critical bug in Trezor address derivation: passphrases were not * Fix critical bug in TREZOR address derivation: passphrases were not
NFKD normalized. Trezor users who created a wallet protected by a NFKD normalized. TREZOR users who created a wallet protected by a
passphrase containing utf-8 characters with diacritics are passphrase containing utf-8 characters with diacritics are
affected. These users will have to open their wallet with version affected. These users will have to open their wallet with version
2.0 and to move their funds to a new wallet. 2.0 and to move their funds to a new wallet.
@ -238,7 +238,7 @@
- Verification of the chain of signatures uses tlslite. - Verification of the chain of signatures uses tlslite.
- In the GUI, payment requests are shown in the 'Invoices' tab. - In the GUI, payment requests are shown in the 'Invoices' tab.
* Support for hardware wallets: Trezor (Satoshilabs) and Btchip (Ledger). * Support for hardware wallets: TREZOR (SatoshiLabs) and Btchip (Ledger).
* Two-factor authentication service by TrustedCoin. This service uses * Two-factor authentication service by TrustedCoin. This service uses
"2 of 3" multisig wallets and Google Authenticator. Note that "2 of 3" multisig wallets and Google Authenticator. Note that

2
contrib/build-wine/README

@ -3,7 +3,7 @@ These scripts can be used for cross-compilation of Windows Electrum executables
Usage: Usage:
1. Install Wine (tested with wine-1.7.18) 1. Install Wine (tested with wine-1.7.18)
2. Run "./prepare-wine.sh", it will download all dependencies. When you'll be asked, always leave default settings and press "Next >". 2. Run "./prepare-wine.sh", it will download all dependencies. When you'll be asked, always leave default settings and press "Next >".
3. Run "./prepare-hw.sh" to build support for hardware wallets (trezor) 3. Run "./prepare-hw.sh" to build support for hardware wallets (TREZOR)
4. Run "./build-electrum-git.sh". Sources will be packed into three separate versions to dist/ directory: 4. Run "./build-electrum-git.sh". Sources will be packed into three separate versions to dist/ directory:
* Standalone compressed executable is "dist/electrum.exe" * Standalone compressed executable is "dist/electrum.exe"
* Uncompressed binaries are in "dist/electrum". They're useful for comparsion with other builds. * Uncompressed binaries are in "dist/electrum". They're useful for comparsion with other builds.

6
plugins/trezor/__init__.py

@ -1,9 +1,9 @@
from electrum.i18n import _ from electrum.i18n import _
fullname = 'Trezor Wallet' fullname = 'TREZOR Wallet'
description = _('Provides support for Trezor hardware wallet') description = _('Provides support for TREZOR hardware wallet')
requires = [('trezorlib','github.com/trezor/python-trezor')] requires = [('trezorlib','github.com/trezor/python-trezor')]
requires_wallet_type = ['trezor'] requires_wallet_type = ['trezor']
registers_wallet_type = ('hardware', 'trezor', _("Trezor wallet")) registers_wallet_type = ('hardware', 'trezor', _("TREZOR wallet"))
available_for = ['qt', 'cmdline'] available_for = ['qt', 'cmdline']

4
plugins/trezor/plugin.py

@ -19,7 +19,7 @@ from electrum.wallet import BIP44_Wallet
from electrum.util import ThreadJob from electrum.util import ThreadJob
# Trezor initialization methods # TREZOR initialization methods
TIM_NEW, TIM_RECOVER, TIM_MNEMONIC, TIM_PRIVKEY = range(0, 4) TIM_NEW, TIM_RECOVER, TIM_MNEMONIC, TIM_PRIVKEY = range(0, 4)
class DeviceDisconnectedError(Exception): class DeviceDisconnectedError(Exception):
@ -290,7 +290,7 @@ class TrezorCompatiblePlugin(BasePlugin, ThreadJob):
(item, label, pin_protection, passphrase_protection) \ (item, label, pin_protection, passphrase_protection) \
= wallet.handler.request_trezor_init_settings(method, self.device) = wallet.handler.request_trezor_init_settings(method, self.device)
if method == TIM_RECOVER and self.device == 'Trezor': if method == TIM_RECOVER and self.device == 'TREZOR':
# Warn user about firmware lameness # Warn user about firmware lameness
wallet.handler.show_error(_( wallet.handler.show_error(_(
"You will be asked to enter 24 words regardless of your " "You will be asked to enter 24 words regardless of your "

4
plugins/trezor/qt_generic.py

@ -131,7 +131,7 @@ class CharacterDialog(WindowModalDialog):
class QtHandler(QObject, PrintError): class QtHandler(QObject, PrintError):
'''An interface between the GUI (here, QT) and the device handling '''An interface between the GUI (here, QT) and the device handling
logic for handling I/O. This is a generic implementation of the logic for handling I/O. This is a generic implementation of the
Trezor protocol; derived classes can customize it.''' TREZOR protocol; derived classes can customize it.'''
charSig = pyqtSignal(object) charSig = pyqtSignal(object)
qcSig = pyqtSignal(object, object) qcSig = pyqtSignal(object, object)
@ -283,7 +283,7 @@ class QtHandler(QObject, PrintError):
vbox1 = QVBoxLayout() vbox1 = QVBoxLayout()
gb.setLayout(vbox1) gb.setLayout(vbox1)
# KeepKey recovery doesn't need a word count # KeepKey recovery doesn't need a word count
if method == TIM_NEW or self.device == 'Trezor': if method == TIM_NEW or self.device == 'TREZOR':
vbox.addWidget(gb) vbox.addWidget(gb)
gb.setTitle(_("Select your seed length:")) gb.setTitle(_("Select your seed length:"))
choices = [ choices = [

2
plugins/trezor/trezor.py

@ -3,7 +3,7 @@ from .plugin import TrezorCompatiblePlugin, TrezorCompatibleWallet
class TrezorWallet(TrezorCompatibleWallet): class TrezorWallet(TrezorCompatibleWallet):
wallet_type = 'trezor' wallet_type = 'trezor'
device = 'Trezor' device = 'TREZOR'
class TrezorPlugin(TrezorCompatiblePlugin): class TrezorPlugin(TrezorCompatiblePlugin):

Loading…
Cancel
Save