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
Branches
Tags
No related merge requests found
...@@ -98,11 +98,11 @@ async def main(): ...@@ -98,11 +98,11 @@ async def main():
# prompt hidden user entry # prompt hidden user entry
password = getpass.getpass("Enter your password: ") password = getpass.getpass("Enter your password: ")
# prompt hidden user entry # prompt entry
pubkey_from = getpass.getpass("Enter your pubkey : ") pubkey_from = input("Enter your pubkey: ")
# prompt hidden user entry # prompt entry
pubkey_to = getpass.getpass("Enter certified pubkey : ") pubkey_to = input("Enter certified pubkey: ")
# capture current block to get version and currency and blockstamp # capture current block to get version and currency and blockstamp
current_block = await bma.blockchain.current(connection) current_block = await bma.blockchain.current(connection)
......
...@@ -107,8 +107,8 @@ async def main(): ...@@ -107,8 +107,8 @@ async def main():
# prompt hidden user entry # prompt hidden user entry
password = getpass.getpass("Enter your password: ") password = getpass.getpass("Enter your password: ")
# prompt hidden user entry # prompt entry
UID = getpass.getpass("Enter your UID: ") UID = input("Enter your UID: ")
# create our signed identity document # create our signed identity document
identity = get_identity_document(current_block, UID, salt, password) identity = get_identity_document(current_block, UID, salt, password)
......
...@@ -102,11 +102,11 @@ async def main(): ...@@ -102,11 +102,11 @@ async def main():
# prompt hidden user entry # prompt hidden user entry
password = getpass.getpass("Enter your password: ") password = getpass.getpass("Enter your password: ")
# prompt hidden user entry # prompt entry
pubkey_from = getpass.getpass("Enter your pubkey : ") pubkey_from = input("Enter your pubkey: ")
# prompt hidden user entry # prompt entry
pubkey_to = getpass.getpass("Enter recipient pubkey : ") pubkey_to = input("Enter recipient pubkey: ")
# capture current block to get version and currency and blockstamp # capture current block to get version and currency and blockstamp
current_block = await bma.blockchain.current(connection) 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