Skip to content

btcz/zgenerate

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BitcoinZ Cold Wallet - more info in releases page

zgenerate

Offline BIP32 HD wallet and vanity address generator for ZCash.

Currently returns the first address associated with m/0'/0/0 (hardened key for account 0/external account)

##Pre-requisites

  • Golang 1.7.3 (lower versions may work but this is what I developed with)
  • Git

##Build

go get -u github.com/btcsuite/btcutil
go get -u github.com/blackkeyboard/mneumonic
go install github.com/blackkeyboard/zgenerate
go install github.com/blackkeyboard/zgenerate/zretrieve

##Update an Existing Install

go clean github.com/blackkeyboard/zgenerate
go install github.com/blackkeyboard/zgenerate
go install github.com/blackkeyboard/zgenerate/zretrieve

##Usage To generate a wallet:

zgenerate [-t] [-n 1]

Options
-t generate testnet addresses
-n number of addresses to generate. Defaults to 1

To retrieve addresses generated from your HD wallet:

zretrieve -passphrase=<passphrase> [-t] [-n 1] [-match="regex string"] [-i]

Options
-t generate testnet addresses	
-n number of addresses to retrieve. Defaults to 1
-match regex string to search for in the address
-i case insensitive string matching

eg. Search case insensitive for a vanity address which starts with the string "t1jl"

zretrieve -passphrase="board start difference answer blossom roll powerful million rough butterfly bedroom beam" -match "^t1jl" -i

Note: The maximum number of addresses that can be searched given a wallet passphrase is restricted to 4,294,967,295 (unsigned 32 bit integer). Depending on your version of Go, case insensitive matching may be slow. golang/go#13288.

To import the private key into ZCash:

./zcash-cli importprivkey "private_key_from_zgenerate"

Zcashd will automatically rescan the blockchain for transactions

Security Warnings

BitcoinZ is experimental and a work-in-progress. Use at your own risk.