def test_en_decrypt():
    alice = crypto.ECCx()
    bob = crypto.ECCx()
    msg = b'test'
    ciphertext = alice.encrypt(msg, bob.raw_pubkey)
    assert (bob.decrypt(ciphertext) == msg)
def test_en_decrypt():
    alice = crypto.ECCx()
    bob = crypto.ECCx()
    msg = b'test'
    ciphertext = alice.encrypt(msg, bob.raw_pubkey)
    assert (bob.decrypt(ciphertext) == msg)