code: def sha1(self):
          
  
          if self._sha1 is None:
              self._sha1 = hashlib.sha1(byte_cls(self['public_key'])).digest()
          return self._sha1
docs: :return:
              The SHA1 hash of the DER-encoded bytes of this public key info