def decrypt_message(public_key, encrypted_message):
    wif = get_private_key_from_address(public_key)
    secret_exponent = wif_to_secret_exponent(wif)
    private_key = PrivKey(secret_exponent)
    return private_key.decrypt(b64decode(encrypted_message))
Decrypts the message given a public key and an encrypted message.
dataset/ETHPy150Open coinmessage/coinmessage/coinmessage/__init__.py/decrypt_message