Two step key generation and pub key retrieval completed.