electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 38f93cb593a31e27401173ca87d55c3a9371eb51
parent 87d4b132a454dac6a6ac38fb97e56b920b263f5c
Author: thomasv <thomasv@gitorious>
Date:   Tue, 12 Jun 2012 10:46:21 +0200

reconstruct message if it contains spaces

Diffstat:
Melectrum | 11+++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)

diff --git 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