Added CTF public/private key generation and storage.