SomberNight
8390da9b7b
bitcoin.py: dedupe pubkeyhash_to_p2pkh_script
6 years ago
SomberNight
cc42b4a226
transaction: segwit input signing was doing quadratic hashing
performance improvements are negligible for typical transactions though.
some measurements of wall clock time for Transaction.sign (with libsecp256k1):
0.11 sec -> 0.08 sec ( 61 p2wpkh-p2sh inputs, 1 output)
2.48 sec -> 0.75 sec ( 522 p2wpkh-p2sh inputs, 1 output)
13.2 sec -> 1.8 sec (1445 p2wpkh inputs, 1 output)
176.4 sec -> 7.6 sec (5542 p2wpkh inputs, 1 output)
6 years ago
SomberNight
a14016275b
transaction.serialize_preimage: trivial clean-up
6 years ago
SomberNight
aadde9be17
transaction: fix remove_signatures
closes #5491
6 years ago
SomberNight
94b721baa4
wallet: fix type error in _bump_fee_through_decreasing_outputs
fixes #5483
6 years ago
SomberNight
5effaaf428
TxOutput usage: trivial clean-up
6 years ago
SomberNight
3385a94753
logging: basics
6 years ago
SomberNight
d4a2e9634f
bitcoin: disallow importing/sweeping segwit scripts with uncompressed pubkey
fixes #4638
6 years ago
SomberNight
eb04551f9a
accept base43-encoded tx in Qt "Load transaction"
When encoding transactions as QR codes, we encode the tx bytes as base43
first. This makes it easier to load a transaction if the user manually
decodes the QR code.
6 years ago
SomberNight
e7f38467d7
move opcodes to bitcoin.py
6 years ago
SomberNight
c03c17f1c7
transaction: replace custom enum type for opcodes with stdlib enum
based on Electron-Cash/Electron-Cash@99e60b49413e103dd8e9b7cfaf22e69626db6594
6 years ago
SomberNight
5313591c28
synchronizer: disconnect from server if cannot deserialize txn
6 years ago
SomberNight
d820f9ad37
transaction: change default version to 2
6 years ago
SomberNight
e059867314
paymentrequest: be explicit about only allowing "addresses"
6 years ago
SomberNight
e1b85327be
transaction: clean-up multisig_script
6 years ago
SomberNight
71ac3bb305
RBF batching: some fixes
6 years ago
ThomasV
2b8d801b36
if possible, batch new transaction with existing rbf transaction
6 years ago
SomberNight
8b61d18a9f
transaction.serialize_output: use namedtuple fields
6 years ago
SomberNight
1686a97ece
bip70 PRs: use aiohttp instead of requests. use proxy. small fixes.
6 years ago
SomberNight
9037f25da1
kill old-style namedtuples
6 years ago
SomberNight
78258a3a95
fix #4802
6 years ago
SomberNight
082a83dd85
rename crypto.Hash to sha256d
6 years ago
SomberNight
a88a2dea82
split bip32 from bitcoin.py
6 years ago
SomberNight
2d352bc3f0
transaction.BIP69_sort: use namedtuple fields
6 years ago
SomberNight
4d43d12abf
transaction: don't convert p2pk to p2pkh address when displaying
also closes #4742
6 years ago
SomberNight
ab1ec57429
trezor and clones: rm dead code
see Electron-Cash/Electron-Cash#872
see Electron-Cash/Electron-Cash#874
6 years ago
SomberNight
ce5cc135cd
transaction: make get_address_from_output_script safer
closes #4743
6 years ago
SomberNight
53fd6a2df5
transaction: always sort i/o deterministically
this was previously the caller's responsibility; now it's done implicitly when creating a txn
6 years ago
SomberNight
8467f95a28
rm @profiler from Transaction.estimated_size
in certain situations, estimated_size is called hundreds of times, flooding the log
7 years ago
SomberNight
1b19cdd0f4
transaction.py: fix script_GetOp for malformed scripts
related fyookball/electrum#829
7 years ago
SomberNight
04c1b522d6
minor fixes for prev
use TxOutputHwInfo namedtuple
warn user if device is set to wrong chain
undo parts of prev re testnet. fix p2wpkh.
testnet support. and minor stuff
7 years ago
Peter D. Gray
0bcea80bdf
Support for new hardware wallet: Coldcard
build-wine/deterministic.spec: add Coldcard plugin and ckcc-protocol dependancy
Require version 0.7.2 of ckcc-protocol (window fixes)
Rework import paths to new standards
Updated icons
New minimum version, for latest PSBT constants
Upgrade to final PSBT (BIP 174) standard encoding
Remove log noise
Show bootloader version number as well
Handle case where libraries are missing better
Remove noise about missing packages, for rest of world
Add reference to ckcc-protocol module/data
Remove dead code
Beef up the README more
Slightly better looking
Add version numbers and upgrade firmware feature
Split out DFU support into own file
First pass at adding Coinkite Coldcard hardware wallet to Electrum
7 years ago
SomberNight
88fc62e8f7
fix #4626
7 years ago
SomberNight
5f3408dd70
transaction.py: introduce TxOutputHwInfo namedtuple
7 years ago
SomberNight
2eb72d496f
transaction: introduce TxOutput namedtuple
7 years ago
Jean-Christophe Rona
02c30e3d52
Add support for Archos Safe-T mini hardware wallet ( #4445 )
commit 10c46477f3a6f2fbc0596345511e0994253081eb
Author: SomberNight <somber.night@protonmail.com>
Date: Wed Jul 25 19:40:05 2018 +0200
backport changes of trezor plugin
commit 213619e880f709188c1ea6272758896748e681a8
Merge: a855b75b6 6899ca252
Author: Jean-Christophe Rona <jc@rona.fr>
Date: Wed Jul 25 18:45:19 2018 +0200
Merge branch 'master' into safe-t-mini
commit a855b75b6f5af5f707c4680d0bac79eb66a85ace
Author: Jean-Christophe Rona <rona@archos.com>
Date: Wed Jul 25 18:37:12 2018 +0200
Safe-T: Switch to safet 0.1.3 to remove the rlp dependency
commit 9bee44ca33289158c91c03d47dec45de6577f17b
Author: SomberNight <somber.night@protonmail.com>
Date: Wed Jul 18 14:01:10 2018 +0200
safe-t: bump min fw to 1.0.5
older fw has a bug when restoring from seed
commit 01816607e8ba308cb5cff96b5fb844e4f6b8fcc1
Author: SomberNight <somber.night@protonmail.com>
Date: Wed Jul 18 13:57:17 2018 +0200
safe-t: fix rlp version to avoid eth stuff
commit 430206bea1fa10b762ff953fbc7652ce0d0e939d
Merge: a999ae266 b4b862b0c
Author: SomberNight <somber.night@protonmail.com>
Date: Wed Jul 18 13:29:41 2018 +0200
Merge branch 'master' into pr/4445
commit a999ae266f499f180946d53d4e860cc871d562ab
Author: Jean-Christophe Rona <rona@archos.com>
Date: Tue Jun 19 14:18:03 2018 +0200
Safe-T mini: Remove supported coins
This is not really useful there.
commit 7922df1031b2c4b132f7f9c90232480b5bf9585c
Author: Jean-Christophe Rona <rona@archos.com>
Date: Tue May 29 16:43:37 2018 +0200
Safe-T mini: Add support for the Safe-T mini
7 years ago
Janus
097ac144d9
file reorganization with top-level module
7 years ago
ThomasV
5a5502303f
make add_signature_to_txin an instance method
7 years ago
SomberNight
174d14ba89
add comment to guess_txintype_from_address
7 years ago
SomberNight
170f41f50d
tests: sweeping p2pk
7 years ago
SomberNight
46fdbbbce5
change partial txn serialization format for imported addresses txins
offline signing with segwit WIF keys now works.
offline seed + online address signing now works.
7 years ago
SomberNight
1b834a7a78
fix RBF
7 years ago
SomberNight
8f7a4cf876
follow-up 0438bbc2c2
the previous was quadratic in len(tx.inputs())
7 years ago
SomberNight
0438bbc2c2
transaction.py: change update_signatures API. fix trezor segwit signing.
Traceback (most recent call last):
File "...\electrum\lib\transaction.py", line 498, in parse_witness
if txin['witness_version'] != 0:
KeyError: 'witness_version'
7 years ago
SomberNight
05e5ef16eb
transaction.py: more flexible sign() method
handles both x_pubkeys and pubkeys in keypairs
7 years ago
SomberNight
4193c7ff14
transaction.py: wtxid is undefined for uncomplete txns
7 years ago
SomberNight
e8b5bcf31e
fix incorrect txid for partial segwit txns
follow-up #4405
7 years ago
SomberNight
12c5474cf1
stricter tx deserialization: forbid negative output amount values
7 years ago
SomberNight
0b78cb5e6b
stricter tx deserialization: forbid output amount values over 21 million btc
7 years ago
SomberNight
71ce7cce6d
stricter tx deserialization: forbid junk at the end
7 years ago