gcash / bchwallet

A secure bitcoin cash wallet daemon written in Go (golang)
ISC License
43 stars 29 forks source link

support multiple wallets? #58

Closed cacaosteve closed 4 years ago

cacaosteve commented 4 years ago

I was wondering is it possible to support multiple wallets?

I wanted to convert some software I have using the deprecated (In Bitcoin Core and Bitcoin ABC) accounts RPC command.

I noticed that bchwallet still is able to handle accounts.

But I also noticed that perhaps it's not best practices anymore and that in fact, I should actually use HDWallets and have users keep track of their 12 word phrase, or allow creating an HD wallet for each user, but bchwallet only supports a single wallet?

Thank you for your hard work on this project.

zquestz commented 4 years ago

You can pass a flag to create multiple wallets. Just use --appdata and point it to a new location. This will make sure all wallet information is stored there and allow you to create multiple wallets on the same machine!