mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-01-31 15:22:16 +00:00
WalletTool: recognize private key format properly.
Resolves issue 390.
This commit is contained in:
parent
3569dfe2d4
commit
95fc6d7245
@ -688,7 +688,7 @@ public class WalletTool {
|
||||
}
|
||||
if (options.has("privkey")) {
|
||||
String data = (String) options.valueOf("privkey");
|
||||
if (data.charAt(0) == 'L') {
|
||||
if (data.startsWith("5J") || data.startsWith("5H") || data.startsWith("5K")) {
|
||||
DumpedPrivateKey dpk;
|
||||
try {
|
||||
dpk = new DumpedPrivateKey(params, data);
|
||||
|
Loading…
Reference in New Issue
Block a user