Skip to content

lty123456/expand

Folders and files

NameName
Last commit message
Last commit date

Latest commit

May 29, 2018
fdde8a6 · May 29, 2018

History

11 Commits
May 29, 2018
May 29, 2018
May 29, 2018
May 29, 2018
May 29, 2018
May 29, 2018
May 29, 2018

Repository files navigation

Description

You could use the expand.exe generate passphase、private key、address to the database(redis) such as bitcoin or ethereum,you also can custom made any other kind,for example,if you want to addin litecoin to the progrom,you just need complete the interface as below:

type TokenModule interface {
  Name() string
  KeyBitLen() int
  GetWIF([]byte) (string, error)
  GetAddress([]byte) (string, error)
}
then add an opt "ltc" to the start param 'token'.
Similarly,you can custom make your own passphase generate module、private key generate module.

Building

Building requires go (version 1.9.2 or later)
Ensure
1 "github.com/garyburd/redigo/redis"
2 "github.com/btcsuite"
3 "github.com/ethereumm/go-ethereum"
and their dependencies are in your path "$GOPATH/src"

Run

You need run redis(version 3.2.100 or later) on your mechine,you can use the script "start_redis.bat" to start redis locally.
After redis start,you can run expand.exe on shell use default params.

./expand.exe

or

./expand.exe --help

see the params like this:

Usage of expand.exe:
-dbPort int
    Redis port to connect (default 6379)
-mapProcs int
    Set max procs. (default 3)
-pass string
    Choose an passphase generate mode. {random,dictionary} (default "random")
-pri string
    Select private key generate modes. {sha2.256,sha3.512} (default "sha2.256")
-scanDB
    Scan redis once over before generate private key.
-token string
    Select address generate modes,use ';' to split. {btc,eth} (default "btc;eth")

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published