Help us shape the future of Go! Take the 2026 Go Developer Survey

zgenerate

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2016 License: MIT Imports: 3 Imported by: 0

README

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. https://github.com/golang/go/issues/13288.

To import the private key into ZCash:

./zcash-cli importprivkey "private_key_from_zgenerate"

Zcashd will automatically rescan the blockchain for transactions

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package base58 provides an API for working with modified base58 and Base58Check encodings.
Package base58 provides an API for working with modified base58 and Base58Check encodings.
Standalone library to generate zcash addresses
Standalone library to generate zcash addresses
retrieves the addresses and priv keys associated with a mneumonic
retrieves the addresses and priv keys associated with a mneumonic

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL