zold-io / zold

An Experimental Non-Blockchain Cryptocurrency for Fast Micro Payments
https://www.zold.io
MIT License
195 stars 53 forks source link

How to retrieve locally my WTS wallet? #788

Closed victornoel closed 3 years ago

victornoel commented 4 years ago

Is your feature request related to a problem? Please describe.

I would like to make a backup of my WTS wallet locally (mainly because I don't trust WTS completely for not loosing my money).

Describe the solution you'd like

Clear instructions on how to do that, and in particular how to run zold with the private key I retrieved from WTS.

0crat commented 4 years ago

@yegor256/z please, pay attention to this issue

golyalpha commented 4 years ago

@victornoel https://wts.zold.io/key to get the private key (you'll need the Keygap)

Then you'll need to generate the public key from the private key using ssh-keygen -y -f .ssh/zold_key > .ssh/zold_key.pub

Then, when using the zold CLI, there's a --private-key/--public-key flag, which you can use to specify what private/public key to use for the action. Not sure if there's a way to change the default pubkey/privkey configuration (currently id_rsa) so that you don't have to specify it, the simplest way to do that might be to edit the code where the defaults are specified, and rebuild it.

victornoel commented 4 years ago

@golyalpha thank you for those informations, very useful.

@yegor256 what do you think about

yegor256 commented 3 years ago

@victornoel maybe you can submit a PR for the README file of zold/wts.zold.io repo?

victornoel commented 3 years ago

@yegor256 can't we simply put this issue in scope?

yegor256 commented 3 years ago

@victornoel sure, we can. But maybe you can contribute and we just close it :)

victornoel commented 3 years ago

@yegor256 hehe, yes, I can do the README ok ;)

But what about allowing to specify the path to the keys in the config file?

yegor256 commented 3 years ago

@victornoel it's possible to do, as is. No need to change the software.

victornoel commented 3 years ago

@yegor256 great, how can I do it? I will document it also in the README then

yegor256 commented 3 years ago

@victornoel just say --private-key=/home/file in your config file and that's it. Everything you say there is used as command line arguments.

victornoel commented 3 years ago

@yegor256 one last question: what is the name of the configuration file, I don't see this information in the README

yegor256 commented 3 years ago

@victornoel it's ~/.zold

victornoel commented 3 years ago

@yegor256 btw I've made a PR as discussed: #792

yegor256 commented 3 years ago

@victornoel merged, thanks!

0crat commented 3 years ago

Job gh:zold-io/zold#788 is not assigned, can't get performer