added the ability to generate and store the keys needed for locking and unlocking identities