From 38f93cb593a31e27401173ca87d55c3a9371eb51 Mon Sep 17 00:00:00 2001 From: thomasv Date: Tue, 12 Jun 2012 10:46:21 +0200 Subject: [PATCH] reconstruct message if it contains spaces --- electrum | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/electrum b/electrum index 5ed4ed92c..14f93fc11 100755 --- a/electrum +++ b/electrum @@ -488,11 +488,18 @@ if __name__ == '__main__': print "error: mismatch" elif cmd == 'signmessage': - address, message = args[1:3] + address = args[1] + message = ' '.join(args[2:]) + if len(args) > 3: + print "Warning: Message was reconstructed from several arguments:", repr(message) print wallet.sign_message(address, message, password) elif cmd == 'verifymessage': - address, signature, message = args[1:4] + address = args[1] + signature = args[2] + message = ' '.join(args[3:]) + if len(args) > 4: + print "Warning: Message was reconstructed from several arguments:", repr(message) try: wallet.verify_message(address, signature, message) print True