DumpedPrivateKey: Don't dump private key into exception message, even if it's likely invalid anyway.

This commit is contained in:
Andreas Schildbach
2018-03-01 18:42:20 +01:00
parent 2e8a7474b2
commit 82edec0978

View File

@@ -52,7 +52,7 @@ public class DumpedPrivateKey extends PrefixedChecksummedBytes {
for (NetworkParameters p : Networks.get())
if (version == p.getDumpedPrivateKeyHeader())
return new DumpedPrivateKey(p, bytes);
throw new AddressFormatException("No network found for " + base58);
throw new AddressFormatException("No network found for version " + version);
} else {
if (version == params.getDumpedPrivateKeyHeader())
return new DumpedPrivateKey(params, bytes);