diff --git a/examples/save_private_keys.py b/examples/save_private_keys.py index 75f099b881ccd3c569431700345295148ae48c8a..b27a6d32c982311014f5e0bab4873dbd4bbf1722 100644 --- a/examples/save_private_keys.py +++ b/examples/save_private_keys.py @@ -34,7 +34,7 @@ signer = SigningKey(salt, password)\ # check public key if signer.pubkey != pubkey: - print("Bad credentials !") + print("Bad credentials!") exit(1) # save private keys in a file (json format) diff --git a/examples/save_revoke_document.py b/examples/save_revoke_document.py index a8e309ba70d0098021462140d0b68344cc139993..50b53f9febef3218e6537dba309428e062e296bb 100644 --- a/examples/save_revoke_document.py +++ b/examples/save_revoke_document.py @@ -108,7 +108,7 @@ async def main(): # check public key if signer.pubkey != pubkey: - print("Bad credentials !") + print("Bad credentials!") exit(0) # connection handler from BMA endpoint diff --git a/examples/send_certification.py b/examples/send_certification.py index 59a15cb6cf5fdd24159436ba656edb3275cc533c..f0db5b788642c52cf5c85b9a4811ee6bacff6d02 100644 --- a/examples/send_certification.py +++ b/examples/send_certification.py @@ -96,13 +96,13 @@ async def main(): salt = getpass.getpass("Enter your passphrase (salt): ") # prompt hidden user entry - password = getpass.getpass("Enter your password : ") + password = getpass.getpass("Enter your password: ") - # prompt hidden user entry - pubkey_from = getpass.getpass("Enter your pubkey : ") + # prompt entry + pubkey_from = input("Enter your pubkey: ") - # prompt hidden user entry - pubkey_to = getpass.getpass("Enter certified pubkey : ") + # prompt entry + pubkey_to = input("Enter certified pubkey: ") # capture current block to get version and currency and blockstamp current_block = await bma.blockchain.current(connection) @@ -119,7 +119,7 @@ async def main(): if response.status == 200: print(await response.text()) else: - print("Error while publishing certification : {0}".format(await response.text())) + print("Error while publishing certification: {0}".format(await response.text())) response.close() with AIOHTTP_SESSION: diff --git a/examples/send_membership.py b/examples/send_membership.py index a2ee6813737e33a9d7f8f12620a4731eef590d85..dc75f30d258405563184ac59bb86257eaa093416 100644 --- a/examples/send_membership.py +++ b/examples/send_membership.py @@ -107,8 +107,8 @@ async def main(): # prompt hidden user entry password = getpass.getpass("Enter your password: ") - # prompt hidden user entry - UID = getpass.getpass("Enter your UID: ") + # prompt entry + UID = input("Enter your UID: ") # create our signed identity document identity = get_identity_document(current_block, UID, salt, password) diff --git a/examples/send_transaction.py b/examples/send_transaction.py index 778527d9475733fd613bc31e133a2f5794224372..18da6de68f693a71a0f81c7cbce136ecf3678e8d 100644 --- a/examples/send_transaction.py +++ b/examples/send_transaction.py @@ -100,13 +100,13 @@ async def main(): salt = getpass.getpass("Enter your passphrase (salt): ") # prompt hidden user entry - password = getpass.getpass("Enter your password : ") + password = getpass.getpass("Enter your password: ") - # prompt hidden user entry - pubkey_from = getpass.getpass("Enter your pubkey : ") + # prompt entry + pubkey_from = input("Enter your pubkey: ") - # prompt hidden user entry - pubkey_to = getpass.getpass("Enter recipient pubkey : ") + # prompt entry + pubkey_to = input("Enter recipient pubkey: ") # capture current block to get version and currency and blockstamp current_block = await bma.blockchain.current(connection) @@ -136,7 +136,7 @@ async def main(): if response.status == 200: print(await response.text()) else: - print("Error while publishing transaction : {0}".format(await response.text())) + print("Error while publishing transaction: {0}".format(await response.text())) response.close()