def public_bytes(self, encoding, format):
        """
        Returns the key serialized as bytes.
        """

        Returns the key serialized as bytes.
        
stackoverflow/venv/lib/python3.6/site-packages/cryptography/hazmat/primitives/asymmetric/dh.py