mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-11 17:55:53 +00:00
Remove old experiments
This commit is contained in:
parent
4951fb7241
commit
95db3b960e
@ -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());
|
||||
}
|
||||
}
|
@ -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());
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user