From 733c22c0faa8473f68f91ad2974ae591cac985c2 Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Thu, 19 Feb 2015 18:15:47 -0300 Subject: [PATCH] fix tests --- lib/walletutils.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/walletutils.js b/lib/walletutils.js index 6707a63..78f4c71 100644 --- a/lib/walletutils.js +++ b/lib/walletutils.js @@ -32,7 +32,11 @@ WalletUtils.signMessage = function(text, privKey) { WalletUtils.verifyMessage = function(text, signature, pubKey) { - $.checkArgument(signature, text, pubKey); + $.checkArgument(text, pubKey); + + if (!signature) + return false; + var pub = new PublicKey(pubKey); var hash = WalletUtils.hashMessage(text);