diff --git a/build.gradle b/build.gradle index d6c00e8..f674e97 100644 --- a/build.gradle +++ b/build.gradle @@ -23,7 +23,7 @@ if(hasPlugin) { apply plugin: "org.javamodularity.moduleplugin" } -group 'com.craigraw' +group 'com.sparrowwallet' version '0.1' sourceCompatibility = 1.9 @@ -54,14 +54,14 @@ dependencies { } task(runDrongo, dependsOn: 'classes', type: JavaExec) { - main = 'com.craigraw.drongo.Main' + main = 'com.sparrowwallet.drongo.Main' classpath = sourceSets.main.runtimeClasspath args 'drongo.properties' } jar { manifest { - attributes "Main-Class": "com.craigraw.drongo.Main" + attributes "Main-Class": "com.sparrowwallet.drongo.Main" } baseName = 'drongo' diff --git a/src/main/java/com/craigraw/drongo/Drongo.java b/src/main/java/com/sparrowwallet/drongo/Drongo.java similarity index 96% rename from src/main/java/com/craigraw/drongo/Drongo.java rename to src/main/java/com/sparrowwallet/drongo/Drongo.java index 931e911..5f60c70 100644 --- a/src/main/java/com/craigraw/drongo/Drongo.java +++ b/src/main/java/com/sparrowwallet/drongo/Drongo.java @@ -1,6 +1,6 @@ -package com.craigraw.drongo; +package com.sparrowwallet.drongo; -import com.craigraw.drongo.rpc.BitcoinJSONRPCClient; +import com.sparrowwallet.drongo.rpc.BitcoinJSONRPCClient; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.zeromq.SocketType; diff --git a/src/main/java/com/craigraw/drongo/ExtendedPublicKey.java b/src/main/java/com/sparrowwallet/drongo/ExtendedPublicKey.java similarity index 96% rename from src/main/java/com/craigraw/drongo/ExtendedPublicKey.java rename to src/main/java/com/sparrowwallet/drongo/ExtendedPublicKey.java index f2e81c7..f7f7a13 100644 --- a/src/main/java/com/craigraw/drongo/ExtendedPublicKey.java +++ b/src/main/java/com/sparrowwallet/drongo/ExtendedPublicKey.java @@ -1,13 +1,13 @@ -package com.craigraw.drongo; +package com.sparrowwallet.drongo; -import com.craigraw.drongo.crypto.*; -import com.craigraw.drongo.protocol.Base58; +import com.sparrowwallet.drongo.crypto.*; +import com.sparrowwallet.drongo.protocol.Base58; import java.nio.ByteBuffer; import java.util.*; -import static com.craigraw.drongo.KeyDerivation.parsePath; -import static com.craigraw.drongo.KeyDerivation.writePath; +import static com.sparrowwallet.drongo.KeyDerivation.parsePath; +import static com.sparrowwallet.drongo.KeyDerivation.writePath; public class ExtendedPublicKey { private static final int bip32HeaderP2PKHXPub = 0x0488B21E; //The 4 byte header that serializes in base58 to "xpub". diff --git a/src/main/java/com/craigraw/drongo/KeyDerivation.java b/src/main/java/com/sparrowwallet/drongo/KeyDerivation.java similarity index 96% rename from src/main/java/com/craigraw/drongo/KeyDerivation.java rename to src/main/java/com/sparrowwallet/drongo/KeyDerivation.java index 0edaaf5..8a7022b 100644 --- a/src/main/java/com/craigraw/drongo/KeyDerivation.java +++ b/src/main/java/com/sparrowwallet/drongo/KeyDerivation.java @@ -1,6 +1,6 @@ -package com.craigraw.drongo; +package com.sparrowwallet.drongo; -import com.craigraw.drongo.crypto.ChildNumber; +import com.sparrowwallet.drongo.crypto.ChildNumber; import java.util.ArrayList; import java.util.List; diff --git a/src/main/java/com/craigraw/drongo/Main.java b/src/main/java/com/sparrowwallet/drongo/Main.java similarity index 98% rename from src/main/java/com/craigraw/drongo/Main.java rename to src/main/java/com/sparrowwallet/drongo/Main.java index b036e3f..205b81e 100644 --- a/src/main/java/com/craigraw/drongo/Main.java +++ b/src/main/java/com/sparrowwallet/drongo/Main.java @@ -1,4 +1,4 @@ -package com.craigraw.drongo; +package com.sparrowwallet.drongo; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/src/main/java/com/craigraw/drongo/OutputDescriptor.java b/src/main/java/com/sparrowwallet/drongo/OutputDescriptor.java similarity index 96% rename from src/main/java/com/craigraw/drongo/OutputDescriptor.java rename to src/main/java/com/sparrowwallet/drongo/OutputDescriptor.java index 1c4162a..463e5f8 100644 --- a/src/main/java/com/craigraw/drongo/OutputDescriptor.java +++ b/src/main/java/com/sparrowwallet/drongo/OutputDescriptor.java @@ -1,11 +1,11 @@ -package com.craigraw.drongo; +package com.sparrowwallet.drongo; -import com.craigraw.drongo.address.*; -import com.craigraw.drongo.crypto.ChildNumber; -import com.craigraw.drongo.crypto.DeterministicKey; -import com.craigraw.drongo.protocol.Script; -import com.craigraw.drongo.protocol.ScriptChunk; -import com.craigraw.drongo.protocol.ScriptOpCodes; +import com.sparrowwallet.drongo.address.*; +import com.sparrowwallet.drongo.crypto.ChildNumber; +import com.sparrowwallet.drongo.crypto.DeterministicKey; +import com.sparrowwallet.drongo.protocol.Script; +import com.sparrowwallet.drongo.protocol.ScriptChunk; +import com.sparrowwallet.drongo.protocol.ScriptOpCodes; import java.util.ArrayList; import java.util.Collections; diff --git a/src/main/java/com/craigraw/drongo/TransactionTask.java b/src/main/java/com/sparrowwallet/drongo/TransactionTask.java similarity index 97% rename from src/main/java/com/craigraw/drongo/TransactionTask.java rename to src/main/java/com/sparrowwallet/drongo/TransactionTask.java index 447e6c8..bbb1e28 100644 --- a/src/main/java/com/craigraw/drongo/TransactionTask.java +++ b/src/main/java/com/sparrowwallet/drongo/TransactionTask.java @@ -1,7 +1,7 @@ -package com.craigraw.drongo; +package com.sparrowwallet.drongo; -import com.craigraw.drongo.address.Address; -import com.craigraw.drongo.protocol.*; +import com.sparrowwallet.drongo.address.Address; +import com.sparrowwallet.drongo.protocol.*; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/src/main/java/com/craigraw/drongo/Utils.java b/src/main/java/com/sparrowwallet/drongo/Utils.java similarity index 97% rename from src/main/java/com/craigraw/drongo/Utils.java rename to src/main/java/com/sparrowwallet/drongo/Utils.java index fba44b1..01033b0 100644 --- a/src/main/java/com/craigraw/drongo/Utils.java +++ b/src/main/java/com/sparrowwallet/drongo/Utils.java @@ -1,9 +1,9 @@ -package com.craigraw.drongo; +package com.sparrowwallet.drongo; -import com.craigraw.drongo.crypto.ChildNumber; -import com.craigraw.drongo.protocol.ProtocolException; -import com.craigraw.drongo.protocol.Ripemd160; -import com.craigraw.drongo.protocol.Sha256Hash; +import com.sparrowwallet.drongo.crypto.ChildNumber; +import com.sparrowwallet.drongo.protocol.ProtocolException; +import com.sparrowwallet.drongo.protocol.Ripemd160; +import com.sparrowwallet.drongo.protocol.Sha256Hash; import org.bouncycastle.crypto.digests.SHA512Digest; import org.bouncycastle.crypto.macs.HMac; import org.bouncycastle.crypto.params.KeyParameter; diff --git a/src/main/java/com/craigraw/drongo/WatchWallet.java b/src/main/java/com/sparrowwallet/drongo/WatchWallet.java similarity index 94% rename from src/main/java/com/craigraw/drongo/WatchWallet.java rename to src/main/java/com/sparrowwallet/drongo/WatchWallet.java index 20366d7..64b723f 100644 --- a/src/main/java/com/craigraw/drongo/WatchWallet.java +++ b/src/main/java/com/sparrowwallet/drongo/WatchWallet.java @@ -1,7 +1,7 @@ -package com.craigraw.drongo; +package com.sparrowwallet.drongo; -import com.craigraw.drongo.address.Address; -import com.craigraw.drongo.crypto.*; +import com.sparrowwallet.drongo.address.Address; +import com.sparrowwallet.drongo.crypto.*; import java.util.HashMap; import java.util.List; diff --git a/src/main/java/com/craigraw/drongo/address/Address.java b/src/main/java/com/sparrowwallet/drongo/address/Address.java similarity index 84% rename from src/main/java/com/craigraw/drongo/address/Address.java rename to src/main/java/com/sparrowwallet/drongo/address/Address.java index 94f9337..01a7a4c 100644 --- a/src/main/java/com/craigraw/drongo/address/Address.java +++ b/src/main/java/com/sparrowwallet/drongo/address/Address.java @@ -1,7 +1,7 @@ -package com.craigraw.drongo.address; +package com.sparrowwallet.drongo.address; -import com.craigraw.drongo.protocol.Base58; -import com.craigraw.drongo.protocol.Script; +import com.sparrowwallet.drongo.protocol.Base58; +import com.sparrowwallet.drongo.protocol.Script; public abstract class Address { protected final byte[] pubKeyHash; diff --git a/src/main/java/com/craigraw/drongo/address/P2PKAddress.java b/src/main/java/com/sparrowwallet/drongo/address/P2PKAddress.java similarity index 70% rename from src/main/java/com/craigraw/drongo/address/P2PKAddress.java rename to src/main/java/com/sparrowwallet/drongo/address/P2PKAddress.java index b741fc0..4d5f97f 100644 --- a/src/main/java/com/craigraw/drongo/address/P2PKAddress.java +++ b/src/main/java/com/sparrowwallet/drongo/address/P2PKAddress.java @@ -1,9 +1,9 @@ -package com.craigraw.drongo.address; +package com.sparrowwallet.drongo.address; -import com.craigraw.drongo.Utils; -import com.craigraw.drongo.protocol.Script; -import com.craigraw.drongo.protocol.ScriptChunk; -import com.craigraw.drongo.protocol.ScriptOpCodes; +import com.sparrowwallet.drongo.Utils; +import com.sparrowwallet.drongo.protocol.Script; +import com.sparrowwallet.drongo.protocol.ScriptChunk; +import com.sparrowwallet.drongo.protocol.ScriptOpCodes; import java.util.ArrayList; import java.util.List; diff --git a/src/main/java/com/craigraw/drongo/address/P2PKHAddress.java b/src/main/java/com/sparrowwallet/drongo/address/P2PKHAddress.java similarity index 78% rename from src/main/java/com/craigraw/drongo/address/P2PKHAddress.java rename to src/main/java/com/sparrowwallet/drongo/address/P2PKHAddress.java index d93f120..cdd7c31 100644 --- a/src/main/java/com/craigraw/drongo/address/P2PKHAddress.java +++ b/src/main/java/com/sparrowwallet/drongo/address/P2PKHAddress.java @@ -1,8 +1,8 @@ -package com.craigraw.drongo.address; +package com.sparrowwallet.drongo.address; -import com.craigraw.drongo.protocol.Script; -import com.craigraw.drongo.protocol.ScriptChunk; -import com.craigraw.drongo.protocol.ScriptOpCodes; +import com.sparrowwallet.drongo.protocol.Script; +import com.sparrowwallet.drongo.protocol.ScriptChunk; +import com.sparrowwallet.drongo.protocol.ScriptOpCodes; import java.util.ArrayList; import java.util.List; diff --git a/src/main/java/com/craigraw/drongo/address/P2SHAddress.java b/src/main/java/com/sparrowwallet/drongo/address/P2SHAddress.java similarity index 74% rename from src/main/java/com/craigraw/drongo/address/P2SHAddress.java rename to src/main/java/com/sparrowwallet/drongo/address/P2SHAddress.java index 5df38da..0d981b9 100644 --- a/src/main/java/com/craigraw/drongo/address/P2SHAddress.java +++ b/src/main/java/com/sparrowwallet/drongo/address/P2SHAddress.java @@ -1,9 +1,9 @@ -package com.craigraw.drongo.address; +package com.sparrowwallet.drongo.address; -import com.craigraw.drongo.Utils; -import com.craigraw.drongo.protocol.Script; -import com.craigraw.drongo.protocol.ScriptChunk; -import com.craigraw.drongo.protocol.ScriptOpCodes; +import com.sparrowwallet.drongo.Utils; +import com.sparrowwallet.drongo.protocol.Script; +import com.sparrowwallet.drongo.protocol.ScriptChunk; +import com.sparrowwallet.drongo.protocol.ScriptOpCodes; import java.util.ArrayList; import java.util.List; diff --git a/src/main/java/com/craigraw/drongo/address/P2WPKHAddress.java b/src/main/java/com/sparrowwallet/drongo/address/P2WPKHAddress.java similarity index 77% rename from src/main/java/com/craigraw/drongo/address/P2WPKHAddress.java rename to src/main/java/com/sparrowwallet/drongo/address/P2WPKHAddress.java index e1b66b9..b3dec77 100644 --- a/src/main/java/com/craigraw/drongo/address/P2WPKHAddress.java +++ b/src/main/java/com/sparrowwallet/drongo/address/P2WPKHAddress.java @@ -1,8 +1,8 @@ -package com.craigraw.drongo.address; +package com.sparrowwallet.drongo.address; -import com.craigraw.drongo.protocol.Bech32; -import com.craigraw.drongo.protocol.Script; -import com.craigraw.drongo.protocol.ScriptChunk; +import com.sparrowwallet.drongo.protocol.Bech32; +import com.sparrowwallet.drongo.protocol.Script; +import com.sparrowwallet.drongo.protocol.ScriptChunk; import java.util.ArrayList; import java.util.List; diff --git a/src/main/java/com/craigraw/drongo/address/P2WSHAddress.java b/src/main/java/com/sparrowwallet/drongo/address/P2WSHAddress.java similarity index 82% rename from src/main/java/com/craigraw/drongo/address/P2WSHAddress.java rename to src/main/java/com/sparrowwallet/drongo/address/P2WSHAddress.java index 26b175f..c1de40e 100644 --- a/src/main/java/com/craigraw/drongo/address/P2WSHAddress.java +++ b/src/main/java/com/sparrowwallet/drongo/address/P2WSHAddress.java @@ -1,11 +1,11 @@ -package com.craigraw.drongo.address; +package com.sparrowwallet.drongo.address; -import com.craigraw.drongo.protocol.*; +import com.sparrowwallet.drongo.protocol.*; import java.util.ArrayList; import java.util.List; -import static com.craigraw.drongo.address.P2WPKHAddress.HRP; +import static com.sparrowwallet.drongo.address.P2WPKHAddress.HRP; public class P2WSHAddress extends Address { public P2WSHAddress(byte[] pubKeyHash) { diff --git a/src/main/java/com/craigraw/drongo/crypto/ChildNumber.java b/src/main/java/com/sparrowwallet/drongo/crypto/ChildNumber.java similarity index 98% rename from src/main/java/com/craigraw/drongo/crypto/ChildNumber.java rename to src/main/java/com/sparrowwallet/drongo/crypto/ChildNumber.java index c6baf76..67ec957 100644 --- a/src/main/java/com/craigraw/drongo/crypto/ChildNumber.java +++ b/src/main/java/com/sparrowwallet/drongo/crypto/ChildNumber.java @@ -1,4 +1,4 @@ -package com.craigraw.drongo.crypto; +package com.sparrowwallet.drongo.crypto; import java.util.Locale; diff --git a/src/main/java/com/craigraw/drongo/crypto/DeterministicHierarchy.java b/src/main/java/com/sparrowwallet/drongo/crypto/DeterministicHierarchy.java similarity index 92% rename from src/main/java/com/craigraw/drongo/crypto/DeterministicHierarchy.java rename to src/main/java/com/sparrowwallet/drongo/crypto/DeterministicHierarchy.java index 1f53bee..fbecf54 100644 --- a/src/main/java/com/craigraw/drongo/crypto/DeterministicHierarchy.java +++ b/src/main/java/com/sparrowwallet/drongo/crypto/DeterministicHierarchy.java @@ -1,11 +1,7 @@ -package com.craigraw.drongo.crypto; - -import com.craigraw.drongo.Utils; -import com.craigraw.drongo.protocol.Base58; +package com.sparrowwallet.drongo.crypto; import java.util.HashMap; import java.util.List; -import java.util.Locale; import java.util.Map; public class DeterministicHierarchy { diff --git a/src/main/java/com/craigraw/drongo/crypto/DeterministicKey.java b/src/main/java/com/sparrowwallet/drongo/crypto/DeterministicKey.java similarity index 95% rename from src/main/java/com/craigraw/drongo/crypto/DeterministicKey.java rename to src/main/java/com/sparrowwallet/drongo/crypto/DeterministicKey.java index a4193d6..80555b1 100644 --- a/src/main/java/com/craigraw/drongo/crypto/DeterministicKey.java +++ b/src/main/java/com/sparrowwallet/drongo/crypto/DeterministicKey.java @@ -1,9 +1,9 @@ -package com.craigraw.drongo.crypto; +package com.sparrowwallet.drongo.crypto; -import com.craigraw.drongo.Utils; -import com.craigraw.drongo.protocol.Base58; -import com.craigraw.drongo.protocol.Sha256Hash; +import com.sparrowwallet.drongo.Utils; +import com.sparrowwallet.drongo.protocol.Base58; +import com.sparrowwallet.drongo.protocol.Sha256Hash; import java.util.Arrays; import java.util.List; diff --git a/src/main/java/com/craigraw/drongo/crypto/ECKey.java b/src/main/java/com/sparrowwallet/drongo/crypto/ECKey.java similarity index 98% rename from src/main/java/com/craigraw/drongo/crypto/ECKey.java rename to src/main/java/com/sparrowwallet/drongo/crypto/ECKey.java index 99dcaad..777883d 100644 --- a/src/main/java/com/craigraw/drongo/crypto/ECKey.java +++ b/src/main/java/com/sparrowwallet/drongo/crypto/ECKey.java @@ -1,8 +1,8 @@ -package com.craigraw.drongo.crypto; +package com.sparrowwallet.drongo.crypto; -import com.craigraw.drongo.Utils; -import com.craigraw.drongo.protocol.Sha256Hash; -import com.craigraw.drongo.protocol.SignatureDecodeException; +import com.sparrowwallet.drongo.Utils; +import com.sparrowwallet.drongo.protocol.Sha256Hash; +import com.sparrowwallet.drongo.protocol.SignatureDecodeException; import org.bouncycastle.asn1.*; import org.bouncycastle.asn1.x9.X9ECParameters; import org.bouncycastle.crypto.ec.CustomNamedCurves; diff --git a/src/main/java/com/craigraw/drongo/crypto/HDKeyDerivation.java b/src/main/java/com/sparrowwallet/drongo/crypto/HDKeyDerivation.java similarity index 96% rename from src/main/java/com/craigraw/drongo/crypto/HDKeyDerivation.java rename to src/main/java/com/sparrowwallet/drongo/crypto/HDKeyDerivation.java index 849493e..ed8b0f2 100644 --- a/src/main/java/com/craigraw/drongo/crypto/HDKeyDerivation.java +++ b/src/main/java/com/sparrowwallet/drongo/crypto/HDKeyDerivation.java @@ -1,6 +1,6 @@ -package com.craigraw.drongo.crypto; +package com.sparrowwallet.drongo.crypto; -import com.craigraw.drongo.Utils; +import com.sparrowwallet.drongo.Utils; import org.bouncycastle.math.ec.ECPoint; import java.math.BigInteger; diff --git a/src/main/java/com/craigraw/drongo/crypto/LazyECPoint.java b/src/main/java/com/sparrowwallet/drongo/crypto/LazyECPoint.java similarity index 98% rename from src/main/java/com/craigraw/drongo/crypto/LazyECPoint.java rename to src/main/java/com/sparrowwallet/drongo/crypto/LazyECPoint.java index a1ac1f2..981f935 100644 --- a/src/main/java/com/craigraw/drongo/crypto/LazyECPoint.java +++ b/src/main/java/com/sparrowwallet/drongo/crypto/LazyECPoint.java @@ -1,4 +1,4 @@ -package com.craigraw.drongo.crypto; +package com.sparrowwallet.drongo.crypto; import org.bouncycastle.math.ec.ECCurve; import org.bouncycastle.math.ec.ECPoint; diff --git a/src/main/java/com/craigraw/drongo/protocol/Base58.java b/src/main/java/com/sparrowwallet/drongo/protocol/Base58.java similarity index 99% rename from src/main/java/com/craigraw/drongo/protocol/Base58.java rename to src/main/java/com/sparrowwallet/drongo/protocol/Base58.java index f42dd63..017b5d6 100644 --- a/src/main/java/com/craigraw/drongo/protocol/Base58.java +++ b/src/main/java/com/sparrowwallet/drongo/protocol/Base58.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package com.craigraw.drongo.protocol; +package com.sparrowwallet.drongo.protocol; import java.math.BigInteger; import java.util.Arrays; diff --git a/src/main/java/com/craigraw/drongo/protocol/Bech32.java b/src/main/java/com/sparrowwallet/drongo/protocol/Bech32.java similarity index 99% rename from src/main/java/com/craigraw/drongo/protocol/Bech32.java rename to src/main/java/com/sparrowwallet/drongo/protocol/Bech32.java index bb67301..213ab1a 100644 --- a/src/main/java/com/craigraw/drongo/protocol/Bech32.java +++ b/src/main/java/com/sparrowwallet/drongo/protocol/Bech32.java @@ -1,4 +1,4 @@ -package com.craigraw.drongo.protocol; +package com.sparrowwallet.drongo.protocol; /* * Copyright 2018 Coinomi Ltd diff --git a/src/main/java/com/craigraw/drongo/protocol/NonStandardScriptException.java b/src/main/java/com/sparrowwallet/drongo/protocol/NonStandardScriptException.java similarity index 90% rename from src/main/java/com/craigraw/drongo/protocol/NonStandardScriptException.java rename to src/main/java/com/sparrowwallet/drongo/protocol/NonStandardScriptException.java index 4e9d4e3..c6f64fa 100644 --- a/src/main/java/com/craigraw/drongo/protocol/NonStandardScriptException.java +++ b/src/main/java/com/sparrowwallet/drongo/protocol/NonStandardScriptException.java @@ -1,4 +1,4 @@ -package com.craigraw.drongo.protocol; +package com.sparrowwallet.drongo.protocol; public class NonStandardScriptException extends Exception { public NonStandardScriptException() { diff --git a/src/main/java/com/craigraw/drongo/protocol/ProtocolException.java b/src/main/java/com/sparrowwallet/drongo/protocol/ProtocolException.java similarity index 92% rename from src/main/java/com/craigraw/drongo/protocol/ProtocolException.java rename to src/main/java/com/sparrowwallet/drongo/protocol/ProtocolException.java index 5280452..b9311fc 100644 --- a/src/main/java/com/craigraw/drongo/protocol/ProtocolException.java +++ b/src/main/java/com/sparrowwallet/drongo/protocol/ProtocolException.java @@ -1,4 +1,4 @@ -package com.craigraw.drongo.protocol; +package com.sparrowwallet.drongo.protocol; public class ProtocolException extends RuntimeException { public ProtocolException() { diff --git a/src/main/java/com/craigraw/drongo/protocol/Ripemd160.java b/src/main/java/com/sparrowwallet/drongo/protocol/Ripemd160.java similarity index 99% rename from src/main/java/com/craigraw/drongo/protocol/Ripemd160.java rename to src/main/java/com/sparrowwallet/drongo/protocol/Ripemd160.java index 65ea60b..e32aa2e 100644 --- a/src/main/java/com/craigraw/drongo/protocol/Ripemd160.java +++ b/src/main/java/com/sparrowwallet/drongo/protocol/Ripemd160.java @@ -1,4 +1,4 @@ -package com.craigraw.drongo.protocol; +package com.sparrowwallet.drongo.protocol; /* * Bitcoin cryptography library diff --git a/src/main/java/com/craigraw/drongo/protocol/Script.java b/src/main/java/com/sparrowwallet/drongo/protocol/Script.java similarity index 98% rename from src/main/java/com/craigraw/drongo/protocol/Script.java rename to src/main/java/com/sparrowwallet/drongo/protocol/Script.java index 5556ab3..b95df67 100644 --- a/src/main/java/com/craigraw/drongo/protocol/Script.java +++ b/src/main/java/com/sparrowwallet/drongo/protocol/Script.java @@ -1,7 +1,7 @@ -package com.craigraw.drongo.protocol; +package com.sparrowwallet.drongo.protocol; -import com.craigraw.drongo.Utils; -import com.craigraw.drongo.address.*; +import com.sparrowwallet.drongo.Utils; +import com.sparrowwallet.drongo.address.*; import org.bouncycastle.util.encoders.Hex; import java.io.ByteArrayInputStream; @@ -12,7 +12,7 @@ import java.util.Arrays; import java.util.Collections; import java.util.List; -import static com.craigraw.drongo.protocol.ScriptOpCodes.*; +import static com.sparrowwallet.drongo.protocol.ScriptOpCodes.*; public class Script { public static final long MAX_SCRIPT_ELEMENT_SIZE = 520; diff --git a/src/main/java/com/craigraw/drongo/protocol/ScriptChunk.java b/src/main/java/com/sparrowwallet/drongo/protocol/ScriptChunk.java similarity index 96% rename from src/main/java/com/craigraw/drongo/protocol/ScriptChunk.java rename to src/main/java/com/sparrowwallet/drongo/protocol/ScriptChunk.java index 9e3e4f1..f4c4105 100644 --- a/src/main/java/com/craigraw/drongo/protocol/ScriptChunk.java +++ b/src/main/java/com/sparrowwallet/drongo/protocol/ScriptChunk.java @@ -1,6 +1,6 @@ -package com.craigraw.drongo.protocol; +package com.sparrowwallet.drongo.protocol; -import com.craigraw.drongo.Utils; +import com.sparrowwallet.drongo.Utils; import org.bouncycastle.util.encoders.Hex; import java.io.ByteArrayOutputStream; @@ -9,7 +9,7 @@ import java.io.OutputStream; import java.util.Arrays; import java.util.Objects; -import static com.craigraw.drongo.protocol.ScriptOpCodes.*; +import static com.sparrowwallet.drongo.protocol.ScriptOpCodes.*; public class ScriptChunk { /** Operation to be executed. Opcodes are defined in {@link ScriptOpCodes}. */ diff --git a/src/main/java/com/craigraw/drongo/protocol/ScriptOpCodes.java b/src/main/java/com/sparrowwallet/drongo/protocol/ScriptOpCodes.java similarity index 99% rename from src/main/java/com/craigraw/drongo/protocol/ScriptOpCodes.java rename to src/main/java/com/sparrowwallet/drongo/protocol/ScriptOpCodes.java index 85088ba..f9a925b 100644 --- a/src/main/java/com/craigraw/drongo/protocol/ScriptOpCodes.java +++ b/src/main/java/com/sparrowwallet/drongo/protocol/ScriptOpCodes.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.craigraw.drongo.protocol; +package com.sparrowwallet.drongo.protocol; import java.util.HashMap; import java.util.Map; diff --git a/src/main/java/com/craigraw/drongo/protocol/ScriptPattern.java b/src/main/java/com/sparrowwallet/drongo/protocol/ScriptPattern.java similarity index 96% rename from src/main/java/com/craigraw/drongo/protocol/ScriptPattern.java rename to src/main/java/com/sparrowwallet/drongo/protocol/ScriptPattern.java index b493c5b..75270af 100644 --- a/src/main/java/com/craigraw/drongo/protocol/ScriptPattern.java +++ b/src/main/java/com/sparrowwallet/drongo/protocol/ScriptPattern.java @@ -1,13 +1,13 @@ -package com.craigraw.drongo.protocol; +package com.sparrowwallet.drongo.protocol; -import com.craigraw.drongo.address.Address; -import com.craigraw.drongo.address.P2PKAddress; +import com.sparrowwallet.drongo.address.Address; +import com.sparrowwallet.drongo.address.P2PKAddress; import java.util.ArrayList; import java.util.List; -import static com.craigraw.drongo.protocol.ScriptOpCodes.*; -import static com.craigraw.drongo.protocol.Script.decodeFromOpN; +import static com.sparrowwallet.drongo.protocol.ScriptOpCodes.*; +import static com.sparrowwallet.drongo.protocol.Script.decodeFromOpN; public class ScriptPattern { /** diff --git a/src/main/java/com/craigraw/drongo/protocol/Sha256Hash.java b/src/main/java/com/sparrowwallet/drongo/protocol/Sha256Hash.java similarity index 99% rename from src/main/java/com/craigraw/drongo/protocol/Sha256Hash.java rename to src/main/java/com/sparrowwallet/drongo/protocol/Sha256Hash.java index e17fb96..11c0269 100644 --- a/src/main/java/com/craigraw/drongo/protocol/Sha256Hash.java +++ b/src/main/java/com/sparrowwallet/drongo/protocol/Sha256Hash.java @@ -15,9 +15,9 @@ * limitations under the License. */ -package com.craigraw.drongo.protocol; +package com.sparrowwallet.drongo.protocol; -import com.craigraw.drongo.Utils; +import com.sparrowwallet.drongo.Utils; import java.math.BigInteger; import java.security.MessageDigest; diff --git a/src/main/java/com/craigraw/drongo/protocol/SignatureDecodeException.java b/src/main/java/com/sparrowwallet/drongo/protocol/SignatureDecodeException.java similarity index 90% rename from src/main/java/com/craigraw/drongo/protocol/SignatureDecodeException.java rename to src/main/java/com/sparrowwallet/drongo/protocol/SignatureDecodeException.java index bf8d51b..423c278 100644 --- a/src/main/java/com/craigraw/drongo/protocol/SignatureDecodeException.java +++ b/src/main/java/com/sparrowwallet/drongo/protocol/SignatureDecodeException.java @@ -1,4 +1,4 @@ -package com.craigraw.drongo.protocol; +package com.sparrowwallet.drongo.protocol; public class SignatureDecodeException extends RuntimeException { public SignatureDecodeException() { diff --git a/src/main/java/com/craigraw/drongo/protocol/Transaction.java b/src/main/java/com/sparrowwallet/drongo/protocol/Transaction.java similarity index 98% rename from src/main/java/com/craigraw/drongo/protocol/Transaction.java rename to src/main/java/com/sparrowwallet/drongo/protocol/Transaction.java index f10c281..cbe537b 100644 --- a/src/main/java/com/craigraw/drongo/protocol/Transaction.java +++ b/src/main/java/com/sparrowwallet/drongo/protocol/Transaction.java @@ -1,9 +1,9 @@ -package com.craigraw.drongo.protocol; +package com.sparrowwallet.drongo.protocol; -import com.craigraw.drongo.Utils; -import com.craigraw.drongo.address.Address; -import com.craigraw.drongo.address.P2PKHAddress; -import com.craigraw.drongo.crypto.ECKey; +import com.sparrowwallet.drongo.Utils; +import com.sparrowwallet.drongo.address.Address; +import com.sparrowwallet.drongo.address.P2PKHAddress; +import com.sparrowwallet.drongo.crypto.ECKey; import java.io.ByteArrayOutputStream; import java.io.IOException; @@ -14,8 +14,8 @@ import java.util.Collections; import java.util.HashSet; import java.util.List; -import static com.craigraw.drongo.Utils.uint32ToByteStreamLE; -import static com.craigraw.drongo.Utils.uint64ToByteStreamLE; +import static com.sparrowwallet.drongo.Utils.uint32ToByteStreamLE; +import static com.sparrowwallet.drongo.Utils.uint64ToByteStreamLE; public class Transaction extends TransactionPart { public static final int MAX_BLOCK_SIZE = 1000 * 1000; diff --git a/src/main/java/com/craigraw/drongo/protocol/TransactionInput.java b/src/main/java/com/sparrowwallet/drongo/protocol/TransactionInput.java similarity index 97% rename from src/main/java/com/craigraw/drongo/protocol/TransactionInput.java rename to src/main/java/com/sparrowwallet/drongo/protocol/TransactionInput.java index 9ecd4de..768050c 100644 --- a/src/main/java/com/craigraw/drongo/protocol/TransactionInput.java +++ b/src/main/java/com/sparrowwallet/drongo/protocol/TransactionInput.java @@ -1,6 +1,6 @@ -package com.craigraw.drongo.protocol; +package com.sparrowwallet.drongo.protocol; -import com.craigraw.drongo.Utils; +import com.sparrowwallet.drongo.Utils; import java.io.IOException; import java.io.OutputStream; diff --git a/src/main/java/com/craigraw/drongo/protocol/TransactionOutPoint.java b/src/main/java/com/sparrowwallet/drongo/protocol/TransactionOutPoint.java similarity index 92% rename from src/main/java/com/craigraw/drongo/protocol/TransactionOutPoint.java rename to src/main/java/com/sparrowwallet/drongo/protocol/TransactionOutPoint.java index a0b301e..2002eb9 100644 --- a/src/main/java/com/craigraw/drongo/protocol/TransactionOutPoint.java +++ b/src/main/java/com/sparrowwallet/drongo/protocol/TransactionOutPoint.java @@ -1,7 +1,7 @@ -package com.craigraw.drongo.protocol; +package com.sparrowwallet.drongo.protocol; -import com.craigraw.drongo.Utils; -import com.craigraw.drongo.address.Address; +import com.sparrowwallet.drongo.Utils; +import com.sparrowwallet.drongo.address.Address; import java.io.IOException; import java.io.OutputStream; diff --git a/src/main/java/com/craigraw/drongo/protocol/TransactionOutput.java b/src/main/java/com/sparrowwallet/drongo/protocol/TransactionOutput.java similarity index 94% rename from src/main/java/com/craigraw/drongo/protocol/TransactionOutput.java rename to src/main/java/com/sparrowwallet/drongo/protocol/TransactionOutput.java index 6093ee4..0fd4f58 100644 --- a/src/main/java/com/craigraw/drongo/protocol/TransactionOutput.java +++ b/src/main/java/com/sparrowwallet/drongo/protocol/TransactionOutput.java @@ -1,7 +1,7 @@ -package com.craigraw.drongo.protocol; +package com.sparrowwallet.drongo.protocol; -import com.craigraw.drongo.Utils; -import com.craigraw.drongo.address.Address; +import com.sparrowwallet.drongo.Utils; +import com.sparrowwallet.drongo.address.Address; import java.io.ByteArrayOutputStream; import java.io.IOException; diff --git a/src/main/java/com/craigraw/drongo/protocol/TransactionPart.java b/src/main/java/com/sparrowwallet/drongo/protocol/TransactionPart.java similarity index 98% rename from src/main/java/com/craigraw/drongo/protocol/TransactionPart.java rename to src/main/java/com/sparrowwallet/drongo/protocol/TransactionPart.java index 4002fa8..ad09c2a 100644 --- a/src/main/java/com/craigraw/drongo/protocol/TransactionPart.java +++ b/src/main/java/com/sparrowwallet/drongo/protocol/TransactionPart.java @@ -1,6 +1,6 @@ -package com.craigraw.drongo.protocol; +package com.sparrowwallet.drongo.protocol; -import com.craigraw.drongo.Utils; +import com.sparrowwallet.drongo.Utils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/src/main/java/com/craigraw/drongo/protocol/TransactionSignature.java b/src/main/java/com/sparrowwallet/drongo/protocol/TransactionSignature.java similarity index 98% rename from src/main/java/com/craigraw/drongo/protocol/TransactionSignature.java rename to src/main/java/com/sparrowwallet/drongo/protocol/TransactionSignature.java index e42cf61..0104c6c 100644 --- a/src/main/java/com/craigraw/drongo/protocol/TransactionSignature.java +++ b/src/main/java/com/sparrowwallet/drongo/protocol/TransactionSignature.java @@ -1,6 +1,6 @@ -package com.craigraw.drongo.protocol; +package com.sparrowwallet.drongo.protocol; -import com.craigraw.drongo.crypto.ECKey; +import com.sparrowwallet.drongo.crypto.ECKey; import java.io.ByteArrayOutputStream; import java.io.IOException; diff --git a/src/main/java/com/craigraw/drongo/protocol/TransactionWitness.java b/src/main/java/com/sparrowwallet/drongo/protocol/TransactionWitness.java similarity index 96% rename from src/main/java/com/craigraw/drongo/protocol/TransactionWitness.java rename to src/main/java/com/sparrowwallet/drongo/protocol/TransactionWitness.java index 9e1c53b..7fb4faf 100644 --- a/src/main/java/com/craigraw/drongo/protocol/TransactionWitness.java +++ b/src/main/java/com/sparrowwallet/drongo/protocol/TransactionWitness.java @@ -1,6 +1,6 @@ -package com.craigraw.drongo.protocol; +package com.sparrowwallet.drongo.protocol; -import com.craigraw.drongo.Utils; +import com.sparrowwallet.drongo.Utils; import org.bouncycastle.util.encoders.Hex; import java.io.IOException; diff --git a/src/main/java/com/craigraw/drongo/protocol/UnsafeByteArrayOutputStream.java b/src/main/java/com/sparrowwallet/drongo/protocol/UnsafeByteArrayOutputStream.java similarity index 99% rename from src/main/java/com/craigraw/drongo/protocol/UnsafeByteArrayOutputStream.java rename to src/main/java/com/sparrowwallet/drongo/protocol/UnsafeByteArrayOutputStream.java index 9ed2f79..f074078 100644 --- a/src/main/java/com/craigraw/drongo/protocol/UnsafeByteArrayOutputStream.java +++ b/src/main/java/com/sparrowwallet/drongo/protocol/UnsafeByteArrayOutputStream.java @@ -1,4 +1,4 @@ -package com.craigraw.drongo.protocol; +package com.sparrowwallet.drongo.protocol; /* * Copyright 2011 Steve Coughlan. diff --git a/src/main/java/com/craigraw/drongo/protocol/VarInt.java b/src/main/java/com/sparrowwallet/drongo/protocol/VarInt.java similarity index 97% rename from src/main/java/com/craigraw/drongo/protocol/VarInt.java rename to src/main/java/com/sparrowwallet/drongo/protocol/VarInt.java index f753e0c..118a1f5 100644 --- a/src/main/java/com/craigraw/drongo/protocol/VarInt.java +++ b/src/main/java/com/sparrowwallet/drongo/protocol/VarInt.java @@ -14,9 +14,9 @@ * limitations under the License. */ -package com.craigraw.drongo.protocol; +package com.sparrowwallet.drongo.protocol; -import com.craigraw.drongo.Utils; +import com.sparrowwallet.drongo.Utils; /** * A variable-length encoded unsigned integer using Satoshi's encoding (a.k.a. "CompactSize"). diff --git a/src/main/java/com/craigraw/drongo/protocol/VerificationException.java b/src/main/java/com/sparrowwallet/drongo/protocol/VerificationException.java similarity index 97% rename from src/main/java/com/craigraw/drongo/protocol/VerificationException.java rename to src/main/java/com/sparrowwallet/drongo/protocol/VerificationException.java index 1874a16..5badba1 100644 --- a/src/main/java/com/craigraw/drongo/protocol/VerificationException.java +++ b/src/main/java/com/sparrowwallet/drongo/protocol/VerificationException.java @@ -1,4 +1,4 @@ -package com.craigraw.drongo.protocol; +package com.sparrowwallet.drongo.protocol; public class VerificationException extends RuntimeException { public VerificationException(String msg) { diff --git a/src/main/java/com/craigraw/drongo/psbt/PSBT.java b/src/main/java/com/sparrowwallet/drongo/psbt/PSBT.java similarity index 98% rename from src/main/java/com/craigraw/drongo/psbt/PSBT.java rename to src/main/java/com/sparrowwallet/drongo/psbt/PSBT.java index bf77503..d40bd7d 100644 --- a/src/main/java/com/craigraw/drongo/psbt/PSBT.java +++ b/src/main/java/com/sparrowwallet/drongo/psbt/PSBT.java @@ -1,9 +1,9 @@ -package com.craigraw.drongo.psbt; +package com.sparrowwallet.drongo.psbt; -import com.craigraw.drongo.ExtendedPublicKey; -import com.craigraw.drongo.KeyDerivation; -import com.craigraw.drongo.Utils; -import com.craigraw.drongo.protocol.*; +import com.sparrowwallet.drongo.ExtendedPublicKey; +import com.sparrowwallet.drongo.KeyDerivation; +import com.sparrowwallet.drongo.Utils; +import com.sparrowwallet.drongo.protocol.*; import org.bouncycastle.util.encoders.Base64; import org.bouncycastle.util.encoders.Hex; import org.slf4j.Logger; @@ -14,7 +14,7 @@ import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.util.*; -import static com.craigraw.drongo.psbt.PSBTEntry.parseKeyDerivation; +import static com.sparrowwallet.drongo.psbt.PSBTEntry.parseKeyDerivation; public class PSBT { public static final byte PSBT_GLOBAL_UNSIGNED_TX = 0x00; diff --git a/src/main/java/com/craigraw/drongo/psbt/PSBTEntry.java b/src/main/java/com/sparrowwallet/drongo/psbt/PSBTEntry.java similarity index 95% rename from src/main/java/com/craigraw/drongo/psbt/PSBTEntry.java rename to src/main/java/com/sparrowwallet/drongo/psbt/PSBTEntry.java index 265b009..3c38cfb 100644 --- a/src/main/java/com/craigraw/drongo/psbt/PSBTEntry.java +++ b/src/main/java/com/sparrowwallet/drongo/psbt/PSBTEntry.java @@ -1,7 +1,7 @@ -package com.craigraw.drongo.psbt; +package com.sparrowwallet.drongo.psbt; -import com.craigraw.drongo.KeyDerivation; -import com.craigraw.drongo.crypto.ChildNumber; +import com.sparrowwallet.drongo.KeyDerivation; +import com.sparrowwallet.drongo.crypto.ChildNumber; import org.bouncycastle.util.encoders.Hex; import java.nio.ByteBuffer; diff --git a/src/main/java/com/craigraw/drongo/psbt/PSBTInput.java b/src/main/java/com/sparrowwallet/drongo/psbt/PSBTInput.java similarity index 97% rename from src/main/java/com/craigraw/drongo/psbt/PSBTInput.java rename to src/main/java/com/sparrowwallet/drongo/psbt/PSBTInput.java index d1e0da7..42a484b 100644 --- a/src/main/java/com/craigraw/drongo/psbt/PSBTInput.java +++ b/src/main/java/com/sparrowwallet/drongo/psbt/PSBTInput.java @@ -1,12 +1,11 @@ -package com.craigraw.drongo.psbt; +package com.sparrowwallet.drongo.psbt; -import com.craigraw.drongo.KeyDerivation; -import com.craigraw.drongo.Utils; -import com.craigraw.drongo.address.Address; -import com.craigraw.drongo.address.P2PKHAddress; -import com.craigraw.drongo.crypto.ECKey; -import com.craigraw.drongo.crypto.LazyECPoint; -import com.craigraw.drongo.protocol.*; +import com.sparrowwallet.drongo.KeyDerivation; +import com.sparrowwallet.drongo.Utils; +import com.sparrowwallet.drongo.address.Address; +import com.sparrowwallet.drongo.address.P2PKHAddress; +import com.sparrowwallet.drongo.crypto.ECKey; +import com.sparrowwallet.drongo.protocol.*; import org.bouncycastle.util.encoders.Hex; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -17,7 +16,7 @@ import java.util.LinkedHashMap; import java.util.List; import java.util.Map; -import static com.craigraw.drongo.psbt.PSBTEntry.parseKeyDerivation; +import static com.sparrowwallet.drongo.psbt.PSBTEntry.parseKeyDerivation; public class PSBTInput { public static final byte PSBT_IN_NON_WITNESS_UTXO = 0x00; diff --git a/src/main/java/com/craigraw/drongo/psbt/PSBTOutput.java b/src/main/java/com/sparrowwallet/drongo/psbt/PSBTOutput.java similarity index 93% rename from src/main/java/com/craigraw/drongo/psbt/PSBTOutput.java rename to src/main/java/com/sparrowwallet/drongo/psbt/PSBTOutput.java index cf7f11a..5a7c8da 100644 --- a/src/main/java/com/craigraw/drongo/psbt/PSBTOutput.java +++ b/src/main/java/com/sparrowwallet/drongo/psbt/PSBTOutput.java @@ -1,9 +1,9 @@ -package com.craigraw.drongo.psbt; +package com.sparrowwallet.drongo.psbt; -import com.craigraw.drongo.KeyDerivation; -import com.craigraw.drongo.crypto.ECKey; -import com.craigraw.drongo.crypto.LazyECPoint; -import com.craigraw.drongo.protocol.Script; +import com.sparrowwallet.drongo.KeyDerivation; +import com.sparrowwallet.drongo.crypto.ECKey; +import com.sparrowwallet.drongo.crypto.LazyECPoint; +import com.sparrowwallet.drongo.protocol.Script; import org.bouncycastle.util.encoders.Hex; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/src/main/java/com/craigraw/drongo/psbt/PSBTParseException.java b/src/main/java/com/sparrowwallet/drongo/psbt/PSBTParseException.java similarity index 90% rename from src/main/java/com/craigraw/drongo/psbt/PSBTParseException.java rename to src/main/java/com/sparrowwallet/drongo/psbt/PSBTParseException.java index 58328cd..45e7fa9 100644 --- a/src/main/java/com/craigraw/drongo/psbt/PSBTParseException.java +++ b/src/main/java/com/sparrowwallet/drongo/psbt/PSBTParseException.java @@ -1,4 +1,4 @@ -package com.craigraw.drongo.psbt; +package com.sparrowwallet.drongo.psbt; public class PSBTParseException extends Exception { public PSBTParseException() { diff --git a/src/main/java/com/craigraw/drongo/rpc/BitcoinJSONRPCClient.java b/src/main/java/com/sparrowwallet/drongo/rpc/BitcoinJSONRPCClient.java similarity index 99% rename from src/main/java/com/craigraw/drongo/rpc/BitcoinJSONRPCClient.java rename to src/main/java/com/sparrowwallet/drongo/rpc/BitcoinJSONRPCClient.java index deea868..0578427 100644 --- a/src/main/java/com/craigraw/drongo/rpc/BitcoinJSONRPCClient.java +++ b/src/main/java/com/sparrowwallet/drongo/rpc/BitcoinJSONRPCClient.java @@ -1,4 +1,4 @@ -package com.craigraw.drongo.rpc; +package com.sparrowwallet.drongo.rpc; import org.json.simple.JSONObject; import org.json.simple.parser.JSONParser; diff --git a/src/main/java/com/craigraw/drongo/rpc/BitcoinRPCError.java b/src/main/java/com/sparrowwallet/drongo/rpc/BitcoinRPCError.java similarity index 92% rename from src/main/java/com/craigraw/drongo/rpc/BitcoinRPCError.java rename to src/main/java/com/sparrowwallet/drongo/rpc/BitcoinRPCError.java index a9ba4b1..bab37d2 100644 --- a/src/main/java/com/craigraw/drongo/rpc/BitcoinRPCError.java +++ b/src/main/java/com/sparrowwallet/drongo/rpc/BitcoinRPCError.java @@ -1,4 +1,4 @@ -package com.craigraw.drongo.rpc; +package com.sparrowwallet.drongo.rpc; import java.util.Map; diff --git a/src/main/java/com/craigraw/drongo/rpc/BitcoinRPCException.java b/src/main/java/com/sparrowwallet/drongo/rpc/BitcoinRPCException.java similarity index 98% rename from src/main/java/com/craigraw/drongo/rpc/BitcoinRPCException.java rename to src/main/java/com/sparrowwallet/drongo/rpc/BitcoinRPCException.java index 31f319e..282fce0 100644 --- a/src/main/java/com/craigraw/drongo/rpc/BitcoinRPCException.java +++ b/src/main/java/com/sparrowwallet/drongo/rpc/BitcoinRPCException.java @@ -1,6 +1,5 @@ -package com.craigraw.drongo.rpc; +package com.sparrowwallet.drongo.rpc; -import org.json.simple.JSONObject; import org.json.simple.parser.JSONParser; import org.json.simple.parser.ParseException; import org.slf4j.Logger; diff --git a/src/main/java/module-info.java b/src/main/java/module-info.java index 8edb601..5126e34 100644 --- a/src/main/java/module-info.java +++ b/src/main/java/module-info.java @@ -1,8 +1,8 @@ -module com.craigraw.drongo { +module com.sparrowwallet.drongo { requires org.bouncycastle.provider; requires slf4j.api; - exports com.craigraw.drongo; - exports com.craigraw.drongo.psbt; - exports com.craigraw.drongo.protocol; - exports com.craigraw.drongo.address; + exports com.sparrowwallet.drongo; + exports com.sparrowwallet.drongo.psbt; + exports com.sparrowwallet.drongo.protocol; + exports com.sparrowwallet.drongo.address; } \ No newline at end of file diff --git a/src/test/java/com/craigraw/drongo/OutputDescriptorTest.java b/src/test/java/com/sparrowwallet/drongo/OutputDescriptorTest.java similarity index 98% rename from src/test/java/com/craigraw/drongo/OutputDescriptorTest.java rename to src/test/java/com/sparrowwallet/drongo/OutputDescriptorTest.java index 61d43f3..f5b8610 100644 --- a/src/test/java/com/craigraw/drongo/OutputDescriptorTest.java +++ b/src/test/java/com/sparrowwallet/drongo/OutputDescriptorTest.java @@ -1,4 +1,4 @@ -package com.craigraw.drongo; +package com.sparrowwallet.drongo; import org.junit.Assert; import org.junit.Test; diff --git a/src/test/java/com/craigraw/drongo/WatchWalletTest.java b/src/test/java/com/sparrowwallet/drongo/WatchWalletTest.java similarity index 99% rename from src/test/java/com/craigraw/drongo/WatchWalletTest.java rename to src/test/java/com/sparrowwallet/drongo/WatchWalletTest.java index 712ba9a..602a036 100644 --- a/src/test/java/com/craigraw/drongo/WatchWalletTest.java +++ b/src/test/java/com/sparrowwallet/drongo/WatchWalletTest.java @@ -1,4 +1,4 @@ -package com.craigraw.drongo; +package com.sparrowwallet.drongo; import org.junit.Assert; import org.junit.Test; diff --git a/src/test/java/com/craigraw/drongo/protocol/TransactionTest.java b/src/test/java/com/sparrowwallet/drongo/protocol/TransactionTest.java similarity index 98% rename from src/test/java/com/craigraw/drongo/protocol/TransactionTest.java rename to src/test/java/com/sparrowwallet/drongo/protocol/TransactionTest.java index 4a87a97..d837ad8 100644 --- a/src/test/java/com/craigraw/drongo/protocol/TransactionTest.java +++ b/src/test/java/com/sparrowwallet/drongo/protocol/TransactionTest.java @@ -1,9 +1,9 @@ -package com.craigraw.drongo.protocol; +package com.sparrowwallet.drongo.protocol; -import com.craigraw.drongo.Utils; -import com.craigraw.drongo.address.Address; -import com.craigraw.drongo.address.P2PKHAddress; -import com.craigraw.drongo.crypto.ECKey; +import com.sparrowwallet.drongo.Utils; +import com.sparrowwallet.drongo.address.Address; +import com.sparrowwallet.drongo.address.P2PKHAddress; +import com.sparrowwallet.drongo.crypto.ECKey; import org.junit.Assert; import org.junit.Test; diff --git a/src/test/java/com/craigraw/drongo/psbt/PSBTTest.java b/src/test/java/com/sparrowwallet/drongo/psbt/PSBTTest.java similarity index 99% rename from src/test/java/com/craigraw/drongo/psbt/PSBTTest.java rename to src/test/java/com/sparrowwallet/drongo/psbt/PSBTTest.java index 71e5843..bd65492 100644 --- a/src/test/java/com/craigraw/drongo/psbt/PSBTTest.java +++ b/src/test/java/com/sparrowwallet/drongo/psbt/PSBTTest.java @@ -1,7 +1,7 @@ -package com.craigraw.drongo.psbt; +package com.sparrowwallet.drongo.psbt; -import com.craigraw.drongo.protocol.NonStandardScriptException; -import com.craigraw.drongo.protocol.Transaction; +import com.sparrowwallet.drongo.protocol.NonStandardScriptException; +import com.sparrowwallet.drongo.protocol.Transaction; import org.bouncycastle.util.encoders.Hex; import org.junit.Assert; import org.junit.Test;