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

Method getAuthPrivatekey

src/User/User.py:117–122  ·  view source on GitHub ↗
(self, address, create=True)

Source from the content-addressed store, hash-verified

115 return self.getSiteData(address, create)["auth_address"]
116
117 def getAuthPrivatekey(self, address, create=True):
118 cert = self.getCert(address)
119 if cert:
120 return cert["auth_privatekey"]
121 else:
122 return self.getSiteData(address, create)["auth_privatekey"]
123
124 # Add cert for the user
125 def addCert(self, auth_address, domain, auth_type, auth_user_name, cert_sign):

Callers 4

actionSiteSignMethod · 0.80
testAuthAddressMethod · 0.80
testCertMethod · 0.80
actionEcdsaSignMethod · 0.80

Calls 2

getCertMethod · 0.95
getSiteDataMethod · 0.95

Tested by 2

testAuthAddressMethod · 0.64
testCertMethod · 0.64