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

Method testAuthAddress

src/Test/TestUser.py:25–30  ·  view source on GitHub ↗
(self, user)

Source from the content-addressed store, hash-verified

23 assert user.getSiteData(address)["auth_privatekey"] == site_data["auth_privatekey"]
24
25 def testAuthAddress(self, user):
26 # Auth address without Cert
27 auth_address = user.getAuthAddress("1EU1tbG9oC1A8jz2ouVwGZyQ5asrNsE4Vr")
28 assert auth_address == "1MyJgYQjeEkR9QD66nkfJc9zqi9uUy5Lr2"
29 auth_privatekey = user.getAuthPrivatekey("1EU1tbG9oC1A8jz2ouVwGZyQ5asrNsE4Vr")
30 assert CryptBitcoin.privatekeyToAddress(auth_privatekey) == auth_address
31
32 def testCert(self, user):
33 cert_auth_address = user.getAuthAddress("1iD5ZQJMNXu43w1qLB8sfdHVKppVMduGz") # Add site to user's registry

Callers

nothing calls this directly

Calls 2

getAuthAddressMethod · 0.80
getAuthPrivatekeyMethod · 0.80

Tested by

no test coverage detected