aboutsummaryrefslogtreecommitdiffstats
path: root/config.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-02-18 19:09:26 +0800
committerobscuren <geffobscura@gmail.com>2014-02-18 19:09:26 +0800
commitab7dc924042b4cdb36ec7f2b26ab14c40d34ec9d (patch)
tree494805d26ad52acac51be93e5004faa03a2cbff3 /config.go
parent8c8554f5584dcc0efb4526c1d5f4d50bf2ed3b01 (diff)
downloadgo-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.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.go b/config.go
index d13bb863b..573f5ded2 100644
--- a/config.go
+++ b/config.go
@@ -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()