Commit Graph

  • 40709495fc Merge branch 'master' of github.com:kmels/bitcoinj Carlos Lopez-Camey 2014-07-27 13:19:06 -06:00
  • e208430ab6 adds helper methods Transaction.getWalletOutputs, TransactionOutput.getAddressFromPubKey and TransactionOutput.getAddressFromScript. Carlos Lopez-Camey 2014-07-27 13:14:08 -06:00
  • 539037ec0e Switch to accelerated secp256k1: huge speed improvements. Mike Hearn 2014-07-26 14:56:34 +02:00
  • 6ae4662f93 Upgrade to Bouncy/Spongy Castle 1.51 Mike Hearn 2014-07-26 14:48:51 +02:00
  • 55803b15ac Fix Script.getNumberOfBytesRequiredToSpend for P2SH Kosta Korenkov 2014-07-26 01:05:22 +04:00
  • b2efb0ddc2 Close connections in PostgresFullPrunedBlockStore. same as: b6f61e8850 freak 2014-07-22 11:51:19 -07:00
  • cb0d052e08 use List interface instead of LinkedList implementation Jiri Peinlich 2014-07-21 13:29:18 +02:00
  • c6659bcf5f BIP38: Fix test using supplementary characters in the passphrase. Andreas Schildbach 2014-07-16 23:51:59 +02:00
  • 4a45d4a27f Print full backtrace when a wallet extension fails to load. Mike Hearn 2014-07-23 15:40:14 +02:00
  • afb732c528 Restore new tx purposes correctly. Mike Hearn 2014-07-22 16:11:29 +02:00
  • 626117bc29 Add logging for output disconnection and reconnection. Mike Hearn 2014-07-22 16:04:26 +02:00
  • 92544e9d47 Add ASSURANCE_CONTRACT_CLAIM/PLEDGE/STUB to the purpose field. Mike Hearn 2014-07-21 16:27:14 +02:00
  • bb362aa483 WalletTool: make raw-dump output a little more helpful. Mike Hearn 2014-07-21 16:23:43 +02:00
  • 8ce96e82e7 Wallet Template: bugfix in ui logic for encryption Mike Hearn 2014-07-21 16:08:20 +02:00
  • a5e4d046df Adjust the behaviour of the current key mechanism to be more like what gui wallets really need. Mike Hearn 2014-07-15 20:54:28 +02:00
  • 96ee76e506 Update bip38 test3 ignore message again now the problem is better understood. Mike Hearn 2014-07-15 20:52:08 +02:00
  • e143b2b4cb Re-organise the layout of the Wallet file and introduce IntelliJ compatible editor regions, so parts of the code can be folded by feature area. This also makes it easier to understand what exactly the wallet does and why it's so huge. Mike Hearn 2014-07-15 17:14:59 +02:00
  • 5f65465f03 Remove the HD wallets todo list - there's now sufficiently little left to do that it's no longer useful. Other stuff should be put into the bug tracker. Mike Hearn 2014-07-15 16:31:56 +02:00
  • b6c1e385c0 Update wallet todo list. Mike Hearn 2014-07-15 16:31:03 +02:00
  • 5e1942f3f0 Made some methods public in BasicKeyChain. Fixes in deterministic key generation Giannis Dzegoutanis 2014-07-14 18:16:30 +02:00
  • 72b7929523 Getter for addresses watched by wallet. Andreas Schildbach 2014-07-15 14:37:47 +02:00
  • 15060572a9 Fix some exception messages in BIP38PrivateKey. Andreas Schildbach 2014-07-15 13:58:58 +02:00
  • 0addfd63ec Fix reason why BIP38 test vector is failing, Java strings can contain null characters just fine. Mike Hearn 2014-07-15 14:05:04 +02:00
  • bab16650f9 HD Wallets: fix key lookahead and auto-advance so it works as intended. Mike Hearn 2014-07-15 13:41:37 +02:00
  • 89b4b78dc4 fixed MAX_STANDARD_TX_SIZE to match bitcoin core Aaron Voisine 2014-07-14 16:19:53 -07:00
  • 5397775f50 Use released version of easybind Mike Hearn 2014-07-14 13:36:39 +02:00
  • 94968a491e Turns out there was both a JFX way to do this, plus EasyBind which is even more concise. Mike Hearn 2014-07-13 22:28:44 +02:00
  • 8068230042 Remove superfluous AddressFormatException from BIP38PrivateKey.decrypt(). Andreas Schildbach 2014-07-11 22:00:43 +02:00
  • aaf349ea6a Fix Java7'ism. Andreas Schildbach 2014-07-11 20:32:38 +02:00
  • 5044a24f3b Add forgotten image file Mike Hearn 2014-07-13 22:09:44 +02:00
  • aa86642ffd WalletTemplate: introduce a simple wallet model and use the FX reactive bindings framework to clean up and fix some bugs. Empty wallet button now is disabled when the wallet is empty. Mike Hearn 2014-07-13 20:38:20 +02:00
  • 29a11e22b7 WalletTemplate: add support for encryption. Scrypt parameters are calculated by testing CPU speed. A pie chart shows smooth decryption progress. Mike Hearn 2014-07-13 20:04:08 +02:00
  • d6cf090f5c Take out old WalletTool code that let you specify entropy as hex. Mike Hearn 2014-07-11 13:12:40 +02:00
  • eb44bec154 Minor style cleanups in WalletSettingsController Mike Hearn 2014-07-11 00:48:54 +02:00
  • 05877abff7 Wallet template: add a UI to show the users seed words and demonstrate how to do a restore from seed with WalletAppKit. Mike Hearn 2014-07-11 00:27:00 +02:00
  • 78383f98f4 WalletAppKit: support for restoring a wallet from a seed. The old wallet is moved out of the way. Mike Hearn 2014-07-11 00:26:37 +02:00
  • 68bb476430 Clear an NPE in wallet printing that could occur when printing a wallet with private keys included. Mike Hearn 2014-07-10 21:58:27 +02:00
  • 8e6e2256bc WalletAppKit/Template: Cleaner way to check if the app is already running. Backport from Lighthouse. Mike Hearn 2014-07-10 21:44:38 +02:00
  • 13b2f2104c Less debug spam when sending bloom filters to keep FP rate low. Mike Hearn 2014-07-10 21:38:32 +02:00
  • 350f2addd3 Wallet Template: fix rendering of balance label after coin toFriendlyString change. Mike Hearn 2014-07-10 21:38:18 +02:00
  • 46d4c3487e Generalise the crypto DRM workaround and use from the BIP38 codepath too. Mike Hearn 2014-07-10 15:33:47 +02:00
  • 36b1eb7dee Disable code that no longer compiles in WalletTool pending fix. Mike Hearn 2014-07-10 15:33:34 +02:00
  • 682bd035fc Fix a couple of static method via instance warnings. Mike Hearn 2014-07-10 15:33:10 +02:00
  • a750a14edd Implement BIP38 password encrypted private keys, decryption only. Contains all the test vectors from the spec minus one that is incompatible to Java. Andreas Schildbach 2014-07-06 17:25:36 +02:00
  • 03652298e1 Dead transaction does not contain confidence depth and should not fail when sorting. Justas 2014-07-08 20:03:44 +03:00
  • 9446b1b625 added test for HDUtils.formatPath and changed HDUtils.parsePath to handle paths that start with the letter M Giannis Dzegoutanis 2014-07-09 20:15:34 +02:00
  • fec6cbc7df Remove support for mnemonic-less keychains Devrandom 2014-07-08 14:02:30 -07:00
  • 2fae12064c Fix BIP39 implementation Devrandom 2014-07-07 17:11:41 -07:00
  • 3420bdf8ac Add cobertura support Devrandom 2014-07-07 17:00:06 -07:00
  • 483fd8a908 Expose TransactionBroadcast.random Mike Hearn 2014-07-09 13:07:41 +02:00
  • c7fe06d4c7 Fix java package of ExponentialBackoffTest. Andreas Schildbach 2014-07-08 12:05:20 +02:00
  • f7070df152 Allow TestWithNetworkConnections subclasses to override the wallet with their own. Mike Hearn 2014-07-07 16:18:51 +02:00
  • afcc7e3f13 Coin.toFriendlyFormat() includes denomination (BTC). This saves a lot of string concatenation code. Andreas Schildbach 2014-07-05 17:10:55 +02:00
  • 794263436f Add ability to prefix or postfix currency codes when formatting coins. Defaults are BTC, mBTC and µBTC. Andreas Schildbach 2014-07-05 16:54:45 +02:00
  • d22ee01f8a Fix ECKey.equals() and toString() to also include encryptedPrivateKey. Convert to Guava and consolidate at bottom of class. Andreas Schildbach 2014-07-03 16:31:07 +02:00
  • bb40036453 Fix a payment protocol unit test that had a forgotten @Test annotation and thus didn't actually work. Mike Hearn 2014-07-05 17:27:22 +02:00
  • 5580fd9d92 Make DumpedPrivateKey serializable, so that it can be used to pass around keys between loosely coupled application components. Andreas Schildbach 2014-07-05 15:10:24 +02:00
  • 48d748d2be Auto-upgrade to HD when fetching a change address. Andreas Schildbach 2014-07-03 13:43:40 +02:00
  • a6ea2fa3ba Update HD wallets todo list. Mike Hearn 2014-07-04 16:23:56 +02:00
  • bbe983f38a relax assumption that HD seeds are 128 bits Devrandom 2014-07-03 13:58:01 -07:00
  • 39d8da6764 relax assumption that HD seeds are 128 bits Devrandom 2014-07-02 14:37:38 -07:00
  • 39befded6b Update root POM for github switch and remove the old googlecode repo, which is blocked in China. Mike Hearn 2014-06-29 16:04:55 +02:00
  • 009b04551a Update the documentation for Transaction.hashForSignature to note a quirk of P2SH outputs. Mike Hearn 2014-06-28 19:01:29 +02:00
  • 1d5058626a Peer.blockChainDownloadLocked() - fix getblocks message documentation Oscar Guindzberg 2014-06-25 11:24:57 -03:00
  • 659a728790 Updated AUTHORS file. Mike Hearn 2014-06-28 14:55:08 +02:00
  • d1c3be126d PeerGroup.startBlockChainDownload(): add the supplied listener to the downloadingPeer Oscar Guindzberg 2014-06-25 11:20:07 -03:00
  • 12bfa5f5ee Married wallets: extending fee calculation Kosta Korenkov 2014-06-25 23:19:02 +04:00
  • fd0c6a27f4 added a helper function to parse human readable deterministic paths Giannis Dzegoutanis 2014-06-26 17:06:18 +02:00
  • dbd6004f1b HD Wallets: redo key rotation, it's no longer automatic and expects the wallet app to poll for maintenance transactions. Deterministic keys now inherit the creation time of their parent. Mike Hearn 2014-06-24 19:14:40 +02:00
  • 7b337680bf Add encrypt/decrypt command to the WalletTool help text. Mike Hearn 2014-06-24 16:27:12 +02:00
  • b6f61e8850 Close connections in H2FullPrunedBlockStore Ximo Guanter 2014-06-26 15:25:47 +02:00
  • 736c4c9907 Married HD wallets: Bloom filter adjustments troggy 2014-06-21 00:35:59 +04:00
  • 2edf978af4 Rename addFollowingAccounts -> addFollowingAccountKeys Kosta Korenkov 2014-06-25 01:13:32 +04:00
  • 32360fea8d Give regtest mode its own ID so wallets don't get mixed up between regtest and testnet. Mike Hearn 2014-06-24 18:37:19 +02:00
  • 9680911bca Fix autosave in WalletTool on Windows Kosta Korenkov 2014-06-24 15:16:19 +04:00
  • 215ecbfa21 Wallet tool launcher for Windows Kosta Korenkov 2014-06-24 14:26:03 +04:00
  • 09286a932c Remove some superfluous new String() calls around HEX.encode, now it has a sane API. Mike Hearn 2014-06-24 14:11:09 +02:00
  • 704575df1c Add a forgotten @Test annotation and fix the expected exception type. Mike Hearn 2014-06-23 16:18:46 +02:00
  • 11d8d57a1a Wallet: remove a few dead stores identified via static analysis. Mike Hearn 2014-06-23 15:39:33 +02:00
  • f2f64d1e80 Wallet: move setTag to the extensions section of the file. Mike Hearn 2014-06-23 15:37:52 +02:00
  • e9c777c9a6 Explain why a transaction output value is kept as a long rather than Coin. Andreas Schildbach 2014-06-23 15:23:08 +02:00
  • e192f9030c Prevent marriage of used keychain troggy 2014-06-23 16:21:19 +04:00
  • 9dbc507fca Improvement of getFollowingKeys troggy 2014-06-23 15:12:32 +04:00
  • 06755aefde Married HD wallets: introduce shadow keychain notion troggy 2014-05-31 19:30:44 +03:00
  • b7cb4d8c47 TransactionOutput class private value member changed to type long from Coin. Adam Mackler 2014-06-16 11:41:32 -04:00
  • e8048cb672 Changes to the Coin class: some convenience comparison operators; parseCoin() now accepts negative values; the check for an excessive value is moved to the constructor from parseCoin() and uses checkArgument(); some Coin-type constants broken out into one long one Coin in order to be usable in the constructor. Corresponding tests included. The BitcoinURI class constructor throws exception on parsing a negative amount, which is needed now that Coin class accepts negative amounts. Adam Mackler 2014-06-15 06:16:51 -04:00
  • e2ebe69aae Fix key derivation Devrandom 2014-02-05 12:47:36 -08:00
  • 3dfaf54e28 Fixed VarInt serialization bug for the 0xffffffff number. Fixed VarInt sizeOf bug for the 0xffffffff number and added tests for VarInt edge cases. Piotr Włodarek 2014-06-19 22:28:52 +02:00
  • ae3acdfefd Remove undefined arithmetics method. Andreas Schildbach 2014-06-20 14:57:55 +02:00
  • 292a180926 Full mode test generator: use OP_NOP in inputs instead of OP_TRUE to avoid unclean stacks after execution. Additionally, reduce the verbosity of the code somewhat. There's still plenty that could be done to make the code cleaner but .... not today. Mike Hearn 2014-06-18 12:21:54 +02:00
  • 523b3018cb HD Wallets: do auto upgrade when possible on all inbound codepaths, and make DeterministicUpgradeRequiresPassword extend RuntimeException. Mike Hearn 2014-06-17 16:20:38 +02:00
  • 7f68c3472f Add SendRequest.toString(). Andreas Schildbach 2014-06-15 12:44:39 +02:00
  • f86463bab3 Harmonize how BTC values are printed to the log by Wallet.completeTx(). Also, print the value that is emptied. Andreas Schildbach 2014-06-15 11:58:26 +02:00
  • f4d24bffb1 Add SendRequest.signInputs flag to allow skipping the signing. It takes a long time and is not needed for when you only want to determine the fee. Andreas Schildbach 2014-06-15 11:49:00 +02:00
  • 9d1b15612a Fix a bug because the SendRequest.fee field is written to 0 when SendRequest.emptyWallet is used. Missing tests for this case are added. Andreas Schildbach 2014-06-15 11:09:33 +02:00
  • 443d556909 HD Wallets: implement auto upgrade behaviour and refresh the design doc. Mike Hearn 2014-06-12 18:54:57 +02:00
  • 57105f52e6 Fix redundant expression in MnemonicCode. Mike Hearn 2014-06-12 20:26:30 +02:00
  • 7a689fce3d Add Alexykot's test net DNS seed. Tested using Bitcoin Wallet, works fine. Andreas Schildbach 2014-06-11 16:21:46 +02:00
  • bd2536048a Make Transaction comparators compatible with equals Oscar Guindzberg 2014-06-11 16:21:56 -03:00
  • b40b3a5f9d Fix failing WalletProtobufSerializerTest troggy 2014-06-11 23:50:30 +04:00