Add basic functions for the registering and deleting the secret key. Bit rough, needs reviewal