Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Armin Sabouri committed May 6, 2023
1 parent 0988f86 commit d63f92d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/signer/signer.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,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)
Expand Down
3 changes: 0 additions & 3 deletions src/signer/wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,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:
Expand Down

0 comments on commit d63f92d

Please sign in to comment.