5757]
5858
5959
60- def main () :
60+ def main ():
6161 global args
6262
6363 parser = argparse .ArgumentParser (
@@ -1634,7 +1634,7 @@ def main() :
16341634 from steembase .account import PasswordKey
16351635 pw = get_terminal (text = "Password for Memo Key: " , confirm = True , allowedempty = False )
16361636 memo_key = PasswordKey (args .account , pw , "memo" )
1637- args .key = format (memo_key .get_public_key (), "STM" )
1637+ args .key = format (memo_key .get_public_key (), "STM" )
16381638 memo_privkey = memo_key .get_private_key ()
16391639 # Add the key to the wallet
16401640 if not args .nobroadcast :
@@ -1646,7 +1646,7 @@ def main() :
16461646
16471647 elif args .command == "newaccount" :
16481648 import getpass
1649- while True :
1649+ while True :
16501650 pw = getpass .getpass ("New Account Passphrase: " )
16511651 if not pw :
16521652 print ("You cannot chosen an empty password!" )
@@ -1655,9 +1655,9 @@ def main() :
16551655 pwck = getpass .getpass (
16561656 "Confirm New Account Passphrase: "
16571657 )
1658- if (pw == pwck ) :
1658+ if (pw == pwck ):
16591659 break
1660- else :
1660+ else :
16611661 print ("Given Passphrases do not match!" )
16621662 pprint (steem .create_account (
16631663 args .accountname ,
@@ -1673,7 +1673,7 @@ def main() :
16731673 imported = False
16741674
16751675 if "owner" in args .roles :
1676- owner_key = PasswordKey (args .account , password , role = "owner" )
1676+ owner_key = PasswordKey (args .account , password , role = "owner" )
16771677 owner_pubkey = format (owner_key .get_public_key (), "STM" )
16781678 if owner_pubkey in [x [0 ] for x in account ["owner" ]["key_auths" ]]:
16791679 print ("Importing owner key!" )
@@ -1682,7 +1682,7 @@ def main() :
16821682 imported = True
16831683
16841684 if "active" in args .roles :
1685- active_key = PasswordKey (args .account , password , role = "active" )
1685+ active_key = PasswordKey (args .account , password , role = "active" )
16861686 active_pubkey = format (active_key .get_public_key (), "STM" )
16871687 if active_pubkey in [x [0 ] for x in account ["active" ]["key_auths" ]]:
16881688 print ("Importing active key!" )
@@ -1691,7 +1691,7 @@ def main() :
16911691 imported = True
16921692
16931693 if "posting" in args .roles :
1694- posting_key = PasswordKey (args .account , password , role = "posting" )
1694+ posting_key = PasswordKey (args .account , password , role = "posting" )
16951695 posting_pubkey = format (posting_key .get_public_key (), "STM" )
16961696 if posting_pubkey in [x [0 ] for x in account ["posting" ]["key_auths" ]]:
16971697 print ("Importing posting key!" )
@@ -1700,7 +1700,7 @@ def main() :
17001700 imported = True
17011701
17021702 if "memo" in args .roles :
1703- memo_key = PasswordKey (args .account , password , role = "memo" )
1703+ memo_key = PasswordKey (args .account , password , role = "memo" )
17041704 memo_pubkey = format (memo_key .get_public_key (), "STM" )
17051705 if memo_pubkey == account ["memo_key" ]:
17061706 print ("Importing memo key!" )
0 commit comments