Add key functions and set up the ecdsa curve
Move key-related methods to key.py