commit 828d8fd3ed19485b0d67d2929c6002fed8727fd9
parent 74735bd64e2fe0907b5730913de0011217b6d8be
Author: thomasv <thomasv@gitorious>
Date: Tue, 10 Sep 2013 16:18:34 +0200
fix: sign_message
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/wallet.py b/lib/wallet.py
@@ -630,7 +630,9 @@ class Wallet:
tx.sign( keypairs )
def sign_message(self, address, message, password):
- sec = self.get_private_key(address, password)
+ keys = self.get_private_key(address, password)
+ assert len(keys) == 1
+ sec = keys[0]
key = regenerate_key(sec)
compressed = is_compressed(sec)
return key.sign_message(message, compressed, address)