tentative implementation of higher ECDH