-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bip32 test corrected + old protoc file included for compatibility
- Loading branch information
Showing
128 changed files
with
21,438 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+456 Bytes
(110%)
core/out/production/classes/host/furszy/zerocoinj/protocol/GenWitMessage.class
Binary file not shown.
Binary file modified
BIN
+269 Bytes
(100%)
core/out/production/classes/host/furszy/zerocoinj/wallet/MultiWallet.class
Binary file not shown.
Binary file modified
BIN
+8.72 KB
(160%)
core/out/production/classes/host/furszy/zerocoinj/wallet/ZWallet.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/core/AbstractBlockChain$1.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/core/AbstractBlockChain$2.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/core/AbstractBlockChain$3.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/core/AbstractBlockChain$4.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/core/AbstractBlockChain$NewBlockType.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/core/AbstractBlockChain$OrphanBlock.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/core/AbstractBlockChain.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/core/BitcoinSerializer$BitcoinPacketHeader.class
Binary file not shown.
Binary file modified
BIN
+249 Bytes
(100%)
core/out/production/classes/org/pivxj/core/BitcoinSerializer.class
Binary file not shown.
Binary file modified
BIN
+50 Bytes
(100%)
core/out/production/classes/org/pivxj/core/CoinDefinition.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/core/PeerGroup$1.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/core/PeerGroup$10.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/core/PeerGroup$11.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/core/PeerGroup$12.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/core/PeerGroup$13.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/core/PeerGroup$14.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/core/PeerGroup$15.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/core/PeerGroup$16.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/core/PeerGroup$17.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/core/PeerGroup$2.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/core/PeerGroup$3.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/core/PeerGroup$4.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/core/PeerGroup$5.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/core/PeerGroup$6.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/core/PeerGroup$7.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/core/PeerGroup$8.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/core/PeerGroup$9.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/core/PeerGroup$ChainDownloadSpeedCalculator.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/core/PeerGroup$FilterRecalculateMode.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/core/PeerGroup$LocalhostCheckState.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/core/PeerGroup$PeerListener.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/core/PeerGroup$PeerStartupListener.class
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+216 Bytes
(100%)
core/out/production/classes/org/pivxj/core/PeerSocketHandler.class
Binary file not shown.
Binary file modified
BIN
+912 Bytes
(100%)
core/out/production/classes/org/pivxj/core/Transaction.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/core/Utils$Pair.class
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+172 Bytes
(110%)
core/out/production/classes/org/pivxj/core/VerificationException.class
Binary file not shown.
Binary file modified
BIN
-332 Bytes
(94%)
core/out/production/classes/org/pivxj/crypto/HDUtils.class
Binary file not shown.
Binary file modified
BIN
-328 Bytes
(80%)
core/out/production/classes/org/pivxj/crypto/TrustStoreLoader$FileTrustStoreLoader.class
Binary file not shown.
Binary file modified
BIN
-332 Bytes
(93%)
core/out/production/classes/org/pivxj/crypto/X509Utils.class
Binary file not shown.
Binary file modified
BIN
-328 Bytes
(78%)
core/out/production/classes/org/pivxj/utils/DaemonThreadFactory.class
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-381 Bytes
(64%)
core/out/production/classes/org/pivxj/utils/Threading$2.class
Binary file not shown.
Binary file modified
BIN
-203 Bytes
(85%)
core/out/production/classes/org/pivxj/wallet/DeterministicKeyChain$1.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/wallet/DeterministicKeyChain$Builder.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/wallet/DeterministicKeyChain$KeyChainType.class
Binary file not shown.
Binary file modified
BIN
+2.54 KB
(100%)
core/out/production/classes/org/pivxj/wallet/DeterministicKeyChain.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/wallet/DeterministicSeed.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/wallet/KeyChainGroup.class
Binary file not shown.
Binary file modified
BIN
+40 Bytes
(100%)
core/out/production/classes/org/pivxj/wallet/SendRequest.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/wallet/Wallet$10.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/wallet/Wallet$11.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/wallet/Wallet$2.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/wallet/Wallet$3.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/wallet/Wallet$4.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/wallet/Wallet$5.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/wallet/Wallet$6.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/wallet/Wallet$7.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/wallet/Wallet$8.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/wallet/Wallet$9.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/wallet/Wallet$BalanceFutureRequest.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/wallet/Wallet$BalanceType.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/wallet/Wallet$CompletionException.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/wallet/Wallet$CouldNotAdjustDownwards.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/wallet/Wallet$DustySendRequested.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/wallet/Wallet$ExceededMaxTransactionSize.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/wallet/Wallet$FeeCalculation.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/wallet/Wallet$FreeStandingTransactionOutput.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/wallet/Wallet$MissingSigsMode.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/wallet/Wallet$MultipleOpReturnRequested.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/wallet/Wallet$SendResult.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/wallet/Wallet$TxOffsetPair.class
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/wallet/WalletFiles$1.class
Binary file not shown.
Binary file modified
BIN
-347 Bytes
(94%)
core/out/production/classes/org/pivxj/wallet/WalletFiles.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/wallet/WalletProtobufSerializer$1.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/production/classes/org/pivxj/wallet/WalletProtobufSerializer$2.class
Binary file not shown.
Binary file modified
BIN
+1.14 KB
(100%)
core/out/production/classes/org/pivxj/wallet/WalletProtobufSerializer.class
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
core/out/test/classes/org/pivxj/testing/TestWithNetworkConnections$1$1.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/out/test/classes/org/pivxj/testing/TestWithWallet.class
Binary file not shown.
Binary file modified
BIN
+10.8 KB
(190%)
core/out/test/classes/org/pivxj/wallet/MultiWalletTest.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
core/src/main/java/host/furszy/zerocoinj/wallet/AmountPerDen.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
package host.furszy.zerocoinj.wallet; | ||
|
||
import com.zerocoinj.core.CoinDenomination; | ||
|
||
import org.pivxj.core.Coin; | ||
|
||
import java.util.Objects; | ||
|
||
public class AmountPerDen { | ||
|
||
private CoinDenomination den; | ||
private Coin amount = Coin.ZERO; | ||
private int coinsCont; | ||
|
||
public AmountPerDen(CoinDenomination den) { | ||
this.den = den; | ||
} | ||
|
||
public AmountPerDen(CoinDenomination den, int coinsCont) { | ||
this.den = den; | ||
this.coinsCont = coinsCont; | ||
this.amount = Coin.valueOf(den.getDenomination() * coinsCont, 0 ); | ||
} | ||
|
||
public CoinDenomination getDen() { | ||
return den; | ||
} | ||
|
||
public Coin getAmount() { | ||
if (amount == Coin.ZERO){ | ||
this.amount = Coin.valueOf(den.getDenomination() * coinsCont, 0 ); | ||
} | ||
return amount; | ||
} | ||
|
||
public int getCoinsCont() { | ||
return coinsCont; | ||
} | ||
|
||
public void increment(Coin value) { | ||
amount = amount.add(value); | ||
coinsCont++; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (o == null || getClass() != o.getClass()) return false; | ||
AmountPerDen that = (AmountPerDen) o; | ||
return den == that.den; | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
|
||
return Objects.hash(den); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.