electrum

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

commit 67283f0b1b040b20a93501ecbf7f3068643fddb6
parent ad6dac8d0593f64d2596f385cba271f8fb3e5392
Author: thomasv <thomasv@gitorious>
Date:   Fri, 22 Feb 2013 17:50:56 +0100

fix verify_message calls

Diffstat:
Mlib/wallet.py | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/wallet.py b/lib/wallet.py @@ -800,7 +800,7 @@ class Wallet: target, auth_name, signing_addr, signature = line msg = "alias:%s:%s:%s"%(alias,target,auth_name) print msg, signature - self.verify_message(signing_addr, signature, msg) + EC_KEY.verify_message(signing_addr, signature, msg) # other lines are signed updates for line in lines[1:]: @@ -810,7 +810,7 @@ class Wallet: previous = target print repr(line) target, signature = line - self.verify_message(previous, signature, "alias:%s:%s"%(alias,target)) + EC_KEY.verify_message(previous, signature, "alias:%s:%s"%(alias,target)) if not self.is_valid(target): raise ValueError("Invalid bitcoin address") @@ -906,7 +906,7 @@ class Wallet: if not signing_address: return try: - self.verify_message(signing_address, signature, url ) + EC_KEY.verify_message(signing_address, signature, url ) self.receipt = (signing_address, signature, url) except: show_message('Warning: the URI contains a bad signature.\nThe identity of the recipient cannot be verified.')