I'm workin on a cryptography project and I want to create a simple high-card game of 2-players using the concept of "Mental Poker" in python.
For example a part of the concept is :
Each player produce an ri(like a key) and then computes E(ri) ( where E() is ElGamal function.
So is there a way to import a library and just type E(ri) to compute the result or I have to write my own ElGamal Function?