From 95fc6d7245e411e6a8816b407209ea656936a514 Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Sun, 24 Nov 2013 19:10:34 +0100 Subject: [PATCH] WalletTool: recognize private key format properly. Resolves issue 390. --- tools/src/main/java/com/google/bitcoin/tools/WalletTool.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/src/main/java/com/google/bitcoin/tools/WalletTool.java b/tools/src/main/java/com/google/bitcoin/tools/WalletTool.java index aa52cf31..9d58d26a 100644 --- a/tools/src/main/java/com/google/bitcoin/tools/WalletTool.java +++ b/tools/src/main/java/com/google/bitcoin/tools/WalletTool.java @@ -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);