Commit Graph

1117 Commits

Author SHA1 Message Date
SomberNight
2f4ee16fd4 fix email_requests plugin 2018-03-01 02:39:48 +01:00
SomberNight
a32d27b9d7 make 2fa wallets work on testnet 2018-02-26 18:21:36 +01:00
Roman Zeyde
44bf80d291 remove unneeded 'pass' statement (#3970) 2018-02-25 18:14:49 +01:00
SomberNight
4cc2575d72 cli support for hw encrypted wallets 2018-02-10 20:07:06 +01:00
SomberNight
6c4756dc3d check trezorlib version 2018-02-07 17:51:52 +01:00
slush
d3b94d9353 Small refactoring; removed one layer of unnecessary abstraction. 2018-02-06 21:15:18 +01:00
slush
460e88ee53 hw plugins: Allow custom enumerate functions
trezor: Adding support for all supported transports (HID, WebUSB, UDP, Bridge)
2018-02-06 19:13:05 +01:00
SomberNight
ac2d4eb0ef fix #3508 2018-02-04 22:02:10 +01:00
SomberNight
ffdc36285b use string.format instead of old style (%) formatting 2018-02-04 07:26:55 +01:00
Wampum
37904bc110 show address on trezor for multisig (#3823)
* show address on trezor for multisig

* Show menu option properly.

* remove useless line
2018-02-04 06:21:25 +01:00
SomberNight
c811c5c9d9 allow encrypting watch-only wallets. initial support for hw wallet storage encryption. 2018-01-28 02:09:44 +01:00
ken2812221
452d60033a
Shows correct bech32 address on ledger 2018-01-21 22:59:27 +08:00
SomberNight
cc9032c9ea fix #3680 (trezor: spending from multisig)
follow-up of #3621 (Make Electrum work with trezorlib 0.9.0)
2018-01-12 19:21:09 +01:00
SomberNight
2df0d7cec5 ledger: handle pin-locked state better 2018-01-12 04:03:43 +01:00
ThomasV
d38303354c
Merge pull request #3683 from SomberNight/wizard_scriptnotsupported
wizard: allow to choose derivation again if script type is not supported
2018-01-11 16:45:55 +01:00
ThomasV
1da020c415
Merge pull request #3681 from SomberNight/trezor_native_segwit
trezor plugin: native segwit
2018-01-11 16:45:18 +01:00
ghost43
3c755aaa90
Merge pull request #3679 from marceloneil/ledger-version-comparison
Better ledger version comparison
2018-01-10 21:51:48 +01:00
Marcel O'Neil
14cfd17096
better ledger version comparison 2018-01-10 14:15:21 -05:00
SomberNight
d8a9c9720a follow-up 65eae139af 2018-01-10 18:39:25 +01:00
mzhou
65eae139af add ability to show a receiving address on ledger screen (#3538)
add ability to show a receiving address on ledger screen
2018-01-10 18:37:41 +01:00
SomberNight
9416e5bc35 wizard: allow to choose derivation again if script type is not supported (instead of closing the wizard) 2018-01-09 21:10:32 +01:00
SomberNight
1387a45908 trezor plugin: native segwit and bip84 2018-01-09 17:09:58 +01:00
SomberNight
7cf547c4b8 follow-up #3621 (trezor plugin changes for trezorlib 0.9.0) 2018-01-09 16:39:39 +01:00
SomberNight
6d88eab005 tests: added 2fa seed case to test_wallet_vertical.py 2018-01-04 22:21:05 +01:00
Ali Raheem
ed86fee3fe
Format of message hash to match Ledger
On signing SHA256 of message is shown on Ledger in caps. Make Electrum show in same format to save confusion.
2018-01-01 21:23:37 +00:00
Ali Raheem
19ba2364b6
Show message sign when signing
Allow verification by showing the SHA256 hash of the message to be signed (which is also displayed on Ledger).
2018-01-01 20:55:10 +00:00
slush
dda9d4b746 Updated TREZOR plugin to work with trezorlib>=0.9.0. 2017-12-29 20:36:51 +01:00
slush
a30d59912e Updated TREZOR plugin to work with trezorlib>=0.8.0. 2017-12-29 20:36:51 +01:00
SomberNight
8de7c94dab ledger: mention "bitcoin" app when update is needed 2017-12-16 19:46:45 +01:00
SomberNight
ec99304ae1 fix sweeping for 2fa wallets 2017-12-11 17:37:10 +01:00
SomberNight
4e60cedea9 fix dbb cli 2017-12-07 00:27:25 +01:00
SomberNight
84239e168b trezor/keepkey separation: init device 2017-12-04 19:56:46 +01:00
SomberNight
414b6e8a06 follow-up 958b794bc9 2017-12-04 19:04:05 +01:00
SomberNight
52eb4aebe6 follow-up 958b794bc9 2017-12-04 18:38:58 +01:00
SomberNight
1359fac4c9 trezor/keepkey separation: tx output type 2017-12-04 18:05:03 +01:00
ThomasV
958b794bc9 separate trezor and keepkey codebase 2017-12-04 17:28:37 +01:00
SomberNight
3bcfb8273a Catch exception when retrieving 2FA TOS. Only allow user to continue if TOS was received. 2017-12-04 12:02:06 +01:00
ThomasV
ff815acbd5
Merge pull request #3407 from SomberNight/fix_keepkey_p2sh_output
fix: keepkey sending to p2sh output
2017-12-02 16:57:57 +01:00
Neil Booth
bf452ecfe7 Make trezor code specific to trezor
Fixes #3308
2017-12-02 16:08:49 +09:00
SomberNight
e700b0d731 fix: keepkey sending to p2sh output 2017-11-29 05:39:44 +01:00
Marko Bencun
f3092a8b50 digitalbitbox: correctly handle user aborts
1. When the pairing is being forced and the user clicks 'No', the tx
was cancelled completely because the UserCancelled exception was
accidentally converted to an Exception.
2. Same with user aborting the signing process with a short touch on
the device (or a timeout).
2017-11-24 10:12:13 +01:00
SomberNight
b159164575 fix: py3 digitalbitbox hid_send 2017-11-23 19:22:31 +01:00
Marko Bencun
b31c51b3d0 digitalbitbox: add support for segwit 2017-11-22 12:58:19 +01:00
SomberNight
5cfe909194 digitalbitbox: delegate clear_dialog() calls to GUI thread 2017-11-18 16:53:22 +01:00
SomberNight
c9bef38dff fix: ledger clear_dialog() threading issues 2017-11-18 04:09:15 +01:00
SomberNight
204146b30a fix: GreenAddress verification with passworded wallet 2017-11-15 12:12:11 +01:00
ThomasV
5e8791e5a4 trustedcoin: add message about how to request new code 2017-11-13 11:47:25 +01:00
Justin Turner Arthur
857eb4ac1d Remove unused imports. Explicitly import a few deep imports. 2017-11-13 02:28:00 -06:00
Justin Turner Arthur
8cb34f4d88 Fix undefined reference error in command line KeepKey plugin. 2017-11-12 23:11:22 -06:00
ThomasV
1cec6c8dec fix #3248: locktime 2017-11-11 11:37:50 +01:00
ThomasV
7bdaf01656 fix trustedcoin plugin: google auth code 2017-11-11 00:33:15 +01:00
SomberNight
0db5ea67a0 bitcoin.NetworkConstants: easier changing between testnet and mainnet 2017-11-09 17:47:57 +01:00
ThomasV
ea4d2343d3 revert 1ecfcea8dc after btchip-python has been fixed 2017-11-08 15:01:25 +01:00
ThomasV
42e2bb5ecc fix #3211: use bytearray in ledger sign_message 2017-11-05 17:45:55 +01:00
ThomasV
46b8436693 fix #2562: show error message if hardware library is missing 2017-11-05 12:49:38 +01:00
ThomasV
70d23f9e3b fix #3189: do not silence exceptions in get_xpub 2017-11-03 10:34:25 +01:00
ThomasV
d3465bb60a fix typo 2017-10-31 14:07:24 +01:00
ThomasV
f36024e216 hardware wallets: pass xtype to get_xpub 2017-10-31 11:45:25 +01:00
ThomasV
1ecfcea8dc ledger: disable getTrustedInput 2017-10-31 10:23:57 +01:00
ThomasV
f03cb75713 ledger: fix missing import 2017-10-29 16:40:08 +01:00
SomberNight
c6f085a711 fix xtype for ledger native segwit 2017-10-29 10:31:23 +01:00
ThomasV
a10e6b6436 fix xtype of ypub keys in plugins and bip39 seeds 2017-10-27 12:04:26 +02:00
SomberNight
523de69b5e Introduced BasePlugin.can_user_disable(). TrustedCoin plugin can't be disabled by user. 2017-10-24 04:42:52 +02:00
ThomasV
020f0637d7 trezor: only TYPE_ADDRESS is needed for non-change outputs 2017-10-23 14:03:43 +02:00
SomberNight
b0bab75859 fix: set wallet_type attr for 2fa wallets 2017-10-23 03:08:06 +02:00
ThomasV
24442de8df fix command line interface for hardware wallets. fixes #3056 2017-10-19 11:59:36 +02:00
SomberNight
db919ff340 py3: cosigner_pool 2017-10-19 03:19:48 +02:00
ThomasV
ddc989c672 fix #3062 2017-10-18 16:11:30 +02:00
ThomasV
49895df42f Merge pull request #3055 from SomberNight/trezor_cmd_raw_input
fix raw_input() in trezor cmdline
2017-10-18 11:14:35 +02:00
SomberNight
ee352bcee0 maintenance for greenaddress plugin 2017-10-17 22:16:46 +02:00
SomberNight
5d81ed5d62 fix raw_input() in trezor cmdline 2017-10-17 21:05:26 +02:00
Neil Booth
21e0cd9237 Remove decrypt_message; no longer supported by Trezor or KeepKey 2017-10-17 18:19:38 +09:00
ThomasV
f1792d1b13 Merge pull request #2996 from benma/mobile_pairing
digitalbitbox: import mobile pairing config
2017-10-17 08:21:55 +02:00
ThomasV
d55468d1a6 Merge pull request #3046 from SomberNight/fix_trezor_unresolved_var_keystore
fix: unresolved var in trezor/plugin.py
2017-10-16 07:13:23 +02:00
SomberNight
1809996bbf fix: unresolved var in trezor/plugin.py 2017-10-16 02:25:30 +02:00
SomberNight
a2fdb7a396 fix: rm unicode() calls in trezor plugin (py3) 2017-10-16 01:40:13 +02:00
ThomasV
0df24d9321 trezor plugin: add paytowitness (not supported yet) 2017-10-11 12:24:55 +02:00
ThomasV
293fba3a38 code cleanup 2017-10-10 14:37:00 +02:00
ThomasV
4836adff84 add cmdline support for 2fa wallets 2017-10-10 13:44:25 +02:00
Marko Bencun
439a7ca890 digitalbitbox: import mobile pairing config
- menu option to verify addresses securely
 - p2pkh transaction verification

Next steps: p2sh tx verification and full 2FA.
2017-10-07 23:56:11 +02:00
Roman Zeyde
1fa6b3fd31
amodem: fix str/bytes handling 2017-10-05 21:02:53 +03:00
SomberNight
512b73dfb8 fix trace for LabelSync with Imported_Wallet 2017-10-04 21:58:56 +02:00
SomberNight
5ce871ef55 fix: editing labels in [QT GUI] Addresses tab for headings resulted in errors 2017-10-04 14:21:45 +02:00
SomberNight
e05c8439e6 fix json error when resetting 2fa 2017-09-27 01:51:21 +02:00
Marko Bencun
bece1329cc digitalbitbox: fixed some more python3 issues 2017-09-25 00:06:24 +02:00
ThomasV
2239cb9624 fix #2921 2017-09-24 10:18:08 +02:00
ThomasV
99bc43d8db Merge pull request #2911 from SomberNight/pyqt5
migration to PyQt5
2017-09-24 09:42:32 +02:00
SomberNight
e43481aafc fix prev commit: name collisions with _() 2017-09-24 04:44:11 +02:00
SomberNight
f1a4f998d2 fix: return type of QFileDialog.getOpenFileName() changed 2017-09-24 04:16:39 +02:00
SomberNight
d178c20b1f grammar fix (trustedcoin) 2017-09-24 01:42:24 +02:00
SomberNight
29b9d6fa61 fix email_requests plugin 2017-09-24 00:55:26 +02:00
SomberNight
4ac162f18b migration to PyQt5. initial commit. 2017-09-23 05:54:38 +02:00
BTChip
396c76f83f Check firmware version for Segwit related transactions, add native segwit support 2017-09-17 18:34:38 +02:00
ThomasV
63a1db1172 make xpub/xprv version information user-visible 2017-09-13 11:33:28 +02:00
ThomasV
4d3e079778 rename bc_address functions 2017-08-31 10:21:57 +02:00
ThomasV
e4659327a1 fix #2645: do not call tx.get_fee from plugin 2017-08-31 09:55:44 +02:00
BTChip
e49e3d6673 Python 3 and Segwit fixes 2017-08-30 22:49:03 +02:00
ThomasV
b86619ee30 Merge pull request #2760 from jhoenicke/trezorsegwit
[TREZOR] Added Segwit support.
2017-08-30 11:48:55 +02:00
Marko Bencun
3143179907 fix digital bitbox plugin, port to Python 3
The digital bitbox plugin didn't work anymore, mostly due to str/bytes
issues.

This patch fixes message and tx signing. Backup restore is also
tested.

Untested: firmware <= v2.1.1 and wallet initialization.
2017-08-30 00:33:44 +02:00
Jochen Hoenicke
65db826454 [TREZOR] show segwit addresses on TREZOR 2017-08-29 18:45:18 +02:00
Jochen Hoenicke
ec0de566a8 [TREZOR] Added Segwit support.
Following changes were necessary outside the TREZOR plugin.
- transaction.py: update_transaction handles segwit transactions.
- keystore.py: added a segwit parameter to bip44_derivation,
  use m/49' instead of m/44' for segwit.
2017-08-29 18:43:50 +02:00
ThomasV
fbe27fce04 fix #2811 2017-08-28 05:30:56 +02:00
ThomasV
92c4968ca9 Merge pull request #2792 from neocogent/ledger-typo
Fix Ledger plugin help text grammar
2017-08-26 09:06:27 +02:00
ThomasV
e02687bcf2 python3 updates 2017-08-26 08:28:24 +02:00
ThomasV
d8e37644d3 python3 updates 2017-08-26 08:28:24 +02:00
ThomasV
bb0174a8de trezor updates for python3 2017-08-26 08:28:24 +02:00
ThomasV
ab15ff3a00 updates for python3 2017-08-26 08:28:24 +02:00
ThomasV
f1a8c0b0e6 misc. fixes for python3 2017-08-26 08:28:24 +02:00
ThomasV
c3388d9677 misc python3 updates:
- use jsonrpclib-pelix
 - update the kivy gui
 - update plugins
2017-08-26 08:28:24 +02:00
Dmitry Sorokin
362ca96f38 x509 fixes and plugins 2017-08-26 08:28:24 +02:00
neocogent
e641f2d251 fix ledger help text grammar 2017-08-23 11:56:18 +07:00
Jochen Hoenicke
1c120e8f5c
[TREZOR] Set bip32 path in multisig change address 2017-08-15 16:25:30 +02:00
ThomasV
6cf10e54d0 trezor: add missing parameters for reset_device 2017-08-12 04:37:21 +02:00
ThomasV
7617fbf0ff fix default sequence number in ledger plugin 2017-08-08 09:26:05 +02:00
Jochen Hoenicke
e991722d9c
TREZOR: Remove sighash from input signatures
TREZOR firmware expects signatures not to contain the trailing sighash
byte.  This fixes issue fyookball/electrum#47 which also applies to
electrum.
2017-08-04 10:57:31 +02:00
neocogent
b7c0e38ac4 fix spelling module name 2017-07-23 06:41:26 +07:00
ThomasV
46e6023578 comment out raise trezor plugin 2017-07-10 09:31:13 +02:00
ThomasV
cb81ef6f34 fix sequence in trezor plugin (follow-up to d4e8f4be) 2017-07-09 18:55:26 +02:00
ThomasV
777a3aa8bf Fixes for TrustedCoin plugin:
- reset billing_info after broadcast
- when bumping tx fee, do not use Trustedcoin output
2017-07-06 16:03:21 +02:00
ThomasV
4934ae3cd9 follow-up previous commit 2017-06-27 11:00:14 +02:00
Mqrius
a4e49c2d8b Trezor plugin: Sort multisig pubkeys before signing
See issue #2550
2017-06-25 14:26:26 +01:00
djb
4e40a0bc5b
upgrade digital bitbox plugin for firmware 2.2.2 2017-06-23 16:08:55 +02:00
ThomasV
265fd5ad3f fix #2410 2017-05-21 10:21:32 +02:00
ThomasV
6ca52153c3 Trustedcoin: prepaid-only billing 2017-05-13 11:45:06 +02:00
ThomasV
d3918ef611 fix #2394 2017-05-10 11:11:08 +02:00
ThomasV
853b6169ed hardware wallet support for locktime 2017-04-19 15:02:25 +02:00
ThomasV
f7096010f0 add segwit to get_preimage_script 2017-04-18 11:12:46 +02:00
ThomasV
79bda98ba2 cleanup unused code 2017-04-18 10:48:09 +02:00
ThomasV
9140c1fc89 fix #2352 2017-04-18 10:43:24 +02:00
ThomasV
7c93d787ed follow-up a610e21279 2017-04-13 11:58:42 +02:00
BTChip
6fdbeddf08 RBF support 2017-04-12 19:35:00 +02:00
BTChip
a610e21279 Segwit support 2017-04-12 19:15:43 +02:00
ThomasV
1d84029173 input_script: return txin.scriptSig if available. replace txin.is_coinbase with type. fixes #2321 2017-03-21 09:08:16 +01:00
ThomasV
ded07132d2 Merge pull request #2313 from digitalbitbox/170319/many_inputs
stream signing for tx with large number of inputs
2017-03-20 06:38:16 +01:00
ThomasV
e80ce35a1d fix #2315 2017-03-20 06:34:37 +01:00
djb
ab8c51e233
stream signing for tx with large number of inputs 2017-03-19 18:18:19 +01:00
djb
2b9282a00e
Bypass plugins/hw_wallet/qt.py bug when setting initial devices password 2017-03-14 17:17:56 +01:00
ThomasV
b27aeadb71 Merge pull request #2291 from saleemrashid/testnet-trezor
TREZOR Testnet support
2017-03-14 05:55:38 +01:00
Saleem Rashid
2a45e32e0e TREZOR: Use correct Testnet constants 2017-03-13 19:23:55 +00:00
Saleem Rashid
2dc7ba96c4 TREZOR: Update qt_generic for new InstallWizard
Broken by 45f2558
2017-03-13 19:21:55 +00:00
ThomasV
024de7afa5 kivy: trigger_update_history 2017-03-13 15:07:35 +01:00
ThomasV
3b0383128f fix trustedcoin wallet creation 2017-03-11 15:51:00 +01:00
ThomasV
8e368d2251 dbb: derivation must be byte string 2017-03-11 15:38:51 +01:00
BTChip
aa7434bdaa Fix CPFP on change 2017-03-11 13:13:20 +01:00
ThomasV
2b0a7bcd73 Merge branch 'master' of git://github.com/spesmilo/electrum 2017-03-10 14:16:57 +01:00
ThomasV
e43abb5c96 fix trustedcoin wizard. fixes #2276 2017-03-10 14:16:46 +01:00
djb
5b0d5814b9
dbb - bugfix after an upstream change 2017-03-10 11:49:59 +01:00
ThomasV
a921f5becf kivy labels plugin: use Clock 2017-03-09 14:48:31 +01:00
ThomasV
9cb576a88c fix multisig update_password 2017-03-04 10:30:05 +01:00
ThomasV
ddcdbfa181 ledger: pass str to message dialog 2017-03-02 08:42:49 +01:00