Created a class to encapsulate Public Keys.
Updated code to use PublicKeyEnvelope.