How to create a Zcash main net address before the actual launch


#1

Can someone explain how to create a Zcash main net address before the actual launch?
When I set my config file to:
testnet=0

The Zcashd -daeomon will no longer load due to the following error:

************************
EXCEPTION: St13runtime_error       
could not load param file at /home/roger/.zcash-params/z9-verifying.key       
Zcash in AppInit()

When I set my config file to:
testnet=1
Everything works fine.
Any advice on how to generate a main net address before the official launch would be greatly appreciated!


#2

This is an issue with the location of the JoinSplit parameters. It will be fixed in the soon-to-be-released beta 2 :slight_smile:


#3

So is there a way I can create a main net address today?
Thanks!


#4

Start the Zcash node with testnet=0 (or just without it), and then zcash-cli z_getnewaddress. If you have encrypted the wallet, you'll need to wait until beta 2 is released in order for it to be persisted, but at this point it is probably safer to just export it. So:

$ ./src/zcash-cli z_getnewaddress
zcFooB4rb45...
$ ./src/zcash-cli z_exportkey zcFooB4rb45...
SKk33PM3s4fe...

Once mainnet launches:
$ ./src/zcash-cli z_importkey SKk33PM3s4fe...

#5

this creates realnet usable t addresses:
github.com/blackkeyboard/zgenerate

apt-get install golang
mkdir ~/go
export GOPATH=~/go
export PATH=$PATH:$GOPATH/bin
go get -u github.com/btcsuite/btcutil
go get -u github.com/blackkeyboard/mneumonic
go get -u github.com/blackkeyboard/zgenerate
zgenerate -n 1