Skip to content
Snippets Groups Projects
Commit f9ba0c90 authored by Moul's avatar Moul
Browse files

[enh] examples: display input fields without sensitive information. Typos.

parent cb5d78cb
No related branches found
No related tags found
No related merge requests found
......@@ -98,11 +98,11 @@ async def main():
# prompt hidden user entry
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)
......
......@@ -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)
......
......@@ -102,11 +102,11 @@ async def main():
# prompt hidden user entry
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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment