Browse Source

Merge JoinMarket-Org/joinmarket-clientserver#1179: Read only single line with `--wallet-password-stdin`

c957c8cacb Read only single line with `--wallet-password-stdin` (Kristaps Kaupe)

Pull request description:

  We don't allow to enter multiline passphrases in other places anyway and this allows to feed other data via stdin to scripts afterwards.

Top commit has no ACKs.

Tree-SHA512: be94e66204f7acfb06a2354f100c83df9e2b25cd2050e8c53f7098f9327ca1881b8135610abe0903ed28534c6054677f4472bc990e125916dfb5511b296b4160
master
Kristaps Kaupe 4 years ago
parent
commit
0fd09d85da
No known key found for this signature in database
GPG Key ID: 33E472FE870C7E5D
  1. 2
      jmclient/jmclient/wallet_utils.py

2
jmclient/jmclient/wallet_utils.py

@ -1505,7 +1505,7 @@ def get_wallet_path(file_name, wallet_dir=None):
def read_password_stdin():
return sys.stdin.read().encode('utf-8')
return sys.stdin.readline().replace('\n','').encode('utf-8')
def wallet_tool_main(wallet_root_path):

Loading…
Cancel
Save