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

Method getCert

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

Source from the content-addressed store, hash-verified

160 # Get cert for the site address
161 # Return: { "auth_address":.., "auth_privatekey":.., "auth_type": "web", "auth_user_name": "nofish", "cert_sign":.. } or None
162 def getCert(self, address):
163 site_data = self.getSiteData(address, create=False)
164 if not site_data or "cert" not in site_data:
165 return None # Site dont have cert
166 return self.certs.get(site_data["cert"])
167
168 # Get cert user name for the site address
169 # Return: user@certprovider.bit or None

Callers 4

getAuthAddressMethod · 0.95
getAuthPrivatekeyMethod · 0.95
actionSiteSignMethod · 0.80
actionFileRulesMethod · 0.80

Calls 2

getSiteDataMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected