Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cli command to unlock wallet #79

Closed
sebastianhutter opened this issue Sep 2, 2018 · 4 comments
Closed

Add cli command to unlock wallet #79

sebastianhutter opened this issue Sep 2, 2018 · 4 comments

Comments

@sebastianhutter
Copy link
Contributor

sebastianhutter commented Sep 2, 2018

OS: Debian Linux
Gladius Version: 0.6.1

Whats happening:
After restarting controld the wallet is locked and must be unlocked.
The networkd daemon is unable to sign messages becasuse the wallet is locked:

WARN[0000] Error updating disk content                   err="Couldn't sign message with contorld, wallet could be locked"

To unlock the wallet I have to execute a curl command:

curl -XPOST localhost:3001/api/keystore/account/open -d '{"passphrase": "123456"}'

What do you expect:
I expected to have a simply cli command to unlock the wallet instead of having to execute the curl command.
Something like:

gladius wallet unlock

(or so ;-) )

In addition, it would be cool if the controld service would look for the wallet key in some file on the system (configurable via config settings) - so we could implement some auto - unlocking of the wallet.

Further information:
Nothing

@bbspike
Copy link

bbspike commented Sep 2, 2018

I can unlock the wallet after a restart of controld by using gladius check.

Better is indeed to have simple command like wallet unlock.

@overtfuture
Copy link
Contributor

Added this into our backlog for wallet management in the CLI. One option right now is to use the gladius profile command. This will trigger a wallet unlock without having to input a Pool address. I'mm going to close this to clean up the issues on GitHub but I saved your description for reference, thanks! I would estimate this being implemented within the next few releases.

@ianzsarmiento1992
Copy link

ianzsarmiento1992 commented Dec 6, 2018

curl -XPOST localhost:3001/api/keystore/account/open -d '{"passphrase":"123456"}'

remove one space "123456"}'

curl for winx64
https://bit.ly/2rliVcI

@overtfuture
Copy link
Contributor

@ianzsarmiento1992 that is correct, you can manually curl to open up the wallet. I'll add in some full instructions while we work on getting our new documentation up:

  • Run install.sh from repo
  • sudo gladius-guardian install
  • sudo gladius-guardian start
  • curl -XPOST localhost:3001/api/keystore/account/open -d '{"passphrase":"123456"}'

Services should be started and wallet unlocked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants