code: def isSelfSigned(self):
          
          if self.issuer_hash == self.subject_hash:
              return self.isIssuerCert(self)
          return False
docs: Return True if the certificate is self-signed:
            - issuer and subject are the same
            - the signature of the certificate is valid.