openpgpjs/openpgpjs — pull request #53 by toberndo (2012-09-04 10:06:35+00:00)
Title: Add extractPublicKey() method to private key

For private keys exported with GPG or generated with OpenPGP.js this extracts a valid public key.
Private keys exported with PGP do not contain any signatures, therefore it's not possible to create a public
key and null is returned.