I’ve just committed the first version of a HD wallet generator.
It can generate mainnet and testnet addresses offline.
I suggest that you download and compile the code yourself before running it on a machine that is not connected to a network.
Write down the passphrase carefully because if you lose it, you’ll lose all access to the addresses contained within. Similarly, anyone with your passphrase can access all of your addresses.
Some testing has been done but please use caution!
If you find it useful, I’ll continue to add features. There is no support for Z addresses - I haven’t checked what’s involved in Z address generation yet.
Edit: I’ve added vanity address generation. After generating a passphrase, use zretrieve to search for an address that matches a regex. eg to search for an address starting with “t1jl”:
zretrieve -passphrase="board start difference answer blossom roll powerful million rough butterfly bedroom beam" -match "^t1jl" -i
I’m really confused about this addresses thing. If Zcash addresses don’t depend of trust setup parameters and can already be generated, why is it that current testnet addresses won’t be valid addresses in mainnet? Is the address scheme different between testnet and mainnet?
@recursive it does need but you see it wrong side base on your trust setup youll move your coin (publicly) but when you Z them ( shiled it) it mean its sorta decentralize ( im using slang for picturize it )
so the T adress is sorta your public and Z your master
ACK - I don’t serialize to xpriv/xpub prefixes because of that. The generator derives m from the mnemonic each time.
Private keys to addresses derived from m/0’/0/0 are serialised in WIF using the PUBKEY_ADDRESS network id to maintain compatibility with the importprivkey cli command.
hi funkyzebraz, i generated a address with your tool.
zgenerate
2016/10/28 19:31:32 Wallet generated!
got passphrase, address and privkey.
now i used this address to mine, now i wanted to import it with zcash-cli but:
zcash-cli importprivkey PRIVKEY
error: {“code”:-5,“message”:“Invalid private key encoding”}
zcashd is on mainnet.
are my ZEC coins lost or do you have an idea?
EDIT: zcash-cli --version
Zcash RPC client version v1.0.0
thank you for help, but this command gets me exactly the same private key with same error.
but now i have some hope
maybe because i get the same with -test and without test?
i hope i have not generated a test address
EDIT: forget, with -test the Address is different, only privkey is the same
re: vanity. I was looking for a tool which generates an address which includes my nick. I was generating 5GB of keypairs until I found t1-QogAodMtoAheVkqtTg3nNCRHxSB-5chdn-t
But if you do not have to write the results to disk, it should be way faster.