Initial work on serializing ecdsa keys