0
I'm developing bitcoin payment processing application.
I've two question to ask:
- In each bip32 address, How much UTXO each address should have to consider generating new address to avoid address re-using? for example If address A used twice should I generate a new address or does it have specified number for address re-use before generating new one?
- When new address generated, from my understanding , I've to scan following address for each address derivation path to see if each index have fund or not:
- Legacy
- Segwit
- Change address for Legacy
- Change address for Segwit
What's best way to scan addresses without submitting so much request (for each index) to blockchain explorer to scan funds?
Thanks in advance.
I still don't get it how to handle address scanning,let's say I don't use P2PKH addresses anymore, over time, When transactions grow and that means generating more new address, Is there good way to handle address scanning considering speed and performance? for example If single user does have 100 transaction(100 addresses?), Should I scan 100 blockchain addresses to find out how much funds user have? In over time, when I have more users and they also generate address does it not going out of control? – Nobit – 2019-06-30T06:38:44.177
@nobit You cannot do away without scanning the blockchain. If you want to generate more addresses, you would need to scan them to see you have not magically received some funds (after their use) or if there is a leak in the private keys and your bitcoins got spent. – Ugam Kamat – 2019-06-30T07:17:20.377