Skip to content

Commit

Permalink
provide an existing key as first argument to get the private key / ad…
Browse files Browse the repository at this point in the history
…dress
  • Loading branch information
dbasch committed Jan 30, 2014
1 parent 0f0eef9 commit 67772d7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main/java/com/fruitcat/dogecoin/PuppyKey.java
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -44,7 +44,13 @@ public static String dogeAddress(String key) throws AddressFormatException {
* @throws AddressFormatException * @throws AddressFormatException
*/ */
public static void main(String args[]) throws Exception { public static void main(String args[]) throws Exception {
String mk = new Minikey().toString(); Minikey minikey;
if (args.length == 0) {
minikey = new Minikey();
} else {
minikey = new Minikey(args[0]);
}
String mk = minikey.toString();
System.out.println("Minikey: " + mk); System.out.println("Minikey: " + mk);
String dogeKey = miniToDoge(mk); String dogeKey = miniToDoge(mk);
System.out.println("Dogecoin key: " + dogeKey); System.out.println("Dogecoin key: " + dogeKey);
Expand Down

0 comments on commit 67772d7

Please sign in to comment.