[WIP] ecdh emulator