Mike Hearn
46d4c3487e
Generalise the crypto DRM workaround and use from the BIP38 codepath too.
2014-07-10 15:33:47 +02:00
Mike Hearn
36b1eb7dee
Disable code that no longer compiles in WalletTool pending fix.
2014-07-10 15:33:34 +02:00
Mike Hearn
682bd035fc
Fix a couple of static method via instance warnings.
2014-07-10 15:33:10 +02:00
Andreas Schildbach
a750a14edd
Implement BIP38 password encrypted private keys, decryption only. Contains all the test vectors from the spec minus one that is incompatible to Java.
2014-07-10 14:57:25 +02:00
Justas
03652298e1
Dead transaction does not contain confidence depth and should not fail when sorting.
2014-07-10 14:56:47 +02:00
Giannis Dzegoutanis
9446b1b625
added test for HDUtils.formatPath and changed HDUtils.parsePath to handle paths that start with the letter M
2014-07-10 14:56:10 +02:00
Devrandom
fec6cbc7df
Remove support for mnemonic-less keychains
2014-07-10 14:53:42 +02:00
Devrandom
2fae12064c
Fix BIP39 implementation
2014-07-10 14:53:42 +02:00
Devrandom
3420bdf8ac
Add cobertura support
2014-07-10 14:53:42 +02:00
Mike Hearn
483fd8a908
Expose TransactionBroadcast.random
2014-07-09 13:07:56 +02:00
Andreas Schildbach
c7fe06d4c7
Fix java package of ExponentialBackoffTest.
2014-07-08 13:54:05 +02:00
Mike Hearn
f7070df152
Allow TestWithNetworkConnections subclasses to override the wallet with their own.
2014-07-07 16:18:51 +02:00
Andreas Schildbach
afcc7e3f13
Coin.toFriendlyFormat() includes denomination (BTC). This saves a lot of string concatenation code.
2014-07-05 21:03:51 +02:00
Andreas Schildbach
794263436f
Add ability to prefix or postfix currency codes when formatting coins. Defaults are BTC, mBTC and µBTC.
2014-07-05 21:03:51 +02:00
Andreas Schildbach
d22ee01f8a
Fix ECKey.equals() and toString() to also include encryptedPrivateKey. Convert to Guava and consolidate at bottom of class.
2014-07-05 18:14:16 +02:00
Mike Hearn
bb40036453
Fix a payment protocol unit test that had a forgotten @Test annotation and thus didn't actually work.
2014-07-05 17:27:22 +02:00
Andreas Schildbach
5580fd9d92
Make DumpedPrivateKey serializable, so that it can be used to pass around keys between loosely coupled application components.
2014-07-05 15:14:22 +02:00
Andreas Schildbach
48d748d2be
Auto-upgrade to HD when fetching a change address.
2014-07-04 16:24:23 +02:00
Mike Hearn
a6ea2fa3ba
Update HD wallets todo list.
2014-07-04 16:23:56 +02:00
Devrandom
bbe983f38a
relax assumption that HD seeds are 128 bits
...
cleanup
2014-07-03 14:07:05 -07:00
Devrandom
39d8da6764
relax assumption that HD seeds are 128 bits
2014-07-02 14:39:32 -07:00
Mike Hearn
39befded6b
Update root POM for github switch and remove the old googlecode repo, which is blocked in China.
2014-06-29 16:04:55 +02:00
Mike Hearn
009b04551a
Update the documentation for Transaction.hashForSignature to note a quirk of P2SH outputs.
2014-06-28 19:01:29 +02:00
Oscar Guindzberg
1d5058626a
Peer.blockChainDownloadLocked() - fix getblocks message documentation
2014-06-28 14:55:21 +02:00
Mike Hearn
659a728790
Updated AUTHORS file.
2014-06-28 14:55:08 +02:00
Oscar Guindzberg
d1c3be126d
PeerGroup.startBlockChainDownload(): add the supplied listener to the
...
downloadingPeer
2014-06-28 14:49:21 +02:00
Kosta Korenkov
12bfa5f5ee
Married wallets: extending fee calculation
2014-06-28 14:36:05 +02:00
Giannis Dzegoutanis
fd0c6a27f4
added a helper function to parse human readable deterministic paths
2014-06-28 14:35:48 +02:00
Mike Hearn
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.
2014-06-26 16:21:23 +02:00
Mike Hearn
7b337680bf
Add encrypt/decrypt command to the WalletTool help text.
2014-06-26 16:21:22 +02:00
Ximo Guanter
b6f61e8850
Close connections in H2FullPrunedBlockStore
2014-06-26 15:25:47 +02:00
troggy
736c4c9907
Married HD wallets: Bloom filter adjustments
...
Pull request: #115
Based on design notes:
https://groups.google.com/forum/#!msg/bitcoinj/Uxl-z40OLuQ/e2m4mEWR6gMJ
2014-06-26 14:45:03 +02:00
Kosta Korenkov
2edf978af4
Rename addFollowingAccounts -> addFollowingAccountKeys
2014-06-25 01:18:53 +04:00
Mike Hearn
32360fea8d
Give regtest mode its own ID so wallets don't get mixed up between regtest and testnet.
2014-06-24 18:37:19 +02:00
Kosta Korenkov
9680911bca
Fix autosave in WalletTool on Windows
...
Wallet.saveToFile failed to remove original wallet file because WalletTool
left open input stream. This error happened on Windows-specific code path
Stacktrace:
```
Failed to save wallet! Old wallet should be left untouched.
java.io.IOException: Failed to delete canonical wallet file for
replacement with autosave
at com.google.bitcoin.core.Wallet.saveToFile(Wallet.java:834)
at
com.google.bitcoin.core.Wallet.saveToFile(Wallet.java:863)
at
com.google.bitcoin.tools.WalletTool.saveWallet(WalletTool.java:851)
at
com.google.bitcoin.tools.WalletTool.main(WalletTool.java:362)
```
2014-06-24 14:19:14 +02:00
Kosta Korenkov
215ecbfa21
Wallet tool launcher for Windows
...
Essentially it is just a port of wallet-tool bash script
2014-06-24 14:18:58 +02:00
Mike Hearn
09286a932c
Remove some superfluous new String() calls around HEX.encode, now it has a sane API.
2014-06-24 14:11:09 +02:00
Mike Hearn
704575df1c
Add a forgotten @Test annotation and fix the expected exception type.
2014-06-23 16:18:46 +02:00
Mike Hearn
11d8d57a1a
Wallet: remove a few dead stores identified via static analysis.
2014-06-23 15:39:33 +02:00
Mike Hearn
f2f64d1e80
Wallet: move setTag to the extensions section of the file.
2014-06-23 15:37:52 +02:00
Andreas Schildbach
e9c777c9a6
Explain why a transaction output value is kept as a long rather than Coin.
2014-06-23 15:23:08 +02:00
troggy
e192f9030c
Prevent marriage of used keychain
...
addFollowingAccounts method now has the check that active keychain has no keys in use. This would prevent divergence of derivation paths for followed and following keys. In future this behaviour should be replaced with some sort of key rotation.
2014-06-23 14:53:09 +02:00
troggy
9dbc507fca
Improvement of getFollowingKeys
...
First of all, freshAddress was actually asking for a fresh key twice for non-married keychain. That was fixed by moving first call (needed only for married chain) inside the getFollowingKeys. As the latter now started to return all keys in a marriage and not only following ones, it was renamed to freshMarriedKeys.
Having all the keys in one block allows to do simple derivation path check to make sure keychains are in sync (as per @devrandom suggestion)
2014-06-23 14:53:09 +02:00
troggy
06755aefde
Married HD wallets: introduce shadow keychain notion
...
Pull request: #99
Based on design notes:
https://groups.google.com/d/msg/bitcoinj/Uxl-z40OLuQ/e2m4mEWR6gMJ
2014-06-23 14:53:09 +02:00
Adam Mackler
b7cb4d8c47
TransactionOutput
class private value
member changed to type long
from Coin
.
2014-06-23 13:49:08 +02:00
Adam Mackler
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.
2014-06-23 13:49:08 +02:00
Devrandom
e2ebe69aae
Fix key derivation
2014-06-22 12:47:27 -07:00
Piotr Włodarek
3dfaf54e28
Fixed VarInt serialization bug for the 0xffffffff number. Fixed VarInt sizeOf bug for the 0xffffffff number and added tests for VarInt edge cases.
...
The 4294967295 number (0xffffffff) was incorrectly serialized because the UnsignedInteger.MAX_VALUE.longValue() helper returned 4294967295 instead of expected 4294967296.
The VarInt.sizeOf() incorrectly returned 9 instead of 5 for the 4294967295 (0xffffffff) number.
See https://en.bitcoin.it/wiki/Protocol_specification#Variable_length_integer
2014-06-20 16:35:33 +02:00
Andreas Schildbach
ae3acdfefd
Remove undefined arithmetics method.
2014-06-20 14:57:55 +02:00
Mike Hearn
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.
2014-06-18 12:21:54 +02:00