Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: Hughra on November 13, 2013, 05:50:19 PM



Title: A little help and clarification please?
Post by: Hughra on November 13, 2013, 05:50:19 PM
Ive searched throughout the forum and I am confused as to what I need to use for my application development.

Background: I am developing an application that requires each user to have a separate address.

I have installed bitcoind, and downloaded the block chain. I am using ubuntu server with the bitcoin ppa. I come across two services, bitcoind and bit coin-qt. Im confused as to what each does. Is it possible to generate address soly with bitcoind? I understand that bitcoind is strictly for use with the RPC? How would one generate an address using the rpc and bitcoin-qt

Please do not be harsh, I am completely new to bitcoind development.


Title: Re: A little help and clarification please?
Post by: gmaxwell on November 13, 2013, 06:47:35 PM
Colliding with yourself is uninteresting, so you actually don't want the birthday problem formula.  There can currently never be more than 21e14 addresses with things assigned to them. Best (for the attacker) case probability of a hit is 2.1e15/2^160 ≈ 1.4e-33 per attempt.


Title: Re: A little help and clarification please?
Post by: Hughra on November 13, 2013, 06:57:12 PM
huh?


Title: Re: A little help and clarification please?
Post by: etotheipi on November 13, 2013, 07:14:53 PM
huh?

If you're generating addresses with proper entropy, the sun will burn out before the chance of a collision is greater than winning the MegaMillions lottery 3 times in a row (approximately).  In other words, it's a waste of time to worry about it.

However, as I reread your original post, gmaxwell may have misread your question and thought you were asking about collisions.  It doesn't look like you were, so that may be an irrelevant response (unless you modified your post since then).

bitcoind is the base Bitcoin engine.  Bitcoin-Qt is simply bitcoind with a graphical user interface.  For the purposes of building a webservice, they are nearly identical in functionality, though you'll want to use bitcoind since your web service doesn't require a GUI.


Title: Re: A little help and clarification please?
Post by: coinpr0n on November 13, 2013, 07:29:07 PM
huh?

If you're generating addresses with proper entropy, the sun will burn out before the chance of a collision is greater than winning the MegaMillions lottery 3 times in a row (approximately).  In other words, it's a waste of time to worry about it.

However, as I reread your original post, gmaxwell may have misread your question and thought you were asking about collisions.  It doesn't look like you were, so that may be an irrelevant response (unless you modified your post since then).

bitcoind is the base Bitcoin engine.  Bitcoin-Qt is simply bitcoind with a graphical user interface.  For the purposes of building a webservice, they are nearly identical in functionality, though you'll want to use bitcoind since your web service doesn't require a GUI.

With all the mention of collisions, in regards to OP's question, are you trying to say to that it doesn't matter what way he/she decides to generate the addresses? That any (proper) solution for generating addresses will do.. such as www.bitaddress.org or even VanityGen. He/she would then just have to use the 'importprivkey' with bitcoind to use them. Correct?


Title: Re: A little help and clarification please?
Post by: Hughra on November 13, 2013, 07:44:21 PM
Im essentially asking how to generate an address


Title: Re: A little help and clarification please?
Post by: etotheipi on November 13, 2013, 07:47:43 PM
Im essential asking how to generate an address

A list of all bitcoind API calls can be found here :
https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list


Title: Re: A little help and clarification please?
Post by: Hughra on November 13, 2013, 08:59:20 PM
so what is the difference between bitcoind and qt


Title: Re: A little help and clarification please?
Post by: etotheipi on November 13, 2013, 09:02:53 PM
so what is the difference between bitcoind and qt

Read my first post in this thread.


Title: Re: A little help and clarification please?
Post by: Hughra on November 13, 2013, 09:12:35 PM
so what is the difference between bitcoind and qt

Read my first post in this thread.

oops missed it. Thank you for your help.