Skip to content

Commit

Permalink
0.5.7 - minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
PawelGorny committed Dec 16, 2021
1 parent c4c02d7 commit b9a9fd5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
11 changes: 3 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.pawelgorny</groupId>
<artifactId>wifSolver</artifactId>
<version>0.5.6</version>
<version>0.5.7</version>
<packaging>jar</packaging>

<dependencies>
Expand All @@ -18,17 +18,12 @@
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>30.0-jre</version>
<version>31.0.1-jre</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.7.26</version>
</dependency>
<dependency>
<groupId>org.web3j</groupId>
<artifactId>crypto</artifactId>
<version>3.3.1</version>
<version>1.7.32</version>
</dependency>
<dependency>
<groupId>javax.mail</groupId>
Expand Down
9 changes: 5 additions & 4 deletions src/main/java/com/pawelgorny/wifsolver/Worker.java
Original file line number Diff line number Diff line change
Expand Up @@ -127,26 +127,27 @@ protected String workThread(String suspect){
if (configuration.getAddress() != null) {
if (Arrays.equals(configuration.getAddressHash(), ecKey.getPubKeyHash())) {
Address foundAddress = LegacyAddress.fromKey(Configuration.getNetworkParameters(), ecKey);
String data = suspect + " -> " + foundAddress.toString();
String data = suspect + " -> " + foundAddress.toString() + " [" + ecKey.getPrivateKeyAsHex() + "]";
if (DUMMY_CHECKSUM) {
suspect = rewriteWIF(suspect);
}
addResult(data);
System.out.println(data);
return suspect;
}
if (!configuration.getWork().equals(WORK.END)) {
if (!WORK.END.equals(configuration.getWork())) {
Address foundAddress = LegacyAddress.fromKey(Configuration.getNetworkParameters(), ecKey);
String data = suspect + " -> " + foundAddress.toString();
String data = suspect + " -> " + foundAddress.toString() + " [" + ecKey.getPrivateKeyAsHex() + "]";
addResult(data);
System.out.println(data);
resultToFilePartial(data);
}
} else {
Address foundAddress = LegacyAddress.fromKey(Configuration.getNetworkParameters(), ecKey);
if (DUMMY_CHECKSUM) {
suspect = rewriteWIF(suspect);
}
String data = suspect + " -> " + foundAddress.toString();
String data = suspect + " -> " + foundAddress.toString() + " [" + ecKey.getPrivateKeyAsHex() + "]";
addResult(data);
System.out.println(data);
resultToFilePartial(data);
Expand Down

0 comments on commit b9a9fd5

Please sign in to comment.