From cda772d8ec7febefa98775f615f5b7ac9617cd37 Mon Sep 17 00:00:00 2001
From: langerhans An AbstractBlockChain implementation must be connected to a {@link BlockStore} implementation. The chain object
* by itself doesn't store any data, that's delegated to the store. Which store you use is a decision best made by
* reading the getting started guide, but briefly, fully validating block chains need fully validating stores. In
- * the lightweight SPV mode, a {@link org.bitcoinj.store.SPVBlockStore} is the right choice.
This class implements an abstract class which makes it simple to create a BlockChain that does/doesn't do full * verification. It verifies headers and is implements most of what is required to implement SPV mode, but @@ -56,7 +56,7 @@ import static com.google.common.base.Preconditions.*; *
There are two subclasses of AbstractBlockChain that are useful: {@link BlockChain}, which is the simplest * class and implements simplified payment verification. This is a lightweight and efficient mode that does * not verify the contents of blocks, just their headers. A {@link FullPrunedBlockChain} paired with a - * {@link org.bitcoinj.store.H2FullPrunedBlockStore} implements full verification, which is equivalent to the + * {@link com.dogecoin.dogecoinj.store.H2FullPrunedBlockStore} implements full verification, which is equivalent to the * original Satoshi client. To learn more about the alternative security models, please consult the articles on the * website.
* diff --git a/core/src/main/java/org/bitcoinj/core/AbstractBlockChainListener.java b/core/src/main/java/com/dogecoin/dogecoinj/core/AbstractBlockChainListener.java similarity index 97% rename from core/src/main/java/org/bitcoinj/core/AbstractBlockChainListener.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/AbstractBlockChainListener.java index a3e95495..bf7fa6a2 100644 --- a/core/src/main/java/org/bitcoinj/core/AbstractBlockChainListener.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/AbstractBlockChainListener.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; import java.util.List; diff --git a/core/src/main/java/org/bitcoinj/core/AbstractPeerEventListener.java b/core/src/main/java/com/dogecoin/dogecoinj/core/AbstractPeerEventListener.java similarity index 97% rename from core/src/main/java/org/bitcoinj/core/AbstractPeerEventListener.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/AbstractPeerEventListener.java index 65866b18..0487c75d 100644 --- a/core/src/main/java/org/bitcoinj/core/AbstractPeerEventListener.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/AbstractPeerEventListener.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; import java.util.List; import java.util.Set; diff --git a/core/src/main/java/org/bitcoinj/core/AbstractWalletEventListener.java b/core/src/main/java/com/dogecoin/dogecoinj/core/AbstractWalletEventListener.java similarity index 91% rename from core/src/main/java/org/bitcoinj/core/AbstractWalletEventListener.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/AbstractWalletEventListener.java index 3162a64c..298917e2 100644 --- a/core/src/main/java/org/bitcoinj/core/AbstractWalletEventListener.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/AbstractWalletEventListener.java @@ -14,10 +14,10 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; -import org.bitcoinj.script.Script; -import org.bitcoinj.wallet.AbstractKeyChainEventListener; +import com.dogecoin.dogecoinj.script.Script; +import com.dogecoin.dogecoinj.wallet.AbstractKeyChainEventListener; import java.util.List; diff --git a/core/src/main/java/org/bitcoinj/core/Address.java b/core/src/main/java/com/dogecoin/dogecoinj/core/Address.java similarity index 98% rename from core/src/main/java/org/bitcoinj/core/Address.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/Address.java index 7c8a0cf1..7db1d62f 100644 --- a/core/src/main/java/org/bitcoinj/core/Address.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/Address.java @@ -15,10 +15,10 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; -import org.bitcoinj.params.Networks; -import org.bitcoinj.script.Script; +import com.dogecoin.dogecoinj.params.Networks; +import com.dogecoin.dogecoinj.script.Script; import javax.annotation.Nullable; diff --git a/core/src/main/java/org/bitcoinj/core/AddressFormatException.java b/core/src/main/java/com/dogecoin/dogecoinj/core/AddressFormatException.java similarity index 95% rename from core/src/main/java/org/bitcoinj/core/AddressFormatException.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/AddressFormatException.java index 37a2bdef..dde0de4d 100644 --- a/core/src/main/java/org/bitcoinj/core/AddressFormatException.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/AddressFormatException.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; @SuppressWarnings("serial") public class AddressFormatException extends Exception { diff --git a/core/src/main/java/org/bitcoinj/core/AddressMessage.java b/core/src/main/java/com/dogecoin/dogecoinj/core/AddressMessage.java similarity index 99% rename from core/src/main/java/org/bitcoinj/core/AddressMessage.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/AddressMessage.java index b9a22977..99c173e4 100644 --- a/core/src/main/java/org/bitcoinj/core/AddressMessage.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/AddressMessage.java @@ -1,4 +1,4 @@ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; import java.io.IOException; import java.io.OutputStream; diff --git a/core/src/main/java/org/bitcoinj/core/AlertMessage.java b/core/src/main/java/com/dogecoin/dogecoinj/core/AlertMessage.java similarity index 99% rename from core/src/main/java/org/bitcoinj/core/AlertMessage.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/AlertMessage.java index ed26389a..f53347ab 100644 --- a/core/src/main/java/org/bitcoinj/core/AlertMessage.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/AlertMessage.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; import java.util.Date; import java.util.HashSet; diff --git a/core/src/main/java/org/bitcoinj/core/Base58.java b/core/src/main/java/com/dogecoin/dogecoinj/core/Base58.java similarity index 99% rename from core/src/main/java/org/bitcoinj/core/Base58.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/Base58.java index 913d20ba..1baec16b 100644 --- a/core/src/main/java/org/bitcoinj/core/Base58.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/Base58.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; import java.io.UnsupportedEncodingException; import java.math.BigInteger; diff --git a/core/src/main/java/org/bitcoinj/core/BitcoinSerializer.java b/core/src/main/java/com/dogecoin/dogecoinj/core/BitcoinSerializer.java similarity index 99% rename from core/src/main/java/org/bitcoinj/core/BitcoinSerializer.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/BitcoinSerializer.java index 547207b5..b1d7f678 100644 --- a/core/src/main/java/org/bitcoinj/core/BitcoinSerializer.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/BitcoinSerializer.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -28,7 +28,7 @@ import java.nio.ByteBuffer; import java.util.HashMap; import java.util.Map; -import static org.bitcoinj.core.Utils.*; +import static com.dogecoin.dogecoinj.core.Utils.*; /** *Methods to serialize and de-serialize messages to the Bitcoin network format as defined in diff --git a/core/src/main/java/org/bitcoinj/core/Block.java b/core/src/main/java/com/dogecoin/dogecoinj/core/Block.java similarity index 98% rename from core/src/main/java/org/bitcoinj/core/Block.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/Block.java index 22b9effb..5127cfbd 100644 --- a/core/src/main/java/org/bitcoinj/core/Block.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/Block.java @@ -14,10 +14,10 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; -import org.bitcoinj.script.Script; -import org.bitcoinj.script.ScriptBuilder; +import com.dogecoin.dogecoinj.script.Script; +import com.dogecoin.dogecoinj.script.ScriptBuilder; import com.google.common.annotations.VisibleForTesting; import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableList; @@ -35,9 +35,9 @@ import java.util.Date; import java.util.LinkedList; import java.util.List; -import static org.bitcoinj.core.Coin.FIFTY_COINS; -import static org.bitcoinj.core.Utils.doubleDigest; -import static org.bitcoinj.core.Utils.doubleDigestTwoBuffers; +import static com.dogecoin.dogecoinj.core.Coin.FIFTY_COINS; +import static com.dogecoin.dogecoinj.core.Utils.doubleDigest; +import static com.dogecoin.dogecoinj.core.Utils.doubleDigestTwoBuffers; /** *
A block is a group of transactions, and is one of the fundamental data structures of the Bitcoin system. @@ -164,7 +164,7 @@ public class Block extends Message { * the system it was 50 coins per block, in late 2012 it went to 25 coins per block, and so on. The size of * a coinbase transaction is inflation plus fees.
* - *The half-life is controlled by {@link org.bitcoinj.core.NetworkParameters#getSubsidyDecreaseBlockCount()}. + *
The half-life is controlled by {@link com.dogecoin.dogecoinj.core.NetworkParameters#getSubsidyDecreaseBlockCount()}. *
*/ public Coin getBlockInflation(int height) { @@ -915,7 +915,7 @@ public class Block extends Message { * Returns the difficulty of the proof of work that this block should meet encoded in compact form. The {@link * BlockChain} verifies that this is not too easy by looking at the length of the chain when the block is added. * To find the actual value the hash should be compared against, use - * {@link org.bitcoinj.core.Block#getDifficultyTargetAsInteger()}. Note that this is not the same as + * {@link com.dogecoin.dogecoinj.core.Block#getDifficultyTargetAsInteger()}. Note that this is not the same as * the difficulty value reported by the Bitcoin "getdifficulty" RPC that you may see on various block explorers. * That number is the result of applying a formula to the underlying difficulty to normalize the minimum to 1. * Calculating the difficulty that way is currently unsupported. diff --git a/core/src/main/java/org/bitcoinj/core/BlockChain.java b/core/src/main/java/com/dogecoin/dogecoinj/core/BlockChain.java similarity index 93% rename from core/src/main/java/org/bitcoinj/core/BlockChain.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/BlockChain.java index 48f7b941..e0a3350f 100644 --- a/core/src/main/java/org/bitcoinj/core/BlockChain.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/BlockChain.java @@ -15,12 +15,12 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; import static com.google.common.base.Preconditions.checkArgument; -import org.bitcoinj.store.BlockStore; -import org.bitcoinj.store.BlockStoreException; +import com.dogecoin.dogecoinj.store.BlockStore; +import com.dogecoin.dogecoinj.store.BlockStoreException; import java.util.ArrayList; import java.util.List; @@ -40,8 +40,8 @@ public class BlockChain extends AbstractBlockChain { * one from scratch, or you can deserialize a saved wallet from disk using {@link Wallet#loadFromFile(java.io.File)} * * - *For the store, you should use {@link org.bitcoinj.store.SPVBlockStore} or you could also try a - * {@link org.bitcoinj.store.MemoryBlockStore} if you want to hold all headers in RAM and don't care about + *
For the store, you should use {@link com.dogecoin.dogecoinj.store.SPVBlockStore} or you could also try a + * {@link com.dogecoin.dogecoinj.store.MemoryBlockStore} if you want to hold all headers in RAM and don't care about * disk serialization (this is rare).
*/ public BlockChain(NetworkParameters params, Wallet wallet, BlockStore blockStore) throws BlockStoreException { diff --git a/core/src/main/java/org/bitcoinj/core/BlockChainListener.java b/core/src/main/java/com/dogecoin/dogecoinj/core/BlockChainListener.java similarity index 96% rename from core/src/main/java/org/bitcoinj/core/BlockChainListener.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/BlockChainListener.java index 2f591e7c..52397092 100644 --- a/core/src/main/java/org/bitcoinj/core/BlockChainListener.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/BlockChainListener.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; import java.util.List; @@ -26,8 +26,8 @@ import java.util.List; public interface BlockChainListener { /** * Called when a new block on the best chain is seen, after relevant transactions are extracted and sent to - * us via either {@link #receiveFromBlock(Transaction, StoredBlock, org.bitcoinj.core.BlockChain.NewBlockType, int)} - * or {@link #notifyTransactionIsInBlock(Sha256Hash, StoredBlock, org.bitcoinj.core.BlockChain.NewBlockType, int)}. + * us via either {@link #receiveFromBlock(Transaction, StoredBlock, com.dogecoin.dogecoinj.core.BlockChain.NewBlockType, int)} + * or {@link #notifyTransactionIsInBlock(Sha256Hash, StoredBlock, com.dogecoin.dogecoinj.core.BlockChain.NewBlockType, int)}. * If this block is causing a re-organise to a new chain, this method is NOT called even though the block may be * the new best block: your reorganize implementation is expected to do whatever would normally be done do for a new * best block in this case. diff --git a/core/src/main/java/org/bitcoinj/core/BloomFilter.java b/core/src/main/java/com/dogecoin/dogecoinj/core/BloomFilter.java similarity index 97% rename from core/src/main/java/org/bitcoinj/core/BloomFilter.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/BloomFilter.java index 715d7726..efefb674 100644 --- a/core/src/main/java/org/bitcoinj/core/BloomFilter.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/BloomFilter.java @@ -14,10 +14,10 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; -import org.bitcoinj.script.Script; -import org.bitcoinj.script.ScriptChunk; +import com.dogecoin.dogecoinj.script.Script; +import com.dogecoin.dogecoinj.script.ScriptChunk; import com.google.common.base.Objects; import com.google.common.collect.Lists; @@ -100,7 +100,7 @@ public class BloomFilter extends Message { * It should be a random value, however secureness of the random value is of no great consequence. * *updateFlag is used to control filter behaviour on the server (remote node) side when it encounters a hit. - * See {@link org.bitcoinj.core.BloomFilter.BloomUpdate} for a brief description of each mode. The purpose + * See {@link com.dogecoin.dogecoinj.core.BloomFilter.BloomUpdate} for a brief description of each mode. The purpose * of this flag is to reduce network round-tripping and avoid over-dirtying the filter for the most common * wallet configurations.
*/ @@ -270,7 +270,7 @@ public class BloomFilter extends Message { } /** - * Returns true if this filter will match anything. See {@link org.bitcoinj.core.BloomFilter#setMatchAll()} + * Returns true if this filter will match anything. See {@link com.dogecoin.dogecoinj.core.BloomFilter#setMatchAll()} * for when this can be a useful thing to do. */ public synchronized boolean matchesAll() { diff --git a/core/src/main/java/org/bitcoinj/core/CheckpointManager.java b/core/src/main/java/com/dogecoin/dogecoinj/core/CheckpointManager.java similarity index 96% rename from core/src/main/java/org/bitcoinj/core/CheckpointManager.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/CheckpointManager.java index 844a86b8..3e1fd293 100644 --- a/core/src/main/java/org/bitcoinj/core/CheckpointManager.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/CheckpointManager.java @@ -14,11 +14,11 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; -import org.bitcoinj.store.BlockStore; -import org.bitcoinj.store.BlockStoreException; -import org.bitcoinj.store.FullPrunedBlockStore; +import com.dogecoin.dogecoinj.store.BlockStore; +import com.dogecoin.dogecoinj.store.BlockStoreException; +import com.dogecoin.dogecoinj.store.FullPrunedBlockStore; import com.google.common.base.Charsets; import com.google.common.hash.HashCode; import com.google.common.hash.Hasher; @@ -55,7 +55,7 @@ import static com.google.common.base.Preconditions.*; * * *Checkpoints are used by the SPV {@link BlockChain} to initialize fresh - * {@link org.bitcoinj.store.SPVBlockStore}s. They are not used by fully validating mode, which instead has a + * {@link com.dogecoin.dogecoinj.store.SPVBlockStore}s. They are not used by fully validating mode, which instead has a * different concept of checkpoints that are used to hard-code the validity of blocks that violate BIP30 (duplicate * coinbase transactions). Those "checkpoints" can be found in NetworkParameters.
* diff --git a/core/src/main/java/org/bitcoinj/core/ChildMessage.java b/core/src/main/java/com/dogecoin/dogecoinj/core/ChildMessage.java similarity index 98% rename from core/src/main/java/org/bitcoinj/core/ChildMessage.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/ChildMessage.java index 6d38c6a7..a58505bf 100644 --- a/core/src/main/java/org/bitcoinj/core/ChildMessage.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/ChildMessage.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; import javax.annotation.Nullable; diff --git a/core/src/main/java/org/bitcoinj/core/Coin.java b/core/src/main/java/com/dogecoin/dogecoinj/core/Coin.java similarity index 98% rename from core/src/main/java/org/bitcoinj/core/Coin.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/Coin.java index 4d8728a9..c7bc06b7 100644 --- a/core/src/main/java/org/bitcoinj/core/Coin.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/Coin.java @@ -14,9 +14,9 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; -import org.bitcoinj.utils.MonetaryFormat; +import com.dogecoin.dogecoinj.utils.MonetaryFormat; import com.google.common.math.LongMath; import java.io.Serializable; diff --git a/core/src/main/java/org/bitcoinj/core/DownloadListener.java b/core/src/main/java/com/dogecoin/dogecoinj/core/DownloadListener.java similarity index 98% rename from core/src/main/java/org/bitcoinj/core/DownloadListener.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/DownloadListener.java index cda3e28b..13e09a68 100644 --- a/core/src/main/java/org/bitcoinj/core/DownloadListener.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/DownloadListener.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/core/src/main/java/org/bitcoinj/core/DumpedPrivateKey.java b/core/src/main/java/com/dogecoin/dogecoinj/core/DumpedPrivateKey.java similarity index 99% rename from core/src/main/java/org/bitcoinj/core/DumpedPrivateKey.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/DumpedPrivateKey.java index ac7cc387..160e62b7 100644 --- a/core/src/main/java/org/bitcoinj/core/DumpedPrivateKey.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/DumpedPrivateKey.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; import com.google.common.base.Objects; import com.google.common.base.Preconditions; diff --git a/core/src/main/java/org/bitcoinj/core/ECKey.java b/core/src/main/java/com/dogecoin/dogecoinj/core/ECKey.java similarity index 98% rename from core/src/main/java/org/bitcoinj/core/ECKey.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/ECKey.java index 52523c72..ea0921f9 100644 --- a/core/src/main/java/org/bitcoinj/core/ECKey.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/ECKey.java @@ -15,16 +15,16 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; -import org.bitcoinj.crypto.*; +import com.dogecoin.dogecoinj.crypto.*; import com.google.common.annotations.VisibleForTesting; import com.google.common.base.Objects; import com.google.common.base.Objects.ToStringHelper; import com.google.common.base.Preconditions; import com.google.common.primitives.UnsignedBytes; import org.bitcoin.NativeSecp256k1; -import org.bitcoinj.wallet.Protos; +import com.dogecoin.dogecoinj.wallet.Protos; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.spongycastle.asn1.*; @@ -380,7 +380,7 @@ public class ECKey implements EncryptableItem, Serializable { /** * Output this ECKey as an ASN.1 encoded private key, as understood by OpenSSL or used by the Bitcoin reference * implementation in its wallet storage format. - * @throws org.bitcoinj.core.ECKey.MissingPrivateKeyException if the private key is missing or encrypted. + * @throws com.dogecoin.dogecoinj.core.ECKey.MissingPrivateKeyException if the private key is missing or encrypted. */ public byte[] toASN1() { try { @@ -565,7 +565,7 @@ public class ECKey implements EncryptableItem, Serializable { /** * Signs the given hash and returns the R and S components as BigIntegers. In the Bitcoin protocol, they are - * usually encoded using ASN.1 format, so you want {@link org.bitcoinj.core.ECKey.ECDSASignature#toASN1()} + * usually encoded using ASN.1 format, so you want {@link com.dogecoin.dogecoinj.core.ECKey.ECDSASignature#toASN1()} * instead. However sometimes the independent components can be useful, for instance, if you're going to do * further EC maths on them. * @throws KeyCrypterException if this ECKey doesn't have a private part. @@ -584,7 +584,7 @@ public class ECKey implements EncryptableItem, Serializable { /** * Signs the given hash and returns the R and S components as BigIntegers. In the Bitcoin protocol, they are - * usually encoded using DER format, so you want {@link org.bitcoinj.core.ECKey.ECDSASignature#encodeToDER()} + * usually encoded using DER format, so you want {@link com.dogecoin.dogecoinj.core.ECKey.ECDSASignature#encodeToDER()} * instead. However sometimes the independent components can be useful, for instance, if you're doing to do further * EC maths on them. * @@ -909,7 +909,7 @@ public class ECKey implements EncryptableItem, Serializable { /** * Returns a 32 byte array containing the private key. - * @throws org.bitcoinj.core.ECKey.MissingPrivateKeyException if the private key bytes are missing/encrypted. + * @throws com.dogecoin.dogecoinj.core.ECKey.MissingPrivateKeyException if the private key bytes are missing/encrypted. */ public byte[] getPrivKeyBytes() { return Utils.bigIntegerToBytes(getPrivKey(), 32); @@ -917,7 +917,7 @@ public class ECKey implements EncryptableItem, Serializable { /** * Exports the private key in the form used by the Satoshi client "dumpprivkey" and "importprivkey" commands. Use - * the {@link org.bitcoinj.core.DumpedPrivateKey#toString()} method to get the string. + * the {@link com.dogecoin.dogecoinj.core.DumpedPrivateKey#toString()} method to get the string. * * @param params The network this key is intended for use on. * @return Private key bytes as a {@link DumpedPrivateKey}. diff --git a/core/src/main/java/org/bitcoinj/core/EmptyMessage.java b/core/src/main/java/com/dogecoin/dogecoinj/core/EmptyMessage.java similarity index 98% rename from core/src/main/java/org/bitcoinj/core/EmptyMessage.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/EmptyMessage.java index deb0cadc..45676497 100644 --- a/core/src/main/java/org/bitcoinj/core/EmptyMessage.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/EmptyMessage.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; import java.io.IOException; import java.io.OutputStream; diff --git a/core/src/main/java/org/bitcoinj/core/FilteredBlock.java b/core/src/main/java/com/dogecoin/dogecoinj/core/FilteredBlock.java similarity index 99% rename from core/src/main/java/org/bitcoinj/core/FilteredBlock.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/FilteredBlock.java index aa3eb80c..db1058b6 100644 --- a/core/src/main/java/org/bitcoinj/core/FilteredBlock.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/FilteredBlock.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; import java.io.IOException; import java.io.OutputStream; diff --git a/core/src/main/java/org/bitcoinj/core/FullPrunedBlockChain.java b/core/src/main/java/com/dogecoin/dogecoinj/core/FullPrunedBlockChain.java similarity index 98% rename from core/src/main/java/org/bitcoinj/core/FullPrunedBlockChain.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/FullPrunedBlockChain.java index ebbc3cab..000b8adb 100644 --- a/core/src/main/java/org/bitcoinj/core/FullPrunedBlockChain.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/FullPrunedBlockChain.java @@ -15,13 +15,13 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; -import org.bitcoinj.script.Script; -import org.bitcoinj.script.Script.VerifyFlag; -import org.bitcoinj.store.BlockStoreException; -import org.bitcoinj.store.FullPrunedBlockStore; -import org.bitcoinj.utils.DaemonThreadFactory; +import com.dogecoin.dogecoinj.script.Script; +import com.dogecoin.dogecoinj.script.Script.VerifyFlag; +import com.dogecoin.dogecoinj.store.BlockStoreException; +import com.dogecoin.dogecoinj.store.FullPrunedBlockStore; +import com.dogecoin.dogecoinj.utils.DaemonThreadFactory; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/core/src/main/java/org/bitcoinj/core/GetAddrMessage.java b/core/src/main/java/com/dogecoin/dogecoinj/core/GetAddrMessage.java similarity index 96% rename from core/src/main/java/org/bitcoinj/core/GetAddrMessage.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/GetAddrMessage.java index 54339c04..56e59682 100644 --- a/core/src/main/java/org/bitcoinj/core/GetAddrMessage.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/GetAddrMessage.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; /** * Represents the "getaddr" P2P protocol message, which requests network {@link AddressMessage}s from a peer. Not to diff --git a/core/src/main/java/org/bitcoinj/core/GetBlocksMessage.java b/core/src/main/java/com/dogecoin/dogecoinj/core/GetBlocksMessage.java similarity index 99% rename from core/src/main/java/org/bitcoinj/core/GetBlocksMessage.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/GetBlocksMessage.java index 0f3765fc..5ae66c71 100644 --- a/core/src/main/java/org/bitcoinj/core/GetBlocksMessage.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/GetBlocksMessage.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; import java.io.IOException; import java.io.OutputStream; diff --git a/core/src/main/java/org/bitcoinj/core/GetDataMessage.java b/core/src/main/java/com/dogecoin/dogecoinj/core/GetDataMessage.java similarity index 98% rename from core/src/main/java/org/bitcoinj/core/GetDataMessage.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/GetDataMessage.java index 2848a525..378cca37 100644 --- a/core/src/main/java/org/bitcoinj/core/GetDataMessage.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/GetDataMessage.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; /** * Represents the "getdata" P2P network message, which requests the contents of blocks or transactions given their diff --git a/core/src/main/java/org/bitcoinj/core/GetHeadersMessage.java b/core/src/main/java/com/dogecoin/dogecoinj/core/GetHeadersMessage.java similarity index 98% rename from core/src/main/java/org/bitcoinj/core/GetHeadersMessage.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/GetHeadersMessage.java index 5f0d89f0..e35d8e04 100644 --- a/core/src/main/java/org/bitcoinj/core/GetHeadersMessage.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/GetHeadersMessage.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; import java.util.List; diff --git a/core/src/main/java/org/bitcoinj/core/GetUTXOsMessage.java b/core/src/main/java/com/dogecoin/dogecoinj/core/GetUTXOsMessage.java similarity index 98% rename from core/src/main/java/org/bitcoinj/core/GetUTXOsMessage.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/GetUTXOsMessage.java index 08f5c9f3..6602e3d8 100644 --- a/core/src/main/java/org/bitcoinj/core/GetUTXOsMessage.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/GetUTXOsMessage.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; import com.google.common.collect.ImmutableList; diff --git a/core/src/main/java/org/bitcoinj/core/HeadersMessage.java b/core/src/main/java/com/dogecoin/dogecoinj/core/HeadersMessage.java similarity index 99% rename from core/src/main/java/org/bitcoinj/core/HeadersMessage.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/HeadersMessage.java index 3953af85..3ae9cc06 100644 --- a/core/src/main/java/org/bitcoinj/core/HeadersMessage.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/HeadersMessage.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/core/src/main/java/org/bitcoinj/core/InsufficientMoneyException.java b/core/src/main/java/com/dogecoin/dogecoinj/core/InsufficientMoneyException.java similarity index 97% rename from core/src/main/java/org/bitcoinj/core/InsufficientMoneyException.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/InsufficientMoneyException.java index da3d5278..ce1d304e 100644 --- a/core/src/main/java/org/bitcoinj/core/InsufficientMoneyException.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/InsufficientMoneyException.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; import javax.annotation.Nullable; diff --git a/core/src/main/java/org/bitcoinj/core/InventoryItem.java b/core/src/main/java/com/dogecoin/dogecoinj/core/InventoryItem.java similarity index 97% rename from core/src/main/java/org/bitcoinj/core/InventoryItem.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/InventoryItem.java index 63320703..4441b0ef 100644 --- a/core/src/main/java/org/bitcoinj/core/InventoryItem.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/InventoryItem.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; public class InventoryItem { diff --git a/core/src/main/java/org/bitcoinj/core/InventoryMessage.java b/core/src/main/java/com/dogecoin/dogecoinj/core/InventoryMessage.java similarity index 98% rename from core/src/main/java/org/bitcoinj/core/InventoryMessage.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/InventoryMessage.java index ac8685a3..0b318361 100644 --- a/core/src/main/java/org/bitcoinj/core/InventoryMessage.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/InventoryMessage.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; import static com.google.common.base.Preconditions.checkArgument; diff --git a/core/src/main/java/org/bitcoinj/core/ListMessage.java b/core/src/main/java/com/dogecoin/dogecoinj/core/ListMessage.java similarity index 99% rename from core/src/main/java/org/bitcoinj/core/ListMessage.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/ListMessage.java index 0ec4d959..38dee710 100644 --- a/core/src/main/java/org/bitcoinj/core/ListMessage.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/ListMessage.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; import java.io.IOException; import java.io.OutputStream; diff --git a/core/src/main/java/org/bitcoinj/core/MemoryPool.java b/core/src/main/java/com/dogecoin/dogecoinj/core/MemoryPool.java similarity index 99% rename from core/src/main/java/org/bitcoinj/core/MemoryPool.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/MemoryPool.java index 8b9f9452..78252fc3 100644 --- a/core/src/main/java/org/bitcoinj/core/MemoryPool.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/MemoryPool.java @@ -14,9 +14,9 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; -import org.bitcoinj.utils.Threading; +import com.dogecoin.dogecoinj.utils.Threading; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/core/src/main/java/org/bitcoinj/core/MemoryPoolMessage.java b/core/src/main/java/com/dogecoin/dogecoinj/core/MemoryPoolMessage.java similarity index 97% rename from core/src/main/java/org/bitcoinj/core/MemoryPoolMessage.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/MemoryPoolMessage.java index 5c90fbbd..c0b75d33 100644 --- a/core/src/main/java/org/bitcoinj/core/MemoryPoolMessage.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/MemoryPoolMessage.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; import java.io.IOException; import java.io.OutputStream; diff --git a/core/src/main/java/org/bitcoinj/core/Message.java b/core/src/main/java/com/dogecoin/dogecoinj/core/Message.java similarity index 99% rename from core/src/main/java/org/bitcoinj/core/Message.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/Message.java index 26cf995a..e50025ef 100644 --- a/core/src/main/java/org/bitcoinj/core/Message.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/Message.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/core/src/main/java/org/bitcoinj/core/Monetary.java b/core/src/main/java/com/dogecoin/dogecoinj/core/Monetary.java similarity index 96% rename from core/src/main/java/org/bitcoinj/core/Monetary.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/Monetary.java index 26bf479e..6f61f010 100644 --- a/core/src/main/java/org/bitcoinj/core/Monetary.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/Monetary.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; import java.io.Serializable; diff --git a/core/src/main/java/org/bitcoinj/core/NetworkParameters.java b/core/src/main/java/com/dogecoin/dogecoinj/core/NetworkParameters.java similarity index 95% rename from core/src/main/java/org/bitcoinj/core/NetworkParameters.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/NetworkParameters.java index 2efd3420..e0c4be90 100644 --- a/core/src/main/java/org/bitcoinj/core/NetworkParameters.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/NetworkParameters.java @@ -15,11 +15,11 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; -import org.bitcoinj.params.*; -import org.bitcoinj.script.Script; -import org.bitcoinj.script.ScriptOpCodes; +import com.dogecoin.dogecoinj.params.*; +import com.dogecoin.dogecoinj.script.Script; +import com.dogecoin.dogecoinj.script.ScriptOpCodes; import com.google.common.base.Objects; import javax.annotation.Nullable; @@ -28,7 +28,7 @@ import java.io.Serializable; import java.math.BigInteger; import java.util.*; -import static org.bitcoinj.core.Coin.*; +import static com.dogecoin.dogecoinj.core.Coin.*; /** *NetworkParameters contains the data needed for working with an instantiation of a Bitcoin chain.
@@ -282,7 +282,7 @@ public abstract class NetworkParameters implements Serializable { } /** - * First byte of a base58 encoded address. See {@link org.bitcoinj.core.Address}. This is the same as acceptableAddressCodes[0] and + * First byte of a base58 encoded address. See {@link com.dogecoin.dogecoinj.core.Address}. This is the same as acceptableAddressCodes[0] and * is the one used for "normal" addresses. Other types of address may be encountered with version codes found in * the acceptableAddressCodes array. */ @@ -297,7 +297,7 @@ public abstract class NetworkParameters implements Serializable { return p2shHeader; } - /** First byte of a base58 encoded dumped private key. See {@link org.bitcoinj.core.DumpedPrivateKey}. */ + /** First byte of a base58 encoded dumped private key. See {@link com.dogecoin.dogecoinj.core.DumpedPrivateKey}. */ public int getDumpedPrivateKeyHeader() { return dumpedPrivateKeyHeader; } @@ -338,7 +338,7 @@ public abstract class NetworkParameters implements Serializable { } /** - * The key used to sign {@link org.bitcoinj.core.AlertMessage}s. You can use {@link org.bitcoinj.core.ECKey#verify(byte[], byte[], byte[])} to verify + * The key used to sign {@link com.dogecoin.dogecoinj.core.AlertMessage}s. You can use {@link com.dogecoin.dogecoinj.core.ECKey#verify(byte[], byte[], byte[])} to verify * signatures using it. */ public byte[] getAlertSigningKey() { diff --git a/core/src/main/java/org/bitcoinj/core/NotFoundMessage.java b/core/src/main/java/com/dogecoin/dogecoinj/core/NotFoundMessage.java similarity index 97% rename from core/src/main/java/org/bitcoinj/core/NotFoundMessage.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/NotFoundMessage.java index ea1319d0..072e9647 100644 --- a/core/src/main/java/org/bitcoinj/core/NotFoundMessage.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/NotFoundMessage.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; import java.util.ArrayList; import java.util.List; diff --git a/core/src/main/java/org/bitcoinj/core/PartialMerkleTree.java b/core/src/main/java/com/dogecoin/dogecoinj/core/PartialMerkleTree.java similarity index 99% rename from core/src/main/java/org/bitcoinj/core/PartialMerkleTree.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/PartialMerkleTree.java index 511f2437..06750eef 100644 --- a/core/src/main/java/org/bitcoinj/core/PartialMerkleTree.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/PartialMerkleTree.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; import java.io.IOException; import java.io.OutputStream; @@ -23,7 +23,7 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import static org.bitcoinj.core.Utils.*; +import static com.dogecoin.dogecoinj.core.Utils.*; /** *A data structure that contains proofs of block inclusion for one or more transactions, in an efficient manner.
diff --git a/core/src/main/java/org/bitcoinj/core/Peer.java b/core/src/main/java/com/dogecoin/dogecoinj/core/Peer.java similarity index 98% rename from core/src/main/java/org/bitcoinj/core/Peer.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/Peer.java index 9bee391f..00535b93 100644 --- a/core/src/main/java/org/bitcoinj/core/Peer.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/Peer.java @@ -14,12 +14,12 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; -import org.bitcoinj.store.BlockStore; -import org.bitcoinj.store.BlockStoreException; -import org.bitcoinj.utils.ListenerRegistration; -import org.bitcoinj.utils.Threading; +import com.dogecoin.dogecoinj.store.BlockStore; +import com.dogecoin.dogecoinj.store.BlockStoreException; +import com.dogecoin.dogecoinj.utils.ListenerRegistration; +import com.dogecoin.dogecoinj.utils.Threading; import com.google.common.base.Objects; import com.google.common.base.Preconditions; import com.google.common.collect.Lists; @@ -47,8 +47,8 @@ import static com.google.common.base.Preconditions.checkState; * handles low-level message (de)serialization. * *Note that timeouts are handled by the extended - * {@link org.bitcoinj.net.AbstractTimeoutHandler} and timeout is automatically disabled (using - * {@link org.bitcoinj.net.AbstractTimeoutHandler#setTimeoutEnabled(boolean)}) once the version + * {@link com.dogecoin.dogecoinj.net.AbstractTimeoutHandler} and timeout is automatically disabled (using + * {@link com.dogecoin.dogecoinj.net.AbstractTimeoutHandler#setTimeoutEnabled(boolean)}) once the version * handshake completes.
*/ public class Peer extends PeerSocketHandler { @@ -157,9 +157,9 @@ public class Peer extends PeerSocketHandler { * *Note that this does NOT make a connection to the given remoteAddress, it only creates a handler for a * connection. If you want to create a one-off connection, create a Peer and pass it to - * {@link org.bitcoinj.net.NioClientManager#openConnection(java.net.SocketAddress, org.bitcoinj.net.StreamParser)} + * {@link com.dogecoin.dogecoinj.net.NioClientManager#openConnection(java.net.SocketAddress, com.dogecoin.dogecoinj.net.StreamParser)} * or - * {@link org.bitcoinj.net.NioClient#NioClient(java.net.SocketAddress, org.bitcoinj.net.StreamParser, int)}.
+ * {@link com.dogecoin.dogecoinj.net.NioClient#NioClient(java.net.SocketAddress, com.dogecoin.dogecoinj.net.StreamParser, int)}. * *The remoteAddress provided should match the remote address of the peer which is being connected to, and is * used to keep track of which peers relayed transactions and offer more descriptive logging.
@@ -175,9 +175,9 @@ public class Peer extends PeerSocketHandler { * *Note that this does NOT make a connection to the given remoteAddress, it only creates a handler for a * connection. If you want to create a one-off connection, create a Peer and pass it to - * {@link org.bitcoinj.net.NioClientManager#openConnection(java.net.SocketAddress, org.bitcoinj.net.StreamParser)} + * {@link com.dogecoin.dogecoinj.net.NioClientManager#openConnection(java.net.SocketAddress, com.dogecoin.dogecoinj.net.StreamParser)} * or - * {@link org.bitcoinj.net.NioClient#NioClient(java.net.SocketAddress, org.bitcoinj.net.StreamParser, int)}.
+ * {@link com.dogecoin.dogecoinj.net.NioClient#NioClient(java.net.SocketAddress, com.dogecoin.dogecoinj.net.StreamParser, int)}. * *The remoteAddress provided should match the remote address of the peer which is being connected to, and is * used to keep track of which peers relayed transactions and offer more descriptive logging.
@@ -194,9 +194,9 @@ public class Peer extends PeerSocketHandler { * *Note that this does NOT make a connection to the given remoteAddress, it only creates a handler for a * connection. If you want to create a one-off connection, create a Peer and pass it to - * {@link org.bitcoinj.net.NioClientManager#openConnection(java.net.SocketAddress, org.bitcoinj.net.StreamParser)} + * {@link com.dogecoin.dogecoinj.net.NioClientManager#openConnection(java.net.SocketAddress, com.dogecoin.dogecoinj.net.StreamParser)} * or - * {@link org.bitcoinj.net.NioClient#NioClient(java.net.SocketAddress, org.bitcoinj.net.StreamParser, int)}.
+ * {@link com.dogecoin.dogecoinj.net.NioClient#NioClient(java.net.SocketAddress, com.dogecoin.dogecoinj.net.StreamParser, int)}. * *The remoteAddress provided should match the remote address of the peer which is being connected to, and is * used to keep track of which peers relayed transactions and offer more descriptive logging.
@@ -225,9 +225,9 @@ public class Peer extends PeerSocketHandler { * *Note that this does NOT make a connection to the given remoteAddress, it only creates a handler for a * connection. If you want to create a one-off connection, create a Peer and pass it to - * {@link org.bitcoinj.net.NioClientManager#openConnection(java.net.SocketAddress, org.bitcoinj.net.StreamParser)} + * {@link com.dogecoin.dogecoinj.net.NioClientManager#openConnection(java.net.SocketAddress, com.dogecoin.dogecoinj.net.StreamParser)} * or - * {@link org.bitcoinj.net.NioClient#NioClient(java.net.SocketAddress, org.bitcoinj.net.StreamParser, int)}.
+ * {@link com.dogecoin.dogecoinj.net.NioClient#NioClient(java.net.SocketAddress, com.dogecoin.dogecoinj.net.StreamParser, int)}. * *The remoteAddress provided should match the remote address of the peer which is being connected to, and is * used to keep track of which peers relayed transactions and offer more descriptive logging.
@@ -1406,7 +1406,7 @@ public class Peer extends PeerSocketHandler { /** * Sends the peer a ping message and returns a future that will be invoked when the pong is received back. * The future provides a number which is the number of milliseconds elapsed between the ping and the pong. - * Once the pong is received the value returned by {@link org.bitcoinj.core.Peer#getLastPingTime()} is + * Once the pong is received the value returned by {@link com.dogecoin.dogecoinj.core.Peer#getLastPingTime()} is * updated. * @throws ProtocolException if the peer version is too low to support measurable pings. */ @@ -1425,7 +1425,7 @@ public class Peer extends PeerSocketHandler { } /** - * Returns the elapsed time of the last ping/pong cycle. If {@link org.bitcoinj.core.Peer#ping()} has never + * Returns the elapsed time of the last ping/pong cycle. If {@link com.dogecoin.dogecoinj.core.Peer#ping()} has never * been called or we did not hear back the "pong" message yet, returns {@link Long#MAX_VALUE}. */ public long getLastPingTime() { @@ -1440,7 +1440,7 @@ public class Peer extends PeerSocketHandler { } /** - * Returns a moving average of the last N ping/pong cycles. If {@link org.bitcoinj.core.Peer#ping()} has never + * Returns a moving average of the last N ping/pong cycles. If {@link com.dogecoin.dogecoinj.core.Peer#ping()} has never * been called or we did not hear back the "pong" message yet, returns {@link Long#MAX_VALUE}. The moving average * window is 5 buckets. */ diff --git a/core/src/main/java/org/bitcoinj/core/PeerAddress.java b/core/src/main/java/com/dogecoin/dogecoinj/core/PeerAddress.java similarity index 97% rename from core/src/main/java/org/bitcoinj/core/PeerAddress.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/PeerAddress.java index a508b8e5..80328807 100644 --- a/core/src/main/java/org/bitcoinj/core/PeerAddress.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/PeerAddress.java @@ -14,9 +14,9 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; -import org.bitcoinj.params.MainNetParams; +import com.dogecoin.dogecoinj.params.MainNetParams; import com.google.common.net.InetAddresses; import java.io.IOException; @@ -26,8 +26,8 @@ import java.net.InetAddress; import java.net.InetSocketAddress; import java.net.UnknownHostException; -import static org.bitcoinj.core.Utils.uint32ToByteStreamLE; -import static org.bitcoinj.core.Utils.uint64ToByteStreamLE; +import static com.dogecoin.dogecoinj.core.Utils.uint32ToByteStreamLE; +import static com.dogecoin.dogecoinj.core.Utils.uint64ToByteStreamLE; import static com.google.common.base.Preconditions.checkNotNull; /** diff --git a/core/src/main/java/org/bitcoinj/core/PeerEventListener.java b/core/src/main/java/com/dogecoin/dogecoinj/core/PeerEventListener.java similarity index 95% rename from core/src/main/java/org/bitcoinj/core/PeerEventListener.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/PeerEventListener.java index 31f4e538..04c205d2 100644 --- a/core/src/main/java/org/bitcoinj/core/PeerEventListener.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/PeerEventListener.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; import javax.annotation.Nullable; import java.util.List; @@ -79,7 +79,7 @@ public interface PeerEventListener { * callback is passed as "m" to the next, forming a chain. * *Note that this will never be called if registered with any executor other than - * {@link org.bitcoinj.utils.Threading#SAME_THREAD}
+ * {@link com.dogecoin.dogecoinj.utils.Threading#SAME_THREAD} */ public Message onPreMessageReceived(Peer peer, Message m); @@ -93,7 +93,7 @@ public interface PeerEventListener { * items as possible which appear in the {@link GetDataMessage}, or null if you're not interested in responding. * *Note that this will never be called if registered with any executor other than - * {@link org.bitcoinj.utils.Threading#SAME_THREAD}
+ * {@link com.dogecoin.dogecoinj.utils.Threading#SAME_THREAD} */ @Nullable public ListAlternatively, you may know that the transaction is "dead", that is, one or more of its inputs have * been double spent and will never confirm unless there is another re-org.
* - *TransactionConfidence is updated via the {@link org.bitcoinj.core.TransactionConfidence#incrementDepthInBlocks()} + *
TransactionConfidence is updated via the {@link com.dogecoin.dogecoinj.core.TransactionConfidence#incrementDepthInBlocks()} * method to ensure the block depth is up to date.
- * To make a copy that won't be changed, use {@link org.bitcoinj.core.TransactionConfidence#duplicate()}. + * To make a copy that won't be changed, use {@link com.dogecoin.dogecoinj.core.TransactionConfidence#duplicate()}. */ public class TransactionConfidence implements Serializable { private static final long serialVersionUID = 4577920141400556444L; @@ -87,7 +87,7 @@ public class TransactionConfidence implements Serializable { * announced and is considered valid by the network. A pending transaction will be announced if the containing * wallet has been attached to a live {@link PeerGroup} using {@link PeerGroup#addWallet(Wallet)}. * You can estimate how likely the transaction is to be included by connecting to a bunch of nodes then measuring - * how many announce it, using {@link org.bitcoinj.core.TransactionConfidence#numBroadcastPeers()}. + * how many announce it, using {@link com.dogecoin.dogecoinj.core.TransactionConfidence#numBroadcastPeers()}. * Or if you saw it from a trusted peer, you can assume it's valid and will get mined sooner or later as well. */ PENDING(2), @@ -155,7 +155,7 @@ public class TransactionConfidence implements Serializable { /** An enum that describes why a transaction confidence listener is being invoked (i.e. the class of change). */ public enum ChangeReason { /** - * Occurs when the type returned by {@link org.bitcoinj.core.TransactionConfidence#getConfidenceType()} + * Occurs when the type returned by {@link com.dogecoin.dogecoinj.core.TransactionConfidence#getConfidenceType()} * has changed. For example, if a PENDING transaction changes to BUILDING or DEAD, then this reason will * be given. It's a high level summary. */ @@ -413,7 +413,7 @@ public class TransactionConfidence implements Serializable { /** * The source of a transaction tries to identify where it came from originally. For instance, did we download it * from the peer to peer network, or make it ourselves, or receive it via Bluetooth, or import it from another app, - * and so on. This information is useful for {@link org.bitcoinj.wallet.CoinSelector} implementations to risk analyze + * and so on. This information is useful for {@link com.dogecoin.dogecoinj.wallet.CoinSelector} implementations to risk analyze * transactions and decide when to spend them. */ public synchronized Source getSource() { @@ -423,7 +423,7 @@ public class TransactionConfidence implements Serializable { /** * The source of a transaction tries to identify where it came from originally. For instance, did we download it * from the peer to peer network, or make it ourselves, or receive it via Bluetooth, or import it from another app, - * and so on. This information is useful for {@link org.bitcoinj.wallet.CoinSelector} implementations to risk analyze + * and so on. This information is useful for {@link com.dogecoin.dogecoinj.wallet.CoinSelector} implementations to risk analyze * transactions and decide when to spend them. */ public synchronized void setSource(Source source) { diff --git a/core/src/main/java/org/bitcoinj/core/TransactionInput.java b/core/src/main/java/com/dogecoin/dogecoinj/core/TransactionInput.java similarity index 98% rename from core/src/main/java/org/bitcoinj/core/TransactionInput.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/TransactionInput.java index ac41d0b8..ebd86120 100644 --- a/core/src/main/java/org/bitcoinj/core/TransactionInput.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/TransactionInput.java @@ -15,12 +15,12 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; -import org.bitcoinj.script.Script; -import org.bitcoinj.wallet.DefaultRiskAnalysis; -import org.bitcoinj.wallet.KeyBag; -import org.bitcoinj.wallet.RedeemData; +import com.dogecoin.dogecoinj.script.Script; +import com.dogecoin.dogecoinj.wallet.DefaultRiskAnalysis; +import com.dogecoin.dogecoinj.wallet.KeyBag; +import com.dogecoin.dogecoinj.wallet.RedeemData; import javax.annotation.Nullable; import java.io.IOException; @@ -308,7 +308,7 @@ public class TransactionInput extends ChildMessage implements Serializable { /** * Alias for getOutpoint().getConnectedRedeemData(keyBag) - * @see TransactionOutPoint#getConnectedRedeemData(org.bitcoinj.wallet.KeyBag) + * @see TransactionOutPoint#getConnectedRedeemData(com.dogecoin.dogecoinj.wallet.KeyBag) */ @Nullable public RedeemData getConnectedRedeemData(KeyBag keyBag) throws ScriptException { diff --git a/core/src/main/java/org/bitcoinj/core/TransactionOutPoint.java b/core/src/main/java/com/dogecoin/dogecoinj/core/TransactionOutPoint.java similarity index 97% rename from core/src/main/java/org/bitcoinj/core/TransactionOutPoint.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/TransactionOutPoint.java index 12677210..19096d3a 100644 --- a/core/src/main/java/org/bitcoinj/core/TransactionOutPoint.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/TransactionOutPoint.java @@ -14,11 +14,11 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; -import org.bitcoinj.script.Script; -import org.bitcoinj.wallet.KeyBag; -import org.bitcoinj.wallet.RedeemData; +import com.dogecoin.dogecoinj.script.Script; +import com.dogecoin.dogecoinj.wallet.KeyBag; +import com.dogecoin.dogecoinj.wallet.RedeemData; import javax.annotation.Nullable; import java.io.IOException; @@ -136,7 +136,7 @@ public class TransactionOutPoint extends ChildMessage implements Serializable { /** * Returns the ECKey identified in the connected output, for either pay-to-address scripts or pay-to-key scripts. - * For P2SH scripts you can use {@link #getConnectedRedeemData(org.bitcoinj.wallet.KeyBag)} and then get the + * For P2SH scripts you can use {@link #getConnectedRedeemData(com.dogecoin.dogecoinj.wallet.KeyBag)} and then get the * key from RedeemData. * If the script form cannot be understood, throws ScriptException. * diff --git a/core/src/main/java/org/bitcoinj/core/TransactionOutput.java b/core/src/main/java/com/dogecoin/dogecoinj/core/TransactionOutput.java similarity index 98% rename from core/src/main/java/org/bitcoinj/core/TransactionOutput.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/TransactionOutput.java index 7cf0579e..03f68a03 100644 --- a/core/src/main/java/org/bitcoinj/core/TransactionOutput.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/TransactionOutput.java @@ -15,10 +15,10 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; -import org.bitcoinj.script.Script; -import org.bitcoinj.script.ScriptBuilder; +import com.dogecoin.dogecoinj.script.Script; +import com.dogecoin.dogecoinj.script.ScriptBuilder; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -234,7 +234,7 @@ public class TransactionOutput extends ChildMessage implements Serializable { * so we call them "dust outputs" and they're made non standard. The choice of one third is somewhat arbitrary and * may change in future. * - *You probably should use {@link org.bitcoinj.core.TransactionOutput#getMinNonDustValue()} which uses + *
You probably should use {@link com.dogecoin.dogecoinj.core.TransactionOutput#getMinNonDustValue()} which uses * a safe fee-per-kb by default.
* * @param feePerKbRequired The fee required per kilobyte. Note that this is the same as the reference client's -minrelaytxfee * 3 diff --git a/core/src/main/java/org/bitcoinj/core/TransactionOutputChanges.java b/core/src/main/java/com/dogecoin/dogecoinj/core/TransactionOutputChanges.java similarity index 98% rename from core/src/main/java/org/bitcoinj/core/TransactionOutputChanges.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/TransactionOutputChanges.java index 30ad7779..5e27aeef 100644 --- a/core/src/main/java/org/bitcoinj/core/TransactionOutputChanges.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/TransactionOutputChanges.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; import java.io.IOException; import java.io.InputStream; diff --git a/core/src/main/java/org/bitcoinj/core/UTXOsMessage.java b/core/src/main/java/com/dogecoin/dogecoinj/core/UTXOsMessage.java similarity index 99% rename from core/src/main/java/org/bitcoinj/core/UTXOsMessage.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/UTXOsMessage.java index 7e30eabc..9bcfa0f5 100644 --- a/core/src/main/java/org/bitcoinj/core/UTXOsMessage.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/UTXOsMessage.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; import java.io.IOException; import java.io.OutputStream; diff --git a/core/src/main/java/org/bitcoinj/core/UnknownMessage.java b/core/src/main/java/com/dogecoin/dogecoinj/core/UnknownMessage.java similarity index 96% rename from core/src/main/java/org/bitcoinj/core/UnknownMessage.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/UnknownMessage.java index 04649230..fc9a02b8 100644 --- a/core/src/main/java/org/bitcoinj/core/UnknownMessage.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/UnknownMessage.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; public class UnknownMessage extends EmptyMessage { private static final long serialVersionUID = 3614705938207918775L; diff --git a/core/src/main/java/org/bitcoinj/core/UnsafeByteArrayOutputStream.java b/core/src/main/java/com/dogecoin/dogecoinj/core/UnsafeByteArrayOutputStream.java similarity index 99% rename from core/src/main/java/org/bitcoinj/core/UnsafeByteArrayOutputStream.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/UnsafeByteArrayOutputStream.java index ad95cf3f..ec2b799d 100644 --- a/core/src/main/java/org/bitcoinj/core/UnsafeByteArrayOutputStream.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/UnsafeByteArrayOutputStream.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; import java.io.ByteArrayOutputStream; import java.io.IOException; diff --git a/core/src/main/java/org/bitcoinj/core/Utils.java b/core/src/main/java/com/dogecoin/dogecoinj/core/Utils.java similarity index 99% rename from core/src/main/java/org/bitcoinj/core/Utils.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/Utils.java index ee2984d1..b5efe240 100644 --- a/core/src/main/java/org/bitcoinj/core/Utils.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/Utils.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; import com.google.common.base.Charsets; import com.google.common.base.Joiner; diff --git a/core/src/main/java/org/bitcoinj/core/VarInt.java b/core/src/main/java/com/dogecoin/dogecoinj/core/VarInt.java similarity index 95% rename from core/src/main/java/org/bitcoinj/core/VarInt.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/VarInt.java index 1e4597bc..4747a21d 100644 --- a/core/src/main/java/org/bitcoinj/core/VarInt.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/VarInt.java @@ -14,10 +14,10 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; -import static org.bitcoinj.core.Utils.isLessThanUnsigned; -import static org.bitcoinj.core.Utils.isLessThanOrEqualToUnsigned; +import static com.dogecoin.dogecoinj.core.Utils.isLessThanUnsigned; +import static com.dogecoin.dogecoinj.core.Utils.isLessThanOrEqualToUnsigned; /** * A variable-length encoded integer using Satoshis encoding. diff --git a/core/src/main/java/org/bitcoinj/core/VerificationException.java b/core/src/main/java/com/dogecoin/dogecoinj/core/VerificationException.java similarity index 98% rename from core/src/main/java/org/bitcoinj/core/VerificationException.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/VerificationException.java index 5ddf2a87..5926d966 100644 --- a/core/src/main/java/org/bitcoinj/core/VerificationException.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/VerificationException.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; @SuppressWarnings("serial") public class VerificationException extends RuntimeException { diff --git a/core/src/main/java/org/bitcoinj/core/VersionAck.java b/core/src/main/java/com/dogecoin/dogecoinj/core/VersionAck.java similarity index 96% rename from core/src/main/java/org/bitcoinj/core/VersionAck.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/VersionAck.java index e32a2530..20ee31e2 100644 --- a/core/src/main/java/org/bitcoinj/core/VersionAck.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/VersionAck.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; /** * The verack message, sent by a client accepting the version message they diff --git a/core/src/main/java/org/bitcoinj/core/VersionMessage.java b/core/src/main/java/com/dogecoin/dogecoinj/core/VersionMessage.java similarity index 99% rename from core/src/main/java/org/bitcoinj/core/VersionMessage.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/VersionMessage.java index f2fe025b..694aad8d 100644 --- a/core/src/main/java/org/bitcoinj/core/VersionMessage.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/VersionMessage.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; import javax.annotation.Nullable; import java.io.IOException; diff --git a/core/src/main/java/org/bitcoinj/core/VersionedChecksummedBytes.java b/core/src/main/java/com/dogecoin/dogecoinj/core/VersionedChecksummedBytes.java similarity index 98% rename from core/src/main/java/org/bitcoinj/core/VersionedChecksummedBytes.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/VersionedChecksummedBytes.java index 4c4f9a49..23388555 100644 --- a/core/src/main/java/org/bitcoinj/core/VersionedChecksummedBytes.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/VersionedChecksummedBytes.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; import static com.google.common.base.Preconditions.checkArgument; diff --git a/core/src/main/java/org/bitcoinj/core/Wallet.java b/core/src/main/java/com/dogecoin/dogecoinj/core/Wallet.java similarity index 97% rename from core/src/main/java/org/bitcoinj/core/Wallet.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/Wallet.java index 16fe2802..3347c7b1 100644 --- a/core/src/main/java/org/bitcoinj/core/Wallet.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/Wallet.java @@ -15,25 +15,25 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; -import org.bitcoinj.core.TransactionConfidence.ConfidenceType; -import org.bitcoinj.crypto.*; -import org.bitcoinj.params.UnitTestParams; -import org.bitcoinj.script.Script; -import org.bitcoinj.script.ScriptBuilder; -import org.bitcoinj.script.ScriptChunk; -import org.bitcoinj.signers.MissingSigResolutionSigner; -import org.bitcoinj.signers.LocalTransactionSigner; -import org.bitcoinj.signers.TransactionSigner; -import org.bitcoinj.store.UnreadableWalletException; -import org.bitcoinj.store.WalletProtobufSerializer; -import org.bitcoinj.utils.BaseTaggableObject; -import org.bitcoinj.utils.ExchangeRate; -import org.bitcoinj.utils.ListenerRegistration; -import org.bitcoinj.utils.Threading; -import org.bitcoinj.wallet.*; -import org.bitcoinj.wallet.WalletTransaction.Pool; +import com.dogecoin.dogecoinj.core.TransactionConfidence.ConfidenceType; +import com.dogecoin.dogecoinj.crypto.*; +import com.dogecoin.dogecoinj.params.UnitTestParams; +import com.dogecoin.dogecoinj.script.Script; +import com.dogecoin.dogecoinj.script.ScriptBuilder; +import com.dogecoin.dogecoinj.script.ScriptChunk; +import com.dogecoin.dogecoinj.signers.MissingSigResolutionSigner; +import com.dogecoin.dogecoinj.signers.LocalTransactionSigner; +import com.dogecoin.dogecoinj.signers.TransactionSigner; +import com.dogecoin.dogecoinj.store.UnreadableWalletException; +import com.dogecoin.dogecoinj.store.WalletProtobufSerializer; +import com.dogecoin.dogecoinj.utils.BaseTaggableObject; +import com.dogecoin.dogecoinj.utils.ExchangeRate; +import com.dogecoin.dogecoinj.utils.ListenerRegistration; +import com.dogecoin.dogecoinj.utils.Threading; +import com.dogecoin.dogecoinj.wallet.*; +import com.dogecoin.dogecoinj.wallet.WalletTransaction.Pool; import com.google.common.annotations.VisibleForTesting; import com.google.common.base.Objects; import com.google.common.base.Objects.ToStringHelper; @@ -46,7 +46,7 @@ import com.google.common.util.concurrent.SettableFuture; import com.google.protobuf.ByteString; import org.bitcoin.protocols.payments.Protos.PaymentDetails; -import org.bitcoinj.wallet.Protos.Wallet.EncryptionType; +import com.dogecoin.dogecoinj.wallet.Protos.Wallet.EncryptionType; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.spongycastle.crypto.params.KeyParameter; @@ -98,7 +98,7 @@ import static com.google.common.base.Preconditions.*; * that simplifies this for you although you're still responsible for manually triggering a save when your app is about * to quit because the auto-save feature waits a moment before actually committing to disk to avoid IO thrashing when * the wallet is changing very fast (eg due to a block chain sync). See - * {@link Wallet#autosaveToFile(java.io.File, long, java.util.concurrent.TimeUnit, org.bitcoinj.wallet.WalletFiles.Listener)} + * {@link Wallet#autosaveToFile(java.io.File, long, java.util.concurrent.TimeUnit, com.dogecoin.dogecoinj.wallet.WalletFiles.Listener)} * for more information about this. */ public class Wallet extends BaseTaggableObject implements Serializable, BlockChainListener, PeerFilterProvider, KeyBag, TransactionBag { @@ -333,7 +333,7 @@ public class Wallet extends BaseTaggableObject implements Serializable, BlockCha /** * Returns a key that hasn't been seen in a transaction yet, and which is suitable for displaying in a wallet * user interface as "a convenient key to receive funds on" when the purpose parameter is - * {@link org.bitcoinj.wallet.KeyChain.KeyPurpose#RECEIVE_FUNDS}. The returned key is stable until + * {@link com.dogecoin.dogecoinj.wallet.KeyChain.KeyPurpose#RECEIVE_FUNDS}. The returned key is stable until * it's actually seen in a pending or confirmed transaction, at which point this method will start returning * a different key (for each purpose independently). */ @@ -348,15 +348,15 @@ public class Wallet extends BaseTaggableObject implements Serializable, BlockCha } /** - * An alias for calling {@link #currentKey(org.bitcoinj.wallet.KeyChain.KeyPurpose)} with - * {@link org.bitcoinj.wallet.KeyChain.KeyPurpose#RECEIVE_FUNDS} as the parameter. + * An alias for calling {@link #currentKey(com.dogecoin.dogecoinj.wallet.KeyChain.KeyPurpose)} with + * {@link com.dogecoin.dogecoinj.wallet.KeyChain.KeyPurpose#RECEIVE_FUNDS} as the parameter. */ public DeterministicKey currentReceiveKey() { return currentKey(KeyChain.KeyPurpose.RECEIVE_FUNDS); } /** - * Returns address for a {@link #currentKey(org.bitcoinj.wallet.KeyChain.KeyPurpose)} + * Returns address for a {@link #currentKey(com.dogecoin.dogecoinj.wallet.KeyChain.KeyPurpose)} */ public Address currentAddress(KeyChain.KeyPurpose purpose) { lock.lock(); @@ -369,8 +369,8 @@ public class Wallet extends BaseTaggableObject implements Serializable, BlockCha } /** - * An alias for calling {@link #currentAddress(org.bitcoinj.wallet.KeyChain.KeyPurpose)} with - * {@link org.bitcoinj.wallet.KeyChain.KeyPurpose#RECEIVE_FUNDS} as the parameter. + * An alias for calling {@link #currentAddress(com.dogecoin.dogecoinj.wallet.KeyChain.KeyPurpose)} with + * {@link com.dogecoin.dogecoinj.wallet.KeyChain.KeyPurpose#RECEIVE_FUNDS} as the parameter. */ public Address currentReceiveAddress() { return currentAddress(KeyChain.KeyPurpose.RECEIVE_FUNDS); @@ -379,8 +379,8 @@ public class Wallet extends BaseTaggableObject implements Serializable, BlockCha /** * Returns a key that has not been returned by this method before (fresh). You can think of this as being * a newly created key, although the notion of "create" is not really valid for a - * {@link org.bitcoinj.wallet.DeterministicKeyChain}. When the parameter is - * {@link org.bitcoinj.wallet.KeyChain.KeyPurpose#RECEIVE_FUNDS} the returned key is suitable for being put + * {@link com.dogecoin.dogecoinj.wallet.DeterministicKeyChain}. When the parameter is + * {@link com.dogecoin.dogecoinj.wallet.KeyChain.KeyPurpose#RECEIVE_FUNDS} the returned key is suitable for being put * into a receive coins wizard type UI. You should use this when the user is definitely going to hand this key out * to someone who wishes to send money. */ @@ -391,8 +391,8 @@ public class Wallet extends BaseTaggableObject implements Serializable, BlockCha /** * Returns a key/s that has not been returned by this method before (fresh). You can think of this as being * a newly created key/s, although the notion of "create" is not really valid for a - * {@link org.bitcoinj.wallet.DeterministicKeyChain}. When the parameter is - * {@link org.bitcoinj.wallet.KeyChain.KeyPurpose#RECEIVE_FUNDS} the returned key is suitable for being put + * {@link com.dogecoin.dogecoinj.wallet.DeterministicKeyChain}. When the parameter is + * {@link com.dogecoin.dogecoinj.wallet.KeyChain.KeyPurpose#RECEIVE_FUNDS} the returned key is suitable for being put * into a receive coins wizard type UI. You should use this when the user is definitely going to hand this key/s out * to someone who wishes to send money. */ @@ -411,15 +411,15 @@ public class Wallet extends BaseTaggableObject implements Serializable, BlockCha } /** - * An alias for calling {@link #freshKey(org.bitcoinj.wallet.KeyChain.KeyPurpose)} with - * {@link org.bitcoinj.wallet.KeyChain.KeyPurpose#RECEIVE_FUNDS} as the parameter. + * An alias for calling {@link #freshKey(com.dogecoin.dogecoinj.wallet.KeyChain.KeyPurpose)} with + * {@link com.dogecoin.dogecoinj.wallet.KeyChain.KeyPurpose#RECEIVE_FUNDS} as the parameter. */ public DeterministicKey freshReceiveKey() { return freshKey(KeyChain.KeyPurpose.RECEIVE_FUNDS); } /** - * Returns address for a {@link #freshKey(org.bitcoinj.wallet.KeyChain.KeyPurpose)} + * Returns address for a {@link #freshKey(com.dogecoin.dogecoinj.wallet.KeyChain.KeyPurpose)} */ public Address freshAddress(KeyChain.KeyPurpose purpose) { lock.lock(); @@ -433,8 +433,8 @@ public class Wallet extends BaseTaggableObject implements Serializable, BlockCha } /** - * An alias for calling {@link #freshAddress(org.bitcoinj.wallet.KeyChain.KeyPurpose)} with - * {@link org.bitcoinj.wallet.KeyChain.KeyPurpose#RECEIVE_FUNDS} as the parameter. + * An alias for calling {@link #freshAddress(com.dogecoin.dogecoinj.wallet.KeyChain.KeyPurpose)} with + * {@link com.dogecoin.dogecoinj.wallet.KeyChain.KeyPurpose#RECEIVE_FUNDS} as the parameter. */ public Address freshReceiveAddress() { return freshAddress(KeyChain.KeyPurpose.RECEIVE_FUNDS); @@ -573,7 +573,7 @@ public class Wallet extends BaseTaggableObject implements Serializable, BlockCha /** * Imports the given keys to the wallet. - * If {@link Wallet#autosaveToFile(java.io.File, long, java.util.concurrent.TimeUnit, org.bitcoinj.wallet.WalletFiles.Listener)} + * If {@link Wallet#autosaveToFile(java.io.File, long, java.util.concurrent.TimeUnit, com.dogecoin.dogecoinj.wallet.WalletFiles.Listener)} * has been called, triggers an auto save bypassing the normal coalescing delay and event handlers. * Returns the number of keys added, after duplicates are ignored. The onKeyAdded event will be called for each key * in the list that was not already present. @@ -635,7 +635,7 @@ public class Wallet extends BaseTaggableObject implements Serializable, BlockCha keychain.addAndActivateHDChain(chain); } - /** See {@link org.bitcoinj.wallet.DeterministicKeyChain#setLookaheadSize(int)} for more info on this. */ + /** See {@link com.dogecoin.dogecoinj.wallet.DeterministicKeyChain#setLookaheadSize(int)} for more info on this. */ public void setKeychainLookaheadSize(int lookaheadSize) { lock.lock(); try { @@ -645,12 +645,12 @@ public class Wallet extends BaseTaggableObject implements Serializable, BlockCha } } - /** See {@link org.bitcoinj.wallet.DeterministicKeyChain#setLookaheadSize(int)} for more info on this. */ + /** See {@link com.dogecoin.dogecoinj.wallet.DeterministicKeyChain#setLookaheadSize(int)} for more info on this. */ public int getKeychainLookaheadSize() { return keychain.getLookaheadSize(); } - /** See {@link org.bitcoinj.wallet.DeterministicKeyChain#setLookaheadThreshold(int)} for more info on this. */ + /** See {@link com.dogecoin.dogecoinj.wallet.DeterministicKeyChain#setLookaheadThreshold(int)} for more info on this. */ public void setKeychainLookaheadThreshold(int num) { lock.lock(); try { @@ -661,7 +661,7 @@ public class Wallet extends BaseTaggableObject implements Serializable, BlockCha } } - /** See {@link org.bitcoinj.wallet.DeterministicKeyChain#setLookaheadThreshold(int)} for more info on this. */ + /** See {@link com.dogecoin.dogecoinj.wallet.DeterministicKeyChain#setLookaheadThreshold(int)} for more info on this. */ public int getKeychainLookaheadThreshold() { lock.lock(); try { @@ -861,7 +861,7 @@ public class Wallet extends BaseTaggableObject implements Serializable, BlockCha /** * Marks all keys used in the transaction output as used in the wallet. - * See {@link org.bitcoinj.wallet.DeterministicKeyChain#markKeyAsUsed(DeterministicKey)} for more info on this. + * See {@link com.dogecoin.dogecoinj.wallet.DeterministicKeyChain#markKeyAsUsed(DeterministicKey)} for more info on this. */ private void markKeysAsUsed(Transaction tx) { lock.lock(); @@ -888,7 +888,7 @@ public class Wallet extends BaseTaggableObject implements Serializable, BlockCha /** * Returns the immutable seed for the current active HD chain. - * @throws org.bitcoinj.core.ECKey.MissingPrivateKeyException if the seed is unavailable (watching wallet) + * @throws com.dogecoin.dogecoinj.core.ECKey.MissingPrivateKeyException if the seed is unavailable (watching wallet) */ public DeterministicSeed getKeyChainSeed() { lock.lock(); @@ -917,7 +917,7 @@ public class Wallet extends BaseTaggableObject implements Serializable, BlockCha } /** - * Convenience wrapper around {@link Wallet#encrypt(org.bitcoinj.crypto.KeyCrypter, + * Convenience wrapper around {@link Wallet#encrypt(com.dogecoin.dogecoinj.crypto.KeyCrypter, * org.spongycastle.crypto.params.KeyParameter)} which uses the default Scrypt key derivation algorithm and * parameters to derive a key from the given password. */ @@ -934,7 +934,7 @@ public class Wallet extends BaseTaggableObject implements Serializable, BlockCha /** * Encrypt the wallet using the KeyCrypter and the AES key. A good default KeyCrypter to use is - * {@link org.bitcoinj.crypto.KeyCrypterScrypt}. + * {@link com.dogecoin.dogecoinj.crypto.KeyCrypterScrypt}. * * @param keyCrypter The KeyCrypter that specifies how to encrypt/ decrypt a key * @param aesKey AES key to use (normally created using KeyCrypter#deriveKey and cached as it is time consuming to create from a password) @@ -1212,7 +1212,7 @@ public class Wallet extends BaseTaggableObject implements Serializable, BlockCha /** ** Disables auto-saving, after it had been enabled with - * {@link Wallet#autosaveToFile(java.io.File, long, java.util.concurrent.TimeUnit, org.bitcoinj.wallet.WalletFiles.Listener)} + * {@link Wallet#autosaveToFile(java.io.File, long, java.util.concurrent.TimeUnit, com.dogecoin.dogecoinj.wallet.WalletFiles.Listener)} * before. This method blocks until finished. *
*/ @@ -2595,7 +2595,7 @@ public class Wallet extends BaseTaggableObject implements Serializable, BlockCha /** * Returns the earliest creation time of keys or watched scripts in this wallet, in seconds since the epoch, ie the min - * of {@link org.bitcoinj.core.ECKey#getCreationTimeSeconds()}. This can return zero if at least one key does + * of {@link com.dogecoin.dogecoinj.core.ECKey#getCreationTimeSeconds()}. This can return zero if at least one key does * not have that data (was created before key timestamping was implemented).* * This method is most often used in conjunction with {@link PeerGroup#setFastCatchupTimeSecs(long)} in order to @@ -2848,7 +2848,7 @@ public class Wallet extends BaseTaggableObject implements Serializable, BlockCha * money to fail! Finally please be aware that any listeners on the future will run either on the calling thread * if it completes immediately, or eventually on a background thread if the balance is not yet at the right * level. If you do something that means you know the balance should be sufficient to trigger the future, - * you can use {@link org.bitcoinj.utils.Threading#waitForUserCode()} to block until the future had a + * you can use {@link com.dogecoin.dogecoinj.utils.Threading#waitForUserCode()} to block until the future had a * chance to be updated.
*/ public ListenableFutureAn object implementing this interface can be added to a {@link Wallet} and provide arbitrary byte arrays that will diff --git a/core/src/main/java/org/bitcoinj/core/WrongNetworkException.java b/core/src/main/java/com/dogecoin/dogecoinj/core/WrongNetworkException.java similarity index 97% rename from core/src/main/java/org/bitcoinj/core/WrongNetworkException.java rename to core/src/main/java/com/dogecoin/dogecoinj/core/WrongNetworkException.java index e49dd284..4e687832 100644 --- a/core/src/main/java/org/bitcoinj/core/WrongNetworkException.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/WrongNetworkException.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.bitcoinj.core; +package com.dogecoin.dogecoinj.core; import java.util.Arrays; diff --git a/core/src/main/java/com/dogecoin/dogecoinj/core/package-info.java b/core/src/main/java/com/dogecoin/dogecoinj/core/package-info.java new file mode 100644 index 00000000..8d3617f5 --- /dev/null +++ b/core/src/main/java/com/dogecoin/dogecoinj/core/package-info.java @@ -0,0 +1,8 @@ +/** + * The core package contains classes for network messages like {@link com.dogecoin.dogecoinj.core.Block} and + * {@link com.dogecoin.dogecoinj.core.Transaction}, peer connectivity via {@link com.dogecoin.dogecoinj.core.PeerGroup}, + * block chain management and the {@link com.dogecoin.dogecoinj.core.Wallet} class. + * If what you're doing can be described as basic bitcoin tasks, the code is probably found here. + * To learn more please consult the documentation on the website. + */ +package com.dogecoin.dogecoinj.core; \ No newline at end of file diff --git a/core/src/main/java/org/bitcoinj/crypto/BIP38PrivateKey.java b/core/src/main/java/com/dogecoin/dogecoinj/crypto/BIP38PrivateKey.java similarity index 99% rename from core/src/main/java/org/bitcoinj/crypto/BIP38PrivateKey.java rename to core/src/main/java/com/dogecoin/dogecoinj/crypto/BIP38PrivateKey.java index 3b7d3e42..09b10678 100644 --- a/core/src/main/java/org/bitcoinj/crypto/BIP38PrivateKey.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/crypto/BIP38PrivateKey.java @@ -14,9 +14,9 @@ * limitations under the License. */ -package org.bitcoinj.crypto; +package com.dogecoin.dogecoinj.crypto; -import org.bitcoinj.core.*; +import com.dogecoin.dogecoinj.core.*; import com.google.common.base.Charsets; import com.google.common.base.Objects; import com.google.common.primitives.Bytes; diff --git a/core/src/main/java/org/bitcoinj/crypto/ChildNumber.java b/core/src/main/java/com/dogecoin/dogecoinj/crypto/ChildNumber.java similarity index 98% rename from core/src/main/java/org/bitcoinj/crypto/ChildNumber.java rename to core/src/main/java/com/dogecoin/dogecoinj/crypto/ChildNumber.java index 4e93f85e..798f9113 100644 --- a/core/src/main/java/org/bitcoinj/crypto/ChildNumber.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/crypto/ChildNumber.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.bitcoinj.crypto; +package com.dogecoin.dogecoinj.crypto; /** *
This is just a wrapper for the i (child number) as per BIP 32 with a boolean getter for the most significant bit diff --git a/core/src/main/java/org/bitcoinj/crypto/DRMWorkaround.java b/core/src/main/java/com/dogecoin/dogecoinj/crypto/DRMWorkaround.java similarity index 96% rename from core/src/main/java/org/bitcoinj/crypto/DRMWorkaround.java rename to core/src/main/java/com/dogecoin/dogecoinj/crypto/DRMWorkaround.java index e250436c..fd4934c3 100644 --- a/core/src/main/java/org/bitcoinj/crypto/DRMWorkaround.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/crypto/DRMWorkaround.java @@ -1,6 +1,6 @@ -package org.bitcoinj.crypto; +package com.dogecoin.dogecoinj.crypto; -import org.bitcoinj.core.Utils; +import com.dogecoin.dogecoinj.core.Utils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/core/src/main/java/org/bitcoinj/crypto/DeterministicHierarchy.java b/core/src/main/java/com/dogecoin/dogecoinj/crypto/DeterministicHierarchy.java similarity index 99% rename from core/src/main/java/org/bitcoinj/crypto/DeterministicHierarchy.java rename to core/src/main/java/com/dogecoin/dogecoinj/crypto/DeterministicHierarchy.java index 0f9cf2ef..4eb7af1b 100644 --- a/core/src/main/java/org/bitcoinj/crypto/DeterministicHierarchy.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/crypto/DeterministicHierarchy.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.bitcoinj.crypto; +package com.dogecoin.dogecoinj.crypto; import com.google.common.collect.ImmutableList; import com.google.common.collect.Maps; diff --git a/core/src/main/java/org/bitcoinj/crypto/DeterministicKey.java b/core/src/main/java/com/dogecoin/dogecoinj/crypto/DeterministicKey.java similarity index 98% rename from core/src/main/java/org/bitcoinj/crypto/DeterministicKey.java rename to core/src/main/java/com/dogecoin/dogecoinj/crypto/DeterministicKey.java index ff49b71b..6e9a055f 100644 --- a/core/src/main/java/org/bitcoinj/crypto/DeterministicKey.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/crypto/DeterministicKey.java @@ -14,9 +14,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.bitcoinj.crypto; +package com.dogecoin.dogecoinj.crypto; -import org.bitcoinj.core.*; +import com.dogecoin.dogecoinj.core.*; import com.google.common.base.Objects; import com.google.common.base.Objects.ToStringHelper; import com.google.common.collect.ImmutableList; @@ -28,7 +28,7 @@ import java.math.BigInteger; import java.nio.ByteBuffer; import java.util.Arrays; -import static org.bitcoinj.core.Utils.HEX; +import static com.dogecoin.dogecoinj.core.Utils.HEX; import static com.google.common.base.Preconditions.*; /** @@ -204,7 +204,7 @@ public class DeterministicKey extends ECKey { } /** - * Returns this keys {@link org.bitcoinj.crypto.KeyCrypter} or the keycrypter of its parent key. + * Returns this keys {@link com.dogecoin.dogecoinj.crypto.KeyCrypter} or the keycrypter of its parent key. */ @Override @Nullable public KeyCrypter getKeyCrypter() { @@ -424,7 +424,7 @@ public class DeterministicKey extends ECKey { /** * The creation time of a deterministic key is equal to that of its parent, unless this key is the root of a tree - * in which case the time is stored alongside the key as per normal, see {@link org.bitcoinj.core.ECKey#getCreationTimeSeconds()}. + * in which case the time is stored alongside the key as per normal, see {@link com.dogecoin.dogecoinj.core.ECKey#getCreationTimeSeconds()}. */ @Override public long getCreationTimeSeconds() { diff --git a/core/src/main/java/org/bitcoinj/crypto/EncryptableItem.java b/core/src/main/java/com/dogecoin/dogecoinj/crypto/EncryptableItem.java similarity index 88% rename from core/src/main/java/org/bitcoinj/crypto/EncryptableItem.java rename to core/src/main/java/com/dogecoin/dogecoinj/crypto/EncryptableItem.java index c860daed..38ec502c 100644 --- a/core/src/main/java/org/bitcoinj/crypto/EncryptableItem.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/crypto/EncryptableItem.java @@ -14,15 +14,15 @@ * limitations under the License. */ -package org.bitcoinj.crypto; +package com.dogecoin.dogecoinj.crypto; -import org.bitcoinj.wallet.Protos; +import com.dogecoin.dogecoinj.wallet.Protos; import javax.annotation.Nullable; /** * Provides a uniform way to access something that can be optionally encrypted with a - * {@link org.bitcoinj.crypto.KeyCrypter}, yielding an {@link org.bitcoinj.crypto.EncryptedData}, and + * {@link com.dogecoin.dogecoinj.crypto.KeyCrypter}, yielding an {@link com.dogecoin.dogecoinj.crypto.EncryptedData}, and * which can have a creation time associated with it. */ public interface EncryptableItem { diff --git a/core/src/main/java/org/bitcoinj/crypto/EncryptedData.java b/core/src/main/java/com/dogecoin/dogecoinj/crypto/EncryptedData.java similarity index 98% rename from core/src/main/java/org/bitcoinj/crypto/EncryptedData.java rename to core/src/main/java/com/dogecoin/dogecoinj/crypto/EncryptedData.java index 040c9bbe..8f5b709e 100644 --- a/core/src/main/java/org/bitcoinj/crypto/EncryptedData.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/crypto/EncryptedData.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.bitcoinj.crypto; +package com.dogecoin.dogecoinj.crypto; import java.util.Arrays; diff --git a/core/src/main/java/org/bitcoinj/crypto/EncryptedPrivateKey.java b/core/src/main/java/com/dogecoin/dogecoinj/crypto/EncryptedPrivateKey.java similarity index 99% rename from core/src/main/java/org/bitcoinj/crypto/EncryptedPrivateKey.java rename to core/src/main/java/com/dogecoin/dogecoinj/crypto/EncryptedPrivateKey.java index 022825ea..243b726e 100644 --- a/core/src/main/java/org/bitcoinj/crypto/EncryptedPrivateKey.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/crypto/EncryptedPrivateKey.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.bitcoinj.crypto; +package com.dogecoin.dogecoinj.crypto; import com.google.common.base.Objects; diff --git a/core/src/main/java/org/bitcoinj/crypto/HDDerivationException.java b/core/src/main/java/com/dogecoin/dogecoinj/crypto/HDDerivationException.java similarity index 95% rename from core/src/main/java/org/bitcoinj/crypto/HDDerivationException.java rename to core/src/main/java/com/dogecoin/dogecoinj/crypto/HDDerivationException.java index 0bde8208..fde2621f 100644 --- a/core/src/main/java/org/bitcoinj/crypto/HDDerivationException.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/crypto/HDDerivationException.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.bitcoinj.crypto; +package com.dogecoin.dogecoinj.crypto; public class HDDerivationException extends RuntimeException { public HDDerivationException(String message) { diff --git a/core/src/main/java/org/bitcoinj/crypto/HDKeyDerivation.java b/core/src/main/java/com/dogecoin/dogecoinj/crypto/HDKeyDerivation.java similarity index 98% rename from core/src/main/java/org/bitcoinj/crypto/HDKeyDerivation.java rename to core/src/main/java/com/dogecoin/dogecoinj/crypto/HDKeyDerivation.java index 90a57117..6354506d 100644 --- a/core/src/main/java/org/bitcoinj/crypto/HDKeyDerivation.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/crypto/HDKeyDerivation.java @@ -14,10 +14,10 @@ * limitations under the License. */ -package org.bitcoinj.crypto; +package com.dogecoin.dogecoinj.crypto; -import org.bitcoinj.core.ECKey; -import org.bitcoinj.core.Utils; +import com.dogecoin.dogecoinj.core.ECKey; +import com.dogecoin.dogecoinj.core.Utils; import com.google.common.collect.ImmutableList; import org.spongycastle.crypto.macs.HMac; import org.spongycastle.math.ec.ECPoint; diff --git a/core/src/main/java/org/bitcoinj/crypto/HDUtils.java b/core/src/main/java/com/dogecoin/dogecoinj/crypto/HDUtils.java similarity index 97% rename from core/src/main/java/org/bitcoinj/crypto/HDUtils.java rename to core/src/main/java/com/dogecoin/dogecoinj/crypto/HDUtils.java index 111a7598..9f10dd38 100644 --- a/core/src/main/java/org/bitcoinj/crypto/HDUtils.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/crypto/HDUtils.java @@ -15,9 +15,9 @@ * limitations under the License. */ -package org.bitcoinj.crypto; +package com.dogecoin.dogecoinj.crypto; -import org.bitcoinj.core.ECKey; +import com.dogecoin.dogecoinj.core.ECKey; import com.google.common.base.Joiner; import com.google.common.collect.ImmutableList; import com.google.common.collect.Iterables; diff --git a/core/src/main/java/org/bitcoinj/crypto/KeyCrypter.java b/core/src/main/java/com/dogecoin/dogecoinj/crypto/KeyCrypter.java similarity index 96% rename from core/src/main/java/org/bitcoinj/crypto/KeyCrypter.java rename to core/src/main/java/com/dogecoin/dogecoinj/crypto/KeyCrypter.java index 67322351..a52b7be4 100644 --- a/core/src/main/java/org/bitcoinj/crypto/KeyCrypter.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/crypto/KeyCrypter.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.bitcoinj.crypto; +package com.dogecoin.dogecoinj.crypto; -import org.bitcoinj.wallet.Protos.Wallet.EncryptionType; +import com.dogecoin.dogecoinj.wallet.Protos.Wallet.EncryptionType; import org.spongycastle.crypto.params.KeyParameter; import java.io.Serializable; diff --git a/core/src/main/java/org/bitcoinj/crypto/KeyCrypterException.java b/core/src/main/java/com/dogecoin/dogecoinj/crypto/KeyCrypterException.java similarity index 95% rename from core/src/main/java/org/bitcoinj/crypto/KeyCrypterException.java rename to core/src/main/java/com/dogecoin/dogecoinj/crypto/KeyCrypterException.java index a3386ba6..c71df795 100644 --- a/core/src/main/java/org/bitcoinj/crypto/KeyCrypterException.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/crypto/KeyCrypterException.java @@ -1,4 +1,4 @@ -package org.bitcoinj.crypto; +package com.dogecoin.dogecoinj.crypto; /** *
Exception to provide the following to {@link EncrypterDecrypterOpenSSL}:
diff --git a/core/src/main/java/org/bitcoinj/crypto/KeyCrypterScrypt.java b/core/src/main/java/com/dogecoin/dogecoinj/crypto/KeyCrypterScrypt.java similarity index 97% rename from core/src/main/java/org/bitcoinj/crypto/KeyCrypterScrypt.java rename to core/src/main/java/com/dogecoin/dogecoinj/crypto/KeyCrypterScrypt.java index cf595a2e..f493098e 100644 --- a/core/src/main/java/org/bitcoinj/crypto/KeyCrypterScrypt.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/crypto/KeyCrypterScrypt.java @@ -14,14 +14,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.bitcoinj.crypto; +package com.dogecoin.dogecoinj.crypto; import com.google.common.base.Objects; import com.google.protobuf.ByteString; import com.lambdaworks.crypto.SCrypt; -import org.bitcoinj.wallet.Protos; -import org.bitcoinj.wallet.Protos.ScryptParameters; -import org.bitcoinj.wallet.Protos.Wallet.EncryptionType; +import com.dogecoin.dogecoinj.wallet.Protos; +import com.dogecoin.dogecoinj.wallet.Protos.ScryptParameters; +import com.dogecoin.dogecoinj.wallet.Protos.Wallet.EncryptionType; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.spongycastle.crypto.BufferedBlockCipher; diff --git a/core/src/main/java/org/bitcoinj/crypto/MnemonicCode.java b/core/src/main/java/com/dogecoin/dogecoinj/crypto/MnemonicCode.java similarity index 98% rename from core/src/main/java/org/bitcoinj/crypto/MnemonicCode.java rename to core/src/main/java/com/dogecoin/dogecoinj/crypto/MnemonicCode.java index 2b1272a4..2a00078f 100644 --- a/core/src/main/java/org/bitcoinj/crypto/MnemonicCode.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/crypto/MnemonicCode.java @@ -15,10 +15,10 @@ * limitations under the License. */ -package org.bitcoinj.crypto; +package com.dogecoin.dogecoinj.crypto; -import org.bitcoinj.core.Sha256Hash; -import org.bitcoinj.core.Utils; +import com.dogecoin.dogecoinj.core.Sha256Hash; +import com.dogecoin.dogecoinj.core.Utils; import com.google.common.base.Joiner; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -34,7 +34,7 @@ import java.util.ArrayList; import java.util.Collections; import java.util.List; -import static org.bitcoinj.core.Utils.HEX; +import static com.dogecoin.dogecoinj.core.Utils.HEX; /** * A MnemonicCode object may be used to convert between binary seed values and diff --git a/core/src/main/java/org/bitcoinj/crypto/MnemonicException.java b/core/src/main/java/com/dogecoin/dogecoinj/crypto/MnemonicException.java similarity index 97% rename from core/src/main/java/org/bitcoinj/crypto/MnemonicException.java rename to core/src/main/java/com/dogecoin/dogecoinj/crypto/MnemonicException.java index ff862f49..b117f778 100644 --- a/core/src/main/java/org/bitcoinj/crypto/MnemonicException.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/crypto/MnemonicException.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.bitcoinj.crypto; +package com.dogecoin.dogecoinj.crypto; /** * Exceptions thrown by the MnemonicCode module. diff --git a/core/src/main/java/org/bitcoinj/crypto/PBKDF2SHA512.java b/core/src/main/java/com/dogecoin/dogecoinj/crypto/PBKDF2SHA512.java similarity index 98% rename from core/src/main/java/org/bitcoinj/crypto/PBKDF2SHA512.java rename to core/src/main/java/com/dogecoin/dogecoinj/crypto/PBKDF2SHA512.java index 03cfa419..103a18a1 100644 --- a/core/src/main/java/org/bitcoinj/crypto/PBKDF2SHA512.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/crypto/PBKDF2SHA512.java @@ -21,7 +21,7 @@ * */ -package org.bitcoinj.crypto; +package com.dogecoin.dogecoinj.crypto; import javax.crypto.Mac; import javax.crypto.spec.SecretKeySpec; diff --git a/core/src/main/java/org/bitcoinj/crypto/TransactionSignature.java b/core/src/main/java/com/dogecoin/dogecoinj/crypto/TransactionSignature.java similarity index 96% rename from core/src/main/java/org/bitcoinj/crypto/TransactionSignature.java rename to core/src/main/java/com/dogecoin/dogecoinj/crypto/TransactionSignature.java index b260783a..2f4f259f 100644 --- a/core/src/main/java/org/bitcoinj/crypto/TransactionSignature.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/crypto/TransactionSignature.java @@ -14,18 +14,18 @@ * limitations under the License. */ -package org.bitcoinj.crypto; +package com.dogecoin.dogecoinj.crypto; -import org.bitcoinj.core.ECKey; -import org.bitcoinj.core.Transaction; -import org.bitcoinj.core.VerificationException; +import com.dogecoin.dogecoinj.core.ECKey; +import com.dogecoin.dogecoinj.core.Transaction; +import com.dogecoin.dogecoinj.core.VerificationException; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.math.BigInteger; /** - * A TransactionSignature wraps an {@link org.bitcoinj.core.ECKey.ECDSASignature} and adds methods for handling + * A TransactionSignature wraps an {@link com.dogecoin.dogecoinj.core.ECKey.ECDSASignature} and adds methods for handling * the additional SIGHASH mode byte that is used. */ public class TransactionSignature extends ECKey.ECDSASignature { diff --git a/core/src/main/java/org/bitcoinj/crypto/TrustStoreLoader.java b/core/src/main/java/com/dogecoin/dogecoinj/crypto/TrustStoreLoader.java similarity index 99% rename from core/src/main/java/org/bitcoinj/crypto/TrustStoreLoader.java rename to core/src/main/java/com/dogecoin/dogecoinj/crypto/TrustStoreLoader.java index 6aa7331a..9d083678 100644 --- a/core/src/main/java/org/bitcoinj/crypto/TrustStoreLoader.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/crypto/TrustStoreLoader.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.bitcoinj.crypto; +package com.dogecoin.dogecoinj.crypto; import javax.annotation.Nonnull; import java.io.File; diff --git a/core/src/main/java/org/bitcoinj/crypto/X509Utils.java b/core/src/main/java/com/dogecoin/dogecoinj/crypto/X509Utils.java similarity index 96% rename from core/src/main/java/org/bitcoinj/crypto/X509Utils.java rename to core/src/main/java/com/dogecoin/dogecoinj/crypto/X509Utils.java index 0d07ec22..ae06d75a 100644 --- a/core/src/main/java/org/bitcoinj/crypto/X509Utils.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/crypto/X509Utils.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.bitcoinj.crypto; +package com.dogecoin.dogecoinj.crypto; import com.google.common.base.Joiner; import org.spongycastle.asn1.ASN1ObjectIdentifier; @@ -38,7 +38,7 @@ import java.util.List; /** * X509Utils provides tools for working with X.509 certificates and keystores, as used in the BIP 70 payment protocol. - * For more details on this, see {@link org.bitcoinj.protocols.payments.PaymentSession}, the article "Working with + * For more details on this, see {@link com.dogecoin.dogecoinj.protocols.payments.PaymentSession}, the article "Working with * the payment protocol" on the bitcoinj website, or the Bitcoin developer guide. */ public class X509Utils { diff --git a/core/src/main/java/org/bitcoinj/crypto/package-info.java b/core/src/main/java/com/dogecoin/dogecoinj/crypto/package-info.java similarity index 93% rename from core/src/main/java/org/bitcoinj/crypto/package-info.java rename to core/src/main/java/com/dogecoin/dogecoinj/crypto/package-info.java index 9c5bc84e..1e68c09d 100644 --- a/core/src/main/java/org/bitcoinj/crypto/package-info.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/crypto/package-info.java @@ -5,4 +5,4 @@ * on strong crypto. This is legal because Oracle got permission to ship strong AES to everyone years ago but hasn't * bothered to actually remove the logic barriers. */ -package org.bitcoinj.crypto; \ No newline at end of file +package com.dogecoin.dogecoinj.crypto; \ No newline at end of file diff --git a/core/src/main/java/org/bitcoinj/jni/NativeBlockChainListener.java b/core/src/main/java/com/dogecoin/dogecoinj/jni/NativeBlockChainListener.java similarity index 96% rename from core/src/main/java/org/bitcoinj/jni/NativeBlockChainListener.java rename to core/src/main/java/com/dogecoin/dogecoinj/jni/NativeBlockChainListener.java index 560f6cd3..6d69961a 100644 --- a/core/src/main/java/org/bitcoinj/jni/NativeBlockChainListener.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/jni/NativeBlockChainListener.java @@ -14,9 +14,9 @@ * limitations under the License. */ -package org.bitcoinj.jni; +package com.dogecoin.dogecoinj.jni; -import org.bitcoinj.core.*; +import com.dogecoin.dogecoinj.core.*; import java.util.List; diff --git a/core/src/main/java/org/bitcoinj/jni/NativeFutureCallback.java b/core/src/main/java/com/dogecoin/dogecoinj/jni/NativeFutureCallback.java similarity index 96% rename from core/src/main/java/org/bitcoinj/jni/NativeFutureCallback.java rename to core/src/main/java/com/dogecoin/dogecoinj/jni/NativeFutureCallback.java index 67a47354..8109c64b 100644 --- a/core/src/main/java/org/bitcoinj/jni/NativeFutureCallback.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/jni/NativeFutureCallback.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.bitcoinj.jni; +package com.dogecoin.dogecoinj.jni; import com.google.common.util.concurrent.FutureCallback; diff --git a/core/src/main/java/org/bitcoinj/jni/NativePaymentChannelHandlerFactory.java b/core/src/main/java/com/dogecoin/dogecoinj/jni/NativePaymentChannelHandlerFactory.java similarity index 74% rename from core/src/main/java/org/bitcoinj/jni/NativePaymentChannelHandlerFactory.java rename to core/src/main/java/com/dogecoin/dogecoinj/jni/NativePaymentChannelHandlerFactory.java index 88e394ac..155ac8ab 100644 --- a/core/src/main/java/org/bitcoinj/jni/NativePaymentChannelHandlerFactory.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/jni/NativePaymentChannelHandlerFactory.java @@ -1,7 +1,7 @@ -package org.bitcoinj.jni; +package com.dogecoin.dogecoinj.jni; -import org.bitcoinj.protocols.channels.PaymentChannelServerListener; -import org.bitcoinj.protocols.channels.ServerConnectionEventHandler; +import com.dogecoin.dogecoinj.protocols.channels.PaymentChannelServerListener; +import com.dogecoin.dogecoinj.protocols.channels.ServerConnectionEventHandler; import javax.annotation.Nullable; import java.net.SocketAddress; diff --git a/core/src/main/java/org/bitcoinj/jni/NativePaymentChannelServerConnectionEventHandler.java b/core/src/main/java/com/dogecoin/dogecoinj/jni/NativePaymentChannelServerConnectionEventHandler.java similarity index 76% rename from core/src/main/java/org/bitcoinj/jni/NativePaymentChannelServerConnectionEventHandler.java rename to core/src/main/java/com/dogecoin/dogecoinj/jni/NativePaymentChannelServerConnectionEventHandler.java index f4c1ecc3..7029ab0f 100644 --- a/core/src/main/java/org/bitcoinj/jni/NativePaymentChannelServerConnectionEventHandler.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/jni/NativePaymentChannelServerConnectionEventHandler.java @@ -1,8 +1,8 @@ -package org.bitcoinj.jni; +package com.dogecoin.dogecoinj.jni; -import org.bitcoinj.core.*; -import org.bitcoinj.protocols.channels.PaymentChannelCloseException; -import org.bitcoinj.protocols.channels.ServerConnectionEventHandler; +import com.dogecoin.dogecoinj.core.*; +import com.dogecoin.dogecoinj.protocols.channels.PaymentChannelCloseException; +import com.dogecoin.dogecoinj.protocols.channels.ServerConnectionEventHandler; import com.google.common.util.concurrent.ListenableFuture; import com.google.protobuf.ByteString; diff --git a/core/src/main/java/org/bitcoinj/jni/NativePeerEventListener.java b/core/src/main/java/com/dogecoin/dogecoinj/jni/NativePeerEventListener.java similarity index 95% rename from core/src/main/java/org/bitcoinj/jni/NativePeerEventListener.java rename to core/src/main/java/com/dogecoin/dogecoinj/jni/NativePeerEventListener.java index 5010ae2d..4f6c7f38 100644 --- a/core/src/main/java/org/bitcoinj/jni/NativePeerEventListener.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/jni/NativePeerEventListener.java @@ -14,9 +14,9 @@ * limitations under the License. */ -package org.bitcoinj.jni; +package com.dogecoin.dogecoinj.jni; -import org.bitcoinj.core.*; +import com.dogecoin.dogecoinj.core.*; import java.util.List; import java.util.Set; diff --git a/core/src/main/java/org/bitcoinj/jni/NativeTransactionConfidenceListener.java b/core/src/main/java/com/dogecoin/dogecoinj/jni/NativeTransactionConfidenceListener.java similarity index 88% rename from core/src/main/java/org/bitcoinj/jni/NativeTransactionConfidenceListener.java rename to core/src/main/java/com/dogecoin/dogecoinj/jni/NativeTransactionConfidenceListener.java index 065d29aa..5ca800a1 100644 --- a/core/src/main/java/org/bitcoinj/jni/NativeTransactionConfidenceListener.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/jni/NativeTransactionConfidenceListener.java @@ -14,10 +14,10 @@ * limitations under the License. */ -package org.bitcoinj.jni; +package com.dogecoin.dogecoinj.jni; -import org.bitcoinj.core.Transaction; -import org.bitcoinj.core.TransactionConfidence; +import com.dogecoin.dogecoinj.core.Transaction; +import com.dogecoin.dogecoinj.core.TransactionConfidence; /** * An event listener that relays events to a native C++ object. A pointer to that object is stored in diff --git a/core/src/main/java/org/bitcoinj/jni/NativeWalletEventListener.java b/core/src/main/java/com/dogecoin/dogecoinj/jni/NativeWalletEventListener.java similarity index 83% rename from core/src/main/java/org/bitcoinj/jni/NativeWalletEventListener.java rename to core/src/main/java/com/dogecoin/dogecoinj/jni/NativeWalletEventListener.java index 705fc7b1..33605f7e 100644 --- a/core/src/main/java/org/bitcoinj/jni/NativeWalletEventListener.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/jni/NativeWalletEventListener.java @@ -14,14 +14,14 @@ * limitations under the License. */ -package org.bitcoinj.jni; +package com.dogecoin.dogecoinj.jni; -import org.bitcoinj.core.Coin; -import org.bitcoinj.core.ECKey; -import org.bitcoinj.core.Transaction; -import org.bitcoinj.core.Wallet; -import org.bitcoinj.core.WalletEventListener; -import org.bitcoinj.script.Script; +import com.dogecoin.dogecoinj.core.Coin; +import com.dogecoin.dogecoinj.core.ECKey; +import com.dogecoin.dogecoinj.core.Transaction; +import com.dogecoin.dogecoinj.core.Wallet; +import com.dogecoin.dogecoinj.core.WalletEventListener; +import com.dogecoin.dogecoinj.script.Script; import java.util.List; diff --git a/core/src/main/java/org/bitcoinj/kits/WalletAppKit.java b/core/src/main/java/com/dogecoin/dogecoinj/kits/WalletAppKit.java similarity index 97% rename from core/src/main/java/org/bitcoinj/kits/WalletAppKit.java rename to core/src/main/java/com/dogecoin/dogecoinj/kits/WalletAppKit.java index 7cb9f762..f90f8723 100644 --- a/core/src/main/java/org/bitcoinj/kits/WalletAppKit.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/kits/WalletAppKit.java @@ -15,23 +15,23 @@ * limitations under the License. */ -package org.bitcoinj.kits; +package com.dogecoin.dogecoinj.kits; import com.google.common.collect.ImmutableList; import com.google.common.util.concurrent.AbstractIdleService; import com.google.common.util.concurrent.MoreExecutors; import com.google.common.util.concurrent.Service; import com.subgraph.orchid.TorClient; -import org.bitcoinj.core.*; -import org.bitcoinj.net.discovery.DnsDiscovery; -import org.bitcoinj.protocols.channels.StoredPaymentChannelClientStates; -import org.bitcoinj.protocols.channels.StoredPaymentChannelServerStates; -import org.bitcoinj.store.BlockStoreException; -import org.bitcoinj.store.SPVBlockStore; -import org.bitcoinj.store.WalletProtobufSerializer; -import org.bitcoinj.wallet.DeterministicSeed; -import org.bitcoinj.wallet.KeyChainGroup; -import org.bitcoinj.wallet.Protos; +import com.dogecoin.dogecoinj.core.*; +import com.dogecoin.dogecoinj.net.discovery.DnsDiscovery; +import com.dogecoin.dogecoinj.protocols.channels.StoredPaymentChannelClientStates; +import com.dogecoin.dogecoinj.protocols.channels.StoredPaymentChannelServerStates; +import com.dogecoin.dogecoinj.store.BlockStoreException; +import com.dogecoin.dogecoinj.store.SPVBlockStore; +import com.dogecoin.dogecoinj.store.WalletProtobufSerializer; +import com.dogecoin.dogecoinj.wallet.DeterministicSeed; +import com.dogecoin.dogecoinj.wallet.KeyChainGroup; +import com.dogecoin.dogecoinj.wallet.Protos; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/core/src/main/java/org/bitcoinj/kits/package-info.java b/core/src/main/java/com/dogecoin/dogecoinj/kits/package-info.java similarity index 81% rename from core/src/main/java/org/bitcoinj/kits/package-info.java rename to core/src/main/java/com/dogecoin/dogecoinj/kits/package-info.java index b29b5f35..9fb64547 100644 --- a/core/src/main/java/org/bitcoinj/kits/package-info.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/kits/package-info.java @@ -2,4 +2,4 @@ * High level wrapper APIs around the bitcoinj building blocks. WalletAppKit is suitable for many different types of * apps that require an SPV wallet. */ -package org.bitcoinj.kits; \ No newline at end of file +package com.dogecoin.dogecoinj.kits; \ No newline at end of file diff --git a/core/src/main/java/org/bitcoinj/net/AbstractTimeoutHandler.java b/core/src/main/java/com/dogecoin/dogecoinj/net/AbstractTimeoutHandler.java similarity index 98% rename from core/src/main/java/org/bitcoinj/net/AbstractTimeoutHandler.java rename to core/src/main/java/com/dogecoin/dogecoinj/net/AbstractTimeoutHandler.java index 354fa43c..b0ad22d2 100644 --- a/core/src/main/java/org/bitcoinj/net/AbstractTimeoutHandler.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/net/AbstractTimeoutHandler.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.bitcoinj.net; +package com.dogecoin.dogecoinj.net; import java.util.Timer; import java.util.TimerTask; diff --git a/core/src/main/java/org/bitcoinj/net/BlockingClient.java b/core/src/main/java/com/dogecoin/dogecoinj/net/BlockingClient.java similarity index 99% rename from core/src/main/java/org/bitcoinj/net/BlockingClient.java rename to core/src/main/java/com/dogecoin/dogecoinj/net/BlockingClient.java index e564eb4a..bfc0cd85 100644 --- a/core/src/main/java/org/bitcoinj/net/BlockingClient.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/net/BlockingClient.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.bitcoinj.net; +package com.dogecoin.dogecoinj.net; import org.slf4j.LoggerFactory; diff --git a/core/src/main/java/org/bitcoinj/net/BlockingClientManager.java b/core/src/main/java/com/dogecoin/dogecoinj/net/BlockingClientManager.java similarity index 98% rename from core/src/main/java/org/bitcoinj/net/BlockingClientManager.java rename to core/src/main/java/com/dogecoin/dogecoinj/net/BlockingClientManager.java index bae580e7..54ad4cb8 100644 --- a/core/src/main/java/org/bitcoinj/net/BlockingClientManager.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/net/BlockingClientManager.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.bitcoinj.net; +package com.dogecoin.dogecoinj.net; import com.google.common.util.concurrent.AbstractIdleService; diff --git a/core/src/main/java/org/bitcoinj/net/ClientConnectionManager.java b/core/src/main/java/com/dogecoin/dogecoinj/net/ClientConnectionManager.java similarity index 97% rename from core/src/main/java/org/bitcoinj/net/ClientConnectionManager.java rename to core/src/main/java/com/dogecoin/dogecoinj/net/ClientConnectionManager.java index 1ec49af2..bad26bd9 100644 --- a/core/src/main/java/org/bitcoinj/net/ClientConnectionManager.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/net/ClientConnectionManager.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.bitcoinj.net; +package com.dogecoin.dogecoinj.net; import com.google.common.util.concurrent.Service; diff --git a/core/src/main/java/org/bitcoinj/net/ConnectionHandler.java b/core/src/main/java/com/dogecoin/dogecoinj/net/ConnectionHandler.java similarity index 98% rename from core/src/main/java/org/bitcoinj/net/ConnectionHandler.java rename to core/src/main/java/com/dogecoin/dogecoinj/net/ConnectionHandler.java index 57562042..625b2d8f 100644 --- a/core/src/main/java/org/bitcoinj/net/ConnectionHandler.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/net/ConnectionHandler.java @@ -14,10 +14,10 @@ * limitations under the License. */ -package org.bitcoinj.net; +package com.dogecoin.dogecoinj.net; -import org.bitcoinj.core.Message; -import org.bitcoinj.utils.Threading; +import com.dogecoin.dogecoinj.core.Message; +import com.dogecoin.dogecoinj.utils.Threading; import com.google.common.base.Throwables; import org.slf4j.LoggerFactory; diff --git a/core/src/main/java/org/bitcoinj/net/FilterMerger.java b/core/src/main/java/com/dogecoin/dogecoinj/net/FilterMerger.java similarity index 92% rename from core/src/main/java/org/bitcoinj/net/FilterMerger.java rename to core/src/main/java/com/dogecoin/dogecoinj/net/FilterMerger.java index d3dcb0c7..93f420e0 100644 --- a/core/src/main/java/org/bitcoinj/net/FilterMerger.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/net/FilterMerger.java @@ -1,7 +1,7 @@ -package org.bitcoinj.net; +package com.dogecoin.dogecoinj.net; -import org.bitcoinj.core.BloomFilter; -import org.bitcoinj.core.PeerFilterProvider; +import com.dogecoin.dogecoinj.core.BloomFilter; +import com.dogecoin.dogecoinj.core.PeerFilterProvider; import com.google.common.collect.ImmutableList; import java.util.LinkedList; @@ -10,9 +10,9 @@ import java.util.concurrent.locks.Lock; // This code is unit tested by the PeerGroup tests. /** - *A reusable object that will calculate, given a list of {@link org.bitcoinj.core.PeerFilterProvider}s, a merged - * {@link org.bitcoinj.core.BloomFilter} and earliest key time for all of them. - * Used by the {@link org.bitcoinj.core.PeerGroup} class internally.
+ *A reusable object that will calculate, given a list of {@link com.dogecoin.dogecoinj.core.PeerFilterProvider}s, a merged + * {@link com.dogecoin.dogecoinj.core.BloomFilter} and earliest key time for all of them. + * Used by the {@link com.dogecoin.dogecoinj.core.PeerGroup} class internally.
* *Thread safety: this class tracks the element count of the last filter it calculated and so must be synchronised
* externally or used from only one thread. It will acquire a lock on each filter in turn before performing the
diff --git a/core/src/main/java/org/bitcoinj/net/MessageWriteTarget.java b/core/src/main/java/com/dogecoin/dogecoinj/net/MessageWriteTarget.java
similarity index 96%
rename from core/src/main/java/org/bitcoinj/net/MessageWriteTarget.java
rename to core/src/main/java/com/dogecoin/dogecoinj/net/MessageWriteTarget.java
index 18166b47..2f18990b 100644
--- a/core/src/main/java/org/bitcoinj/net/MessageWriteTarget.java
+++ b/core/src/main/java/com/dogecoin/dogecoinj/net/MessageWriteTarget.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.bitcoinj.net;
+package com.dogecoin.dogecoinj.net;
import java.io.IOException;
diff --git a/core/src/main/java/org/bitcoinj/net/NioClient.java b/core/src/main/java/com/dogecoin/dogecoinj/net/NioClient.java
similarity index 99%
rename from core/src/main/java/org/bitcoinj/net/NioClient.java
rename to core/src/main/java/com/dogecoin/dogecoinj/net/NioClient.java
index cd83e9cf..8a0b8d0b 100644
--- a/core/src/main/java/org/bitcoinj/net/NioClient.java
+++ b/core/src/main/java/com/dogecoin/dogecoinj/net/NioClient.java
@@ -15,7 +15,7 @@
* limitations under the License.
*/
-package org.bitcoinj.net;
+package com.dogecoin.dogecoinj.net;
import java.io.IOException;
import java.net.SocketAddress;
diff --git a/core/src/main/java/org/bitcoinj/net/NioClientManager.java b/core/src/main/java/com/dogecoin/dogecoinj/net/NioClientManager.java
similarity index 99%
rename from core/src/main/java/org/bitcoinj/net/NioClientManager.java
rename to core/src/main/java/com/dogecoin/dogecoinj/net/NioClientManager.java
index 9eb0aca2..a08da908 100644
--- a/core/src/main/java/org/bitcoinj/net/NioClientManager.java
+++ b/core/src/main/java/com/dogecoin/dogecoinj/net/NioClientManager.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.bitcoinj.net;
+package com.dogecoin.dogecoinj.net;
import com.google.common.base.Throwables;
import com.google.common.util.concurrent.AbstractExecutionThreadService;
diff --git a/core/src/main/java/org/bitcoinj/net/NioServer.java b/core/src/main/java/com/dogecoin/dogecoinj/net/NioServer.java
similarity index 99%
rename from core/src/main/java/org/bitcoinj/net/NioServer.java
rename to core/src/main/java/com/dogecoin/dogecoinj/net/NioServer.java
index 800f80f0..e16e90f8 100644
--- a/core/src/main/java/org/bitcoinj/net/NioServer.java
+++ b/core/src/main/java/com/dogecoin/dogecoinj/net/NioServer.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.bitcoinj.net;
+package com.dogecoin.dogecoinj.net;
import java.io.IOException;
import java.net.InetSocketAddress;
diff --git a/core/src/main/java/org/bitcoinj/net/ProtobufParser.java b/core/src/main/java/com/dogecoin/dogecoinj/net/ProtobufParser.java
similarity index 98%
rename from core/src/main/java/org/bitcoinj/net/ProtobufParser.java
rename to core/src/main/java/com/dogecoin/dogecoinj/net/ProtobufParser.java
index 812afd02..9e2126b5 100644
--- a/core/src/main/java/org/bitcoinj/net/ProtobufParser.java
+++ b/core/src/main/java/com/dogecoin/dogecoinj/net/ProtobufParser.java
@@ -14,10 +14,10 @@
* limitations under the License.
*/
-package org.bitcoinj.net;
+package com.dogecoin.dogecoinj.net;
-import org.bitcoinj.core.Utils;
-import org.bitcoinj.utils.Threading;
+import com.dogecoin.dogecoinj.core.Utils;
+import com.dogecoin.dogecoinj.utils.Threading;
import com.google.common.annotations.VisibleForTesting;
import com.google.protobuf.ByteString;
import com.google.protobuf.MessageLite;
diff --git a/core/src/main/java/org/bitcoinj/net/StreamParser.java b/core/src/main/java/com/dogecoin/dogecoinj/net/StreamParser.java
similarity index 98%
rename from core/src/main/java/org/bitcoinj/net/StreamParser.java
rename to core/src/main/java/com/dogecoin/dogecoinj/net/StreamParser.java
index 51f6e435..8706481e 100644
--- a/core/src/main/java/org/bitcoinj/net/StreamParser.java
+++ b/core/src/main/java/com/dogecoin/dogecoinj/net/StreamParser.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.bitcoinj.net;
+package com.dogecoin.dogecoinj.net;
import java.nio.ByteBuffer;
diff --git a/core/src/main/java/org/bitcoinj/net/StreamParserFactory.java b/core/src/main/java/com/dogecoin/dogecoinj/net/StreamParserFactory.java
similarity index 96%
rename from core/src/main/java/org/bitcoinj/net/StreamParserFactory.java
rename to core/src/main/java/com/dogecoin/dogecoinj/net/StreamParserFactory.java
index 9fcfe55b..d4cb8504 100644
--- a/core/src/main/java/org/bitcoinj/net/StreamParserFactory.java
+++ b/core/src/main/java/com/dogecoin/dogecoinj/net/StreamParserFactory.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.bitcoinj.net;
+package com.dogecoin.dogecoinj.net;
import java.net.InetAddress;
import javax.annotation.Nullable;
diff --git a/core/src/main/java/org/bitcoinj/net/discovery/DnsDiscovery.java b/core/src/main/java/com/dogecoin/dogecoinj/net/discovery/DnsDiscovery.java
similarity index 96%
rename from core/src/main/java/org/bitcoinj/net/discovery/DnsDiscovery.java
rename to core/src/main/java/com/dogecoin/dogecoinj/net/discovery/DnsDiscovery.java
index 3af85cb4..b7c5aa6b 100644
--- a/core/src/main/java/org/bitcoinj/net/discovery/DnsDiscovery.java
+++ b/core/src/main/java/com/dogecoin/dogecoinj/net/discovery/DnsDiscovery.java
@@ -15,11 +15,11 @@
* limitations under the License.
*/
-package org.bitcoinj.net.discovery;
+package com.dogecoin.dogecoinj.net.discovery;
-import org.bitcoinj.core.NetworkParameters;
+import com.dogecoin.dogecoinj.core.NetworkParameters;
import com.google.common.collect.Lists;
-import org.bitcoinj.utils.DaemonThreadFactory;
+import com.dogecoin.dogecoinj.utils.DaemonThreadFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
diff --git a/core/src/main/java/org/bitcoinj/net/discovery/IrcDiscovery.java b/core/src/main/java/com/dogecoin/dogecoinj/net/discovery/IrcDiscovery.java
similarity index 98%
rename from core/src/main/java/org/bitcoinj/net/discovery/IrcDiscovery.java
rename to core/src/main/java/com/dogecoin/dogecoinj/net/discovery/IrcDiscovery.java
index 5a2b155f..79d8c2c8 100644
--- a/core/src/main/java/org/bitcoinj/net/discovery/IrcDiscovery.java
+++ b/core/src/main/java/com/dogecoin/dogecoinj/net/discovery/IrcDiscovery.java
@@ -14,11 +14,11 @@
* limitations under the License.
*/
-package org.bitcoinj.net.discovery;
+package com.dogecoin.dogecoinj.net.discovery;
-import org.bitcoinj.core.AddressFormatException;
-import org.bitcoinj.core.Base58;
-import org.bitcoinj.core.Utils;
+import com.dogecoin.dogecoinj.core.AddressFormatException;
+import com.dogecoin.dogecoinj.core.Base58;
+import com.dogecoin.dogecoinj.core.Utils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
diff --git a/core/src/main/java/org/bitcoinj/net/discovery/PeerDiscovery.java b/core/src/main/java/com/dogecoin/dogecoinj/net/discovery/PeerDiscovery.java
similarity index 96%
rename from core/src/main/java/org/bitcoinj/net/discovery/PeerDiscovery.java
rename to core/src/main/java/com/dogecoin/dogecoinj/net/discovery/PeerDiscovery.java
index e560d10c..120d9527 100644
--- a/core/src/main/java/org/bitcoinj/net/discovery/PeerDiscovery.java
+++ b/core/src/main/java/com/dogecoin/dogecoinj/net/discovery/PeerDiscovery.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.bitcoinj.net.discovery;
+package com.dogecoin.dogecoinj.net.discovery;
import java.net.InetSocketAddress;
import java.util.concurrent.TimeUnit;
diff --git a/core/src/main/java/org/bitcoinj/net/discovery/PeerDiscoveryException.java b/core/src/main/java/com/dogecoin/dogecoinj/net/discovery/PeerDiscoveryException.java
similarity index 95%
rename from core/src/main/java/org/bitcoinj/net/discovery/PeerDiscoveryException.java
rename to core/src/main/java/com/dogecoin/dogecoinj/net/discovery/PeerDiscoveryException.java
index 711828cb..3979d9b4 100644
--- a/core/src/main/java/org/bitcoinj/net/discovery/PeerDiscoveryException.java
+++ b/core/src/main/java/com/dogecoin/dogecoinj/net/discovery/PeerDiscoveryException.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.bitcoinj.net.discovery;
+package com.dogecoin.dogecoinj.net.discovery;
public class PeerDiscoveryException extends Exception {
private static final long serialVersionUID = -2863411151549391392L;
diff --git a/core/src/main/java/org/bitcoinj/net/discovery/SeedPeers.java b/core/src/main/java/com/dogecoin/dogecoinj/net/discovery/SeedPeers.java
similarity index 98%
rename from core/src/main/java/org/bitcoinj/net/discovery/SeedPeers.java
rename to core/src/main/java/com/dogecoin/dogecoinj/net/discovery/SeedPeers.java
index d5fde22d..1c6486d6 100644
--- a/core/src/main/java/org/bitcoinj/net/discovery/SeedPeers.java
+++ b/core/src/main/java/com/dogecoin/dogecoinj/net/discovery/SeedPeers.java
@@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.bitcoinj.net.discovery;
+package com.dogecoin.dogecoinj.net.discovery;
-import org.bitcoinj.core.NetworkParameters;
+import com.dogecoin.dogecoinj.core.NetworkParameters;
import javax.annotation.Nullable;
import java.net.InetAddress;
diff --git a/core/src/main/java/org/bitcoinj/net/discovery/TorDiscovery.java b/core/src/main/java/com/dogecoin/dogecoinj/net/discovery/TorDiscovery.java
similarity index 98%
rename from core/src/main/java/org/bitcoinj/net/discovery/TorDiscovery.java
rename to core/src/main/java/com/dogecoin/dogecoinj/net/discovery/TorDiscovery.java
index ef3037bf..ff666114 100644
--- a/core/src/main/java/org/bitcoinj/net/discovery/TorDiscovery.java
+++ b/core/src/main/java/com/dogecoin/dogecoinj/net/discovery/TorDiscovery.java
@@ -14,10 +14,10 @@
* limitations under the License.
*/
-package org.bitcoinj.net.discovery;
+package com.dogecoin.dogecoinj.net.discovery;
import static com.google.common.base.Preconditions.checkArgument;
-import org.bitcoinj.core.NetworkParameters;
+import com.dogecoin.dogecoinj.core.NetworkParameters;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.google.common.collect.Sets;
@@ -34,7 +34,7 @@ import com.subgraph.orchid.circuits.path.CircuitPathChooser;
import com.subgraph.orchid.data.HexDigest;
import com.subgraph.orchid.data.exitpolicy.ExitTarget;
-import org.bitcoinj.utils.DaemonThreadFactory;
+import com.dogecoin.dogecoinj.utils.DaemonThreadFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
diff --git a/core/src/main/java/org/bitcoinj/net/discovery/package-info.java b/core/src/main/java/com/dogecoin/dogecoinj/net/discovery/package-info.java
similarity index 70%
rename from core/src/main/java/org/bitcoinj/net/discovery/package-info.java
rename to core/src/main/java/com/dogecoin/dogecoinj/net/discovery/package-info.java
index 2c8f3176..8212a902 100644
--- a/core/src/main/java/org/bitcoinj/net/discovery/package-info.java
+++ b/core/src/main/java/com/dogecoin/dogecoinj/net/discovery/package-info.java
@@ -1,4 +1,4 @@
/**
* Classes that know how to discover peers in the P2P network using DNS, IRC or DNS via Tor (orchid).
*/
-package org.bitcoinj.net.discovery;
\ No newline at end of file
+package com.dogecoin.dogecoinj.net.discovery;
\ No newline at end of file
diff --git a/core/src/main/java/org/bitcoinj/net/package-info.java b/core/src/main/java/com/dogecoin/dogecoinj/net/package-info.java
similarity index 90%
rename from core/src/main/java/org/bitcoinj/net/package-info.java
rename to core/src/main/java/com/dogecoin/dogecoinj/net/package-info.java
index 8e4a9f43..2f4cd3a3 100644
--- a/core/src/main/java/org/bitcoinj/net/package-info.java
+++ b/core/src/main/java/com/dogecoin/dogecoinj/net/package-info.java
@@ -3,4 +3,4 @@
* using SOCKS proxies, Tor, SSL etc). The code in this package implements a simple network abstraction a little like
* what the Netty library provides, but with only what bitcoinj needs.
*/
-package org.bitcoinj.net;
\ No newline at end of file
+package com.dogecoin.dogecoinj.net;
\ No newline at end of file
diff --git a/core/src/main/java/org/bitcoinj/params/MainNetParams.java b/core/src/main/java/com/dogecoin/dogecoinj/params/MainNetParams.java
similarity index 94%
rename from core/src/main/java/org/bitcoinj/params/MainNetParams.java
rename to core/src/main/java/com/dogecoin/dogecoinj/params/MainNetParams.java
index 1f08d3a2..1b28a758 100644
--- a/core/src/main/java/org/bitcoinj/params/MainNetParams.java
+++ b/core/src/main/java/com/dogecoin/dogecoinj/params/MainNetParams.java
@@ -14,11 +14,11 @@
* limitations under the License.
*/
-package org.bitcoinj.params;
+package com.dogecoin.dogecoinj.params;
-import org.bitcoinj.core.NetworkParameters;
-import org.bitcoinj.core.Sha256Hash;
-import org.bitcoinj.core.Utils;
+import com.dogecoin.dogecoinj.core.NetworkParameters;
+import com.dogecoin.dogecoinj.core.Sha256Hash;
+import com.dogecoin.dogecoinj.core.Utils;
import static com.google.common.base.Preconditions.checkState;
diff --git a/core/src/main/java/org/bitcoinj/params/Networks.java b/core/src/main/java/com/dogecoin/dogecoinj/params/Networks.java
similarity index 95%
rename from core/src/main/java/org/bitcoinj/params/Networks.java
rename to core/src/main/java/com/dogecoin/dogecoinj/params/Networks.java
index dc965da8..ee338500 100644
--- a/core/src/main/java/org/bitcoinj/params/Networks.java
+++ b/core/src/main/java/com/dogecoin/dogecoinj/params/Networks.java
@@ -14,9 +14,9 @@
* limitations under the License.
*/
-package org.bitcoinj.params;
+package com.dogecoin.dogecoinj.params;
-import org.bitcoinj.core.NetworkParameters;
+import com.dogecoin.dogecoinj.core.NetworkParameters;
import com.google.common.collect.ImmutableSet;
import com.google.common.collect.Lists;
diff --git a/core/src/main/java/org/bitcoinj/params/RegTestParams.java b/core/src/main/java/com/dogecoin/dogecoinj/params/RegTestParams.java
similarity index 96%
rename from core/src/main/java/org/bitcoinj/params/RegTestParams.java
rename to core/src/main/java/com/dogecoin/dogecoinj/params/RegTestParams.java
index eeb460ac..461eb78c 100644
--- a/core/src/main/java/org/bitcoinj/params/RegTestParams.java
+++ b/core/src/main/java/com/dogecoin/dogecoinj/params/RegTestParams.java
@@ -14,9 +14,9 @@
* limitations under the License.
*/
-package org.bitcoinj.params;
+package com.dogecoin.dogecoinj.params;
-import org.bitcoinj.core.Block;
+import com.dogecoin.dogecoinj.core.Block;
import java.math.BigInteger;
diff --git a/core/src/main/java/org/bitcoinj/params/TestNet2Params.java b/core/src/main/java/com/dogecoin/dogecoinj/params/TestNet2Params.java
similarity index 93%
rename from core/src/main/java/org/bitcoinj/params/TestNet2Params.java
rename to core/src/main/java/com/dogecoin/dogecoinj/params/TestNet2Params.java
index 99df8176..46fcd53e 100644
--- a/core/src/main/java/org/bitcoinj/params/TestNet2Params.java
+++ b/core/src/main/java/com/dogecoin/dogecoinj/params/TestNet2Params.java
@@ -14,10 +14,10 @@
* limitations under the License.
*/
-package org.bitcoinj.params;
+package com.dogecoin.dogecoinj.params;
-import org.bitcoinj.core.NetworkParameters;
-import org.bitcoinj.core.Utils;
+import com.dogecoin.dogecoinj.core.NetworkParameters;
+import com.dogecoin.dogecoinj.core.Utils;
import static com.google.common.base.Preconditions.checkState;
diff --git a/core/src/main/java/org/bitcoinj/params/TestNet3Params.java b/core/src/main/java/com/dogecoin/dogecoinj/params/TestNet3Params.java
similarity index 95%
rename from core/src/main/java/org/bitcoinj/params/TestNet3Params.java
rename to core/src/main/java/com/dogecoin/dogecoinj/params/TestNet3Params.java
index 095b2c33..b4a2dc0a 100644
--- a/core/src/main/java/org/bitcoinj/params/TestNet3Params.java
+++ b/core/src/main/java/com/dogecoin/dogecoinj/params/TestNet3Params.java
@@ -15,10 +15,10 @@
* limitations under the License.
*/
-package org.bitcoinj.params;
+package com.dogecoin.dogecoinj.params;
-import org.bitcoinj.core.NetworkParameters;
-import org.bitcoinj.core.Utils;
+import com.dogecoin.dogecoinj.core.NetworkParameters;
+import com.dogecoin.dogecoinj.core.Utils;
import static com.google.common.base.Preconditions.checkState;
diff --git a/core/src/main/java/org/bitcoinj/params/UnitTestParams.java b/core/src/main/java/com/dogecoin/dogecoinj/params/UnitTestParams.java
similarity index 88%
rename from core/src/main/java/org/bitcoinj/params/UnitTestParams.java
rename to core/src/main/java/com/dogecoin/dogecoinj/params/UnitTestParams.java
index 4f433d36..f9ff8cb5 100644
--- a/core/src/main/java/org/bitcoinj/params/UnitTestParams.java
+++ b/core/src/main/java/com/dogecoin/dogecoinj/params/UnitTestParams.java
@@ -14,16 +14,16 @@
* limitations under the License.
*/
-package org.bitcoinj.params;
+package com.dogecoin.dogecoinj.params;
-import org.bitcoinj.core.Block;
-import org.bitcoinj.core.NetworkParameters;
+import com.dogecoin.dogecoinj.core.Block;
+import com.dogecoin.dogecoinj.core.NetworkParameters;
import java.math.BigInteger;
/**
* Network parameters used by the bitcoinj unit tests (and potentially your own). This lets you solve a block using
- * {@link org.bitcoinj.core.Block#solve()} by setting difficulty to the easiest possible.
+ * {@link com.dogecoin.dogecoinj.core.Block#solve()} by setting difficulty to the easiest possible.
*/
public class UnitTestParams extends NetworkParameters {
public UnitTestParams() {
diff --git a/core/src/main/java/org/bitcoinj/params/package-info.java b/core/src/main/java/com/dogecoin/dogecoinj/params/package-info.java
similarity index 83%
rename from core/src/main/java/org/bitcoinj/params/package-info.java
rename to core/src/main/java/com/dogecoin/dogecoinj/params/package-info.java
index e750d96b..f3864361 100644
--- a/core/src/main/java/org/bitcoinj/params/package-info.java
+++ b/core/src/main/java/com/dogecoin/dogecoinj/params/package-info.java
@@ -2,4 +2,4 @@
* Network parameters encapsulate some of the differences between different Bitcoin networks such as the main/production
* network, the testnet, regtest mode, unit testing params and so on.
*/
-package org.bitcoinj.params;
\ No newline at end of file
+package com.dogecoin.dogecoinj.params;
\ No newline at end of file
diff --git a/core/src/main/java/org/bitcoinj/protocols/channels/ClientState.java b/core/src/main/java/com/dogecoin/dogecoinj/protocols/channels/ClientState.java
similarity index 81%
rename from core/src/main/java/org/bitcoinj/protocols/channels/ClientState.java
rename to core/src/main/java/com/dogecoin/dogecoinj/protocols/channels/ClientState.java
index 6cb63e90..bf4c00e8 100644
--- a/core/src/main/java/org/bitcoinj/protocols/channels/ClientState.java
+++ b/core/src/main/java/com/dogecoin/dogecoinj/protocols/channels/ClientState.java
@@ -1,7 +1,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: storedclientpaymentchannel.proto
-package org.bitcoinj.protocols.channels;
+package com.dogecoin.dogecoinj.protocols.channels;
public final class ClientState {
private ClientState() {}
@@ -15,12 +15,12 @@ public final class ClientState {
/**
* repeated .paymentchannels.StoredClientPaymentChannel channels = 1;
*/
- java.util.Listrepeated .paymentchannels.StoredClientPaymentChannel channels = 1;
*/
- org.bitcoinj.protocols.channels.ClientState.StoredClientPaymentChannel getChannels(int index);
+ com.dogecoin.dogecoinj.protocols.channels.ClientState.StoredClientPaymentChannel getChannels(int index);
/**
* repeated .paymentchannels.StoredClientPaymentChannel channels = 1;
*/
@@ -28,12 +28,12 @@ public final class ClientState {
/**
* repeated .paymentchannels.StoredClientPaymentChannel channels = 1;
*/
- java.util.List extends org.bitcoinj.protocols.channels.ClientState.StoredClientPaymentChannelOrBuilder>
+ java.util.List extends com.dogecoin.dogecoinj.protocols.channels.ClientState.StoredClientPaymentChannelOrBuilder>
getChannelsOrBuilderList();
/**
* repeated .paymentchannels.StoredClientPaymentChannel channels = 1;
*/
- org.bitcoinj.protocols.channels.ClientState.StoredClientPaymentChannelOrBuilder getChannelsOrBuilder(
+ com.dogecoin.dogecoinj.protocols.channels.ClientState.StoredClientPaymentChannelOrBuilder getChannelsOrBuilder(
int index);
}
/**
@@ -93,10 +93,10 @@ public final class ClientState {
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
- channels_ = new java.util.ArrayListrepeated .paymentchannels.StoredClientPaymentChannel channels = 1;
*/
- public java.util.Listrepeated .paymentchannels.StoredClientPaymentChannel channels = 1;
*/
- public java.util.List extends org.bitcoinj.protocols.channels.ClientState.StoredClientPaymentChannelOrBuilder>
+ public java.util.List extends com.dogecoin.dogecoinj.protocols.channels.ClientState.StoredClientPaymentChannelOrBuilder>
getChannelsOrBuilderList() {
return channels_;
}
@@ -166,13 +166,13 @@ public final class ClientState {
/**
* repeated .paymentchannels.StoredClientPaymentChannel channels = 1;
*/
- public org.bitcoinj.protocols.channels.ClientState.StoredClientPaymentChannel getChannels(int index) {
+ public com.dogecoin.dogecoinj.protocols.channels.ClientState.StoredClientPaymentChannel getChannels(int index) {
return channels_.get(index);
}
/**
* repeated .paymentchannels.StoredClientPaymentChannel channels = 1;
*/
- public org.bitcoinj.protocols.channels.ClientState.StoredClientPaymentChannelOrBuilder getChannelsOrBuilder(
+ public com.dogecoin.dogecoinj.protocols.channels.ClientState.StoredClientPaymentChannelOrBuilder getChannelsOrBuilder(
int index) {
return channels_.get(index);
}
@@ -226,53 +226,53 @@ public final class ClientState {
return super.writeReplace();
}
- public static org.bitcoinj.protocols.channels.ClientState.StoredClientPaymentChannels parseFrom(
+ public static com.dogecoin.dogecoinj.protocols.channels.ClientState.StoredClientPaymentChannels parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static org.bitcoinj.protocols.channels.ClientState.StoredClientPaymentChannels parseFrom(
+ public static com.dogecoin.dogecoinj.protocols.channels.ClientState.StoredClientPaymentChannels parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static org.bitcoinj.protocols.channels.ClientState.StoredClientPaymentChannels parseFrom(byte[] data)
+ public static com.dogecoin.dogecoinj.protocols.channels.ClientState.StoredClientPaymentChannels parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static org.bitcoinj.protocols.channels.ClientState.StoredClientPaymentChannels parseFrom(
+ public static com.dogecoin.dogecoinj.protocols.channels.ClientState.StoredClientPaymentChannels parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static org.bitcoinj.protocols.channels.ClientState.StoredClientPaymentChannels parseFrom(java.io.InputStream input)
+ public static com.dogecoin.dogecoinj.protocols.channels.ClientState.StoredClientPaymentChannels parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
- public static org.bitcoinj.protocols.channels.ClientState.StoredClientPaymentChannels parseFrom(
+ public static com.dogecoin.dogecoinj.protocols.channels.ClientState.StoredClientPaymentChannels parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
- public static org.bitcoinj.protocols.channels.ClientState.StoredClientPaymentChannels parseDelimitedFrom(java.io.InputStream input)
+ public static com.dogecoin.dogecoinj.protocols.channels.ClientState.StoredClientPaymentChannels parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
- public static org.bitcoinj.protocols.channels.ClientState.StoredClientPaymentChannels parseDelimitedFrom(
+ public static com.dogecoin.dogecoinj.protocols.channels.ClientState.StoredClientPaymentChannels parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
- public static org.bitcoinj.protocols.channels.ClientState.StoredClientPaymentChannels parseFrom(
+ public static com.dogecoin.dogecoinj.protocols.channels.ClientState.StoredClientPaymentChannels parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
- public static org.bitcoinj.protocols.channels.ClientState.StoredClientPaymentChannels parseFrom(
+ public static com.dogecoin.dogecoinj.protocols.channels.ClientState.StoredClientPaymentChannels parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -281,7 +281,7 @@ public final class ClientState {
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(org.bitcoinj.protocols.channels.ClientState.StoredClientPaymentChannels prototype) {
+ public static Builder newBuilder(com.dogecoin.dogecoinj.protocols.channels.ClientState.StoredClientPaymentChannels prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@@ -301,20 +301,20 @@ public final class ClientState {
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builderrepeated .paymentchannels.StoredClientPaymentChannel channels = 1;
*/
- public java.util.Listrepeated .paymentchannels.StoredClientPaymentChannel channels = 1;
*/
- public org.bitcoinj.protocols.channels.ClientState.StoredClientPaymentChannel getChannels(int index) {
+ public com.dogecoin.dogecoinj.protocols.channels.ClientState.StoredClientPaymentChannel getChannels(int index) {
if (channelsBuilder_ == null) {
return channels_.get(index);
} else {
@@ -498,7 +498,7 @@ public final class ClientState {
* repeated .paymentchannels.StoredClientPaymentChannel channels = 1;
*/
public Builder setChannels(
- int index, org.bitcoinj.protocols.channels.ClientState.StoredClientPaymentChannel value) {
+ int index, com.dogecoin.dogecoinj.protocols.channels.ClientState.StoredClientPaymentChannel value) {
if (channelsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -515,7 +515,7 @@ public final class ClientState {
* repeated .paymentchannels.StoredClientPaymentChannel channels = 1;
*/
public Builder setChannels(
- int index, org.bitcoinj.protocols.channels.ClientState.StoredClientPaymentChannel.Builder builderForValue) {
+ int index, com.dogecoin.dogecoinj.protocols.channels.ClientState.StoredClientPaymentChannel.Builder builderForValue) {
if (channelsBuilder_ == null) {
ensureChannelsIsMutable();
channels_.set(index, builderForValue.build());
@@ -528,7 +528,7 @@ public final class ClientState {
/**
* repeated .paymentchannels.StoredClientPaymentChannel channels = 1;
*/
- public Builder addChannels(org.bitcoinj.protocols.channels.ClientState.StoredClientPaymentChannel value) {
+ public Builder addChannels(com.dogecoin.dogecoinj.protocols.channels.ClientState.StoredClientPaymentChannel value) {
if (channelsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -545,7 +545,7 @@ public final class ClientState {
* repeated .paymentchannels.StoredClientPaymentChannel channels = 1;
*/
public Builder addChannels(
- int index, org.bitcoinj.protocols.channels.ClientState.StoredClientPaymentChannel value) {
+ int index, com.dogecoin.dogecoinj.protocols.channels.ClientState.StoredClientPaymentChannel value) {
if (channelsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -562,7 +562,7 @@ public final class ClientState {
* repeated .paymentchannels.StoredClientPaymentChannel channels = 1;
*/
public Builder addChannels(
- org.bitcoinj.protocols.channels.ClientState.StoredClientPaymentChannel.Builder builderForValue) {
+ com.dogecoin.dogecoinj.protocols.channels.ClientState.StoredClientPaymentChannel.Builder builderForValue) {
if (channelsBuilder_ == null) {
ensureChannelsIsMutable();
channels_.add(builderForValue.build());
@@ -576,7 +576,7 @@ public final class ClientState {
* repeated .paymentchannels.StoredClientPaymentChannel channels = 1;
*/
public Builder addChannels(
- int index, org.bitcoinj.protocols.channels.ClientState.StoredClientPaymentChannel.Builder builderForValue) {
+ int index, com.dogecoin.dogecoinj.protocols.channels.ClientState.StoredClientPaymentChannel.Builder builderForValue) {
if (channelsBuilder_ == null) {
ensureChannelsIsMutable();
channels_.add(index, builderForValue.build());
@@ -590,7 +590,7 @@ public final class ClientState {
* repeated .paymentchannels.StoredClientPaymentChannel channels = 1;
*/
public Builder addAllChannels(
- java.lang.Iterable extends org.bitcoinj.protocols.channels.ClientState.StoredClientPaymentChannel> values) {
+ java.lang.Iterable extends com.dogecoin.dogecoinj.protocols.channels.ClientState.StoredClientPaymentChannel> values) {
if (channelsBuilder_ == null) {
ensureChannelsIsMutable();
super.addAll(values, channels_);
@@ -629,14 +629,14 @@ public final class ClientState {
/**
* repeated .paymentchannels.StoredClientPaymentChannel channels = 1;
*/
- public org.bitcoinj.protocols.channels.ClientState.StoredClientPaymentChannel.Builder getChannelsBuilder(
+ public com.dogecoin.dogecoinj.protocols.channels.ClientState.StoredClientPaymentChannel.Builder getChannelsBuilder(
int index) {
return getChannelsFieldBuilder().getBuilder(index);
}
/**
* repeated .paymentchannels.StoredClientPaymentChannel channels = 1;
*/
- public org.bitcoinj.protocols.channels.ClientState.StoredClientPaymentChannelOrBuilder getChannelsOrBuilder(
+ public com.dogecoin.dogecoinj.protocols.channels.ClientState.StoredClientPaymentChannelOrBuilder getChannelsOrBuilder(
int index) {
if (channelsBuilder_ == null) {
return channels_.get(index); } else {
@@ -646,7 +646,7 @@ public final class ClientState {
/**
* repeated .paymentchannels.StoredClientPaymentChannel channels = 1;
*/
- public java.util.List extends org.bitcoinj.protocols.channels.ClientState.StoredClientPaymentChannelOrBuilder>
+ public java.util.List extends com.dogecoin.dogecoinj.protocols.channels.ClientState.StoredClientPaymentChannelOrBuilder>
getChannelsOrBuilderList() {
if (channelsBuilder_ != null) {
return channelsBuilder_.getMessageOrBuilderList();
@@ -657,31 +657,31 @@ public final class ClientState {
/**
* repeated .paymentchannels.StoredClientPaymentChannel channels = 1;
*/
- public org.bitcoinj.protocols.channels.ClientState.StoredClientPaymentChannel.Builder addChannelsBuilder() {
+ public com.dogecoin.dogecoinj.protocols.channels.ClientState.StoredClientPaymentChannel.Builder addChannelsBuilder() {
return getChannelsFieldBuilder().addBuilder(
- org.bitcoinj.protocols.channels.ClientState.StoredClientPaymentChannel.getDefaultInstance());
+ com.dogecoin.dogecoinj.protocols.channels.ClientState.StoredClientPaymentChannel.getDefaultInstance());
}
/**
* repeated .paymentchannels.StoredClientPaymentChannel channels = 1;
*/
- public org.bitcoinj.protocols.channels.ClientState.StoredClientPaymentChannel.Builder addChannelsBuilder(
+ public com.dogecoin.dogecoinj.protocols.channels.ClientState.StoredClientPaymentChannel.Builder addChannelsBuilder(
int index) {
return getChannelsFieldBuilder().addBuilder(
- index, org.bitcoinj.protocols.channels.ClientState.StoredClientPaymentChannel.getDefaultInstance());
+ index, com.dogecoin.dogecoinj.protocols.channels.ClientState.StoredClientPaymentChannel.getDefaultInstance());
}
/**
* repeated .paymentchannels.StoredClientPaymentChannel channels = 1;
*/
- public java.util.List
Note that this MUST still be called even after either - * {@link PaymentChannelClient.ClientConnection#destroyConnection(org.bitcoinj.protocols.channels.PaymentChannelCloseException.CloseReason)} or + * {@link PaymentChannelClient.ClientConnection#destroyConnection(com.dogecoin.dogecoinj.protocols.channels.PaymentChannelCloseException.CloseReason)} or * {@link IPaymentChannelClient#settle()} is called, to actually handle the connection close logic.
*/ void connectionClosed(); @@ -53,7 +53,7 @@ public interface IPaymentChannelClient { *Settles the channel, notifying the server it can broadcast the most recent payment transaction.
* *Note that this only generates a CLOSE message for the server and calls - * {@link PaymentChannelClient.ClientConnection#destroyConnection(org.bitcoinj.protocols.channels.PaymentChannelCloseException.CloseReason)} + * {@link PaymentChannelClient.ClientConnection#destroyConnection(com.dogecoin.dogecoinj.protocols.channels.PaymentChannelCloseException.CloseReason)} * to settle the connection, it does not actually handle connection close logic, and * {@link PaymentChannelClient#connectionClosed()} must still be called after the connection fully settles.
* @@ -97,25 +97,25 @@ public interface IPaymentChannelClient { * however the order of messages must be preserved. * *If the send fails, no exception should be thrown, however - * {@link org.bitcoinj.protocols.channels.PaymentChannelClient#connectionClosed()} should be called immediately. In the case of messages which + * {@link com.dogecoin.dogecoinj.protocols.channels.PaymentChannelClient#connectionClosed()} should be called immediately. In the case of messages which * are a part of initialization, initialization will simply fail and the refund transaction will be broadcasted * when it unlocks (if necessary). In the case of a payment message, the payment will be lost however if the * channel is resumed it will begin again from the channel value after the failed payment.
* - *Called while holding a lock on the {@link org.bitcoinj.protocols.channels.PaymentChannelClient} object - be careful about reentrancy
+ *Called while holding a lock on the {@link com.dogecoin.dogecoinj.protocols.channels.PaymentChannelClient} object - be careful about reentrancy
*/ void sendToServer(Protos.TwoWayChannelMessage msg); /** *Requests that the connection to the server be closed. For stateless protocols, note that after this call, * no more messages should be received from the server and this object is no longer usable. A - * {@link org.bitcoinj.protocols.channels.PaymentChannelClient#connectionClosed()} event should be generated immediately after this call.
+ * {@link com.dogecoin.dogecoinj.protocols.channels.PaymentChannelClient#connectionClosed()} event should be generated immediately after this call. * - *Called while holding a lock on the {@link org.bitcoinj.protocols.channels.PaymentChannelClient} object - be careful about reentrancy
+ *Called while holding a lock on the {@link com.dogecoin.dogecoinj.protocols.channels.PaymentChannelClient} object - be careful about reentrancy
* * @param reason The reason for the closure, see the individual values for more details. * It is usually safe to ignore this and treat any value below - * {@link org.bitcoinj.protocols.channels.PaymentChannelCloseException.CloseReason#CLIENT_REQUESTED_CLOSE} as "unrecoverable error" and all others as + * {@link com.dogecoin.dogecoinj.protocols.channels.PaymentChannelCloseException.CloseReason#CLIENT_REQUESTED_CLOSE} as "unrecoverable error" and all others as * "try again once and see if it works then" */ void destroyConnection(PaymentChannelCloseException.CloseReason reason); @@ -123,7 +123,7 @@ public interface IPaymentChannelClient { /** *Queries if the expire time proposed by server is acceptable. If false is return the channel
- * will be closed with a {@link org.bitcoinj.protocols.channels.PaymentChannelCloseException.CloseReason#TIME_WINDOW_UNACCEPTABLE}.
true if the proposed time is acceptable false otherwise.
*/
@@ -131,10 +131,10 @@ public interface IPaymentChannelClient {
/**
* Indicates the channel has been successfully opened and - * {@link org.bitcoinj.protocols.channels.PaymentChannelClient#incrementPayment(Coin)} + * {@link com.dogecoin.dogecoinj.protocols.channels.PaymentChannelClient#incrementPayment(Coin)} * may be called at will.
* - *Called while holding a lock on the {@link org.bitcoinj.protocols.channels.PaymentChannelClient} + *
Called while holding a lock on the {@link com.dogecoin.dogecoinj.protocols.channels.PaymentChannelClient} * object - be careful about reentrancy
* * @param wasInitiated If true, the channel is newly opened. If false, it was resumed. diff --git a/core/src/main/java/org/bitcoinj/protocols/channels/PaymentChannelClient.java b/core/src/main/java/com/dogecoin/dogecoinj/protocols/channels/PaymentChannelClient.java similarity index 98% rename from core/src/main/java/org/bitcoinj/protocols/channels/PaymentChannelClient.java rename to core/src/main/java/com/dogecoin/dogecoinj/protocols/channels/PaymentChannelClient.java index f811ebcd..8be30061 100644 --- a/core/src/main/java/org/bitcoinj/protocols/channels/PaymentChannelClient.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/protocols/channels/PaymentChannelClient.java @@ -14,11 +14,11 @@ * limitations under the License. */ -package org.bitcoinj.protocols.channels; +package com.dogecoin.dogecoinj.protocols.channels; -import org.bitcoinj.core.*; -import org.bitcoinj.protocols.channels.PaymentChannelCloseException.CloseReason; -import org.bitcoinj.utils.Threading; +import com.dogecoin.dogecoinj.core.*; +import com.dogecoin.dogecoinj.protocols.channels.PaymentChannelCloseException.CloseReason; +import com.dogecoin.dogecoinj.utils.Threading; import com.google.common.annotations.VisibleForTesting; import com.google.common.util.concurrent.ListenableFuture; import com.google.common.util.concurrent.MoreExecutors; @@ -147,7 +147,7 @@ public class PaymentChannelClient implements IPaymentChannelClient { * attempt will be made to resume that channel. * @param timeWindow The time in seconds, relative to now, on how long this channel should be kept open. Note that is is * a proposal to the server. The server may in turn propose something different. - * See {@link org.bitcoinj.protocols.channels.IPaymentChannelClient.ClientConnection#acceptExpireTime(long)} + * See {@link com.dogecoin.dogecoinj.protocols.channels.IPaymentChannelClient.ClientConnection#acceptExpireTime(long)} * @param conn A callback listener which represents the connection to the server (forwards messages we generate to * the server) */ @@ -390,7 +390,7 @@ public class PaymentChannelClient implements IPaymentChannelClient { * intending to reopen the channel later. There is likely little reason to use this in a stateless protocol. * *Note that this MUST still be called even after either - * {@link ClientConnection#destroyConnection(org.bitcoinj.protocols.channels.PaymentChannelCloseException.CloseReason)} or + * {@link ClientConnection#destroyConnection(com.dogecoin.dogecoinj.protocols.channels.PaymentChannelCloseException.CloseReason)} or * {@link PaymentChannelClient#settle()} is called, to actually handle the connection close logic.
*/ @Override diff --git a/core/src/main/java/org/bitcoinj/protocols/channels/PaymentChannelClientConnection.java b/core/src/main/java/com/dogecoin/dogecoinj/protocols/channels/PaymentChannelClientConnection.java similarity index 95% rename from core/src/main/java/org/bitcoinj/protocols/channels/PaymentChannelClientConnection.java rename to core/src/main/java/com/dogecoin/dogecoinj/protocols/channels/PaymentChannelClientConnection.java index 769ef93b..5c4190d8 100644 --- a/core/src/main/java/org/bitcoinj/protocols/channels/PaymentChannelClientConnection.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/protocols/channels/PaymentChannelClientConnection.java @@ -14,16 +14,16 @@ * limitations under the License. */ -package org.bitcoinj.protocols.channels; +package com.dogecoin.dogecoinj.protocols.channels; -import org.bitcoinj.core.Coin; -import org.bitcoinj.core.ECKey; -import org.bitcoinj.core.InsufficientMoneyException; -import org.bitcoinj.core.Sha256Hash; -import org.bitcoinj.core.Utils; -import org.bitcoinj.core.Wallet; -import org.bitcoinj.net.NioClient; -import org.bitcoinj.net.ProtobufParser; +import com.dogecoin.dogecoinj.core.Coin; +import com.dogecoin.dogecoinj.core.ECKey; +import com.dogecoin.dogecoinj.core.InsufficientMoneyException; +import com.dogecoin.dogecoinj.core.Sha256Hash; +import com.dogecoin.dogecoinj.core.Utils; +import com.dogecoin.dogecoinj.core.Wallet; +import com.dogecoin.dogecoinj.net.NioClient; +import com.dogecoin.dogecoinj.net.ProtobufParser; import com.google.common.util.concurrent.ListenableFuture; import com.google.common.util.concurrent.SettableFuture; @@ -45,7 +45,7 @@ public class PaymentChannelClientConnection { /** * Attempts to open a new connection to and open a payment channel with the given host and port, blocking until the - * connection is open. The server is requested to keep the channel open for {@link org.bitcoinj.protocols.channels.PaymentChannelClient#DEFAULT_TIME_WINDOW} + * connection is open. The server is requested to keep the channel open for {@link com.dogecoin.dogecoinj.protocols.channels.PaymentChannelClient#DEFAULT_TIME_WINDOW} * seconds. If the server proposes a longer time the channel will be closed. * * @param server The host/port pair where the server is listening. diff --git a/core/src/main/java/org/bitcoinj/protocols/channels/PaymentChannelClientState.java b/core/src/main/java/com/dogecoin/dogecoinj/protocols/channels/PaymentChannelClientState.java similarity index 98% rename from core/src/main/java/org/bitcoinj/protocols/channels/PaymentChannelClientState.java rename to core/src/main/java/com/dogecoin/dogecoinj/protocols/channels/PaymentChannelClientState.java index 9f1d7215..4cd637ec 100644 --- a/core/src/main/java/org/bitcoinj/protocols/channels/PaymentChannelClientState.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/protocols/channels/PaymentChannelClientState.java @@ -14,14 +14,14 @@ * limitations under the License. */ -package org.bitcoinj.protocols.channels; +package com.dogecoin.dogecoinj.protocols.channels; -import org.bitcoinj.core.*; -import org.bitcoinj.crypto.TransactionSignature; -import org.bitcoinj.script.Script; -import org.bitcoinj.script.ScriptBuilder; -import org.bitcoinj.utils.Threading; -import org.bitcoinj.wallet.AllowUnconfirmedCoinSelector; +import com.dogecoin.dogecoinj.core.*; +import com.dogecoin.dogecoinj.crypto.TransactionSignature; +import com.dogecoin.dogecoinj.script.Script; +import com.dogecoin.dogecoinj.script.ScriptBuilder; +import com.dogecoin.dogecoinj.utils.Threading; +import com.dogecoin.dogecoinj.wallet.AllowUnconfirmedCoinSelector; import com.google.common.annotations.VisibleForTesting; import com.google.common.base.Throwables; import com.google.common.collect.Lists; @@ -229,7 +229,7 @@ public class PaymentChannelClientState { * Creates the initial multisig contract and incomplete refund transaction which can be requested at the appropriate * time using {@link PaymentChannelClientState#getIncompleteRefundTransaction} and * {@link PaymentChannelClientState#getMultisigContract()}. The way the contract is crafted can be adjusted by - * overriding {@link PaymentChannelClientState#editContractSendRequest(org.bitcoinj.core.Wallet.SendRequest)}. + * overriding {@link PaymentChannelClientState#editContractSendRequest(com.dogecoin.dogecoinj.core.Wallet.SendRequest)}. * By default unconfirmed coins are allowed to be used, as for micropayments the risk should be relatively low. * * @throws ValueOutOfRangeException if the value being used is too small to be accepted by the network diff --git a/core/src/main/java/org/bitcoinj/protocols/channels/PaymentChannelCloseException.java b/core/src/main/java/com/dogecoin/dogecoinj/protocols/channels/PaymentChannelCloseException.java similarity index 91% rename from core/src/main/java/org/bitcoinj/protocols/channels/PaymentChannelCloseException.java rename to core/src/main/java/com/dogecoin/dogecoinj/protocols/channels/PaymentChannelCloseException.java index f0d4fbee..0ebf6118 100644 --- a/core/src/main/java/org/bitcoinj/protocols/channels/PaymentChannelCloseException.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/protocols/channels/PaymentChannelCloseException.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.bitcoinj.protocols.channels; +package com.dogecoin.dogecoinj.protocols.channels; /** * Used to indicate that a channel was closed before it was expected to be closed. @@ -34,7 +34,7 @@ public class PaymentChannelCloseException extends Exception { // Values after here indicate its probably possible to try reopening channel again /** - *The {@link org.bitcoinj.protocols.channels.PaymentChannelClient#settle()} method was called or the + *
The {@link com.dogecoin.dogecoinj.protocols.channels.PaymentChannelClient#settle()} method was called or the * client sent a CLOSE message.
*As long as the server received the CLOSE message, this means that the channel is settling and the payment * transaction (if any) will be broadcast. If the client attempts to open a new connection, a new channel will @@ -43,7 +43,7 @@ public class PaymentChannelCloseException extends Exception { CLIENT_REQUESTED_CLOSE, /** - *
The {@link org.bitcoinj.protocols.channels.PaymentChannelServer#close()} method was called or server + *
The {@link com.dogecoin.dogecoinj.protocols.channels.PaymentChannelServer#close()} method was called or server * sent a CLOSE message.
* *This may occur if the server opts to close the connection for some reason, or automatically if the channel diff --git a/core/src/main/java/org/bitcoinj/protocols/channels/PaymentChannelServer.java b/core/src/main/java/com/dogecoin/dogecoinj/protocols/channels/PaymentChannelServer.java similarity index 99% rename from core/src/main/java/org/bitcoinj/protocols/channels/PaymentChannelServer.java rename to core/src/main/java/com/dogecoin/dogecoinj/protocols/channels/PaymentChannelServer.java index bbb1244e..284e9175 100644 --- a/core/src/main/java/org/bitcoinj/protocols/channels/PaymentChannelServer.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/protocols/channels/PaymentChannelServer.java @@ -14,11 +14,11 @@ * limitations under the License. */ -package org.bitcoinj.protocols.channels; +package com.dogecoin.dogecoinj.protocols.channels; -import org.bitcoinj.core.*; -import org.bitcoinj.protocols.channels.PaymentChannelCloseException.CloseReason; -import org.bitcoinj.utils.Threading; +import com.dogecoin.dogecoinj.core.*; +import com.dogecoin.dogecoinj.protocols.channels.PaymentChannelCloseException.CloseReason; +import com.dogecoin.dogecoinj.utils.Threading; import com.google.common.util.concurrent.FutureCallback; import com.google.common.util.concurrent.Futures; import com.google.common.util.concurrent.ListenableFuture; diff --git a/core/src/main/java/org/bitcoinj/protocols/channels/PaymentChannelServerListener.java b/core/src/main/java/com/dogecoin/dogecoinj/protocols/channels/PaymentChannelServerListener.java similarity index 95% rename from core/src/main/java/org/bitcoinj/protocols/channels/PaymentChannelServerListener.java rename to core/src/main/java/com/dogecoin/dogecoinj/protocols/channels/PaymentChannelServerListener.java index 286d7014..5c7f42f8 100644 --- a/core/src/main/java/org/bitcoinj/protocols/channels/PaymentChannelServerListener.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/protocols/channels/PaymentChannelServerListener.java @@ -15,15 +15,15 @@ * limitations under the License. */ -package org.bitcoinj.protocols.channels; +package com.dogecoin.dogecoinj.protocols.channels; -import org.bitcoinj.core.Coin; -import org.bitcoinj.core.Sha256Hash; -import org.bitcoinj.core.TransactionBroadcaster; -import org.bitcoinj.core.Wallet; -import org.bitcoinj.net.NioServer; -import org.bitcoinj.net.ProtobufParser; -import org.bitcoinj.net.StreamParserFactory; +import com.dogecoin.dogecoinj.core.Coin; +import com.dogecoin.dogecoinj.core.Sha256Hash; +import com.dogecoin.dogecoinj.core.TransactionBroadcaster; +import com.dogecoin.dogecoinj.core.Wallet; +import com.dogecoin.dogecoinj.net.NioServer; +import com.dogecoin.dogecoinj.net.ProtobufParser; +import com.dogecoin.dogecoinj.net.StreamParserFactory; import com.google.common.util.concurrent.ListenableFuture; import com.google.protobuf.ByteString; diff --git a/core/src/main/java/org/bitcoinj/protocols/channels/PaymentChannelServerState.java b/core/src/main/java/com/dogecoin/dogecoinj/protocols/channels/PaymentChannelServerState.java similarity index 99% rename from core/src/main/java/org/bitcoinj/protocols/channels/PaymentChannelServerState.java rename to core/src/main/java/com/dogecoin/dogecoinj/protocols/channels/PaymentChannelServerState.java index 86a23459..d2f202c7 100644 --- a/core/src/main/java/org/bitcoinj/protocols/channels/PaymentChannelServerState.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/protocols/channels/PaymentChannelServerState.java @@ -14,12 +14,12 @@ * limitations under the License. */ -package org.bitcoinj.protocols.channels; +package com.dogecoin.dogecoinj.protocols.channels; -import org.bitcoinj.core.*; -import org.bitcoinj.crypto.TransactionSignature; -import org.bitcoinj.script.Script; -import org.bitcoinj.script.ScriptBuilder; +import com.dogecoin.dogecoinj.core.*; +import com.dogecoin.dogecoinj.crypto.TransactionSignature; +import com.dogecoin.dogecoinj.script.Script; +import com.dogecoin.dogecoinj.script.ScriptBuilder; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; import com.google.common.util.concurrent.FutureCallback; diff --git a/core/src/main/java/org/bitcoinj/protocols/channels/PaymentIncrementAck.java b/core/src/main/java/com/dogecoin/dogecoinj/protocols/channels/PaymentIncrementAck.java similarity index 84% rename from core/src/main/java/org/bitcoinj/protocols/channels/PaymentIncrementAck.java rename to core/src/main/java/com/dogecoin/dogecoinj/protocols/channels/PaymentIncrementAck.java index 02788326..3f8900c7 100644 --- a/core/src/main/java/org/bitcoinj/protocols/channels/PaymentIncrementAck.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/protocols/channels/PaymentIncrementAck.java @@ -1,6 +1,6 @@ -package org.bitcoinj.protocols.channels; +package com.dogecoin.dogecoinj.protocols.channels; -import org.bitcoinj.core.Coin; +import com.dogecoin.dogecoinj.core.Coin; import com.google.protobuf.ByteString; import javax.annotation.Nullable; diff --git a/core/src/main/java/org/bitcoinj/protocols/channels/ServerConnectionEventHandler.java b/core/src/main/java/com/dogecoin/dogecoinj/protocols/channels/ServerConnectionEventHandler.java similarity index 90% rename from core/src/main/java/org/bitcoinj/protocols/channels/ServerConnectionEventHandler.java rename to core/src/main/java/com/dogecoin/dogecoinj/protocols/channels/ServerConnectionEventHandler.java index 978c00b3..aa27543c 100644 --- a/core/src/main/java/org/bitcoinj/protocols/channels/ServerConnectionEventHandler.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/protocols/channels/ServerConnectionEventHandler.java @@ -14,11 +14,11 @@ * limitations under the License. */ -package org.bitcoinj.protocols.channels; +package com.dogecoin.dogecoinj.protocols.channels; -import org.bitcoinj.core.Coin; -import org.bitcoinj.core.Sha256Hash; -import org.bitcoinj.net.ProtobufParser; +import com.dogecoin.dogecoinj.core.Coin; +import com.dogecoin.dogecoinj.core.Sha256Hash; +import com.dogecoin.dogecoinj.net.ProtobufParser; import com.google.common.util.concurrent.ListenableFuture; import com.google.protobuf.ByteString; @@ -43,8 +43,8 @@ public abstract class ServerConnectionEventHandler { *
Note that this does NOT actually broadcast the most recent payment transaction, which will be triggered * automatically when the channel times out by the {@link StoredPaymentChannelServerStates}, or manually by calling * {@link StoredPaymentChannelServerStates#closeChannel(StoredServerChannel)} with the channel returned by - * {@link StoredPaymentChannelServerStates#getChannel(org.bitcoinj.core.Sha256Hash)} with the id provided in - * {@link ServerConnectionEventHandler#channelOpen(org.bitcoinj.core.Sha256Hash)}
+ * {@link StoredPaymentChannelServerStates#getChannel(com.dogecoin.dogecoinj.core.Sha256Hash)} with the id provided in + * {@link ServerConnectionEventHandler#channelOpen(com.dogecoin.dogecoinj.core.Sha256Hash)} */ @SuppressWarnings("unchecked") // The warning 'unchecked call to write(MessageType)' being suppressed here comes from the build() diff --git a/core/src/main/java/org/bitcoinj/protocols/channels/ServerState.java b/core/src/main/java/com/dogecoin/dogecoinj/protocols/channels/ServerState.java similarity index 79% rename from core/src/main/java/org/bitcoinj/protocols/channels/ServerState.java rename to core/src/main/java/com/dogecoin/dogecoinj/protocols/channels/ServerState.java index eb16a9a1..adcf8c54 100644 --- a/core/src/main/java/org/bitcoinj/protocols/channels/ServerState.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/protocols/channels/ServerState.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: storedserverpaymentchannel.proto -package org.bitcoinj.protocols.channels; +package com.dogecoin.dogecoinj.protocols.channels; public final class ServerState { private ServerState() {} @@ -15,12 +15,12 @@ public final class ServerState { /** *repeated .paymentchannels.StoredServerPaymentChannel channels = 1;
*/
- java.util.Listrepeated .paymentchannels.StoredServerPaymentChannel channels = 1;
*/
- org.bitcoinj.protocols.channels.ServerState.StoredServerPaymentChannel getChannels(int index);
+ com.dogecoin.dogecoinj.protocols.channels.ServerState.StoredServerPaymentChannel getChannels(int index);
/**
* repeated .paymentchannels.StoredServerPaymentChannel channels = 1;
*/
@@ -28,12 +28,12 @@ public final class ServerState {
/**
* repeated .paymentchannels.StoredServerPaymentChannel channels = 1;
*/
- java.util.List extends org.bitcoinj.protocols.channels.ServerState.StoredServerPaymentChannelOrBuilder>
+ java.util.List extends com.dogecoin.dogecoinj.protocols.channels.ServerState.StoredServerPaymentChannelOrBuilder>
getChannelsOrBuilderList();
/**
* repeated .paymentchannels.StoredServerPaymentChannel channels = 1;
*/
- org.bitcoinj.protocols.channels.ServerState.StoredServerPaymentChannelOrBuilder getChannelsOrBuilder(
+ com.dogecoin.dogecoinj.protocols.channels.ServerState.StoredServerPaymentChannelOrBuilder getChannelsOrBuilder(
int index);
}
/**
@@ -93,10 +93,10 @@ public final class ServerState {
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
- channels_ = new java.util.ArrayListrepeated .paymentchannels.StoredServerPaymentChannel channels = 1;
*/
- public java.util.Listrepeated .paymentchannels.StoredServerPaymentChannel channels = 1;
*/
- public java.util.List extends org.bitcoinj.protocols.channels.ServerState.StoredServerPaymentChannelOrBuilder>
+ public java.util.List extends com.dogecoin.dogecoinj.protocols.channels.ServerState.StoredServerPaymentChannelOrBuilder>
getChannelsOrBuilderList() {
return channels_;
}
@@ -166,13 +166,13 @@ public final class ServerState {
/**
* repeated .paymentchannels.StoredServerPaymentChannel channels = 1;
*/
- public org.bitcoinj.protocols.channels.ServerState.StoredServerPaymentChannel getChannels(int index) {
+ public com.dogecoin.dogecoinj.protocols.channels.ServerState.StoredServerPaymentChannel getChannels(int index) {
return channels_.get(index);
}
/**
* repeated .paymentchannels.StoredServerPaymentChannel channels = 1;
*/
- public org.bitcoinj.protocols.channels.ServerState.StoredServerPaymentChannelOrBuilder getChannelsOrBuilder(
+ public com.dogecoin.dogecoinj.protocols.channels.ServerState.StoredServerPaymentChannelOrBuilder getChannelsOrBuilder(
int index) {
return channels_.get(index);
}
@@ -226,53 +226,53 @@ public final class ServerState {
return super.writeReplace();
}
- public static org.bitcoinj.protocols.channels.ServerState.StoredServerPaymentChannels parseFrom(
+ public static com.dogecoin.dogecoinj.protocols.channels.ServerState.StoredServerPaymentChannels parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static org.bitcoinj.protocols.channels.ServerState.StoredServerPaymentChannels parseFrom(
+ public static com.dogecoin.dogecoinj.protocols.channels.ServerState.StoredServerPaymentChannels parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static org.bitcoinj.protocols.channels.ServerState.StoredServerPaymentChannels parseFrom(byte[] data)
+ public static com.dogecoin.dogecoinj.protocols.channels.ServerState.StoredServerPaymentChannels parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static org.bitcoinj.protocols.channels.ServerState.StoredServerPaymentChannels parseFrom(
+ public static com.dogecoin.dogecoinj.protocols.channels.ServerState.StoredServerPaymentChannels parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static org.bitcoinj.protocols.channels.ServerState.StoredServerPaymentChannels parseFrom(java.io.InputStream input)
+ public static com.dogecoin.dogecoinj.protocols.channels.ServerState.StoredServerPaymentChannels parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
- public static org.bitcoinj.protocols.channels.ServerState.StoredServerPaymentChannels parseFrom(
+ public static com.dogecoin.dogecoinj.protocols.channels.ServerState.StoredServerPaymentChannels parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
- public static org.bitcoinj.protocols.channels.ServerState.StoredServerPaymentChannels parseDelimitedFrom(java.io.InputStream input)
+ public static com.dogecoin.dogecoinj.protocols.channels.ServerState.StoredServerPaymentChannels parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
- public static org.bitcoinj.protocols.channels.ServerState.StoredServerPaymentChannels parseDelimitedFrom(
+ public static com.dogecoin.dogecoinj.protocols.channels.ServerState.StoredServerPaymentChannels parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
- public static org.bitcoinj.protocols.channels.ServerState.StoredServerPaymentChannels parseFrom(
+ public static com.dogecoin.dogecoinj.protocols.channels.ServerState.StoredServerPaymentChannels parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
- public static org.bitcoinj.protocols.channels.ServerState.StoredServerPaymentChannels parseFrom(
+ public static com.dogecoin.dogecoinj.protocols.channels.ServerState.StoredServerPaymentChannels parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -281,7 +281,7 @@ public final class ServerState {
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(org.bitcoinj.protocols.channels.ServerState.StoredServerPaymentChannels prototype) {
+ public static Builder newBuilder(com.dogecoin.dogecoinj.protocols.channels.ServerState.StoredServerPaymentChannels prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@@ -301,20 +301,20 @@ public final class ServerState {
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builderrepeated .paymentchannels.StoredServerPaymentChannel channels = 1;
*/
- public java.util.Listrepeated .paymentchannels.StoredServerPaymentChannel channels = 1;
*/
- public org.bitcoinj.protocols.channels.ServerState.StoredServerPaymentChannel getChannels(int index) {
+ public com.dogecoin.dogecoinj.protocols.channels.ServerState.StoredServerPaymentChannel getChannels(int index) {
if (channelsBuilder_ == null) {
return channels_.get(index);
} else {
@@ -498,7 +498,7 @@ public final class ServerState {
* repeated .paymentchannels.StoredServerPaymentChannel channels = 1;
*/
public Builder setChannels(
- int index, org.bitcoinj.protocols.channels.ServerState.StoredServerPaymentChannel value) {
+ int index, com.dogecoin.dogecoinj.protocols.channels.ServerState.StoredServerPaymentChannel value) {
if (channelsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -515,7 +515,7 @@ public final class ServerState {
* repeated .paymentchannels.StoredServerPaymentChannel channels = 1;
*/
public Builder setChannels(
- int index, org.bitcoinj.protocols.channels.ServerState.StoredServerPaymentChannel.Builder builderForValue) {
+ int index, com.dogecoin.dogecoinj.protocols.channels.ServerState.StoredServerPaymentChannel.Builder builderForValue) {
if (channelsBuilder_ == null) {
ensureChannelsIsMutable();
channels_.set(index, builderForValue.build());
@@ -528,7 +528,7 @@ public final class ServerState {
/**
* repeated .paymentchannels.StoredServerPaymentChannel channels = 1;
*/
- public Builder addChannels(org.bitcoinj.protocols.channels.ServerState.StoredServerPaymentChannel value) {
+ public Builder addChannels(com.dogecoin.dogecoinj.protocols.channels.ServerState.StoredServerPaymentChannel value) {
if (channelsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -545,7 +545,7 @@ public final class ServerState {
* repeated .paymentchannels.StoredServerPaymentChannel channels = 1;
*/
public Builder addChannels(
- int index, org.bitcoinj.protocols.channels.ServerState.StoredServerPaymentChannel value) {
+ int index, com.dogecoin.dogecoinj.protocols.channels.ServerState.StoredServerPaymentChannel value) {
if (channelsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -562,7 +562,7 @@ public final class ServerState {
* repeated .paymentchannels.StoredServerPaymentChannel channels = 1;
*/
public Builder addChannels(
- org.bitcoinj.protocols.channels.ServerState.StoredServerPaymentChannel.Builder builderForValue) {
+ com.dogecoin.dogecoinj.protocols.channels.ServerState.StoredServerPaymentChannel.Builder builderForValue) {
if (channelsBuilder_ == null) {
ensureChannelsIsMutable();
channels_.add(builderForValue.build());
@@ -576,7 +576,7 @@ public final class ServerState {
* repeated .paymentchannels.StoredServerPaymentChannel channels = 1;
*/
public Builder addChannels(
- int index, org.bitcoinj.protocols.channels.ServerState.StoredServerPaymentChannel.Builder builderForValue) {
+ int index, com.dogecoin.dogecoinj.protocols.channels.ServerState.StoredServerPaymentChannel.Builder builderForValue) {
if (channelsBuilder_ == null) {
ensureChannelsIsMutable();
channels_.add(index, builderForValue.build());
@@ -590,7 +590,7 @@ public final class ServerState {
* repeated .paymentchannels.StoredServerPaymentChannel channels = 1;
*/
public Builder addAllChannels(
- java.lang.Iterable extends org.bitcoinj.protocols.channels.ServerState.StoredServerPaymentChannel> values) {
+ java.lang.Iterable extends com.dogecoin.dogecoinj.protocols.channels.ServerState.StoredServerPaymentChannel> values) {
if (channelsBuilder_ == null) {
ensureChannelsIsMutable();
super.addAll(values, channels_);
@@ -629,14 +629,14 @@ public final class ServerState {
/**
* repeated .paymentchannels.StoredServerPaymentChannel channels = 1;
*/
- public org.bitcoinj.protocols.channels.ServerState.StoredServerPaymentChannel.Builder getChannelsBuilder(
+ public com.dogecoin.dogecoinj.protocols.channels.ServerState.StoredServerPaymentChannel.Builder getChannelsBuilder(
int index) {
return getChannelsFieldBuilder().getBuilder(index);
}
/**
* repeated .paymentchannels.StoredServerPaymentChannel channels = 1;
*/
- public org.bitcoinj.protocols.channels.ServerState.StoredServerPaymentChannelOrBuilder getChannelsOrBuilder(
+ public com.dogecoin.dogecoinj.protocols.channels.ServerState.StoredServerPaymentChannelOrBuilder getChannelsOrBuilder(
int index) {
if (channelsBuilder_ == null) {
return channels_.get(index); } else {
@@ -646,7 +646,7 @@ public final class ServerState {
/**
* repeated .paymentchannels.StoredServerPaymentChannel channels = 1;
*/
- public java.util.List extends org.bitcoinj.protocols.channels.ServerState.StoredServerPaymentChannelOrBuilder>
+ public java.util.List extends com.dogecoin.dogecoinj.protocols.channels.ServerState.StoredServerPaymentChannelOrBuilder>
getChannelsOrBuilderList() {
if (channelsBuilder_ != null) {
return channelsBuilder_.getMessageOrBuilderList();
@@ -657,31 +657,31 @@ public final class ServerState {
/**
* repeated .paymentchannels.StoredServerPaymentChannel channels = 1;
*/
- public org.bitcoinj.protocols.channels.ServerState.StoredServerPaymentChannel.Builder addChannelsBuilder() {
+ public com.dogecoin.dogecoinj.protocols.channels.ServerState.StoredServerPaymentChannel.Builder addChannelsBuilder() {
return getChannelsFieldBuilder().addBuilder(
- org.bitcoinj.protocols.channels.ServerState.StoredServerPaymentChannel.getDefaultInstance());
+ com.dogecoin.dogecoinj.protocols.channels.ServerState.StoredServerPaymentChannel.getDefaultInstance());
}
/**
* repeated .paymentchannels.StoredServerPaymentChannel channels = 1;
*/
- public org.bitcoinj.protocols.channels.ServerState.StoredServerPaymentChannel.Builder addChannelsBuilder(
+ public com.dogecoin.dogecoinj.protocols.channels.ServerState.StoredServerPaymentChannel.Builder addChannelsBuilder(
int index) {
return getChannelsFieldBuilder().addBuilder(
- index, org.bitcoinj.protocols.channels.ServerState.StoredServerPaymentChannel.getDefaultInstance());
+ index, com.dogecoin.dogecoinj.protocols.channels.ServerState.StoredServerPaymentChannel.getDefaultInstance());
}
/**
* repeated .paymentchannels.StoredServerPaymentChannel channels = 1;
*/
- public java.util.ListTools for the construction of commonly used script types. You don't normally need this as it's hidden behind - * convenience methods on {@link org.bitcoinj.core.Transaction}, but they are useful when working with the + * convenience methods on {@link com.dogecoin.dogecoinj.core.Transaction}, but they are useful when working with the * protocol at a lower level.
*/ public class ScriptBuilder { diff --git a/core/src/main/java/org/bitcoinj/script/ScriptChunk.java b/core/src/main/java/com/dogecoin/dogecoinj/script/ScriptChunk.java similarity index 97% rename from core/src/main/java/org/bitcoinj/script/ScriptChunk.java rename to core/src/main/java/com/dogecoin/dogecoinj/script/ScriptChunk.java index 62f78c77..7d113938 100644 --- a/core/src/main/java/org/bitcoinj/script/ScriptChunk.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/script/ScriptChunk.java @@ -15,9 +15,9 @@ * limitations under the License. */ -package org.bitcoinj.script; +package com.dogecoin.dogecoinj.script; -import org.bitcoinj.core.Utils; +import com.dogecoin.dogecoinj.core.Utils; import javax.annotation.Nullable; import java.io.IOException; @@ -26,7 +26,7 @@ import java.util.Arrays; import static com.google.common.base.Preconditions.checkNotNull; import static com.google.common.base.Preconditions.checkState; -import static org.bitcoinj.script.ScriptOpCodes.*; +import static com.dogecoin.dogecoinj.script.ScriptOpCodes.*; /** * An element that is either an opcode or a raw byte array (signature, pubkey, etc). diff --git a/core/src/main/java/org/bitcoinj/script/ScriptOpCodes.java b/core/src/main/java/com/dogecoin/dogecoinj/script/ScriptOpCodes.java similarity index 98% rename from core/src/main/java/org/bitcoinj/script/ScriptOpCodes.java rename to core/src/main/java/com/dogecoin/dogecoinj/script/ScriptOpCodes.java index f2f9ba65..a7d58199 100644 --- a/core/src/main/java/org/bitcoinj/script/ScriptOpCodes.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/script/ScriptOpCodes.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.bitcoinj.script; +package com.dogecoin.dogecoinj.script; import com.google.common.collect.ImmutableMap; @@ -22,7 +22,7 @@ import java.util.Map; /** * Various constants that define the assembly-like scripting language that forms part of the Bitcoin protocol. - * See {@link org.bitcoinj.script.Script} for details. Also provides a method to convert them to a string. + * See {@link com.dogecoin.dogecoinj.script.Script} for details. Also provides a method to convert them to a string. */ public class ScriptOpCodes { // push value diff --git a/core/src/main/java/org/bitcoinj/script/package-info.java b/core/src/main/java/com/dogecoin/dogecoinj/script/package-info.java similarity index 74% rename from core/src/main/java/org/bitcoinj/script/package-info.java rename to core/src/main/java/com/dogecoin/dogecoinj/script/package-info.java index 7dc8381a..445c4b8a 100644 --- a/core/src/main/java/org/bitcoinj/script/package-info.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/script/package-info.java @@ -1,4 +1,4 @@ /** * Classes for working with and executing Bitcoin script programs, as embedded in inputs and outputs. */ -package org.bitcoinj.script; \ No newline at end of file +package com.dogecoin.dogecoinj.script; \ No newline at end of file diff --git a/core/src/main/java/org/bitcoinj/signers/CustomTransactionSigner.java b/core/src/main/java/com/dogecoin/dogecoinj/signers/CustomTransactionSigner.java similarity index 91% rename from core/src/main/java/org/bitcoinj/signers/CustomTransactionSigner.java rename to core/src/main/java/com/dogecoin/dogecoinj/signers/CustomTransactionSigner.java index 1e35fed2..42811b6e 100644 --- a/core/src/main/java/org/bitcoinj/signers/CustomTransactionSigner.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/signers/CustomTransactionSigner.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.bitcoinj.signers; +package com.dogecoin.dogecoinj.signers; -import org.bitcoinj.core.*; -import org.bitcoinj.crypto.ChildNumber; -import org.bitcoinj.crypto.TransactionSignature; -import org.bitcoinj.script.Script; -import org.bitcoinj.wallet.KeyBag; -import org.bitcoinj.wallet.RedeemData; +import com.dogecoin.dogecoinj.core.*; +import com.dogecoin.dogecoinj.crypto.ChildNumber; +import com.dogecoin.dogecoinj.crypto.TransactionSignature; +import com.dogecoin.dogecoinj.script.Script; +import com.dogecoin.dogecoinj.wallet.KeyBag; +import com.dogecoin.dogecoinj.wallet.RedeemData; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -31,7 +31,7 @@ import static com.google.common.base.Preconditions.checkNotNull; /** *This signer may be used as a template for creating custom multisig transaction signers.
*- * Concrete implementations have to implement {@link #getSignature(org.bitcoinj.core.Sha256Hash, java.util.List)} + * Concrete implementations have to implement {@link #getSignature(com.dogecoin.dogecoinj.core.Sha256Hash, java.util.List)} * method returning a signature and a public key of the keypair used to created that signature. * It's up to custom implementation where to locate signatures: it may be a network connection, * some local API or something else. diff --git a/core/src/main/java/org/bitcoinj/signers/LocalTransactionSigner.java b/core/src/main/java/com/dogecoin/dogecoinj/signers/LocalTransactionSigner.java similarity index 89% rename from core/src/main/java/org/bitcoinj/signers/LocalTransactionSigner.java rename to core/src/main/java/com/dogecoin/dogecoinj/signers/LocalTransactionSigner.java index 243e8697..deb7e86e 100644 --- a/core/src/main/java/org/bitcoinj/signers/LocalTransactionSigner.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/signers/LocalTransactionSigner.java @@ -13,22 +13,22 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.bitcoinj.signers; +package com.dogecoin.dogecoinj.signers; -import org.bitcoinj.core.ECKey; -import org.bitcoinj.core.ScriptException; -import org.bitcoinj.core.Transaction; -import org.bitcoinj.core.TransactionInput; -import org.bitcoinj.crypto.DeterministicKey; -import org.bitcoinj.crypto.TransactionSignature; -import org.bitcoinj.script.Script; -import org.bitcoinj.wallet.KeyBag; -import org.bitcoinj.wallet.RedeemData; +import com.dogecoin.dogecoinj.core.ECKey; +import com.dogecoin.dogecoinj.core.ScriptException; +import com.dogecoin.dogecoinj.core.Transaction; +import com.dogecoin.dogecoinj.core.TransactionInput; +import com.dogecoin.dogecoinj.crypto.DeterministicKey; +import com.dogecoin.dogecoinj.crypto.TransactionSignature; +import com.dogecoin.dogecoinj.script.Script; +import com.dogecoin.dogecoinj.wallet.KeyBag; +import com.dogecoin.dogecoinj.wallet.RedeemData; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** - *
{@link TransactionSigner} implementation for signing inputs using keys from provided {@link org.bitcoinj.wallet.KeyBag}.
+ *{@link TransactionSigner} implementation for signing inputs using keys from provided {@link com.dogecoin.dogecoinj.wallet.KeyBag}.
*This signer doesn't create input scripts for tx inputs. Instead it expects inputs to contain scripts with * empty sigs and replaces one of the empty sigs with calculated signature. *
@@ -37,7 +37,7 @@ import org.slf4j.LoggerFactory; * {@link ProposedTransaction} object that will be also passed then to the next signer in chain. This allows other * signers to use correct signing key for P2SH inputs, because all the keys involved in a single P2SH address have * the same derivation path. - *This signer always uses {@link org.bitcoinj.core.Transaction.SigHash#ALL} signing mode.
+ *This signer always uses {@link com.dogecoin.dogecoinj.core.Transaction.SigHash#ALL} signing mode.
*/ public class LocalTransactionSigner extends StatelessTransactionSigner { private static final Logger log = LoggerFactory.getLogger(LocalTransactionSigner.class); diff --git a/core/src/main/java/org/bitcoinj/signers/MissingSigResolutionSigner.java b/core/src/main/java/com/dogecoin/dogecoinj/signers/MissingSigResolutionSigner.java similarity index 89% rename from core/src/main/java/org/bitcoinj/signers/MissingSigResolutionSigner.java rename to core/src/main/java/com/dogecoin/dogecoinj/signers/MissingSigResolutionSigner.java index 1e529cff..30d54a9b 100644 --- a/core/src/main/java/org/bitcoinj/signers/MissingSigResolutionSigner.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/signers/MissingSigResolutionSigner.java @@ -13,20 +13,20 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.bitcoinj.signers; +package com.dogecoin.dogecoinj.signers; -import org.bitcoinj.core.ECKey; -import org.bitcoinj.core.TransactionInput; -import org.bitcoinj.core.Wallet; -import org.bitcoinj.crypto.TransactionSignature; -import org.bitcoinj.script.Script; -import org.bitcoinj.script.ScriptChunk; -import org.bitcoinj.wallet.KeyBag; +import com.dogecoin.dogecoinj.core.ECKey; +import com.dogecoin.dogecoinj.core.TransactionInput; +import com.dogecoin.dogecoinj.core.Wallet; +import com.dogecoin.dogecoinj.crypto.TransactionSignature; +import com.dogecoin.dogecoinj.script.Script; +import com.dogecoin.dogecoinj.script.ScriptChunk; +import com.dogecoin.dogecoinj.wallet.KeyBag; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** - * This transaction signer resolves missing signatures in accordance with the given {@link org.bitcoinj.core.Wallet.MissingSigsMode}. + * This transaction signer resolves missing signatures in accordance with the given {@link com.dogecoin.dogecoinj.core.Wallet.MissingSigsMode}. * If missingSigsMode is USE_OP_ZERO this signer does nothing assuming missing signatures are already presented in * scriptSigs as OP_0. * In MissingSigsMode.THROW mode this signer will throw an exception. It would be MissingSignatureException diff --git a/core/src/main/java/org/bitcoinj/signers/StatelessTransactionSigner.java b/core/src/main/java/com/dogecoin/dogecoinj/signers/StatelessTransactionSigner.java similarity index 95% rename from core/src/main/java/org/bitcoinj/signers/StatelessTransactionSigner.java rename to core/src/main/java/com/dogecoin/dogecoinj/signers/StatelessTransactionSigner.java index 29932607..da6124d7 100644 --- a/core/src/main/java/org/bitcoinj/signers/StatelessTransactionSigner.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/signers/StatelessTransactionSigner.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.bitcoinj.signers; +package com.dogecoin.dogecoinj.signers; /** * A signer that doesn't have any state to be serialized. diff --git a/core/src/main/java/org/bitcoinj/signers/TransactionSigner.java b/core/src/main/java/com/dogecoin/dogecoinj/signers/TransactionSigner.java similarity index 89% rename from core/src/main/java/org/bitcoinj/signers/TransactionSigner.java rename to core/src/main/java/com/dogecoin/dogecoinj/signers/TransactionSigner.java index 884cd335..2c7ed12e 100644 --- a/core/src/main/java/org/bitcoinj/signers/TransactionSigner.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/signers/TransactionSigner.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.bitcoinj.signers; +package com.dogecoin.dogecoinj.signers; -import org.bitcoinj.core.Transaction; -import org.bitcoinj.crypto.ChildNumber; -import org.bitcoinj.script.Script; -import org.bitcoinj.wallet.KeyBag; +import com.dogecoin.dogecoinj.core.Transaction; +import com.dogecoin.dogecoinj.crypto.ChildNumber; +import com.dogecoin.dogecoinj.script.Script; +import com.dogecoin.dogecoinj.wallet.KeyBag; import java.util.HashMap; import java.util.List; @@ -28,7 +28,7 @@ import java.util.Map; *Implementations of this interface are intended to sign inputs of the given transaction. Given transaction may already * be partially signed or somehow altered by other signers.
*To make use of the signer, you need to add it into the wallet by - * calling {@link org.bitcoinj.core.Wallet#addTransactionSigner(TransactionSigner)}. Signer will be serialized + * calling {@link com.dogecoin.dogecoinj.core.Wallet#addTransactionSigner(TransactionSigner)}. Signer will be serialized * along with the wallet data. In order for a wallet to recreate signer after deserialization, each signer * should have no-args constructor
*/ diff --git a/core/src/main/java/org/bitcoinj/signers/package-info.java b/core/src/main/java/com/dogecoin/dogecoinj/signers/package-info.java similarity index 68% rename from core/src/main/java/org/bitcoinj/signers/package-info.java rename to core/src/main/java/com/dogecoin/dogecoinj/signers/package-info.java index 2d3d5601..c0c1d351 100644 --- a/core/src/main/java/org/bitcoinj/signers/package-info.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/signers/package-info.java @@ -1,6 +1,6 @@ /** * Transaction signers know how to calculate signatures over transactions in different contexts, for example, using - * local private keys or fetching them from remote servers. The {@link org.bitcoinj.core.Wallet} class uses these + * local private keys or fetching them from remote servers. The {@link com.dogecoin.dogecoinj.core.Wallet} class uses these * when sending money. */ -package org.bitcoinj.signers; \ No newline at end of file +package com.dogecoin.dogecoinj.signers; \ No newline at end of file diff --git a/core/src/main/java/org/bitcoinj/store/BlockStore.java b/core/src/main/java/com/dogecoin/dogecoinj/store/BlockStore.java similarity index 87% rename from core/src/main/java/org/bitcoinj/store/BlockStore.java rename to core/src/main/java/com/dogecoin/dogecoinj/store/BlockStore.java index bae6090f..58aac976 100644 --- a/core/src/main/java/org/bitcoinj/store/BlockStore.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/store/BlockStore.java @@ -14,10 +14,10 @@ * limitations under the License. */ -package org.bitcoinj.store; +package com.dogecoin.dogecoinj.store; -import org.bitcoinj.core.Sha256Hash; -import org.bitcoinj.core.StoredBlock; +import com.dogecoin.dogecoinj.core.Sha256Hash; +import com.dogecoin.dogecoinj.core.StoredBlock; /** * An implementor of BlockStore saves StoredBlock objects to disk. Different implementations store them in @@ -45,8 +45,8 @@ public interface BlockStore { /** * Returns the {@link StoredBlock} that represents the top of the chain of greatest total work. Note that this - * can be arbitrarily expensive, you probably should use {@link org.bitcoinj.core.BlockChain#getChainHead()} - * or perhaps {@link org.bitcoinj.core.BlockChain#getBestChainHeight()} which will run in constant time and + * can be arbitrarily expensive, you probably should use {@link com.dogecoin.dogecoinj.core.BlockChain#getChainHead()} + * or perhaps {@link com.dogecoin.dogecoinj.core.BlockChain#getBestChainHeight()} which will run in constant time and * not take any heavyweight locks. */ StoredBlock getChainHead() throws BlockStoreException; diff --git a/core/src/main/java/org/bitcoinj/store/BlockStoreException.java b/core/src/main/java/com/dogecoin/dogecoinj/store/BlockStoreException.java similarity index 95% rename from core/src/main/java/org/bitcoinj/store/BlockStoreException.java rename to core/src/main/java/com/dogecoin/dogecoinj/store/BlockStoreException.java index 00172ecf..c846fa29 100644 --- a/core/src/main/java/org/bitcoinj/store/BlockStoreException.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/store/BlockStoreException.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.bitcoinj.store; +package com.dogecoin.dogecoinj.store; /** * Thrown when something goes wrong with storing a block. Examples: out of disk space. diff --git a/core/src/main/java/org/bitcoinj/store/FullPrunedBlockStore.java b/core/src/main/java/com/dogecoin/dogecoinj/store/FullPrunedBlockStore.java similarity index 96% rename from core/src/main/java/org/bitcoinj/store/FullPrunedBlockStore.java rename to core/src/main/java/com/dogecoin/dogecoinj/store/FullPrunedBlockStore.java index 5a58ad48..c0e67904 100644 --- a/core/src/main/java/org/bitcoinj/store/FullPrunedBlockStore.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/store/FullPrunedBlockStore.java @@ -14,12 +14,12 @@ * limitations under the License. */ -package org.bitcoinj.store; +package com.dogecoin.dogecoinj.store; -import org.bitcoinj.core.Sha256Hash; -import org.bitcoinj.core.StoredBlock; -import org.bitcoinj.core.StoredTransactionOutput; -import org.bitcoinj.core.StoredUndoableBlock; +import com.dogecoin.dogecoinj.core.Sha256Hash; +import com.dogecoin.dogecoinj.core.StoredBlock; +import com.dogecoin.dogecoinj.core.StoredTransactionOutput; +import com.dogecoin.dogecoinj.core.StoredUndoableBlock; /** *An implementor of FullPrunedBlockStore saves StoredBlock objects to some storage mechanism.
diff --git a/core/src/main/java/org/bitcoinj/store/H2FullPrunedBlockStore.java b/core/src/main/java/com/dogecoin/dogecoinj/store/H2FullPrunedBlockStore.java similarity index 99% rename from core/src/main/java/org/bitcoinj/store/H2FullPrunedBlockStore.java rename to core/src/main/java/com/dogecoin/dogecoinj/store/H2FullPrunedBlockStore.java index d95ceeec..ee5a5e31 100644 --- a/core/src/main/java/org/bitcoinj/store/H2FullPrunedBlockStore.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/store/H2FullPrunedBlockStore.java @@ -14,9 +14,9 @@ * limitations under the License. */ -package org.bitcoinj.store; +package com.dogecoin.dogecoinj.store; -import org.bitcoinj.core.*; +import com.dogecoin.dogecoinj.core.*; import com.google.common.collect.Lists; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/core/src/main/java/org/bitcoinj/store/MemoryBlockStore.java b/core/src/main/java/com/dogecoin/dogecoinj/store/MemoryBlockStore.java similarity index 93% rename from core/src/main/java/org/bitcoinj/store/MemoryBlockStore.java rename to core/src/main/java/com/dogecoin/dogecoinj/store/MemoryBlockStore.java index cf3d891c..10ae458a 100644 --- a/core/src/main/java/org/bitcoinj/store/MemoryBlockStore.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/store/MemoryBlockStore.java @@ -14,15 +14,15 @@ * limitations under the License. */ -package org.bitcoinj.store; +package com.dogecoin.dogecoinj.store; -import org.bitcoinj.core.*; +import com.dogecoin.dogecoinj.core.*; import java.util.LinkedHashMap; import java.util.Map; /** - * Keeps {@link org.bitcoinj.core.StoredBlock}s in memory. Used primarily for unit testing. + * Keeps {@link com.dogecoin.dogecoinj.core.StoredBlock}s in memory. Used primarily for unit testing. */ public class MemoryBlockStore implements BlockStore { private LinkedHashMapA full pruned block store using the Postgres database engine. As an added bonus an address index is calculated, - * so you can use {@link #calculateBalanceForAddress(org.bitcoinj.core.Address)} to quickly look up + * so you can use {@link #calculateBalanceForAddress(com.dogecoin.dogecoinj.core.Address)} to quickly look up * the quantity of bitcoins controlled by that address.
*/ public class PostgresFullPrunedBlockStore implements FullPrunedBlockStore { diff --git a/core/src/main/java/org/bitcoinj/store/SPVBlockStore.java b/core/src/main/java/com/dogecoin/dogecoinj/store/SPVBlockStore.java similarity index 99% rename from core/src/main/java/org/bitcoinj/store/SPVBlockStore.java rename to core/src/main/java/com/dogecoin/dogecoinj/store/SPVBlockStore.java index 661b07d5..8806983b 100644 --- a/core/src/main/java/org/bitcoinj/store/SPVBlockStore.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/store/SPVBlockStore.java @@ -14,10 +14,10 @@ * limitations under the License. */ -package org.bitcoinj.store; +package com.dogecoin.dogecoinj.store; -import org.bitcoinj.core.*; -import org.bitcoinj.utils.Threading; +import com.dogecoin.dogecoinj.core.*; +import com.dogecoin.dogecoinj.utils.Threading; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/core/src/main/java/org/bitcoinj/store/UnreadableWalletException.java b/core/src/main/java/com/dogecoin/dogecoinj/store/UnreadableWalletException.java similarity index 95% rename from core/src/main/java/org/bitcoinj/store/UnreadableWalletException.java rename to core/src/main/java/com/dogecoin/dogecoinj/store/UnreadableWalletException.java index 1a8c4e88..512d5db4 100644 --- a/core/src/main/java/org/bitcoinj/store/UnreadableWalletException.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/store/UnreadableWalletException.java @@ -1,4 +1,4 @@ -package org.bitcoinj.store; +package com.dogecoin.dogecoinj.store; /** * Thrown by the {@link WalletProtobufSerializer} when the serialized protocol buffer is either corrupted, diff --git a/core/src/main/java/org/bitcoinj/store/WalletProtobufSerializer.java b/core/src/main/java/com/dogecoin/dogecoinj/store/WalletProtobufSerializer.java similarity index 97% rename from core/src/main/java/org/bitcoinj/store/WalletProtobufSerializer.java rename to core/src/main/java/com/dogecoin/dogecoinj/store/WalletProtobufSerializer.java index f48dfb60..74c7b3a8 100644 --- a/core/src/main/java/org/bitcoinj/store/WalletProtobufSerializer.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/store/WalletProtobufSerializer.java @@ -15,27 +15,27 @@ * limitations under the License. */ -package org.bitcoinj.store; +package com.dogecoin.dogecoinj.store; -import org.bitcoinj.core.*; -import org.bitcoinj.core.TransactionConfidence.ConfidenceType; -import org.bitcoinj.crypto.KeyCrypter; -import org.bitcoinj.crypto.KeyCrypterScrypt; -import org.bitcoinj.script.Script; -import org.bitcoinj.signers.LocalTransactionSigner; -import org.bitcoinj.signers.TransactionSigner; -import org.bitcoinj.utils.ExchangeRate; -import org.bitcoinj.utils.Fiat; -import org.bitcoinj.wallet.KeyChainGroup; -import org.bitcoinj.wallet.WalletTransaction; +import com.dogecoin.dogecoinj.core.*; +import com.dogecoin.dogecoinj.core.TransactionConfidence.ConfidenceType; +import com.dogecoin.dogecoinj.crypto.KeyCrypter; +import com.dogecoin.dogecoinj.crypto.KeyCrypterScrypt; +import com.dogecoin.dogecoinj.script.Script; +import com.dogecoin.dogecoinj.signers.LocalTransactionSigner; +import com.dogecoin.dogecoinj.signers.TransactionSigner; +import com.dogecoin.dogecoinj.utils.ExchangeRate; +import com.dogecoin.dogecoinj.utils.Fiat; +import com.dogecoin.dogecoinj.wallet.KeyChainGroup; +import com.dogecoin.dogecoinj.wallet.WalletTransaction; import com.google.common.collect.Lists; import com.google.protobuf.ByteString; import com.google.protobuf.CodedInputStream; import com.google.protobuf.TextFormat; import com.google.protobuf.WireFormat; -import org.bitcoinj.wallet.Protos; -import org.bitcoinj.wallet.Protos.Wallet.EncryptionType; +import com.dogecoin.dogecoinj.wallet.Protos; +import com.dogecoin.dogecoinj.wallet.Protos.Wallet.EncryptionType; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -606,7 +606,7 @@ public class WalletProtobufSerializer { txMap.put(txProto.getHash(), tx); } - private WalletTransaction connectTransactionOutputs(org.bitcoinj.wallet.Protos.Transaction txProto) throws UnreadableWalletException { + private WalletTransaction connectTransactionOutputs(com.dogecoin.dogecoinj.wallet.Protos.Transaction txProto) throws UnreadableWalletException { Transaction tx = txMap.get(txProto.getHash()); final WalletTransaction.Pool pool; switch (txProto.getPool()) { diff --git a/core/src/main/java/org/bitcoinj/store/package-info.java b/core/src/main/java/com/dogecoin/dogecoinj/store/package-info.java similarity index 92% rename from core/src/main/java/org/bitcoinj/store/package-info.java rename to core/src/main/java/com/dogecoin/dogecoinj/store/package-info.java index b8783471..1d9226a1 100644 --- a/core/src/main/java/org/bitcoinj/store/package-info.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/store/package-info.java @@ -4,4 +4,4 @@ * can calculate a full indexed UTXO set (i.e. it can query address balances), a store that's backed by the embedded H2 * database, and a memory only store useful for unit tests. */ -package org.bitcoinj.store; \ No newline at end of file +package com.dogecoin.dogecoinj.store; \ No newline at end of file diff --git a/core/src/main/java/org/bitcoinj/testing/FakeTxBuilder.java b/core/src/main/java/com/dogecoin/dogecoinj/testing/FakeTxBuilder.java similarity index 97% rename from core/src/main/java/org/bitcoinj/testing/FakeTxBuilder.java rename to core/src/main/java/com/dogecoin/dogecoinj/testing/FakeTxBuilder.java index 9a72877b..1eb66ec4 100644 --- a/core/src/main/java/org/bitcoinj/testing/FakeTxBuilder.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/testing/FakeTxBuilder.java @@ -14,17 +14,17 @@ * limitations under the License. */ -package org.bitcoinj.testing; +package com.dogecoin.dogecoinj.testing; -import org.bitcoinj.core.*; -import org.bitcoinj.store.BlockStore; -import org.bitcoinj.store.BlockStoreException; +import com.dogecoin.dogecoinj.core.*; +import com.dogecoin.dogecoinj.store.BlockStore; +import com.dogecoin.dogecoinj.store.BlockStoreException; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.nio.ByteBuffer; -import static org.bitcoinj.core.Coin.*; +import static com.dogecoin.dogecoinj.core.Coin.*; public class FakeTxBuilder { /** diff --git a/core/src/main/java/org/bitcoinj/testing/InboundMessageQueuer.java b/core/src/main/java/com/dogecoin/dogecoinj/testing/InboundMessageQueuer.java similarity index 86% rename from core/src/main/java/org/bitcoinj/testing/InboundMessageQueuer.java rename to core/src/main/java/com/dogecoin/dogecoinj/testing/InboundMessageQueuer.java index 50b492cd..f15c765d 100644 --- a/core/src/main/java/org/bitcoinj/testing/InboundMessageQueuer.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/testing/InboundMessageQueuer.java @@ -1,6 +1,6 @@ -package org.bitcoinj.testing; +package com.dogecoin.dogecoinj.testing; -import org.bitcoinj.core.*; +import com.dogecoin.dogecoinj.core.*; import com.google.common.util.concurrent.SettableFuture; import java.net.InetSocketAddress; @@ -10,7 +10,7 @@ import java.util.concurrent.ArrayBlockingQueue; import java.util.concurrent.BlockingQueue; /** - * An extension of {@link org.bitcoinj.core.PeerSocketHandler} that keeps inbound messages in a queue for later processing + * An extension of {@link com.dogecoin.dogecoinj.core.PeerSocketHandler} that keeps inbound messages in a queue for later processing */ public abstract class InboundMessageQueuer extends PeerSocketHandler { public final BlockingQueueException to provide the following to {@link BitcoinURI}:
diff --git a/core/src/main/java/org/bitcoinj/uri/OptionalFieldValidationException.java b/core/src/main/java/com/dogecoin/dogecoinj/uri/OptionalFieldValidationException.java similarity index 94% rename from core/src/main/java/org/bitcoinj/uri/OptionalFieldValidationException.java rename to core/src/main/java/com/dogecoin/dogecoinj/uri/OptionalFieldValidationException.java index f44110d0..e2924d71 100644 --- a/core/src/main/java/org/bitcoinj/uri/OptionalFieldValidationException.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/uri/OptionalFieldValidationException.java @@ -1,4 +1,4 @@ -package org.bitcoinj.uri; +package com.dogecoin.dogecoinj.uri; /** *Exception to provide the following to {@link org.multibit.qrcode.BitcoinURI}:
diff --git a/core/src/main/java/org/bitcoinj/uri/RequiredFieldValidationException.java b/core/src/main/java/com/dogecoin/dogecoinj/uri/RequiredFieldValidationException.java similarity index 95% rename from core/src/main/java/org/bitcoinj/uri/RequiredFieldValidationException.java rename to core/src/main/java/com/dogecoin/dogecoinj/uri/RequiredFieldValidationException.java index 98300925..f9a27194 100644 --- a/core/src/main/java/org/bitcoinj/uri/RequiredFieldValidationException.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/uri/RequiredFieldValidationException.java @@ -1,4 +1,4 @@ -package org.bitcoinj.uri; +package com.dogecoin.dogecoinj.uri; /** *Exception to provide the following to {@link BitcoinURI}:
diff --git a/core/src/main/java/org/bitcoinj/uri/package-info.java b/core/src/main/java/com/dogecoin/dogecoinj/uri/package-info.java similarity index 72% rename from core/src/main/java/org/bitcoinj/uri/package-info.java rename to core/src/main/java/com/dogecoin/dogecoinj/uri/package-info.java index a9e8faa7..f375afdb 100644 --- a/core/src/main/java/org/bitcoinj/uri/package-info.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/uri/package-info.java @@ -1,4 +1,4 @@ /** * Parsing and handling of bitcoin: textual URIs as found in qr codes and web links. */ -package org.bitcoinj.uri; \ No newline at end of file +package com.dogecoin.dogecoinj.uri; \ No newline at end of file diff --git a/core/src/main/java/org/bitcoinj/utils/BaseTaggableObject.java b/core/src/main/java/com/dogecoin/dogecoinj/utils/BaseTaggableObject.java similarity index 97% rename from core/src/main/java/org/bitcoinj/utils/BaseTaggableObject.java rename to core/src/main/java/com/dogecoin/dogecoinj/utils/BaseTaggableObject.java index badf9a25..fec1271f 100644 --- a/core/src/main/java/org/bitcoinj/utils/BaseTaggableObject.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/utils/BaseTaggableObject.java @@ -1,4 +1,4 @@ -package org.bitcoinj.utils; +package com.dogecoin.dogecoinj.utils; import com.google.common.collect.Maps; import com.google.protobuf.ByteString; diff --git a/core/src/main/java/org/bitcoinj/utils/BlockFileLoader.java b/core/src/main/java/com/dogecoin/dogecoinj/utils/BlockFileLoader.java similarity index 96% rename from core/src/main/java/org/bitcoinj/utils/BlockFileLoader.java rename to core/src/main/java/com/dogecoin/dogecoinj/utils/BlockFileLoader.java index 1b210319..c950e0b2 100644 --- a/core/src/main/java/org/bitcoinj/utils/BlockFileLoader.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/utils/BlockFileLoader.java @@ -14,12 +14,12 @@ * limitations under the License. */ -package org.bitcoinj.utils; +package com.dogecoin.dogecoinj.utils; -import org.bitcoinj.core.Block; -import org.bitcoinj.core.NetworkParameters; -import org.bitcoinj.core.ProtocolException; -import org.bitcoinj.core.Utils; +import com.dogecoin.dogecoinj.core.Block; +import com.dogecoin.dogecoinj.core.NetworkParameters; +import com.dogecoin.dogecoinj.core.ProtocolException; +import com.dogecoin.dogecoinj.core.Utils; import java.io.File; import java.io.FileInputStream; diff --git a/core/src/main/java/org/bitcoinj/utils/BriefLogFormatter.java b/core/src/main/java/com/dogecoin/dogecoinj/utils/BriefLogFormatter.java similarity index 98% rename from core/src/main/java/org/bitcoinj/utils/BriefLogFormatter.java rename to core/src/main/java/com/dogecoin/dogecoinj/utils/BriefLogFormatter.java index 33eeee7f..cb34bfd4 100644 --- a/core/src/main/java/org/bitcoinj/utils/BriefLogFormatter.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/utils/BriefLogFormatter.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.bitcoinj.utils; +package com.dogecoin.dogecoinj.utils; import java.io.PrintWriter; import java.io.StringWriter; diff --git a/core/src/main/java/org/bitcoinj/utils/BtcAutoFormat.java b/core/src/main/java/com/dogecoin/dogecoinj/utils/BtcAutoFormat.java similarity index 98% rename from core/src/main/java/org/bitcoinj/utils/BtcAutoFormat.java rename to core/src/main/java/com/dogecoin/dogecoinj/utils/BtcAutoFormat.java index aedcbb21..fccdb664 100644 --- a/core/src/main/java/org/bitcoinj/utils/BtcAutoFormat.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/utils/BtcAutoFormat.java @@ -14,9 +14,9 @@ * limitations under the License. */ -package org.bitcoinj.utils; +package com.dogecoin.dogecoinj.utils; -import static org.bitcoinj.core.Coin.SMALLEST_UNIT_EXPONENT; +import static com.dogecoin.dogecoinj.core.Coin.SMALLEST_UNIT_EXPONENT; import com.google.common.collect.ImmutableList; import java.math.BigInteger; @@ -54,7 +54,7 @@ import java.util.Locale; * @see java.text.NumberFormat * @see java.text.DecimalFormat * @see DecimalFormatSymbols - * @see org.bitcoinj.core.Coin + * @see com.dogecoin.dogecoinj.core.Coin */ public final class BtcAutoFormat extends BtcFormat { diff --git a/core/src/main/java/org/bitcoinj/utils/BtcFixedFormat.java b/core/src/main/java/com/dogecoin/dogecoinj/utils/BtcFixedFormat.java similarity index 98% rename from core/src/main/java/org/bitcoinj/utils/BtcFixedFormat.java rename to core/src/main/java/com/dogecoin/dogecoinj/utils/BtcFixedFormat.java index 1803206b..9477b26d 100644 --- a/core/src/main/java/org/bitcoinj/utils/BtcFixedFormat.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/utils/BtcFixedFormat.java @@ -14,9 +14,9 @@ * limitations under the License. */ -package org.bitcoinj.utils; +package com.dogecoin.dogecoinj.utils; -import static org.bitcoinj.core.Coin.SMALLEST_UNIT_EXPONENT; +import static com.dogecoin.dogecoinj.core.Coin.SMALLEST_UNIT_EXPONENT; import static com.google.common.base.Preconditions.checkArgument; import java.math.BigInteger; import java.text.DecimalFormat; @@ -41,7 +41,7 @@ import java.util.List; * @see java.text.Format * @see java.text.NumberFormat * @see java.text.DecimalFormat - * @see org.bitcoinj.core.Coin + * @see com.dogecoin.dogecoinj.core.Coin */ public final class BtcFixedFormat extends BtcFormat { diff --git a/core/src/main/java/org/bitcoinj/utils/BtcFormat.java b/core/src/main/java/com/dogecoin/dogecoinj/utils/BtcFormat.java similarity index 99% rename from core/src/main/java/org/bitcoinj/utils/BtcFormat.java rename to core/src/main/java/com/dogecoin/dogecoinj/utils/BtcFormat.java index 0539fd31..f0c2d517 100644 --- a/core/src/main/java/org/bitcoinj/utils/BtcFormat.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/utils/BtcFormat.java @@ -14,12 +14,12 @@ * limitations under the License. */ -package org.bitcoinj.utils; +package com.dogecoin.dogecoinj.utils; -import org.bitcoinj.utils.BtcAutoFormat.Style; -import static org.bitcoinj.utils.BtcAutoFormat.Style.*; +import com.dogecoin.dogecoinj.utils.BtcAutoFormat.Style; +import static com.dogecoin.dogecoinj.utils.BtcAutoFormat.Style.*; -import org.bitcoinj.core.Coin; +import com.dogecoin.dogecoinj.core.Coin; import com.google.common.collect.ImmutableList; import static com.google.common.base.Preconditions.checkArgument; import com.google.common.base.Strings; @@ -259,7 +259,7 @@ import java.util.regex.Pattern; *You format a Bitcoin monetary value by passing it to the {@link BtcFormat#format(Object)}
- * method. This argument can be either a {@link org.bitcoinj.core.Coin}-type object or a
+ * method. This argument can be either a {@link com.dogecoin.dogecoinj.core.Coin}-type object or a
* numerical object such as {@link java.lang.Long} or {@link java.math.BigDecimal}.
* Integer-based types such as {@link java.math.BigInteger} are interpreted as representing a
* number of satoshis, while a {@link java.math.BigDecimal} is interpreted as representing a
@@ -462,7 +462,7 @@ import java.util.regex.Pattern;
* @see java.text.DecimalFormat
* @see java.text.DecimalFormatSymbols
* @see java.text.FieldPosition
- * @see org.bitcoinj.core.Coin
+ * @see com.dogecoin.dogecoinj.core.Coin
*/
public abstract class BtcFormat extends Format {
@@ -1299,7 +1299,7 @@ public abstract class BtcFormat extends Format {
/**
* Parse a String representation of a Bitcoin monetary value. Returns a
- * {@link org.bitcoinj.core.Coin} object that represents the parsed value.
+ * {@link com.dogecoin.dogecoinj.core.Coin} object that represents the parsed value.
* @see java.text.NumberFormat */
@Override
public final Object parseObject(String source, ParsePosition pos) { return parse(source, pos); }
diff --git a/core/src/main/java/org/bitcoinj/utils/DaemonThreadFactory.java b/core/src/main/java/com/dogecoin/dogecoinj/utils/DaemonThreadFactory.java
similarity index 92%
rename from core/src/main/java/org/bitcoinj/utils/DaemonThreadFactory.java
rename to core/src/main/java/com/dogecoin/dogecoinj/utils/DaemonThreadFactory.java
index f48d6559..5b062eca 100644
--- a/core/src/main/java/org/bitcoinj/utils/DaemonThreadFactory.java
+++ b/core/src/main/java/com/dogecoin/dogecoinj/utils/DaemonThreadFactory.java
@@ -1,4 +1,4 @@
-package org.bitcoinj.utils;
+package com.dogecoin.dogecoinj.utils;
import javax.annotation.Nonnull;
import java.util.concurrent.Executors;
diff --git a/core/src/main/java/org/bitcoinj/utils/ExchangeRate.java b/core/src/main/java/com/dogecoin/dogecoinj/utils/ExchangeRate.java
similarity index 97%
rename from core/src/main/java/org/bitcoinj/utils/ExchangeRate.java
rename to core/src/main/java/com/dogecoin/dogecoinj/utils/ExchangeRate.java
index d3b8468d..c8e9c0b6 100644
--- a/core/src/main/java/org/bitcoinj/utils/ExchangeRate.java
+++ b/core/src/main/java/com/dogecoin/dogecoinj/utils/ExchangeRate.java
@@ -14,14 +14,14 @@
* limitations under the License.
*/
-package org.bitcoinj.utils;
+package com.dogecoin.dogecoinj.utils;
import static com.google.common.base.Preconditions.checkArgument;
import java.io.Serializable;
import java.math.BigInteger;
-import org.bitcoinj.core.Coin;
+import com.dogecoin.dogecoinj.core.Coin;
/**
* An exchange rate is expressed as a ratio of a {@link Coin} and a {@link Fiat} amount.
diff --git a/core/src/main/java/org/bitcoinj/utils/ExponentialBackoff.java b/core/src/main/java/com/dogecoin/dogecoinj/utils/ExponentialBackoff.java
similarity index 97%
rename from core/src/main/java/org/bitcoinj/utils/ExponentialBackoff.java
rename to core/src/main/java/com/dogecoin/dogecoinj/utils/ExponentialBackoff.java
index 0be4449f..74c191ae 100644
--- a/core/src/main/java/org/bitcoinj/utils/ExponentialBackoff.java
+++ b/core/src/main/java/com/dogecoin/dogecoinj/utils/ExponentialBackoff.java
@@ -14,9 +14,9 @@
* limitations under the License.
*/
-package org.bitcoinj.utils;
+package com.dogecoin.dogecoinj.utils;
-import org.bitcoinj.core.Utils;
+import com.dogecoin.dogecoinj.core.Utils;
import static com.google.common.base.Preconditions.checkArgument;
diff --git a/core/src/main/java/org/bitcoinj/utils/Fiat.java b/core/src/main/java/com/dogecoin/dogecoinj/utils/Fiat.java
similarity index 98%
rename from core/src/main/java/org/bitcoinj/utils/Fiat.java
rename to core/src/main/java/com/dogecoin/dogecoinj/utils/Fiat.java
index bcb95988..4fbfe402 100644
--- a/core/src/main/java/org/bitcoinj/utils/Fiat.java
+++ b/core/src/main/java/com/dogecoin/dogecoinj/utils/Fiat.java
@@ -14,14 +14,14 @@
* limitations under the License.
*/
-package org.bitcoinj.utils;
+package com.dogecoin.dogecoinj.utils;
import static com.google.common.base.Preconditions.checkArgument;
import java.io.Serializable;
import java.math.BigDecimal;
-import org.bitcoinj.core.Monetary;
+import com.dogecoin.dogecoinj.core.Monetary;
import com.google.common.math.LongMath;
/**
diff --git a/core/src/main/java/org/bitcoinj/utils/ListenerRegistration.java b/core/src/main/java/com/dogecoin/dogecoinj/utils/ListenerRegistration.java
similarity index 97%
rename from core/src/main/java/org/bitcoinj/utils/ListenerRegistration.java
rename to core/src/main/java/com/dogecoin/dogecoinj/utils/ListenerRegistration.java
index d8e61729..e436d8c4 100644
--- a/core/src/main/java/org/bitcoinj/utils/ListenerRegistration.java
+++ b/core/src/main/java/com/dogecoin/dogecoinj/utils/ListenerRegistration.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.bitcoinj.utils;
+package com.dogecoin.dogecoinj.utils;
import java.util.List;
import java.util.concurrent.Executor;
diff --git a/core/src/main/java/org/bitcoinj/utils/MonetaryFormat.java b/core/src/main/java/com/dogecoin/dogecoinj/utils/MonetaryFormat.java
similarity index 98%
rename from core/src/main/java/org/bitcoinj/utils/MonetaryFormat.java
rename to core/src/main/java/com/dogecoin/dogecoinj/utils/MonetaryFormat.java
index 4d73b05e..0b57330a 100644
--- a/core/src/main/java/org/bitcoinj/utils/MonetaryFormat.java
+++ b/core/src/main/java/com/dogecoin/dogecoinj/utils/MonetaryFormat.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.bitcoinj.utils;
+package com.dogecoin.dogecoinj.utils;
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkState;
@@ -30,8 +30,8 @@ import java.util.List;
import java.util.Locale;
import java.util.Map;
-import org.bitcoinj.core.Coin;
-import org.bitcoinj.core.Monetary;
+import com.dogecoin.dogecoinj.core.Coin;
+import com.dogecoin.dogecoinj.core.Monetary;
/**
*
@@ -389,7 +389,7 @@ public final class MonetaryFormat {
}
/**
- * Parse a human readable coin value to a {@link org.bitcoinj.core.Coin} instance.
+ * Parse a human readable coin value to a {@link com.dogecoin.dogecoinj.core.Coin} instance.
*
* @throws NumberFormatException
* if the string cannot be parsed for some reason
@@ -399,7 +399,7 @@ public final class MonetaryFormat {
}
/**
- * Parse a human readable fiat value to a {@link org.bitcoinj.core.Fiat} instance.
+ * Parse a human readable fiat value to a {@link com.dogecoin.dogecoinj.core.Fiat} instance.
*
* @throws NumberFormatException
* if the string cannot be parsed for some reason
diff --git a/core/src/main/java/org/bitcoinj/utils/TaggableObject.java b/core/src/main/java/com/dogecoin/dogecoinj/utils/TaggableObject.java
similarity index 98%
rename from core/src/main/java/org/bitcoinj/utils/TaggableObject.java
rename to core/src/main/java/com/dogecoin/dogecoinj/utils/TaggableObject.java
index 36eac85d..e2902ffd 100644
--- a/core/src/main/java/org/bitcoinj/utils/TaggableObject.java
+++ b/core/src/main/java/com/dogecoin/dogecoinj/utils/TaggableObject.java
@@ -1,4 +1,4 @@
-package org.bitcoinj.utils;
+package com.dogecoin.dogecoinj.utils;
import com.google.protobuf.ByteString;
diff --git a/core/src/main/java/org/bitcoinj/utils/Threading.java b/core/src/main/java/com/dogecoin/dogecoinj/utils/Threading.java
similarity index 99%
rename from core/src/main/java/org/bitcoinj/utils/Threading.java
rename to core/src/main/java/com/dogecoin/dogecoinj/utils/Threading.java
index 28a20f65..be73781f 100644
--- a/core/src/main/java/org/bitcoinj/utils/Threading.java
+++ b/core/src/main/java/com/dogecoin/dogecoinj/utils/Threading.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.bitcoinj.utils;
+package com.dogecoin.dogecoinj.utils;
import com.google.common.util.concurrent.CycleDetectingLockFactory;
import com.google.common.util.concurrent.ListeningExecutorService;
diff --git a/core/src/main/java/org/bitcoinj/utils/package-info.java b/core/src/main/java/com/dogecoin/dogecoinj/utils/package-info.java
similarity index 86%
rename from core/src/main/java/org/bitcoinj/utils/package-info.java
rename to core/src/main/java/com/dogecoin/dogecoinj/utils/package-info.java
index 756151a4..723eefae 100644
--- a/core/src/main/java/org/bitcoinj/utils/package-info.java
+++ b/core/src/main/java/com/dogecoin/dogecoinj/utils/package-info.java
@@ -2,4 +2,4 @@
* Formatting monetary amounts, representing exchange rates, a program for loading Bitcoin Core saved block files,
* a class to control how bitcoinj uses threads and misc other utility classes that don't fit anywhere else.
*/
-package org.bitcoinj.utils;
\ No newline at end of file
+package com.dogecoin.dogecoinj.utils;
\ No newline at end of file
diff --git a/core/src/main/java/org/bitcoinj/wallet/AbstractKeyChainEventListener.java b/core/src/main/java/com/dogecoin/dogecoinj/wallet/AbstractKeyChainEventListener.java
similarity index 68%
rename from core/src/main/java/org/bitcoinj/wallet/AbstractKeyChainEventListener.java
rename to core/src/main/java/com/dogecoin/dogecoinj/wallet/AbstractKeyChainEventListener.java
index 9880271a..af2c705f 100644
--- a/core/src/main/java/org/bitcoinj/wallet/AbstractKeyChainEventListener.java
+++ b/core/src/main/java/com/dogecoin/dogecoinj/wallet/AbstractKeyChainEventListener.java
@@ -1,6 +1,6 @@
-package org.bitcoinj.wallet;
+package com.dogecoin.dogecoinj.wallet;
-import org.bitcoinj.core.ECKey;
+import com.dogecoin.dogecoinj.core.ECKey;
import java.util.List;
diff --git a/core/src/main/java/org/bitcoinj/wallet/AllowUnconfirmedCoinSelector.java b/core/src/main/java/com/dogecoin/dogecoinj/wallet/AllowUnconfirmedCoinSelector.java
similarity index 90%
rename from core/src/main/java/org/bitcoinj/wallet/AllowUnconfirmedCoinSelector.java
rename to core/src/main/java/com/dogecoin/dogecoinj/wallet/AllowUnconfirmedCoinSelector.java
index 054ea75c..12dfe5d4 100644
--- a/core/src/main/java/org/bitcoinj/wallet/AllowUnconfirmedCoinSelector.java
+++ b/core/src/main/java/com/dogecoin/dogecoinj/wallet/AllowUnconfirmedCoinSelector.java
@@ -1,6 +1,6 @@
-package org.bitcoinj.wallet;
+package com.dogecoin.dogecoinj.wallet;
-import org.bitcoinj.core.Transaction;
+import com.dogecoin.dogecoinj.core.Transaction;
/**
* This coin selector will select any transaction at all, regardless of where it came from or whether it was
diff --git a/core/src/main/java/org/bitcoinj/wallet/BasicKeyChain.java b/core/src/main/java/com/dogecoin/dogecoinj/wallet/BasicKeyChain.java
similarity index 96%
rename from core/src/main/java/org/bitcoinj/wallet/BasicKeyChain.java
rename to core/src/main/java/com/dogecoin/dogecoinj/wallet/BasicKeyChain.java
index 30cc48a6..0a3918c6 100644
--- a/core/src/main/java/org/bitcoinj/wallet/BasicKeyChain.java
+++ b/core/src/main/java/com/dogecoin/dogecoinj/wallet/BasicKeyChain.java
@@ -14,14 +14,14 @@
* limitations under the License.
*/
-package org.bitcoinj.wallet;
+package com.dogecoin.dogecoinj.wallet;
-import org.bitcoinj.core.BloomFilter;
-import org.bitcoinj.core.ECKey;
-import org.bitcoinj.crypto.*;
-import org.bitcoinj.store.UnreadableWalletException;
-import org.bitcoinj.utils.ListenerRegistration;
-import org.bitcoinj.utils.Threading;
+import com.dogecoin.dogecoinj.core.BloomFilter;
+import com.dogecoin.dogecoinj.core.ECKey;
+import com.dogecoin.dogecoinj.crypto.*;
+import com.dogecoin.dogecoinj.store.UnreadableWalletException;
+import com.dogecoin.dogecoinj.utils.ListenerRegistration;
+import com.dogecoin.dogecoinj.utils.Threading;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Lists;
import com.google.protobuf.ByteString;
@@ -316,8 +316,8 @@ public class BasicKeyChain implements EncryptableKeyChain {
/**
* Returns a new BasicKeyChain that contains all basic, ORIGINAL type keys and also any encrypted keys extracted
* from the list. Unrecognised key types are ignored.
- * @throws org.bitcoinj.store.UnreadableWalletException.BadPassword if the password doesn't seem to match
- * @throws org.bitcoinj.store.UnreadableWalletException if the data structures are corrupted/inconsistent
+ * @throws com.dogecoin.dogecoinj.store.UnreadableWalletException.BadPassword if the password doesn't seem to match
+ * @throws com.dogecoin.dogecoinj.store.UnreadableWalletException if the data structures are corrupted/inconsistent
*/
public static BasicKeyChain fromProtobufEncrypted(List A deterministic key chain is a {@link KeyChain} that uses the
* BIP 32 standard, as implemented by
- * {@link org.bitcoinj.crypto.DeterministicHierarchy}, to derive all the keys in the keychain from a master seed.
+ * {@link com.dogecoin.dogecoinj.crypto.DeterministicHierarchy}, to derive all the keys in the keychain from a master seed.
* This type of wallet is extremely convenient and flexible. Although backing up full wallet files is always a good
* idea, to recover money only the root seed needs to be preserved and that is a number small enough that it can be
- * written down on paper or, when represented using a BIP 39 {@link org.bitcoinj.crypto.MnemonicCode},
+ * written down on paper or, when represented using a BIP 39 {@link com.dogecoin.dogecoinj.crypto.MnemonicCode},
* dictated over the phone (possibly even memorized). Deterministic key chains have other advantages: parts of the key tree can be selectively revealed to allow
@@ -60,14 +60,14 @@ import static com.google.common.collect.Lists.newLinkedList;
* A watching wallet is not instantiated using the public part of the master key as you may imagine. Instead, you
* need to take the account key (first child of the master key) and provide the public part of that to the watching
* wallet instead. You can do this by calling {@link #getWatchingKey()} and then serializing it with
- * {@link org.bitcoinj.crypto.DeterministicKey#serializePubB58()}. The resulting "xpub..." string encodes
+ * {@link com.dogecoin.dogecoinj.crypto.DeterministicKey#serializePubB58()}. The resulting "xpub..." string encodes
* sufficient information about the account key to create a watching chain via
- * {@link org.bitcoinj.crypto.DeterministicKey#deserializeB58(org.bitcoinj.crypto.DeterministicKey, String)}
+ * {@link com.dogecoin.dogecoinj.crypto.DeterministicKey#deserializeB58(com.dogecoin.dogecoinj.crypto.DeterministicKey, String)}
* (with null as the first parameter) and then
- * {@link DeterministicKeyChain#DeterministicKeyChain(org.bitcoinj.crypto.DeterministicKey)}.
This class builds on {@link org.bitcoinj.crypto.DeterministicHierarchy} and - * {@link org.bitcoinj.crypto.DeterministicKey} by adding support for serialization to and from protobufs, + *
This class builds on {@link com.dogecoin.dogecoinj.crypto.DeterministicHierarchy} and + * {@link com.dogecoin.dogecoinj.crypto.DeterministicKey} by adding support for serialization to and from protobufs, * and encryption of parts of the key tree. Internally it arranges itself as per the BIP 32 spec, with the seed being * used to derive a master key, which is then used to derive an account key, the account key is used to derive two * child keys called the internal and external keys (for change and handing out addresses respectively) @@ -600,7 +600,7 @@ public class DeterministicKeyChain implements EncryptableKeyChain { /** *
An alias for getKeyByPath(DeterministicKeyChain.ACCOUNT_ZERO_PATH).getPubOnly().
* Use this when you would like to create a watching key chain that follows this one, but can't spend money from it.
- * The returned key can be serialized and then passed into {@link #watch(org.bitcoinj.crypto.DeterministicKey)}
+ * The returned key can be serialized and then passed into {@link #watch(com.dogecoin.dogecoinj.crypto.DeterministicKey)}
* on another system to watch the hierarchy.
A KeyChain is a class that stores a collection of keys for a {@link org.bitcoinj.core.Wallet}. Key chains + *
A KeyChain is a class that stores a collection of keys for a {@link com.dogecoin.dogecoinj.core.Wallet}. Key chains * are expected to be able to look up keys given a hash (i.e. address) or pubkey bytes, and provide keys on request * for a given purpose. They can inform event listeners about new keys being added.
* @@ -87,7 +87,7 @@ public interface KeyChain { *This is used to generate a {@link BloomFilter} which can be {@link BloomFilter#merge(BloomFilter)}d with * another. It could also be used if you have a specific target for the filter's size.
* - *See the docs for {@link org.bitcoinj.core.BloomFilter#BloomFilter(int, double, long)} for a brief + *
See the docs for {@link com.dogecoin.dogecoinj.core.BloomFilter#BloomFilter(int, double, long)} for a brief * explanation of anonymity when using bloom filters, and for the meaning of these parameters.
*/ public BloomFilter getFilter(int size, double falsePositiveRate, long tweak); diff --git a/core/src/main/java/org/bitcoinj/wallet/KeyChainEventListener.java b/core/src/main/java/com/dogecoin/dogecoinj/wallet/KeyChainEventListener.java similarity index 92% rename from core/src/main/java/org/bitcoinj/wallet/KeyChainEventListener.java rename to core/src/main/java/com/dogecoin/dogecoinj/wallet/KeyChainEventListener.java index ba50ccec..6f9aed6e 100644 --- a/core/src/main/java/org/bitcoinj/wallet/KeyChainEventListener.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/wallet/KeyChainEventListener.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.bitcoinj.wallet; +package com.dogecoin.dogecoinj.wallet; -import org.bitcoinj.core.ECKey; +import com.dogecoin.dogecoinj.core.ECKey; import java.util.List; diff --git a/core/src/main/java/org/bitcoinj/wallet/KeyChainGroup.java b/core/src/main/java/com/dogecoin/dogecoinj/wallet/KeyChainGroup.java similarity index 97% rename from core/src/main/java/org/bitcoinj/wallet/KeyChainGroup.java rename to core/src/main/java/com/dogecoin/dogecoinj/wallet/KeyChainGroup.java index 1a6ff59e..0d23f260 100644 --- a/core/src/main/java/org/bitcoinj/wallet/KeyChainGroup.java +++ b/core/src/main/java/com/dogecoin/dogecoinj/wallet/KeyChainGroup.java @@ -15,17 +15,17 @@ * limitations under the License. */ -package org.bitcoinj.wallet; +package com.dogecoin.dogecoinj.wallet; -import org.bitcoinj.core.*; -import org.bitcoinj.crypto.ChildNumber; -import org.bitcoinj.crypto.DeterministicKey; -import org.bitcoinj.crypto.KeyCrypter; -import org.bitcoinj.script.Script; -import org.bitcoinj.script.ScriptBuilder; -import org.bitcoinj.store.UnreadableWalletException; -import org.bitcoinj.utils.ListenerRegistration; -import org.bitcoinj.utils.Threading; +import com.dogecoin.dogecoinj.core.*; +import com.dogecoin.dogecoinj.crypto.ChildNumber; +import com.dogecoin.dogecoinj.crypto.DeterministicKey; +import com.dogecoin.dogecoinj.crypto.KeyCrypter; +import com.dogecoin.dogecoinj.script.Script; +import com.dogecoin.dogecoinj.script.ScriptBuilder; +import com.dogecoin.dogecoinj.store.UnreadableWalletException; +import com.dogecoin.dogecoinj.utils.ListenerRegistration; +import com.dogecoin.dogecoinj.utils.Threading; import com.google.common.base.Joiner; import com.google.common.collect.HashMultimap; @@ -45,7 +45,7 @@ import java.util.concurrent.Executor; import static com.google.common.base.Preconditions.*; /** - *A KeyChainGroup is used by the {@link org.bitcoinj.core.Wallet} and + *
A KeyChainGroup is used by the {@link com.dogecoin.dogecoinj.core.Wallet} and
* manages: a {@link BasicKeyChain} object (which will normally be empty), and zero or more
* {@link DeterministicKeyChain}s. A deterministic key chain will be created lazily/on demand
* when a fresh or current key is requested, possibly being initialized from the private key bytes of the earliest non
@@ -453,7 +453,7 @@ public class KeyChainGroup implements KeyBag {
/**
* Whether the active keychain is married. A keychain is married when it vends P2SH addresses
* from multiple keychains in a multisig relationship.
- * @see org.bitcoinj.wallet.MarriedKeyChain
+ * @see com.dogecoin.dogecoinj.wallet.MarriedKeyChain
*/
public boolean isMarried() {
return !chains.isEmpty() && getActiveKeyChain().isMarried();
@@ -461,9 +461,9 @@ public class KeyChainGroup implements KeyBag {
/**
* Encrypt the keys in the group using the KeyCrypter and the AES key. A good default KeyCrypter to use is
- * {@link org.bitcoinj.crypto.KeyCrypterScrypt}.
+ * {@link com.dogecoin.dogecoinj.crypto.KeyCrypterScrypt}.
*
- * @throws org.bitcoinj.crypto.KeyCrypterException Thrown if the wallet encryption fails for some reason,
+ * @throws com.dogecoin.dogecoinj.crypto.KeyCrypterException Thrown if the wallet encryption fails for some reason,
* leaving the group unchanged.
* @throws DeterministicUpgradeRequiredException Thrown if there are random keys but no HD chain.
*/
@@ -488,9 +488,9 @@ public class KeyChainGroup implements KeyBag {
/**
* Decrypt the keys in the group using the previously given key crypter and the AES key. A good default
- * KeyCrypter to use is {@link org.bitcoinj.crypto.KeyCrypterScrypt}.
+ * KeyCrypter to use is {@link com.dogecoin.dogecoinj.crypto.KeyCrypterScrypt}.
*
- * @throws org.bitcoinj.crypto.KeyCrypterException Thrown if the wallet decryption fails for some reason, leaving the group unchanged.
+ * @throws com.dogecoin.dogecoinj.crypto.KeyCrypterException Thrown if the wallet decryption fails for some reason, leaving the group unchanged.
*/
public void decrypt(KeyParameter aesKey) {
// This code must be exception safe.
diff --git a/core/src/main/java/org/bitcoinj/wallet/KeyTimeCoinSelector.java b/core/src/main/java/com/dogecoin/dogecoinj/wallet/KeyTimeCoinSelector.java
similarity index 93%
rename from core/src/main/java/org/bitcoinj/wallet/KeyTimeCoinSelector.java
rename to core/src/main/java/com/dogecoin/dogecoinj/wallet/KeyTimeCoinSelector.java
index 56a2199a..14a54a2c 100644
--- a/core/src/main/java/org/bitcoinj/wallet/KeyTimeCoinSelector.java
+++ b/core/src/main/java/com/dogecoin/dogecoinj/wallet/KeyTimeCoinSelector.java
@@ -14,10 +14,10 @@
* limitations under the License.
*/
-package org.bitcoinj.wallet;
+package com.dogecoin.dogecoinj.wallet;
-import org.bitcoinj.core.*;
-import org.bitcoinj.script.Script;
+import com.dogecoin.dogecoinj.core.*;
+import com.dogecoin.dogecoinj.script.Script;
import com.google.common.collect.Lists;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -34,7 +34,7 @@ import static com.google.common.base.Preconditions.checkNotNull;
public class KeyTimeCoinSelector implements CoinSelector {
private static final Logger log = LoggerFactory.getLogger(KeyTimeCoinSelector.class);
- /** A number of inputs chosen to avoid hitting {@link org.bitcoinj.core.Transaction.MAX_STANDARD_TX_SIZE} */
+ /** A number of inputs chosen to avoid hitting {@link com.dogecoin.dogecoinj.core.Transaction.MAX_STANDARD_TX_SIZE} */
public static final int MAX_SIMULTANEOUS_INPUTS = 600;
private final long unixTimeSeconds;
diff --git a/core/src/main/java/org/bitcoinj/wallet/MarriedKeyChain.java b/core/src/main/java/com/dogecoin/dogecoinj/wallet/MarriedKeyChain.java
similarity index 96%
rename from core/src/main/java/org/bitcoinj/wallet/MarriedKeyChain.java
rename to core/src/main/java/com/dogecoin/dogecoinj/wallet/MarriedKeyChain.java
index d08e8457..bc03b0a7 100644
--- a/core/src/main/java/org/bitcoinj/wallet/MarriedKeyChain.java
+++ b/core/src/main/java/com/dogecoin/dogecoinj/wallet/MarriedKeyChain.java
@@ -14,20 +14,20 @@
* limitations under the License.
*/
-package org.bitcoinj.wallet;
+package com.dogecoin.dogecoinj.wallet;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Lists;
import com.google.protobuf.ByteString;
-import org.bitcoinj.core.BloomFilter;
-import org.bitcoinj.core.ECKey;
-import org.bitcoinj.core.NetworkParameters;
-import org.bitcoinj.core.Utils;
-import org.bitcoinj.crypto.DeterministicKey;
-import org.bitcoinj.crypto.KeyCrypter;
-import org.bitcoinj.script.Script;
-import org.bitcoinj.script.ScriptBuilder;
+import com.dogecoin.dogecoinj.core.BloomFilter;
+import com.dogecoin.dogecoinj.core.ECKey;
+import com.dogecoin.dogecoinj.core.NetworkParameters;
+import com.dogecoin.dogecoinj.core.Utils;
+import com.dogecoin.dogecoinj.crypto.DeterministicKey;
+import com.dogecoin.dogecoinj.crypto.KeyCrypter;
+import com.dogecoin.dogecoinj.script.Script;
+import com.dogecoin.dogecoinj.script.ScriptBuilder;
import java.security.SecureRandom;
import java.util.LinkedHashMap;
diff --git a/core/src/main/java/org/bitcoinj/wallet/Protos.java b/core/src/main/java/com/dogecoin/dogecoinj/wallet/Protos.java
similarity index 85%
rename from core/src/main/java/org/bitcoinj/wallet/Protos.java
rename to core/src/main/java/com/dogecoin/dogecoinj/wallet/Protos.java
index f10b447f..d3a2b0c5 100644
--- a/core/src/main/java/org/bitcoinj/wallet/Protos.java
+++ b/core/src/main/java/com/dogecoin/dogecoinj/wallet/Protos.java
@@ -1,7 +1,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: wallet.proto
-package org.bitcoinj.wallet;
+package com.dogecoin.dogecoinj.wallet;
public final class Protos {
private Protos() {}
@@ -121,14 +121,14 @@ public final class Protos {
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return org.bitcoinj.wallet.Protos.internal_static_wallet_PeerAddress_descriptor;
+ return com.dogecoin.dogecoinj.wallet.Protos.internal_static_wallet_PeerAddress_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
- return org.bitcoinj.wallet.Protos.internal_static_wallet_PeerAddress_fieldAccessorTable
+ return com.dogecoin.dogecoinj.wallet.Protos.internal_static_wallet_PeerAddress_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- org.bitcoinj.wallet.Protos.PeerAddress.class, org.bitcoinj.wallet.Protos.PeerAddress.Builder.class);
+ com.dogecoin.dogecoinj.wallet.Protos.PeerAddress.class, com.dogecoin.dogecoinj.wallet.Protos.PeerAddress.Builder.class);
}
public static com.google.protobuf.Parserrequired .wallet.Key.Type type = 1;
*/
- org.bitcoinj.wallet.Protos.Key.Type getType();
+ com.dogecoin.dogecoinj.wallet.Protos.Key.Type getType();
// optional bytes secret_bytes = 2;
/**
@@ -2376,7 +2376,7 @@ public final class Protos {
* If the secret data is encrypted, then secret_bytes is missing and this field is set.
*
*/
- org.bitcoinj.wallet.Protos.EncryptedData getEncryptedData();
+ com.dogecoin.dogecoinj.wallet.Protos.EncryptedData getEncryptedData();
/**
* optional .wallet.EncryptedData encrypted_data = 6;
*
@@ -2384,7 +2384,7 @@ public final class Protos {
* If the secret data is encrypted, then secret_bytes is missing and this field is set.
*
*/
- org.bitcoinj.wallet.Protos.EncryptedDataOrBuilder getEncryptedDataOrBuilder();
+ com.dogecoin.dogecoinj.wallet.Protos.EncryptedDataOrBuilder getEncryptedDataOrBuilder();
// optional bytes public_key = 3;
/**
@@ -2461,11 +2461,11 @@ public final class Protos {
/**
* optional .wallet.DeterministicKey deterministic_key = 7;
*/
- org.bitcoinj.wallet.Protos.DeterministicKey getDeterministicKey();
+ com.dogecoin.dogecoinj.wallet.Protos.DeterministicKey getDeterministicKey();
/**
* optional .wallet.DeterministicKey deterministic_key = 7;
*/
- org.bitcoinj.wallet.Protos.DeterministicKeyOrBuilder getDeterministicKeyOrBuilder();
+ com.dogecoin.dogecoinj.wallet.Protos.DeterministicKeyOrBuilder getDeterministicKeyOrBuilder();
// optional bytes deterministic_seed = 8;
/**
@@ -2503,7 +2503,7 @@ public final class Protos {
* Encrypted version of the seed
*
*/
- org.bitcoinj.wallet.Protos.EncryptedData getEncryptedDeterministicSeed();
+ com.dogecoin.dogecoinj.wallet.Protos.EncryptedData getEncryptedDeterministicSeed();
/**
* optional .wallet.EncryptedData encrypted_deterministic_seed = 9;
*
@@ -2511,7 +2511,7 @@ public final class Protos {
* Encrypted version of the seed
*
*/
- org.bitcoinj.wallet.Protos.EncryptedDataOrBuilder getEncryptedDeterministicSeedOrBuilder();
+ com.dogecoin.dogecoinj.wallet.Protos.EncryptedDataOrBuilder getEncryptedDeterministicSeedOrBuilder();
}
/**
* Protobuf type {@code wallet.Key}
@@ -2577,7 +2577,7 @@ public final class Protos {
}
case 8: {
int rawValue = input.readEnum();
- org.bitcoinj.wallet.Protos.Key.Type value = org.bitcoinj.wallet.Protos.Key.Type.valueOf(rawValue);
+ com.dogecoin.dogecoinj.wallet.Protos.Key.Type value = com.dogecoin.dogecoinj.wallet.Protos.Key.Type.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
@@ -2607,11 +2607,11 @@ public final class Protos {
break;
}
case 50: {
- org.bitcoinj.wallet.Protos.EncryptedData.Builder subBuilder = null;
+ com.dogecoin.dogecoinj.wallet.Protos.EncryptedData.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = encryptedData_.toBuilder();
}
- encryptedData_ = input.readMessage(org.bitcoinj.wallet.Protos.EncryptedData.PARSER, extensionRegistry);
+ encryptedData_ = input.readMessage(com.dogecoin.dogecoinj.wallet.Protos.EncryptedData.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(encryptedData_);
encryptedData_ = subBuilder.buildPartial();
@@ -2620,11 +2620,11 @@ public final class Protos {
break;
}
case 58: {
- org.bitcoinj.wallet.Protos.DeterministicKey.Builder subBuilder = null;
+ com.dogecoin.dogecoinj.wallet.Protos.DeterministicKey.Builder subBuilder = null;
if (((bitField0_ & 0x00000040) == 0x00000040)) {
subBuilder = deterministicKey_.toBuilder();
}
- deterministicKey_ = input.readMessage(org.bitcoinj.wallet.Protos.DeterministicKey.PARSER, extensionRegistry);
+ deterministicKey_ = input.readMessage(com.dogecoin.dogecoinj.wallet.Protos.DeterministicKey.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(deterministicKey_);
deterministicKey_ = subBuilder.buildPartial();
@@ -2638,11 +2638,11 @@ public final class Protos {
break;
}
case 74: {
- org.bitcoinj.wallet.Protos.EncryptedData.Builder subBuilder = null;
+ com.dogecoin.dogecoinj.wallet.Protos.EncryptedData.Builder subBuilder = null;
if (((bitField0_ & 0x00000100) == 0x00000100)) {
subBuilder = encryptedDeterministicSeed_.toBuilder();
}
- encryptedDeterministicSeed_ = input.readMessage(org.bitcoinj.wallet.Protos.EncryptedData.PARSER, extensionRegistry);
+ encryptedDeterministicSeed_ = input.readMessage(com.dogecoin.dogecoinj.wallet.Protos.EncryptedData.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(encryptedDeterministicSeed_);
encryptedDeterministicSeed_ = subBuilder.buildPartial();
@@ -2664,14 +2664,14 @@ public final class Protos {
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return org.bitcoinj.wallet.Protos.internal_static_wallet_Key_descriptor;
+ return com.dogecoin.dogecoinj.wallet.Protos.internal_static_wallet_Key_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
- return org.bitcoinj.wallet.Protos.internal_static_wallet_Key_fieldAccessorTable
+ return com.dogecoin.dogecoinj.wallet.Protos.internal_static_wallet_Key_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- org.bitcoinj.wallet.Protos.Key.class, org.bitcoinj.wallet.Protos.Key.Builder.class);
+ com.dogecoin.dogecoinj.wallet.Protos.Key.class, com.dogecoin.dogecoinj.wallet.Protos.Key.Builder.class);
}
public static com.google.protobuf.Parserrequired .wallet.Key.Type type = 1;
*/
@@ -2848,7 +2848,7 @@ public final class Protos {
/**
* required .wallet.Key.Type type = 1;
*/
- public org.bitcoinj.wallet.Protos.Key.Type getType() {
+ public com.dogecoin.dogecoinj.wallet.Protos.Key.Type getType() {
return type_;
}
@@ -2880,7 +2880,7 @@ public final class Protos {
// optional .wallet.EncryptedData encrypted_data = 6;
public static final int ENCRYPTED_DATA_FIELD_NUMBER = 6;
- private org.bitcoinj.wallet.Protos.EncryptedData encryptedData_;
+ private com.dogecoin.dogecoinj.wallet.Protos.EncryptedData encryptedData_;
/**
* optional .wallet.EncryptedData encrypted_data = 6;
*
@@ -2898,7 +2898,7 @@ public final class Protos {
* If the secret data is encrypted, then secret_bytes is missing and this field is set.
*
*/
- public org.bitcoinj.wallet.Protos.EncryptedData getEncryptedData() {
+ public com.dogecoin.dogecoinj.wallet.Protos.EncryptedData getEncryptedData() {
return encryptedData_;
}
/**
@@ -2908,7 +2908,7 @@ public final class Protos {
* If the secret data is encrypted, then secret_bytes is missing and this field is set.
*
*/
- public org.bitcoinj.wallet.Protos.EncryptedDataOrBuilder getEncryptedDataOrBuilder() {
+ public com.dogecoin.dogecoinj.wallet.Protos.EncryptedDataOrBuilder getEncryptedDataOrBuilder() {
return encryptedData_;
}
@@ -3021,7 +3021,7 @@ public final class Protos {
// optional .wallet.DeterministicKey deterministic_key = 7;
public static final int DETERMINISTIC_KEY_FIELD_NUMBER = 7;
- private org.bitcoinj.wallet.Protos.DeterministicKey deterministicKey_;
+ private com.dogecoin.dogecoinj.wallet.Protos.DeterministicKey deterministicKey_;
/**
* optional .wallet.DeterministicKey deterministic_key = 7;
*/
@@ -3031,13 +3031,13 @@ public final class Protos {
/**
* optional .wallet.DeterministicKey deterministic_key = 7;
*/
- public org.bitcoinj.wallet.Protos.DeterministicKey getDeterministicKey() {
+ public com.dogecoin.dogecoinj.wallet.Protos.DeterministicKey getDeterministicKey() {
return deterministicKey_;
}
/**
* optional .wallet.DeterministicKey deterministic_key = 7;
*/
- public org.bitcoinj.wallet.Protos.DeterministicKeyOrBuilder getDeterministicKeyOrBuilder() {
+ public com.dogecoin.dogecoinj.wallet.Protos.DeterministicKeyOrBuilder getDeterministicKeyOrBuilder() {
return deterministicKey_;
}
@@ -3069,7 +3069,7 @@ public final class Protos {
// optional .wallet.EncryptedData encrypted_deterministic_seed = 9;
public static final int ENCRYPTED_DETERMINISTIC_SEED_FIELD_NUMBER = 9;
- private org.bitcoinj.wallet.Protos.EncryptedData encryptedDeterministicSeed_;
+ private com.dogecoin.dogecoinj.wallet.Protos.EncryptedData encryptedDeterministicSeed_;
/**
* optional .wallet.EncryptedData encrypted_deterministic_seed = 9;
*
@@ -3087,7 +3087,7 @@ public final class Protos {
* Encrypted version of the seed
*
*/
- public org.bitcoinj.wallet.Protos.EncryptedData getEncryptedDeterministicSeed() {
+ public com.dogecoin.dogecoinj.wallet.Protos.EncryptedData getEncryptedDeterministicSeed() {
return encryptedDeterministicSeed_;
}
/**
@@ -3097,20 +3097,20 @@ public final class Protos {
* Encrypted version of the seed
*
*/
- public org.bitcoinj.wallet.Protos.EncryptedDataOrBuilder getEncryptedDeterministicSeedOrBuilder() {
+ public com.dogecoin.dogecoinj.wallet.Protos.EncryptedDataOrBuilder getEncryptedDeterministicSeedOrBuilder() {
return encryptedDeterministicSeed_;
}
private void initFields() {
- type_ = org.bitcoinj.wallet.Protos.Key.Type.ORIGINAL;
+ type_ = com.dogecoin.dogecoinj.wallet.Protos.Key.Type.ORIGINAL;
secretBytes_ = com.google.protobuf.ByteString.EMPTY;
- encryptedData_ = org.bitcoinj.wallet.Protos.EncryptedData.getDefaultInstance();
+ encryptedData_ = com.dogecoin.dogecoinj.wallet.Protos.EncryptedData.getDefaultInstance();
publicKey_ = com.google.protobuf.ByteString.EMPTY;
label_ = "";
creationTimestamp_ = 0L;
- deterministicKey_ = org.bitcoinj.wallet.Protos.DeterministicKey.getDefaultInstance();
+ deterministicKey_ = com.dogecoin.dogecoinj.wallet.Protos.DeterministicKey.getDefaultInstance();
deterministicSeed_ = com.google.protobuf.ByteString.EMPTY;
- encryptedDeterministicSeed_ = org.bitcoinj.wallet.Protos.EncryptedData.getDefaultInstance();
+ encryptedDeterministicSeed_ = com.dogecoin.dogecoinj.wallet.Protos.EncryptedData.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
@@ -3230,53 +3230,53 @@ public final class Protos {
return super.writeReplace();
}
- public static org.bitcoinj.wallet.Protos.Key parseFrom(
+ public static com.dogecoin.dogecoinj.wallet.Protos.Key parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static org.bitcoinj.wallet.Protos.Key parseFrom(
+ public static com.dogecoin.dogecoinj.wallet.Protos.Key parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static org.bitcoinj.wallet.Protos.Key parseFrom(byte[] data)
+ public static com.dogecoin.dogecoinj.wallet.Protos.Key parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static org.bitcoinj.wallet.Protos.Key parseFrom(
+ public static com.dogecoin.dogecoinj.wallet.Protos.Key parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static org.bitcoinj.wallet.Protos.Key parseFrom(java.io.InputStream input)
+ public static com.dogecoin.dogecoinj.wallet.Protos.Key parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
- public static org.bitcoinj.wallet.Protos.Key parseFrom(
+ public static com.dogecoin.dogecoinj.wallet.Protos.Key parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
- public static org.bitcoinj.wallet.Protos.Key parseDelimitedFrom(java.io.InputStream input)
+ public static com.dogecoin.dogecoinj.wallet.Protos.Key parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
- public static org.bitcoinj.wallet.Protos.Key parseDelimitedFrom(
+ public static com.dogecoin.dogecoinj.wallet.Protos.Key parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
- public static org.bitcoinj.wallet.Protos.Key parseFrom(
+ public static com.dogecoin.dogecoinj.wallet.Protos.Key parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
- public static org.bitcoinj.wallet.Protos.Key parseFrom(
+ public static com.dogecoin.dogecoinj.wallet.Protos.Key parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -3285,7 +3285,7 @@ public final class Protos {
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(org.bitcoinj.wallet.Protos.Key prototype) {
+ public static Builder newBuilder(com.dogecoin.dogecoinj.wallet.Protos.Key prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@@ -3312,20 +3312,20 @@ public final class Protos {
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builderrequired .wallet.Key.Type type = 1;
*/
@@ -3559,13 +3559,13 @@ public final class Protos {
/**
* required .wallet.Key.Type type = 1;
*/
- public org.bitcoinj.wallet.Protos.Key.Type getType() {
+ public com.dogecoin.dogecoinj.wallet.Protos.Key.Type getType() {
return type_;
}
/**
* required .wallet.Key.Type type = 1;
*/
- public Builder setType(org.bitcoinj.wallet.Protos.Key.Type value) {
+ public Builder setType(com.dogecoin.dogecoinj.wallet.Protos.Key.Type value) {
if (value == null) {
throw new NullPointerException();
}
@@ -3579,7 +3579,7 @@ public final class Protos {
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000001);
- type_ = org.bitcoinj.wallet.Protos.Key.Type.ORIGINAL;
+ type_ = com.dogecoin.dogecoinj.wallet.Protos.Key.Type.ORIGINAL;
onChanged();
return this;
}
@@ -3641,9 +3641,9 @@ public final class Protos {
}
// optional .wallet.EncryptedData encrypted_data = 6;
- private org.bitcoinj.wallet.Protos.EncryptedData encryptedData_ = org.bitcoinj.wallet.Protos.EncryptedData.getDefaultInstance();
+ private com.dogecoin.dogecoinj.wallet.Protos.EncryptedData encryptedData_ = com.dogecoin.dogecoinj.wallet.Protos.EncryptedData.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
- org.bitcoinj.wallet.Protos.EncryptedData, org.bitcoinj.wallet.Protos.EncryptedData.Builder, org.bitcoinj.wallet.Protos.EncryptedDataOrBuilder> encryptedDataBuilder_;
+ com.dogecoin.dogecoinj.wallet.Protos.EncryptedData, com.dogecoin.dogecoinj.wallet.Protos.EncryptedData.Builder, com.dogecoin.dogecoinj.wallet.Protos.EncryptedDataOrBuilder> encryptedDataBuilder_;
/**
* optional .wallet.EncryptedData encrypted_data = 6;
*
@@ -3661,7 +3661,7 @@ public final class Protos {
* If the secret data is encrypted, then secret_bytes is missing and this field is set.
*
*/
- public org.bitcoinj.wallet.Protos.EncryptedData getEncryptedData() {
+ public com.dogecoin.dogecoinj.wallet.Protos.EncryptedData getEncryptedData() {
if (encryptedDataBuilder_ == null) {
return encryptedData_;
} else {
@@ -3675,7 +3675,7 @@ public final class Protos {
* If the secret data is encrypted, then secret_bytes is missing and this field is set.
*
*/
- public Builder setEncryptedData(org.bitcoinj.wallet.Protos.EncryptedData value) {
+ public Builder setEncryptedData(com.dogecoin.dogecoinj.wallet.Protos.EncryptedData value) {
if (encryptedDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -3696,7 +3696,7 @@ public final class Protos {
*
*/
public Builder setEncryptedData(
- org.bitcoinj.wallet.Protos.EncryptedData.Builder builderForValue) {
+ com.dogecoin.dogecoinj.wallet.Protos.EncryptedData.Builder builderForValue) {
if (encryptedDataBuilder_ == null) {
encryptedData_ = builderForValue.build();
onChanged();
@@ -3713,12 +3713,12 @@ public final class Protos {
* If the secret data is encrypted, then secret_bytes is missing and this field is set.
*
*/
- public Builder mergeEncryptedData(org.bitcoinj.wallet.Protos.EncryptedData value) {
+ public Builder mergeEncryptedData(com.dogecoin.dogecoinj.wallet.Protos.EncryptedData value) {
if (encryptedDataBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
- encryptedData_ != org.bitcoinj.wallet.Protos.EncryptedData.getDefaultInstance()) {
+ encryptedData_ != com.dogecoin.dogecoinj.wallet.Protos.EncryptedData.getDefaultInstance()) {
encryptedData_ =
- org.bitcoinj.wallet.Protos.EncryptedData.newBuilder(encryptedData_).mergeFrom(value).buildPartial();
+ com.dogecoin.dogecoinj.wallet.Protos.EncryptedData.newBuilder(encryptedData_).mergeFrom(value).buildPartial();
} else {
encryptedData_ = value;
}
@@ -3738,7 +3738,7 @@ public final class Protos {
*/
public Builder clearEncryptedData() {
if (encryptedDataBuilder_ == null) {
- encryptedData_ = org.bitcoinj.wallet.Protos.EncryptedData.getDefaultInstance();
+ encryptedData_ = com.dogecoin.dogecoinj.wallet.Protos.EncryptedData.getDefaultInstance();
onChanged();
} else {
encryptedDataBuilder_.clear();
@@ -3753,7 +3753,7 @@ public final class Protos {
* If the secret data is encrypted, then secret_bytes is missing and this field is set.
*
*/
- public org.bitcoinj.wallet.Protos.EncryptedData.Builder getEncryptedDataBuilder() {
+ public com.dogecoin.dogecoinj.wallet.Protos.EncryptedData.Builder getEncryptedDataBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getEncryptedDataFieldBuilder().getBuilder();
@@ -3765,7 +3765,7 @@ public final class Protos {
* If the secret data is encrypted, then secret_bytes is missing and this field is set.
*
*/
- public org.bitcoinj.wallet.Protos.EncryptedDataOrBuilder getEncryptedDataOrBuilder() {
+ public com.dogecoin.dogecoinj.wallet.Protos.EncryptedDataOrBuilder getEncryptedDataOrBuilder() {
if (encryptedDataBuilder_ != null) {
return encryptedDataBuilder_.getMessageOrBuilder();
} else {
@@ -3780,11 +3780,11 @@ public final class Protos {
*
*/
private com.google.protobuf.SingleFieldBuilder<
- org.bitcoinj.wallet.Protos.EncryptedData, org.bitcoinj.wallet.Protos.EncryptedData.Builder, org.bitcoinj.wallet.Protos.EncryptedDataOrBuilder>
+ com.dogecoin.dogecoinj.wallet.Protos.EncryptedData, com.dogecoin.dogecoinj.wallet.Protos.EncryptedData.Builder, com.dogecoin.dogecoinj.wallet.Protos.EncryptedDataOrBuilder>
getEncryptedDataFieldBuilder() {
if (encryptedDataBuilder_ == null) {
encryptedDataBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- org.bitcoinj.wallet.Protos.EncryptedData, org.bitcoinj.wallet.Protos.EncryptedData.Builder, org.bitcoinj.wallet.Protos.EncryptedDataOrBuilder>(
+ com.dogecoin.dogecoinj.wallet.Protos.EncryptedData, com.dogecoin.dogecoinj.wallet.Protos.EncryptedData.Builder, com.dogecoin.dogecoinj.wallet.Protos.EncryptedDataOrBuilder>(
encryptedData_,
getParentForChildren(),
isClean());
@@ -4001,9 +4001,9 @@ public final class Protos {
}
// optional .wallet.DeterministicKey deterministic_key = 7;
- private org.bitcoinj.wallet.Protos.DeterministicKey deterministicKey_ = org.bitcoinj.wallet.Protos.DeterministicKey.getDefaultInstance();
+ private com.dogecoin.dogecoinj.wallet.Protos.DeterministicKey deterministicKey_ = com.dogecoin.dogecoinj.wallet.Protos.DeterministicKey.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
- org.bitcoinj.wallet.Protos.DeterministicKey, org.bitcoinj.wallet.Protos.DeterministicKey.Builder, org.bitcoinj.wallet.Protos.DeterministicKeyOrBuilder> deterministicKeyBuilder_;
+ com.dogecoin.dogecoinj.wallet.Protos.DeterministicKey, com.dogecoin.dogecoinj.wallet.Protos.DeterministicKey.Builder, com.dogecoin.dogecoinj.wallet.Protos.DeterministicKeyOrBuilder> deterministicKeyBuilder_;
/**
* optional .wallet.DeterministicKey deterministic_key = 7;
*/
@@ -4013,7 +4013,7 @@ public final class Protos {
/**
* optional .wallet.DeterministicKey deterministic_key = 7;
*/
- public org.bitcoinj.wallet.Protos.DeterministicKey getDeterministicKey() {
+ public com.dogecoin.dogecoinj.wallet.Protos.DeterministicKey getDeterministicKey() {
if (deterministicKeyBuilder_ == null) {
return deterministicKey_;
} else {
@@ -4023,7 +4023,7 @@ public final class Protos {
/**
* optional .wallet.DeterministicKey deterministic_key = 7;
*/
- public Builder setDeterministicKey(org.bitcoinj.wallet.Protos.DeterministicKey value) {
+ public Builder setDeterministicKey(com.dogecoin.dogecoinj.wallet.Protos.DeterministicKey value) {
if (deterministicKeyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -4040,7 +4040,7 @@ public final class Protos {
* optional .wallet.DeterministicKey deterministic_key = 7;
*/
public Builder setDeterministicKey(
- org.bitcoinj.wallet.Protos.DeterministicKey.Builder builderForValue) {
+ com.dogecoin.dogecoinj.wallet.Protos.DeterministicKey.Builder builderForValue) {
if (deterministicKeyBuilder_ == null) {
deterministicKey_ = builderForValue.build();
onChanged();
@@ -4053,12 +4053,12 @@ public final class Protos {
/**
* optional .wallet.DeterministicKey deterministic_key = 7;
*/
- public Builder mergeDeterministicKey(org.bitcoinj.wallet.Protos.DeterministicKey value) {
+ public Builder mergeDeterministicKey(com.dogecoin.dogecoinj.wallet.Protos.DeterministicKey value) {
if (deterministicKeyBuilder_ == null) {
if (((bitField0_ & 0x00000040) == 0x00000040) &&
- deterministicKey_ != org.bitcoinj.wallet.Protos.DeterministicKey.getDefaultInstance()) {
+ deterministicKey_ != com.dogecoin.dogecoinj.wallet.Protos.DeterministicKey.getDefaultInstance()) {
deterministicKey_ =
- org.bitcoinj.wallet.Protos.DeterministicKey.newBuilder(deterministicKey_).mergeFrom(value).buildPartial();
+ com.dogecoin.dogecoinj.wallet.Protos.DeterministicKey.newBuilder(deterministicKey_).mergeFrom(value).buildPartial();
} else {
deterministicKey_ = value;
}
@@ -4074,7 +4074,7 @@ public final class Protos {
*/
public Builder clearDeterministicKey() {
if (deterministicKeyBuilder_ == null) {
- deterministicKey_ = org.bitcoinj.wallet.Protos.DeterministicKey.getDefaultInstance();
+ deterministicKey_ = com.dogecoin.dogecoinj.wallet.Protos.DeterministicKey.getDefaultInstance();
onChanged();
} else {
deterministicKeyBuilder_.clear();
@@ -4085,7 +4085,7 @@ public final class Protos {
/**
* optional .wallet.DeterministicKey deterministic_key = 7;
*/
- public org.bitcoinj.wallet.Protos.DeterministicKey.Builder getDeterministicKeyBuilder() {
+ public com.dogecoin.dogecoinj.wallet.Protos.DeterministicKey.Builder getDeterministicKeyBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getDeterministicKeyFieldBuilder().getBuilder();
@@ -4093,7 +4093,7 @@ public final class Protos {
/**
* optional .wallet.DeterministicKey deterministic_key = 7;
*/
- public org.bitcoinj.wallet.Protos.DeterministicKeyOrBuilder getDeterministicKeyOrBuilder() {
+ public com.dogecoin.dogecoinj.wallet.Protos.DeterministicKeyOrBuilder getDeterministicKeyOrBuilder() {
if (deterministicKeyBuilder_ != null) {
return deterministicKeyBuilder_.getMessageOrBuilder();
} else {
@@ -4104,11 +4104,11 @@ public final class Protos {
* optional .wallet.DeterministicKey deterministic_key = 7;
*/
private com.google.protobuf.SingleFieldBuilder<
- org.bitcoinj.wallet.Protos.DeterministicKey, org.bitcoinj.wallet.Protos.DeterministicKey.Builder, org.bitcoinj.wallet.Protos.DeterministicKeyOrBuilder>
+ com.dogecoin.dogecoinj.wallet.Protos.DeterministicKey, com.dogecoin.dogecoinj.wallet.Protos.DeterministicKey.Builder, com.dogecoin.dogecoinj.wallet.Protos.DeterministicKeyOrBuilder>
getDeterministicKeyFieldBuilder() {
if (deterministicKeyBuilder_ == null) {
deterministicKeyBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- org.bitcoinj.wallet.Protos.DeterministicKey, org.bitcoinj.wallet.Protos.DeterministicKey.Builder, org.bitcoinj.wallet.Protos.DeterministicKeyOrBuilder>(
+ com.dogecoin.dogecoinj.wallet.Protos.DeterministicKey, com.dogecoin.dogecoinj.wallet.Protos.DeterministicKey.Builder, com.dogecoin.dogecoinj.wallet.Protos.DeterministicKeyOrBuilder>(
deterministicKey_,
getParentForChildren(),
isClean());
@@ -4174,9 +4174,9 @@ public final class Protos {
}
// optional .wallet.EncryptedData encrypted_deterministic_seed = 9;
- private org.bitcoinj.wallet.Protos.EncryptedData encryptedDeterministicSeed_ = org.bitcoinj.wallet.Protos.EncryptedData.getDefaultInstance();
+ private com.dogecoin.dogecoinj.wallet.Protos.EncryptedData encryptedDeterministicSeed_ = com.dogecoin.dogecoinj.wallet.Protos.EncryptedData.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
- org.bitcoinj.wallet.Protos.EncryptedData, org.bitcoinj.wallet.Protos.EncryptedData.Builder, org.bitcoinj.wallet.Protos.EncryptedDataOrBuilder> encryptedDeterministicSeedBuilder_;
+ com.dogecoin.dogecoinj.wallet.Protos.EncryptedData, com.dogecoin.dogecoinj.wallet.Protos.EncryptedData.Builder, com.dogecoin.dogecoinj.wallet.Protos.EncryptedDataOrBuilder> encryptedDeterministicSeedBuilder_;
/**
* optional .wallet.EncryptedData encrypted_deterministic_seed = 9;
*
@@ -4194,7 +4194,7 @@ public final class Protos {
* Encrypted version of the seed
*
*/
- public org.bitcoinj.wallet.Protos.EncryptedData getEncryptedDeterministicSeed() {
+ public com.dogecoin.dogecoinj.wallet.Protos.EncryptedData getEncryptedDeterministicSeed() {
if (encryptedDeterministicSeedBuilder_ == null) {
return encryptedDeterministicSeed_;
} else {
@@ -4208,7 +4208,7 @@ public final class Protos {
* Encrypted version of the seed
*
*/
- public Builder setEncryptedDeterministicSeed(org.bitcoinj.wallet.Protos.EncryptedData value) {
+ public Builder setEncryptedDeterministicSeed(com.dogecoin.dogecoinj.wallet.Protos.EncryptedData value) {
if (encryptedDeterministicSeedBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -4229,7 +4229,7 @@ public final class Protos {
*
*/
public Builder setEncryptedDeterministicSeed(
- org.bitcoinj.wallet.Protos.EncryptedData.Builder builderForValue) {
+ com.dogecoin.dogecoinj.wallet.Protos.EncryptedData.Builder builderForValue) {
if (encryptedDeterministicSeedBuilder_ == null) {
encryptedDeterministicSeed_ = builderForValue.build();
onChanged();
@@ -4246,12 +4246,12 @@ public final class Protos {
* Encrypted version of the seed
*
*/
- public Builder mergeEncryptedDeterministicSeed(org.bitcoinj.wallet.Protos.EncryptedData value) {
+ public Builder mergeEncryptedDeterministicSeed(com.dogecoin.dogecoinj.wallet.Protos.EncryptedData value) {
if (encryptedDeterministicSeedBuilder_ == null) {
if (((bitField0_ & 0x00000100) == 0x00000100) &&
- encryptedDeterministicSeed_ != org.bitcoinj.wallet.Protos.EncryptedData.getDefaultInstance()) {
+ encryptedDeterministicSeed_ != com.dogecoin.dogecoinj.wallet.Protos.EncryptedData.getDefaultInstance()) {
encryptedDeterministicSeed_ =
- org.bitcoinj.wallet.Protos.EncryptedData.newBuilder(encryptedDeterministicSeed_).mergeFrom(value).buildPartial();
+ com.dogecoin.dogecoinj.wallet.Protos.EncryptedData.newBuilder(encryptedDeterministicSeed_).mergeFrom(value).buildPartial();
} else {
encryptedDeterministicSeed_ = value;
}
@@ -4271,7 +4271,7 @@ public final class Protos {
*/
public Builder clearEncryptedDeterministicSeed() {
if (encryptedDeterministicSeedBuilder_ == null) {
- encryptedDeterministicSeed_ = org.bitcoinj.wallet.Protos.EncryptedData.getDefaultInstance();
+ encryptedDeterministicSeed_ = com.dogecoin.dogecoinj.wallet.Protos.EncryptedData.getDefaultInstance();
onChanged();
} else {
encryptedDeterministicSeedBuilder_.clear();
@@ -4286,7 +4286,7 @@ public final class Protos {
* Encrypted version of the seed
*
*/
- public org.bitcoinj.wallet.Protos.EncryptedData.Builder getEncryptedDeterministicSeedBuilder() {
+ public com.dogecoin.dogecoinj.wallet.Protos.EncryptedData.Builder getEncryptedDeterministicSeedBuilder() {
bitField0_ |= 0x00000100;
onChanged();
return getEncryptedDeterministicSeedFieldBuilder().getBuilder();
@@ -4298,7 +4298,7 @@ public final class Protos {
* Encrypted version of the seed
*
*/
- public org.bitcoinj.wallet.Protos.EncryptedDataOrBuilder getEncryptedDeterministicSeedOrBuilder() {
+ public com.dogecoin.dogecoinj.wallet.Protos.EncryptedDataOrBuilder getEncryptedDeterministicSeedOrBuilder() {
if (encryptedDeterministicSeedBuilder_ != null) {
return encryptedDeterministicSeedBuilder_.getMessageOrBuilder();
} else {
@@ -4313,11 +4313,11 @@ public final class Protos {
*
*/
private com.google.protobuf.SingleFieldBuilder<
- org.bitcoinj.wallet.Protos.EncryptedData, org.bitcoinj.wallet.Protos.EncryptedData.Builder, org.bitcoinj.wallet.Protos.EncryptedDataOrBuilder>
+ com.dogecoin.dogecoinj.wallet.Protos.EncryptedData, com.dogecoin.dogecoinj.wallet.Protos.EncryptedData.Builder, com.dogecoin.dogecoinj.wallet.Protos.EncryptedDataOrBuilder>
getEncryptedDeterministicSeedFieldBuilder() {
if (encryptedDeterministicSeedBuilder_ == null) {
encryptedDeterministicSeedBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- org.bitcoinj.wallet.Protos.EncryptedData, org.bitcoinj.wallet.Protos.EncryptedData.Builder, org.bitcoinj.wallet.Protos.EncryptedDataOrBuilder>(
+ com.dogecoin.dogecoinj.wallet.Protos.EncryptedData, com.dogecoin.dogecoinj.wallet.Protos.EncryptedData.Builder, com.dogecoin.dogecoinj.wallet.Protos.EncryptedDataOrBuilder>(
encryptedDeterministicSeed_,
getParentForChildren(),
isClean());
@@ -4445,14 +4445,14 @@ public final class Protos {
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return org.bitcoinj.wallet.Protos.internal_static_wallet_Script_descriptor;
+ return com.dogecoin.dogecoinj.wallet.Protos.internal_static_wallet_Script_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
- return org.bitcoinj.wallet.Protos.internal_static_wallet_Script_fieldAccessorTable
+ return com.dogecoin.dogecoinj.wallet.Protos.internal_static_wallet_Script_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- org.bitcoinj.wallet.Protos.Script.class, org.bitcoinj.wallet.Protos.Script.Builder.class);
+ com.dogecoin.dogecoinj.wallet.Protos.Script.class, com.dogecoin.dogecoinj.wallet.Protos.Script.Builder.class);
}
public static com.google.protobuf.Parser