added printing acc info

This commit is contained in:
Ryan Bakkes 2023-11-06 14:30:53 +01:00
parent c84b79e099
commit 1f9e17e54b
2 changed files with 8 additions and 1 deletions

View File

@ -117,3 +117,10 @@ class User:
print('Something went wrong while trying to delete account..') print('Something went wrong while trying to delete account..')
return False return False
def printAccountInfo(self):
private_ser, public_ser = Signature.keysToBytes(self.private_key, self.public_key)
print('Username: ' + self.username)
print(public_ser)
print(private_ser)

View File

@ -164,7 +164,7 @@ class MenuHelper:
return return
case "View account info": case "View account info":
print(self.user.private_key) self.user.printAccountInfo()
case "Change username": case "Change username":
self.user.updateAccount() self.user.updateAccount()