Commit graph

264 commits

Author SHA1 Message Date
SomberNight
a94e1d92a3
bitcoin.py: nicer exception in deserialize_privkey if prefix byte is invalid
related: #4364
2018-05-13 16:26:00 +02:00
SomberNight
b175c6b609
fix #4360 2018-05-13 03:11:20 +02:00
SomberNight
e13183ea7a
bitcoin.py: SCRIPT-related clean-up. transaction.py: construct_witness 2018-04-27 16:16:27 +02:00
SomberNight
1d6f000868
transaction.py: shortcut witness/scriptSig serialisation 2018-04-27 16:16:14 +02:00
SomberNight
b3110b3b46
bitcoin.py: implement add_number_to_script. 2018-04-27 16:15:44 +02:00
SomberNight
4b89b1e270
implement script_num_to_hex 2018-04-27 16:15:43 +02:00
SomberNight
44bb1e9993
bitcoin.py: fix op_push
8cbc5c4be4/src/script/script.h (L464)
fdc2bc867b/txscript/scriptbuilder.go (L151)
2018-04-14 16:13:51 +02:00
SomberNight
76e67daadd
changed some asserts to raise-exceptions in lib 2018-04-07 17:01:38 +02:00
SomberNight
a00439b6f8 fix #4158 2018-03-22 07:27:18 +01:00
SomberNight
77c8010517 bitcoin.py: parameterise a few address-related methods with network 2018-03-20 17:02:49 +01:00
ThomasV
35ae2a0064
Merge pull request #4143 from SomberNight/wallet_file_exception
Catch wallet file related exceptions in Qt wizard
2018-03-19 11:57:24 +01:00
SomberNight
22061b4555 transaction.get_address_from_output_script now handles witness version > 0 2018-03-18 06:18:48 +01:00
SomberNight
61a45edee0 Catch wallet file related exceptions in Qt wizard. 2018-03-17 22:56:20 +01:00
SomberNight
a6841cbd5f fix #4099: serialisation of txns with negative version number 2018-03-13 01:02:03 +01:00
SomberNight
e31c2d491d fix #4093 2018-03-11 07:18:07 +01:00
SomberNight
99647fc070 careful with exceptions.. 2018-03-10 08:16:19 +01:00
SomberNight
81b6d65764 refactor network constants 2018-03-04 22:10:59 +01:00
ThomasV
24054ac399
Merge pull request #3943 from SomberNight/fee_cleanup
clean up fees a bit
2018-02-23 10:11:20 +01:00
ThomasV
381de43cac
Merge pull request #3925 from SomberNight/wif_format_change
change WIF to "txin_type:old_wif"
2018-02-21 11:10:03 +01:00
SomberNight
4ddda74dad clean up fees a bit 2018-02-21 03:22:26 +01:00
SomberNight
51c235a8be privkeys WIF: store in extended WIF internally; export as "txin_type:old_wif" 2018-02-19 20:42:53 +01:00
SomberNight
ea66333e48 bip32 version numbers (xpub headers): use t/u/U/v/V for testnet 2018-02-13 16:45:41 +01:00
ThomasV
c3f3843cc3 Add memory pool based fee estimates
- fee estimates can use ETA or mempool
 - require protocol version 1.2
 - remove fee_unit preference
2018-02-05 12:23:32 +01:00
SomberNight
c811c5c9d9 allow encrypting watch-only wallets. initial support for hw wallet storage encryption. 2018-01-28 02:09:44 +01:00
ThomasV
44a83c2401 read checkpoints file in NetworkConstants, add it to setup.py 2017-12-12 11:10:50 +01:00
SomberNight
66cce115ef more robust commands.getprivatekeys() and bitcoin.is_segwit_address() 2017-11-19 23:46:59 +01:00
Justin Turner Arthur
857eb4ac1d Remove unused imports. Explicitly import a few deep imports. 2017-11-13 02:28:00 -06:00
SomberNight
c65d01ea96 file i/o: use 'with' keyword 2017-11-12 14:33:46 +01:00
SomberNight
9e2cd17790 sweeping minikeys: search for both compressed and uncompressed pubkeys 2017-11-11 11:02:30 +01:00
SomberNight
0db5ea67a0 bitcoin.NetworkConstants: easier changing between testnet and mainnet 2017-11-09 17:47:57 +01:00
ThomasV
2774126db6 fix #3170 2017-11-01 22:44:13 +01:00
ThomasV
8623d8c258 fix magic number for p2wsh-p2sh 2017-11-01 21:25:43 +01:00
ThomasV
f36024e216 hardware wallets: pass xtype to get_xpub 2017-10-31 11:45:25 +01:00
SomberNight
c05549c8cd follow-up prev commit: revert "strict checks" for old seeds 2017-10-29 20:04:31 +01:00
SomberNight
d45e13553a old seeds: normalize, and stricter is_old_seed() 2017-10-29 17:34:45 +01:00
ThomasV
6f3c822867
Merge pull request #3125 from SomberNight/sweep_p2pk
try to sweep p2pk outputs from old type WIF privkeys
2017-10-27 21:01:56 +02:00
ThomasV
a220932711 serialize txin-type in xpub/xprv 2017-10-27 12:04:26 +02:00
SomberNight
1c31177d03 try to sweep p2pk outputs from old type WIF privkeys 2017-10-26 01:17:46 +02:00
ThomasV
8683d71711 fix: witness serialization 2017-10-22 12:39:36 +02:00
SomberNight
aa1289fa5d bitcoin.py AES: implement our own PKCS7 padding 2017-10-22 02:32:58 +02:00
ThomasV
0a648e2b1c cleanup commented lines 2017-10-17 12:59:59 +02:00
SomberNight
8a07c2654c fix: py3 in bitcoin.py: aes_encrypt_with_iv() and aes_decrypt_with_iv() 2017-10-17 07:36:04 +02:00
ThomasV
0dbb976baf update unsigned tx format, so that imported wallets can sign all address types 2017-10-14 15:47:36 +02:00
SomberNight
843aec80d7 fix: bitcoin.is_minikey() was broken 2017-10-11 16:27:39 +02:00
ThomasV
d1657cd62c rm deprecated functions 2017-10-11 12:24:44 +02:00
ThomasV
15ab48aaa8 fix sweep 2017-10-05 20:08:16 +02:00
ThomasV
e299df7b82 add message signing/decryption for segwit addresses 2017-10-05 14:44:44 +02:00
ThomasV
0f4b5abc15 add use_compressed_pubkeys field to keystores. fix #2973 2017-10-04 13:04:21 +02:00
ThomasV
9f6e174b4f fix #2961 2017-10-04 09:24:34 +02:00
ThomasV
4273c607b7 fix #2961 2017-10-03 14:16:43 +02:00