toRipe=key# This is the RIPE hash of the sender's pubkey. We need this below to compare to the RIPE hash of the sender's address to verify that it was encrypted by with their key rather than some other key.
initialDecryptionSuccessful=True
logger.info('EC decryption successful using key associated with ripe hash: %s'%key.encode('hex'))
break
ifinitialDecryptionSuccessful:# continue decryption attempts to avoid timing attacks
toRipe=key# This is the RIPE hash of the sender's pubkey. We need this below to compare to the RIPE hash of the sender's address to verify that it was encrypted by with their key rather than some other key.
initialDecryptionSuccessful=True
logger.info('EC decryption successful using key associated with ripe hash: %s'%key.encode('hex'))