@classmethod
def from_pubkey_file(cls, path):
    """ Constructor from a public key file.

        :param str path: public key filepath
        """
    with open(path, 'r') as f_in:
        return cls.from_pubkey_string(f_in.read())
