@classmethod
def from_identity(cls, gidc):
    """ Loads an unpacked gidc into a SecondParty. Note that this
        does not select the correct SecondParty for any given gidc's
        ciphersuite.
        """
    ghid = gidc.ghid
    keys = cls._unpack_keys({'signature': gidc.signature_key, 'encryption':
        gidc.encryption_key, 'exchange': gidc.exchange_key})
    self = cls(keys=keys, ghid=ghid)
    return self
