Bitcoin Forum
May 04, 2024, 08:01:19 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Bitcoin Technical Support / Re: Pruning Blockchain and creating multi wallets on: May 24, 2022, 12:57:42 PM
@NotATether you are suggesting to generate a private key for every user, that something I can do. I found library to do that, I am able to generate private key of each user and get associated btc address without having bitcoin core. So I have to find the solution to create and sign a transaction from a private key.

1. How popular is the library?
2. Does the library have option to backup/restore private keys?
3. Have you checked whether it can handle thousand address?

The problem is that you still need a source to get the transactions, as well as the data for your transactions. You cannot do this without running an instance of Bitcoin Core or another full node/client.

You could use 3rd party API, but it's definitely not ideal option when you handle money.


1. The library is popular 200 stars on github
2. I can generate a private key and use it to made operations with the library. That's using https://libbitcoin.info/
3. As I understand, that is only cryptography operations, so that can handle thousand address.

But yes I will have to maintain a bitcoin core even if I use this option, so why not using directly my bitcoin core RPC API with one wallet and multiple address ?

Someone told me that I can use this service from blockchain.com : https://github.com/blockchain/service-my-wallet-v3
I have to install a service on my server and I will be able to use an API.
Do you know more about that ?

Of course 3rd party API is the best way but the cost is incredible few thousands $ by month... (Bitgo for example)

2  Bitcoin / Bitcoin Technical Support / Re: Pruning Blockchain and creating multi wallets on: May 24, 2022, 09:28:02 AM
Thanks all for you reply, you are very helpful  Smiley

I have the budget to store all the blockchain but if I can avoid it, I will.

Many of you are saying there is not the good option to use Bitcoin core for my use-case, thanks for the information.
@NotATether you are suggesting to generate a private key for every user, that something I can do. I found library to do that, I am able to generate private key of each user and get associated btc address without having bitcoin core. So I have to find the solution to create and sign a transaction from a private key.

So If I resume, the best solution to manage the creation and the managing of thousands of wallets, is not to use bitcoin core but to generate private key for each user and create raw bitcoin transaction and sign it with this private key.

Everyone agree with it ?
3  Bitcoin / Bitcoin Technical Support / Re: Pruning Blockchain and creating multi wallets on: May 23, 2022, 07:30:40 PM
I already thought about the possibility of generating only address on the same wallets but the problem will be on the sending transaction. I need to send BTC from specific address but if I use the same wallet with many address, the sending address will always be the same.
If you enable Coin Control in Bitcoin Core, you can manually select each input.

Thanks for the tip with Coin Control, you are a BTC core genious !  Smiley
The only bad thing with this option is to retrieve a balance of  specific address. I checked and the only possiblity to get a address balance is to parse all the transactions.
So yes, anyway I will parse the transactions and store it in database, so I have the balance but if a security breach exist and someone are able to withdrawal more than he really have in his wallet, he will be able because the main wallet will have the money of everybody. It is very dangerous whereas if I create a wallet for each user, this case is not possible.
What do you think ? Maybe you know some security tips to avoid it ?

Quote
I am working on a crypto exchange platform, so I will have to generate multiple wallets on differents blockchains for each of users.
For an exchange, there's no need to use the user's deposited inputs for their withdrawals. Usually people withdraw a different coin than they deposited.

Users can use their wallets as a simple wallet, so they can receive and send crypto on it, it will be not only used to exchanges cryptos.
4  Bitcoin / Bitcoin Technical Support / Re: Pruning Blockchain and creating multi wallets on: May 23, 2022, 12:54:33 PM
this node will allow me to create multiple wallets and send transactions from each of them. Is it possible to create a wallet now and have to send a transaction in 5 years.
Is there a reason to use multiple wallets, instead of many different addresses in one wallet? That might be easier.
Also, if you're keeping funds on an online wallet for 5 years, depending on the value you may want to look at offline cold storage instead.

Quote
But I have to regulary check if on each wallet a new transaction is coming on, thats why I need a long history of data.
Depending on what service you're offering (I'm thinking it's either an exchange, casino or webshop), you'll need to check each wallet very offen, so you won't need a long pruned history.

Quote
I would like to save data space because I will have to sync 10+ differents blockchains...
Can you share what you're planning?


Hi @LoyceV,

Thanks for reply.

I already thought about the possibility of generating only address on the same wallets but the problem will be on the sending transaction. I need to send BTC from specific address but if I use the same wallet with many address, the sending address will always be the same.

You have right on this point, I will regulary check and store transactions on my database for each wallets, so I don't really need to have the whole blockchain history. That's a good point  Smiley

I am working on a crypto exchange platform, so I will have to generate multiple wallets on differents blockchains for each of users.
So we need to have something sure and secure on the long terms.
5  Bitcoin / Bitcoin Technical Support / Re: Pruning Blockchain and creating multi wallets on: May 23, 2022, 12:47:19 PM
@DaveF : You have right, this node will allow me to create multiple wallets and send transactions from each of them. Is it possible to create a wallet now and have to send a transaction in 5 years. But I have to regulary check if on each wallet a new transaction is coming on, thats why I need a long history of data. But as you said, maybe I can use my node for wallet creation/send transaction and an external API to check if new transaction exist for wallets.
I would like to save data space because I will have to sync 10+ differents blockchains...
If storage space is really a concern for you, then wouldn't an SPV wallet be a more suitable alternative for you? Electrum would suffice, without having external API or stuff like that.

The wallet will be synchronized from the point which you've closed it. It shouldn't really be a problem because I think that all of the wallets are being initialized and synchronized at the same time regardless of if you're opening it or not. CMMIW on that, but it obviously wouldn't apply if you're importing a wallet in the future.

Hi @ranochigo,

Thanks for help.
I don't know if it can be use on my case because I have to generate new wallets from my server and not on the user device. Do you think it can be possible to set my server as a client to generate multiple wallets ?

6  Bitcoin / Bitcoin Technical Support / Re: Pruning Blockchain and creating multi wallets on: May 22, 2022, 07:54:09 PM
Thanks all for your relevant replies !

@DaveF : You have right, this node will allow me to create multiple wallets and send transactions from each of them. Is it possible to create a wallet now and have to send a transaction in 5 years. But I have to regulary check if on each wallet a new transaction is coming on, thats why I need a long history of data. But as you said, maybe I can use my node for wallet creation/send transaction and an external API to check if new transaction exist for wallets.
I would like to save data space because I will have to sync 10+ differents blockchains...
7  Bitcoin / Bitcoin Technical Support / Pruning Blockchain and creating multi wallets on: May 22, 2022, 01:01:25 PM
Hi,

I am trying to determine if I could use pruning blockchain option on my future bitcoin node or not.

I will create a multiple wallets by RPC calls and I need to be able to check the history of transactions for each wallets, even if a wallet has been created 1 years ago for which the transactions blocks are no more present on the node due to pruning.

Do you know if it is possible to continue to check transactions of a generated wallet for transactions blocks who are no more kept ?

Thanks
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!