Implemented PubKey1 encoding.
Updated TODOs.