Skip to content

Commit

Permalink
xmr: sign protocol - multisig logic removed
Browse files Browse the repository at this point in the history
  • Loading branch information
ph4r05 committed Oct 2, 2018
1 parent 813cb3a commit 4abb547
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
8 changes: 0 additions & 8 deletions src/apps/monero/protocol/signing/step_09_sign_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,14 +176,6 @@ async def sign_input(
gc.collect()
state.mem_trace(6)

# Multisig values returned encrypted, keys returned after finished successfully.
if state.multi_sig:
from apps.monero.xmr.enc import chacha_poly

cout = chacha_poly.encrypt_pack(
hmac_encryption_keys.enc_key_cout(state.key_enc), crypto.encodeint(msc)
)

# Final state transition
if state.inp_idx + 1 == state.input_count:
# state.state.set_signature_done() todo remove?
Expand Down
6 changes: 1 addition & 5 deletions src/apps/monero/protocol/signing/step_10_sign_final.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ async def final_msg(state: State):
# state.state.set_final() todo needed?
print("10")

cout_key = (
hmac_encryption_keys.enc_key_cout(state.key_enc) if state.multi_sig else None
)

# Encrypted tx keys under transaction specific key, derived from txhash and spend key.
# Deterministic transaction key, so we can recover it just from transaction and the spend key.
tx_key, salt, rand_mult = misc.compute_tx_key(
Expand All @@ -39,5 +35,5 @@ async def final_msg(state: State):
gc.collect()

return MoneroTransactionFinalAck(
cout_key=cout_key, salt=salt, rand_mult=rand_mult, tx_enc_keys=tx_enc_keys
cout_key=None, salt=salt, rand_mult=rand_mult, tx_enc_keys=tx_enc_keys
)

0 comments on commit 4abb547

Please sign in to comment.