|
@ -173,7 +173,8 @@ class Plugin(BasePlugin): |
|
|
for window, xpub, K, _hash in self.cosigner_list: |
|
|
for window, xpub, K, _hash in self.cosigner_list: |
|
|
if not self.cosigner_can_sign(tx, xpub): |
|
|
if not self.cosigner_can_sign(tx, xpub): |
|
|
continue |
|
|
continue |
|
|
message = bitcoin.encrypt_message(bfh(tx.raw), bh2u(K)).decode('ascii') |
|
|
raw_tx_bytes = bfh(str(tx)) |
|
|
|
|
|
message = bitcoin.encrypt_message(raw_tx_bytes, bh2u(K)).decode('ascii') |
|
|
try: |
|
|
try: |
|
|
server.put(_hash, message) |
|
|
server.put(_hash, message) |
|
|
except Exception as e: |
|
|
except Exception as e: |
|
|