Commit Graph

3288 Commits

Author SHA1 Message Date
Andreas Schildbach
b567260189 ECKey: Decrypted keys must always be 32 bytes long, otherwise likely the encryption key was wrong. 2019-04-12 16:06:02 +02:00
Matthew Leon
c509cdbd95 ECKey: Add missing @Nullable on toString(). 2019-04-12 16:06:02 +02:00
Matthew Leon
7dcbd3a54c Transaction: Add missing @Nullable on getMemo(). 2019-04-12 16:06:02 +02:00
Matthew Leon
f47badc76f KeyChainGroup: Fix NullPointerExceptions in decrypt() for the case of only a basic keychain. 2019-04-12 16:06:02 +02:00
Andreas Schildbach
57d0eef454 WalletTest: Be more specific about the expected exception in basicSpendingCommon() when supplying a wrong password. 2019-04-12 16:06:02 +02:00
Andreas Schildbach
f1e67faa0b WalletTest: Be more specific about the expected exception in encryptionDecryptionBadPassword(). 2019-04-12 16:06:02 +02:00
Andreas Schildbach
43a7df3838 DeterministicKey: Decrypted deterministic keys must always be 32 bytes long, otherwise likely the encryption key was wrong. 2019-04-12 16:06:02 +02:00
Andreas Schildbach
ddcaf228e9 KeyCrypterException: Introduce dedicated InvalidCipherText exception for when a private key or seed is decrypted, the decrypted message is damaged. 2019-04-12 16:06:02 +02:00
Andreas Schildbach
38323538b4 KeyCrypterException: Introduce dedicated PublicPrivateMismatch exception for when a private key or seed is decrypted, it doesn't match its public key. 2019-04-12 16:05:39 +02:00
Matthew Leon
c572bb52d7 KeyChainGroup: Be smarter about encryption order.
This partly reverts commit 4ed5b0e3b06c18040d83be30df32e7be5b778b51.
2019-04-12 16:05:39 +02:00
Andreas Schildbach
80dd4e39fa KeyChainGroupTest: Extract AES_KEY used in tests to constant because deriving the key is costly. 2019-04-12 16:05:39 +02:00
Matthew Leon
26b7d8728f KeyChainGroup: Fix NullPointerExceptions in encrypt() for the case of only a basic keychain. 2019-04-12 16:05:39 +02:00
Matthew Leon
12f1670eea MonetaryFormat: Fix equals() and hashCode(). 2019-04-12 16:05:39 +02:00
Matthew Leon
be40b7a3e5 NetworkParameters: Make double-checked locking on defaultSerializer safe with volatile keyword. 2019-04-12 16:05:39 +02:00
Matthew Leon
9d1cff1de1 KeyCrypterScrypt: Migrate AESFastEngine to AESEngine.
AESFastEngine raises a deprecation warning. See https://nvd.nist.gov/vuln/detail/CVE-2016-1000339
2019-04-12 16:05:26 +02:00
Oscar Guindzberg
76f6f0c21f PeerGroup: Don't stop peer discovery if one peer discoverer throws an exception. 2019-04-12 15:27:30 +02:00
Oscar Guindzberg
a9b40c358f PeerGroup.addAddress(): Don't increase max connections if address already exists. 2019-04-12 15:27:08 +02:00
Andreas Schildbach
aba000750c BitcoinURI: Allow uppercase schema. 2019-04-12 15:26:21 +02:00
Andreas Schildbach
7747532bd0 Use plain Gradle console for running any of the tools. 2019-04-12 15:26:10 +02:00
Andreas Schildbach
c7dfe59317 KeyChainGroup: Fix NullPointerException in findRedeemDataFromScriptHash() if no deterministic keychain is in the group. 2019-04-12 15:25:58 +02:00
Andreas Schildbach
c3b6e0d7b9 Wallet: Fix handling of wallet without deterministic chains in checkForFilterExhaustion(). 2019-04-12 15:25:41 +02:00
Andreas Schildbach
f81eb9bc24 Wallet: Fix NullPointerException in isRequiringUpdateAllBloomFilter() when calculating the filter for a basic wallet. 2019-04-12 15:25:23 +02:00
Andreas Schildbach
7ca3dca222 Transaction: In toString(), if an output is unconnected still print the outpoint. 2019-04-12 15:25:02 +02:00
Andreas Schildbach
9d8bb0b64a Transaction: In toString(), if a script type is unknown just say so. 2019-04-12 15:24:50 +02:00
Andreas Schildbach
533d6eb1a8 Wallet: Fix logging in receivePending(). 2019-04-12 15:24:13 +02:00
Oscar Guindzberg
36c6c6e3af Replace tabs with spaces. 2019-04-12 15:23:40 +02:00
Andreas Schildbach
b3e33fea2a Don't use the Gradle daemon for running any of the tools. 2019-03-13 11:42:01 +01:00
Andreas Schildbach
8a208040d9 Prepare 0.15.2-SNAPSHOT 2019-03-13 11:41:13 +01:00
Andreas Schildbach
f48bdf3a02 Release 0.15.1 v0.15.1 2019-03-08 11:43:31 +01:00
Stage
47858d16e0 LegacyAddressTest: Remove duplicate comparisonEqualTo() test. 2019-03-08 11:35:21 +01:00
Andreas Schildbach
1d8c78f327 Wallet: Fix crash when isAddressMine() is called with a P2SH or a P2WSH address. 2019-03-07 15:59:20 +01:00
Andreas Schildbach
937d93e024 Prepare 0.15.1-SNAPSHOT 2019-03-07 15:59:06 +01:00
Andreas Schildbach
ddca1092b3 Release 0.15 v0.15 2019-03-01 10:22:34 +01:00
Stage
3e91372c42 Context: Remove a dangling bracket in JavaDoc. 2019-02-28 16:29:57 +01:00
Andreas Schildbach
a2e2a3a5ae Peer, PeerGroup: Use 'ms' rather than 'msec' in logs. 2019-02-28 00:55:00 +01:00
Andreas Schildbach
bfafe01008 Peer.PendingPing: Make future final. 2019-02-28 00:52:45 +01:00
Andreas Schildbach
21a32b5604 MonetaryFormat: Add default format based on the Bitcoin symbol supported by Unicode 10.0. 2019-02-27 18:42:43 +01:00
Sean Gilligan
4daf6de1eb settings.gradle: If at least Java 11 and Gradle 4.10 are detected, wallet-template is being built again.
This also means wallet-template is under continuous integration by Travis again.
2019-02-26 11:56:32 +01:00
Andreas Schildbach
0be1008339 build.gradle: Exclude the same set of integration tests as we did for Maven.
This fixes the 'address already in use' error.
2019-02-25 21:11:51 +01:00
Sean Gilligan
4e52eb7c55 README.md: Add instructions for using Jitpack-powered SNAPSHOT builds. 2019-02-25 08:27:31 +01:00
Andreas Schildbach
81ddd50ffb build.gradle: Make protobuf-gradle-plugin use protoc from the repository.
This updates the protoc version to 3.6.1, fixing many warnings in the generated sources.
2019-02-23 23:27:48 +01:00
Andreas Schildbach
1d4c8e69eb Bech32.Bech32Data: Make immutable fields hrp and data publicly accessible. 2019-02-23 19:45:53 +01:00
Andreas Schildbach
3974b38bad .travis.yml: Run the JavaDoc again, so errors are exposed. 2019-02-22 12:17:44 +01:00
Sean Gilligan
fb8ac7bc6c PeerGroup, TransactionConfidence: Fix JavaDoc links. 2019-02-22 11:47:25 +01:00
Andreas Schildbach
19e083c017 Block: Add checkWitnessRoot() to verify the witness root. 2019-02-22 10:53:56 +01:00
Andreas Schildbach
b2fed78c09 Block: Add getWitnessRoot() to calculate the witness root hash, similar to the merkle root hash. 2019-02-22 10:53:38 +01:00
Andreas Schildbach
11e4cb956e Transaction: Add findWitnessCommitment() to locate the witness commitment in a coinbase. 2019-02-22 10:53:02 +01:00
Andreas Schildbach
533487b97f Sha256Hash: Add twiceOf() and hashTwice() variants that simply take two byte arrays. 2019-02-22 01:14:57 +01:00
Andreas Schildbach
5749e3796d NetworkParameters: Remove deprecated static methods. 2019-02-22 00:46:02 +01:00
Andreas Schildbach
0004ea4c35 ScriptPattern: Get rid of redundant BaseEncoding instance. 2019-02-21 22:47:28 +01:00