Browse Source

Report which nick lead to sig verification failure

master
AlexCato 7 years ago committed by GitHub
parent
commit
37b7a07681
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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