Skip to content
Snippets Groups Projects
Commit 7fa66ba4 authored by Baptiste Lemoine's avatar Baptiste Lemoine
Browse files

#1367 - :zap: - Display stored public key with wizard key command

parent 049c3234
No related branches found
No related tags found
1 merge request!1287Wizard key public
...@@ -35,7 +35,10 @@ export const KeypairDependency = { ...@@ -35,7 +35,10 @@ export const KeypairDependency = {
{value: '--keyr <r>', desc: 'Scrypt `N` parameter. Defaults to 16.', parser: parseInt}, {value: '--keyr <r>', desc: 'Scrypt `N` parameter. Defaults to 16.', parser: parseInt},
{value: '--keyp <p>', desc: 'Scrypt `N` parameter. Defaults to 1.', parser: parseInt}, {value: '--keyp <p>', desc: 'Scrypt `N` parameter. Defaults to 1.', parser: parseInt},
{value: '--keyprompt', desc: 'Force to use the keypair given by user prompt.'}, {value: '--keyprompt', desc: 'Force to use the keypair given by user prompt.'},
{ value: '--keyfile <filepath>', desc: 'Force to use the keypair of the given YAML file. File must contain `pub:` and `sec:` fields.' } {
value: '--keyfile <filepath>',
desc: 'Force to use the keypair of the given YAML file. File must contain `pub:` and `sec:` fields.'
}
], ],
wizard: { wizard: {
...@@ -156,7 +159,8 @@ async function promptKey (conf:KeypairConfDTO, program:any) { ...@@ -156,7 +159,8 @@ async function promptKey (conf:KeypairConfDTO, program:any) {
const answersWantToChange = await inquirer.prompt([{ const answersWantToChange = await inquirer.prompt([{
type: "confirm", type: "confirm",
name: "change", name: "change",
message: "Modify your keypair?", message: `This node's current public key is: ${conf.pair.pub}
Modify your keypair?`,
default: changeKeypair default: changeKeypair
}]); }]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment