MCPcopy
hub / github.com/HelloZeroNet/ZeroNet / getCertUserId

Method getCertUserId

src/User/User.py:170–176  ·  view source on GitHub ↗
(self, address)

Source from the content-addressed store, hash-verified

168 # Get cert user name for the site address
169 # Return: user@certprovider.bit or None
170 def getCertUserId(self, address):
171 site_data = self.getSiteData(address, create=False)
172 if not site_data or "cert" not in site_data:
173 return None # Site dont have cert
174 cert = self.certs.get(site_data["cert"])
175 if cert:
176 return cert["auth_user_name"] + "@" + site_data["cert"]

Callers 3

formatSiteInfoMethod · 0.80
actionSiteSignMethod · 0.80
actionFileRulesMethod · 0.80

Calls 2

getSiteDataMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected