diff --git a/src/main/java/org/bitcoinj/core/ConvertAddress.java b/src/main/java/org/bitcoinj/core/ConvertAddress.java deleted file mode 100644 index 5c07bdd7..00000000 --- a/src/main/java/org/bitcoinj/core/ConvertAddress.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * To change this license header, choose License Headers in Project Properties. - * To change this template file, choose Tools | Templates - * and open the template in the editor. - */ -package org.bitcoinj.core; - -import org.libdohj.params.DogecoinMainNetParams; -import org.bitcoinj.params.MainNetParams; - -/** - * - * @author jrn - */ -public class ConvertAddress { - public static void main(final String[] argv) throws AddressFormatException { - final NetworkParameters mainParams = MainNetParams.get(); - final NetworkParameters dogeParams = DogecoinMainNetParams.get(); - final Address address = Address.fromBase58(mainParams, "175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W"); - final Address newAddress = new Address(dogeParams, 30, address.getHash160()); - - System.out.println(newAddress.toBase58()); - } -} diff --git a/src/main/java/org/bitcoinj/core/ConvertPrivateKey.java b/src/main/java/org/bitcoinj/core/ConvertPrivateKey.java deleted file mode 100644 index 2cfa6f9b..00000000 --- a/src/main/java/org/bitcoinj/core/ConvertPrivateKey.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * To change this license header, choose License Headers in Project Properties. - * To change this template file, choose Tools | Templates - * and open the template in the editor. - */ -package org.bitcoinj.core; - -import org.libdohj.params.DogecoinMainNetParams; -import org.bitcoinj.params.MainNetParams; - -/** - * - * @author jrn - */ -public class ConvertPrivateKey { - public static void main(final String[] argv) throws AddressFormatException { - final NetworkParameters mainParams = MainNetParams.get(); - final NetworkParameters dogeParams = DogecoinMainNetParams.get(); - final DumpedPrivateKey key = new DumpedPrivateKey(mainParams, "5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf"); - final DumpedPrivateKey newKey = new DumpedPrivateKey(dogeParams, key.getKey().getPrivKeyBytes(), false); - System.out.println(newKey.toString()); - } -}