Browse Source

Merge #314: Report which nick lead to sig verification failure

37b7a07 Report which nick lead to sig verification failure (AlexCato)
master
AdamISZ 7 years ago
parent
commit
250705aa1a
No known key found for this signature in database
GPG Key ID: 141001A1AF77F20B
  1. 2
      jmclient/jmclient/client_protocol.py

2
jmclient/jmclient/client_protocol.py

@ -110,7 +110,7 @@ class JMClientProtocol(amp.AMP):
hashlen, max_encoded, hostid):
verif_result = True
if not btc.ecdsa_verify(str(msg), sig, pubkey):
jlog.debug("nick signature verification failed, ignoring.")
jlog.debug("nick signature verification failed, ignoring: " + str(nick))
verif_result = False
#check that nick matches hash of pubkey
nick_pkh_raw = btc.bin_sha256(pubkey)[:hashlen]

Loading…
Cancel
Save