Commit Graph

249 Commits

Author SHA1 Message Date
SomberNight efd07f727a fix testnet 2017-09-14 02:06:08 +02:00
ThomasV 7dbd612d5d Read default server list from file. Update list with 1.1 servers. Remove nolnet option. 2017-09-13 11:33:28 +02:00
ThomasV 63a1db1172 make xpub/xprv version information user-visible 2017-09-13 11:33:28 +02:00
ThomasV d9f2edf6b0 support native segwit transactions 2017-09-13 11:32:40 +02:00
ThomasV 8c5b6bdaf3 Read default server list from file. Update list with 1.1 servers. Remove nolnet option. 2017-09-13 11:30:30 +02:00
ThomasV f56a8702c2 support sending to segwit native addresses (bip173) 2017-08-31 19:05:03 +02:00
ThomasV 4d3e079778 rename bc_address functions 2017-08-31 10:21:57 +02:00
ThomasV b9da5afa9d replace bitcoin.is_valid 2017-08-31 10:06:13 +02:00
ThomasV 794baa16c8 move address_to_script to bitcoin.py 2017-08-31 09:59:40 +02:00
ThomasV 227a553a99 update ripemd module for python3 2017-08-26 08:28:25 +02:00
ThomasV 126bbff948 Revert "remove python implementation of ripemd160"
This reverts commit 56c4a8746f.
2017-08-26 08:28:25 +02:00
ThomasV 108d7d39f0 python3: fix password decode 2017-08-26 08:28:24 +02:00
fr3aker 8a15581d8e fix imports 2017-08-26 08:28:24 +02:00
Dmitry Sorokin 362ca96f38 x509 fixes and plugins 2017-08-26 08:28:24 +02:00
Dmitry Sorokin f02d18226b misc ui and lib fixes for py3 2017-08-26 08:27:47 +02:00
Dmitry Sorokin d304ccdf17 py3 in qtgui 2017-08-26 08:27:47 +02:00
Dmitry Sorokin 5be78950ca py3 2017-08-26 08:27:47 +02:00
ThomasV 6b45070b2f allow arbitrary derivations with bip39 seeds, to let multibit users recover funds 2017-06-20 10:47:02 +02:00
ThomasV 31ab5b2e0a pass hash to pubkey_from_signature 2017-06-15 10:03:18 +02:00
ThomasV dd0b018a35 add configurable checkpoint to blockchain verification; use genesis as default 2017-03-23 11:58:56 +01:00
ThomasV 8fabd1245d replace PyCrypto with PyCryptodome 2017-03-09 10:47:53 +01:00
ThomasV 6977ba603b Merge pull request #2236 from kyuupichan/master
Add support for BU's nolnet
2017-03-06 12:28:45 +01:00
ThomasV ee2e9f6092 update MAX_FEE_RATE constant 2017-03-05 22:19:46 +01:00
Neil Booth 8888a50549 Add support for BU's nolnet
Also update testnet servers
Add missing self. in print_error call
2017-03-04 11:01:32 +09:00
ThomasV fcc92c1ebd Wallet file encryption:
- a keypair is derived from the wallet password
 - only the public key is retained in memory
 - wallets must opened and closed explicitly with the daemon
