Author

Topic: How can unique addresses be allocated to different users? (Read 938 times)

staff
Activity: 3458
Merit: 6793
Just writing some code
we are using mycelium gear wallet where we r allowed to generate only 1000 address through a single xpub key.
Is there any hdwallet which generate infinite keys?
Any desktop wallet software supporting BIP 32 will allow you to generate keys until you run out of disk space.
newbie
Activity: 53
Merit: 0
how many derived keys can form through a single xpub key?
As many as you want, basically infinitely many keys can be derived.

we are using mycelium gear wallet where we r allowed to generate only 1000 address through a single xpub key.
Is there any hdwallet which generate infinite keys?
hero member
Activity: 1568
Merit: 502
Actually unique address with its control can be handle by any service provider can offer same Bitcoin address to their user to receive BTC. But its something fishy. As most of wallet service provider generate new bitcoin wallet address for user for more security and safety.

And if you are a service provider then it may create certain trouble for offer unique address to many user, because of accounting.
staff
Activity: 3458
Merit: 6793
Just writing some code
how many derived keys can form through a single xpub key?
As many as you want, basically infinitely many keys can be derived.
newbie
Activity: 53
Merit: 0
Is it better to pre-generate these addresses or dynamically generate them for each user?
I know basics of how the wallets generate multiple addresses through X-public key. I need to generate around 5000 keys.


can i bind or implement this process with Trezor?

you should be able to export the xpub from your trezor, the xpub can be used to generate derived keys/address either in realtime or beforehand.

how many derived keys can form through a single xpub key?
legendary
Activity: 3514
Merit: 5123
https://merel.mobi => buy facemasks with BTC/LTC
Is it better to pre-generate these addresses or dynamically generate them for each user?
I know basics of how the wallets generate multiple addresses through X-public key. I need to generate around 5000 keys.


can i bind or implement this process with Trezor?

you should be able to export the xpub from your trezor, the xpub can be used to generate derived keys/address either in realtime or beforehand.
newbie
Activity: 53
Merit: 0
Is it better to pre-generate these addresses or dynamically generate them for each user?
I know basics of how the wallets generate multiple addresses through X-public key. I need to generate around 5000 keys.


can i bind or implement this process with Trezor?
newbie
Activity: 53
Merit: 0
I've written a small python script to derive addresses for a user on this forum in the past:
https://bitcointalksearch.org/topic/m.17028536

Since he payed me a bounty when i PM'ed him the final version, i cannot give you the final result (we didn't discuss if the script was free for the public, or private), but the theory on how to do this easily is all on this page Wink

If you use this script, and run into any troubles, let me know, i'll keep an eye on this thread Smiley

Thanks a lot.I saw that code,fairly get the logic.Since i am using different language for development,i tried first by myself and if any query come i let u know. Smiley 
legendary
Activity: 3514
Merit: 5123
https://merel.mobi => buy facemasks with BTC/LTC
I've written a small python script to derive addresses for a user on this forum in the past:
https://bitcointalksearch.org/topic/m.17028536

Since he payed me a bounty when i PM'ed him the final version, i cannot give you the final result (we didn't discuss if the script was free for the public, or private), but the theory on how to do this easily is all on this page Wink

If you use this script, and run into any troubles, let me know, i'll keep an eye on this thread Smiley
newbie
Activity: 53
Merit: 0
Is it better to pre-generate these addresses or dynamically generate them for each user?
I know basics of how the wallets generate multiple addresses through X-public key. I need to generate around 5000 keys.

There are many websites that can do that for you. Some risk is involved here.
Best would be to write a script that will do that for you.  If you lack technical knowledge, try to find site you can trust that works offline.

trust is a major factor for me, so i prefer scripting rather than third party websites
legendary
Activity: 2296
Merit: 1014
Is it better to pre-generate these addresses or dynamically generate them for each user?
I know basics of how the wallets generate multiple addresses through X-public key. I need to generate around 5000 keys.

There are many websites that can do that for you. Some risk is involved here.
Best would be to write a script that will do that for you.  If you lack technical knowledge, try to find site you can trust that works offline.
newbie
Activity: 53
Merit: 0
thanks for your help, i get back if any other query come. Smiley
sr. member
Activity: 528
Merit: 368
How would i generate address dynamically at user side? Because I don't want to share my public key with User.

The client would only receive the generated address, not the extended key from which it was derived. Neither should the client be concerned with how the address was generated.

So whenever a client requests its deposit address from your service, e.g. by visiting a web page or calling an API endpoint, your service looks up or generates the address and returns it to the client.
newbie
Activity: 53
Merit: 0
How would i generate address dynamically at user side? Because I don't want to share my public key with User.
sr. member
Activity: 528
Merit: 368
I recommend generating them on demand, i.e. whenever a client requests a deposit address, but deterministically. The reasoning for this is that there is no point in storing or monitoring addresses that cannot possibly have received a deposit yet.

For example you could use the derivation path m/u/i, where u is the user's ID and i is a counter that gets incremented whenever the previous address is used. This gives you an infinite supply (practically speaking) of unique deposit addresses for every user.
newbie
Activity: 53
Merit: 0
Is it better to pre-generate these addresses or dynamically generate them for each user?
I know basics of how the wallets generate multiple addresses through X-public key. I need to generate around 5000 keys.
Jump to: