@staticmethod
    def encrypt(data, pubkey, ephemcurve=None, ciphername='aes-256-cbc'):
        curve, pubkey_x, pubkey_y, i = ECC._decode_pubkey(pubkey)
        return ECC.raw_encrypt(data, pubkey_x, pubkey_y, curve=curve,
                               ephemcurve=ephemcurve, ciphername=ciphername)
Encrypt data with ECIES method using the public key of the recipient.
dataset/ETHPy150Open Anenome/Bitlaw/src/bitlawui/pyelliptic/ecc.py/ECC.encrypt