1
0

do not base64encode signatures in requests

This commit is contained in:
ThomasV
2015-07-14 16:37:04 +02:00
parent 7588519e8e
commit 471cab6089
6 changed files with 14 additions and 13 deletions

View File

@@ -80,6 +80,7 @@ class Plugin(BasePlugin):
addr = self.get_my_addr(tx)
message = "Please verify if %s is GreenAddress instant confirmed" % tx.hash()
sig = self.wallet.sign_message(addr, message, password)
sig = base64.b64encode(sig)
# 2. send the request
response = requests.request("GET", ("https://greenaddress.it/verify/?signature=%s&txhash=%s" % (urllib.quote(sig), tx.hash())),