Added public key processing (version 2, and 3)