2017-03-01 13:58:04 +01:00
ThomasV 7e76e4ac55 AES: use PyCrypto if available 2017-03-01 10:37:48 +01:00
ThomasV b1f27d7e84 fix: missing parameter 2017-02-26 08:27:25 +01:00
ThomasV e1515743cd replace slowaes with pyaes 2017-02-10 17:22:52 +01:00
ThomasV 17cfc03540 use serialize_xpub/xprv 2017-02-05 11:30:32 +01:00
ThomasV 6bfbc9a718 fix: replace remaining occurences of public_key_to_bc_address 2017-01-29 06:34:35 +01:00
ThomasV f937472928 fix typos 2017-01-26 19:23:17 +01:00
ThomasV ce11a2fac5 replace segwit wallet class with custom xpub type 2017-01-26 13:53:31 +01:00
ThomasV 3a64ec0f2e Initial segwit support (testnet only) 2017-01-25 21:42:15 +01:00
ThomasV 132fca86b2 fix #2133: deserialize_xkey 2017-01-23 20:49:26 +01:00
ThomasV a2e7fc32ef Add fee slider class with network callback. 2017-01-09 12:36:15 +01:00
ThomasV 73390f1769 fix: missing global 2017-01-07 19:49:20 +01:00
ThomasV 8b6efaff2d remove regexp test from is_address; non-matching strings will fail anyway 2017-01-07 18:42:51 +01:00
ThomasV 4d41c36cbb add headers url for testnet 2017-01-07 18:39:41 +01:00
ThomasV d042d6e970 initial testnet support (petrkr) 2017-01-07 16:58:59 +01:00
ThomasV cda0d14a13 fix issue #2064 2016-12-21 13:30:35 +01:00
ThomasV 121ac07b01 wizard: add checkbox for passphrases. allow passphrases with 2fa seeds 2016-09-30 01:15:28 +02:00
ThomasV c32f75a313 wizard: display seed type. restore 2fa if needed 2016-09-28 06:30:00 +02:00
ThomasV 296f30b924 trustedcoin: use 12-word seeds with separate derivations 2016-09-27 13:21:25 +02:00
ThomasV 1e4cdab096 normalize passphrase 2016-09-02 10:20:04 +02:00
ThomasV b87c5d12fa - fix sign/verify messages
- fix hardware wallet tx_outputs
2016-08-14 13:03:52 +02:00
ThomasV 67780bb8b9 changes for new toolchain 2016-07-28 13:06:58 +02:00
akshayaurora 07c5f02639 changes for new toolchain 2016-07-27 17:57:12 +02:00
ThomasV 0273936b07 Discretize fee levels (follow-up 3314b3a). Fixes #1753 2016-05-26 09:23:42 +02:00
ThomasV 305843999e Relicensing 2016-02-24 10:20:30 +01:00
ThomasV 56c4a8746f remove python implementation of ripemd160 2016-01-26 15:18:28 +01:00
Neil Booth b878c010da Minikey: minimum length 20
On second thoughts there seems little reason to accept text
of length <= 20 for minikeys.
2016-01-21 08:11:50 +09:00
Neil Booth f7859c041e Support Casascius minikeys 2016-01-19 22:00:16 +09:00
ThomasV 0d52911561 define constants for tx output types 2016-01-14 17:15:50 +01:00
ThomasV da8fce1914 if available, use relayfee from server instead of hard coded value 2016-01-14 16:06:22 +01:00
ThomasV 86a0103a7f increase min_relay_tx_fee, and make dust_threshold a function 2015-11-12 14:31:17 +01:00
ThomasV d68042e76e enforece low S value in signatures (per BIP62) 2015-10-05 09:15:22 +02:00
ThomasV f583fcfedb do not import dns on android 2015-08-18 12:15:56 +02:00
Roman Zeyde abc7429b0f bitcoin: remove multiple imports 2015-08-09 19:35:02 +03:00
ThomasV 471cab6089 do not base64encode signatures in requests 2015-07-14 16:37:04 +02:00
ThomasV f3c4a55e77 add dnssec verification to payment requests 2015-07-07 08:59:03 +02:00
ThomasV 15f592f022 trezor multisig: build xpub from pubkey 2015-07-05 23:29:36 +02:00
ThomasV 7933ac4324 reformatting 2015-07-04 12:07:33 +02:00
ThomasV 0c37009cdb fix is_address (forgot p2sh) 2015-07-02 08:53:17 +02:00
ThomasV cf5328b143 do not accet testnet addresses in bitcoin.is_address 2015-07-02 08:48:48 +02:00
Roman Zeyde 6bb9ee0cf7 bitcoin: remove dead code 2015-06-13 08:34:56 +03:00
Neil Booth 03e53a5e01 Create a constant for 100000000 and use it
Use same name as is in bitcoind.
Note that one of the constants in text.py had the wrong number
of zeroes previously...
2015-06-01 14:53:36 +09:00
ukurokawa e708c446a8 Dust threshold should be 546 2015-04-11 11:41:02 -04:00
K 41127db32d Let wallet recovery use 64 byte hex strings and 24 word seeds.
1. Allow wallet recovery from 64 byte hex strings.
2. Allow use of 24 word legacy seeds created from 64 byte hex strings.
2015-03-19 08:20:32 -07:00
ThomasV 46c290e30d use base43 in order to send transactions by QR code 2015-02-26 13:59:29 +01:00
ThomasV 059d381ba8 backport padding fix to AES module 2015-02-03 08:01:01 +01:00
ThomasV 16c72d286c try to import all python dependencies from the main script 2015-01-26 14:14:16 +01:00
ThomasV 906e0ecd14 rename SEED_PREFIX constant 2015-01-21 23:43:26 +01:00
ThomasV da968b60e4 drop support for multiple accounts (bip44) in standard wallets 2015-01-05 00:33:10 +01:00
ThomasV 63c7a27d7e add InvalidPassword exception 2014-12-03 22:35:05 +01:00
ThomasV bde0ca3ea1 set default fee to 0.5mBTC/kb 2014-09-15 07:35:05 +02:00
ThomasV cef75e9e7b new seed_version: remove whitespaces only between CJK characters 2014-09-13 19:31:05 +02:00
ThomasV 93d073457c add spanish wordlist and remove accents 2014-09-11 14:20:10 +02:00
ThomasV 6361abaf4d extended seed prefix 2014-09-09 11:51:45 +02:00
ThomasV cc71dfea86 check all bytes in strip_pkcs7_padding 2014-09-01 15:37:38 +02:00
ThomasV de1123e4a0 ecies: update description in comment 2014-09-01 15:20:52 +02:00
ThomasV a97375dbb4 ecies: use the same KDF to derive aes init vector and aes and hmac keys. 2014-09-01 14:57:08 +02:00
ThomasV eed37c41b5 ecies: don't drop sign of ephemeral key 2014-09-01 13:15:15 +02:00
ThomasV 2c51b0aa14 update mnemonic imports 2014-08-29 12:27:10 +02:00
ThomasV 4dcdcbc068 move mnemonic to separate class and use slush's wordlist. new commands: make_seed and check_seed 2014-08-28 15:37:42 +02:00
ThomasV ef74ae57ff fix tests 2014-08-25 15:32:21 +02:00
ThomasV bf3f67c043 do not expose mnemonic_to_seed 2014-08-13 15:43:54 +02:00
Chris Glass 9baaaef746 Made use of fewer constants 2014-06-27 16:15:04 +02:00
Chris Glass 0ac02bf040 Made all bip32 primitives testnet compatible. 2014-06-27 15:44:43 +02:00
ThomasV 54973062bd restore from xprv 2014-06-25 16:45:55 +02:00
Chris Glass 413945435a Added private/public key tests
Including converting from a private key to a public key, and
deriving the primary address from a private key.
2014-06-25 08:27:45 +02:00
Chris Glass 73c33820db Moved bitcoin.py tests to their own file
This allows standard python testing tools to discover and run them.
2014-06-25 07:35:49 +02:00
ThomasV 31226b8a34 add pbkdf2 dependency 2014-06-05 16:19:13 +02:00
ThomasV 1045b537aa unit test for aes 2014-06-03 13:15:41 +02:00
ThomasV 30b608c6fb move tests to unittest format 2014-06-03 09:34:59 +02:00
ThomasV 650ef92c5f class MyVerifyingKey, with constructor to submit to python-ecdsa 2014-05-30 21:24:23 +02:00
ThomasV 501bb92584 Remove Bitcoin address from serialized encryption format. Enable encrypt commands, fix ser_to_point() and add some tests 2014-05-28 12:20:04 +02:00
Lucas Ryan a3d02525e2 in ecies encryption, mac headers+ciphertext instead of just ciphertext 2014-05-27 11:37:37 -07:00
Lucas Ryan 93f61f1717 replaced jackjack encryption with corrected ecies implementation 2014-05-27 10:55:51 -07:00
ThomasV c76da17262 utf8 encoding for seed encryption 2014-05-04 20:31:05 +02:00
ThomasV c9fc6275ab move private key methods from wallet to accounts 2014-05-04 19:43:15 +02:00