diff options
author | obscuren <geffobscura@gmail.com> | 2014-02-18 19:09:26 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-02-18 19:09:26 +0800 |
commit | ab7dc924042b4cdb36ec7f2b26ab14c40d34ec9d (patch) | |
tree | 494805d26ad52acac51be93e5004faa03a2cbff3 /config.go | |
parent | 8c8554f5584dcc0efb4526c1d5f4d50bf2ed3b01 (diff) | |
download | go-tangerine-ab7dc924042b4cdb36ec7f2b26ab14c40d34ec9d.tar.gz go-tangerine-ab7dc924042b4cdb36ec7f2b26ab14c40d34ec9d.tar.zst go-tangerine-ab7dc924042b4cdb36ec7f2b26ab14c40d34ec9d.zip |
Added import/exporting of private keys
Diffstat (limited to 'config.go')
-rw-r--r-- | config.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -13,6 +13,8 @@ var AddPeer string var MaxPeer int var GenAddr bool var UseSeed bool +var ImportKey string +var ExportKey bool func Init() { flag.BoolVar(&StartConsole, "c", false, "debug and testing console") @@ -21,7 +23,9 @@ func Init() { flag.BoolVar(&UseUPnP, "upnp", false, "enable UPnP support") flag.BoolVar(&UseSeed, "seed", true, "seed peers") flag.BoolVar(&GenAddr, "genaddr", false, "create a new priv/pub key") + flag.BoolVar(&ExportKey, "export", false, "export private key") flag.StringVar(&OutboundPort, "p", "30303", "listening port") + flag.StringVar(&ImportKey, "import", "", "imports the given private key (hex)") flag.IntVar(&MaxPeer, "x", 5, "maximum desired peers") flag.Parse() |