Please validate my thinking Web Wallets

21 views
Skip to first unread message

Kwabena Aning

unread,
Jun 30, 2020, 7:17:24 AM6/30/20
to bitcoinj
I am trying to create a service that allows users to create HDWallets and transact with them. I understand that the server will need to set up a peer group and build up it's block store (using FullPrunnedDatabaseStore btw) and so on... 

However, is it possible for users arriving later (after the store is built up) to then create a new wallet and progress with the store as it continues to build up... I know when I create a new wallet I need to stop the peer group and readd all addresses I have thus far to a new instance of a peer group. 

So here are the steps so far as I can think of

- Server starts
- Blockchain, and Store configured
- Any wallets that already exist are loaded
- utxoprovider specified on all wallets with blockstore... that may already be at chain height
- Peer group configured
- Peer group starts
- Weeks later new user = new wallet
- Wallet created
- utxoprovider specified on new wallet with blockstore... that may already be at chain height
- Peer group stops
- All wallets reloaded
- UTXOProvider specified for all loaded wallets
- Peer group starts

Is this a valid approach?

java4tech

unread,
Jul 2, 2020, 8:22:01 AM7/2/20
to bitcoinj
To be honest, you are trying to use wrong tool for the Job. Bitcoinj doesn't scale well with multi wallet setup.
Reply all
Reply to author
Forward
0 new messages