From 9103caffbb94bbd82b445e738c484d6dbb838297 Mon Sep 17 00:00:00 2001 From: Armin Sabouri Date: Sat, 6 May 2023 18:15:06 -0400 Subject: [PATCH] Clean up --- src/signer/signer.py | 2 -- src/signer/wallet.py | 3 --- 2 files changed, 5 deletions(-) diff --git a/src/signer/signer.py b/src/signer/signer.py index 1d7e5da..8cf3026 100644 --- a/src/signer/signer.py +++ b/src/signer/signer.py @@ -203,8 +203,6 @@ def handle_sign_tx(spend_request_id, wallet, relay_manager, private_key): sig_hash = nonce_response['payload']['sig_hash'] should_negate_nonce = nonce_response['payload']['negated'] address_index = int(nonce_response['payload']['address_index']) - print(address_index) - wallet.set_r_agg(r_agg) wallet.set_sig_hash(sig_hash) wallet.set_should_negate_nonce(should_negate_nonce) diff --git a/src/signer/wallet.py b/src/signer/wallet.py index 54b27f4..8055bf6 100644 --- a/src/signer/wallet.py +++ b/src/signer/wallet.py @@ -89,11 +89,8 @@ def get_private_key_tweaked(self, address_index: int): return None pk = self.get_pubkey_at_index(address_index).hex() prv = self.get_root_hd_node().get_privkey_from_path(f"m/{address_index}") - print("prv", prv) private_key = ECKey().set(prv) - # pk = self.public_key.get_bytes().hex() - # private_key = self.private_key tweaked_key = private_key * self.cmap[pk] # TODO bug here where the server calcualtes a different y value and the signer if self.pubkey_agg.get_y() % 2 != 0: