Genesis script, properly show keys from addresses()

This commit is contained in:
Fabian Schuh 2018-11-08 10:48:32 +01:00
parent 4fcf92097e
commit f258686fc5

View file

@ -13,7 +13,13 @@ def pubkey():
def address():
pub = next(key).get_public_key()
brain = next(key)
pri = brain.get_private_key()
pub = brain.get_public_key()
print(
"[\"{}\", \"{}\"]".format(
format(pub, "TEST"), str(pri))
)
return format(Address.from_pubkey(pub), "TEST")