Skip to content

Commit 2c7b06d

Browse files
author
Danny Diekroeger
committed
prompt for key if not provided on command line
1 parent e30d8c3 commit 2c7b06d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/sign.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,11 @@ const handleSign = function(args) {
314314
const recoveryRequest = JSON.parse(fs.readFileSync(file, { encoding: 'utf8' }));
315315
const coin = recoveryRequest.coin;
316316

317+
if(!args.key) {
318+
console.log("\nEnter your private key for signing.\nEnter an xprv or 24 words.\nIf entering 24 words, separate each word with only a comma and no spaces.\n");
319+
args.key = prompt("Key: ");
320+
}
321+
317322
const key = parseKey(args.key, coin, args.path);
318323

319324
let txHex;

0 commit comments

Comments
 (0)