Bitcoin Forum

Bitcoin => Bitcoin Discussion => Topic started by: ebyccc on May 15, 2016, 07:38:10 AM



Title: why cant people spend other's money
Post by: ebyccc on May 15, 2016, 07:38:10 AM
I am quite new to bitcoin, still reading the guide, and being puzzled about this. For example, if somebody just create one million private keys and run one million wallet programs at the same time, he would much likely receive some output that paid to one or more private keys (addresses maybe) he generated, and thus steals others' money
Could this be a problem?


Title: Re: why cant people spend other's money
Post by: OmegaStarScream on May 15, 2016, 07:43:56 AM
It more likely to get the same address as someone else If you are using Brainwallet instead of letting your Desktop/web wallet generates the wallet randomly .
Read this for more info : http://bitcoin.stackexchange.com/questions/7724/what-happens-if-your-bitcoin-client-generates-an-address-identical-to-another-pe


Title: Re: why cant people spend other's money
Post by: justspare on May 15, 2016, 07:49:37 AM
I really have no idea. I never thought of that actually. But I am pretty sure that it is very hard for you to get the same address as someone else. Maybe I am wrong and this could be a huge problem. ???


Title: Re: why cant people spend other's money
Post by: ebyccc on May 15, 2016, 08:01:58 AM
I really have no idea. I never thought of that actually. But I am pretty sure that it is very hard for you to get the same address as someone else. Maybe I am wrong and this could be a huge problem. ???
yes this maybe not a problem, after some calculation I find that the thief has to generate on average 7*10^41 keys to make a successful theft


Title: Re: why cant people spend other's money
Post by: Pursuer on May 15, 2016, 08:02:26 AM
you are talking about something called address collision which means someone accidentally created an address that was created before.
read this article on wiki: https://en.bitcoin.it/wiki/Technical_background_of_version_1_Bitcoin_addresses#Collisions
in short 1 million is not even a big number in comparison


Title: Re: why cant people spend other's money
Post by: topiOleg on May 15, 2016, 08:15:11 AM
I really have no idea. I never thought of that actually. But I am pretty sure that it is very hard for you to get the same address as someone else. Maybe I am wrong and this could be a huge problem. ???
yes this maybe not a problem, after some calculation I find that the thief has to generate on average 7*10^41 keys to make a successful theft


Thats very small likelihood, and even if collision ever happens sometimes, it should be empty previously used address or some dust Bitcoin amount. There are only about under million Bitcoin address worth non Dust amount, yet about 100 million Bitcoin address used already



Title: Re: why cant people spend other's money
Post by: Lauda on May 15, 2016, 08:15:41 AM
For example, if somebody just create one million private keys and run one million wallet programs at the same time, he would much likely receive some output that paid to one or more private keys (addresses maybe) he generated, and thus steals others' money
I'm not sure what you exactly mean by this. If you are talking about possible collisions, then that is statistically impossible (highly improbable*):
There are 2^160 possible addresses (IIRC), which equals to: ~1,460,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000.

Quote from: DT
Vanitygen can produce 20 million keypairs per second.  Lets say you build a super ASIC on 12nm (4 generations ahead of current tech) process that could create, validate, and steal one trillion keypairs per second (1 TK/s). That would be about 50,000x more powerful than faster GPU today.  Lets also say you built a thousand of them and ran them continually with no downtime 24/7/365.   In 1 year you could brute force 3*10^28 possible addresses.  
If there are 1 quadrillion funded addresses you would still have a ~1% chance of colliding with a random funded address in the next 1,000 years.
People just aren't aware of how huge these numbers are.


Title: Re: why cant people spend other's money
Post by: avikz on May 15, 2016, 08:18:27 AM
I don't think that duplicate wallet address is virtually possible. I think everything is taken care by blockchain itself.

However, you can use your email address instead of giving away your wallet id if you are holding account with coinbase. It will save your from your money being stolen.


Title: Re: why cant people spend other's money
Post by: shorena on May 15, 2016, 08:30:01 PM
I don't think that duplicate wallet address is virtually possible.

Its impossible.

I think everything is taken care by blockchain itself.

No, if anyone else should ever gain access to your private key(s). Your coins are gone. Its just so unlikely that this happens by chance (or brute force) that we can reasonably call it impossible. There are no defenses against that in the code though.

However, you can use your email address instead of giving away your wallet id if you are holding account with coinbase. It will save your from your money being stolen.

Unless, its coinbase that is stealing your coins. If you do not hold the private key, you have no bitcoin. All you have is a promise from some company you probably know less about than the store around the corner you get your food from.


Title: Re: why cant people spend other's money
Post by: calkob on May 15, 2016, 09:37:13 PM
I am quite new to bitcoin, still reading the guide, and being puzzled about this. For example, if somebody just create one million private keys and run one million wallet programs at the same time, he would much likely receive some output that paid to one or more private keys (addresses maybe) he generated, and thus steals others' money
Could this be a problem?

The simple answer is no watch a couple of good you tube videos that explain why it is mathmatically impossible in your life time to find another private key.....:)


Title: Re: why cant people spend other's money
Post by: ronald98 on May 15, 2016, 09:55:16 PM
I don't think that duplicate wallet address is virtually possible.

Its impossible.

...

It's so unlikely that it's as good as impossible. To calculate the same address and private key as someone else is more unlikely than getting hit by lightning at 12 noon for six consecutive days, then winning the lottery on the 7th day. If you search bitcointalk you will find countless threads by people who lost their private key for their Bitcoin wallet and want to know how to get their Bitcoins back. The short answer is without their private key they can't.


Title: Re: why cant people spend other's money
Post by: tyz on May 15, 2016, 09:57:29 PM
To be serious: one million accounts is not much compared to 2^32 possible accounts. So, it is very unlikely to spend other's money by guessing or calculating the private keys of accounts. A lot of people tried this before without success. This is why Bitcoin is considered very save.


Title: Re: why cant people spend other's money
Post by: rapazev on May 15, 2016, 11:26:27 PM
Its impossible.


Not impossible, just highly improbable  ;D


\--
And, imagine that happen, you did duplicate a wallet... you still need to be lucky enough to duplicate a whale wallet... someone who receive and send a lot of bitcoins.


Title: Re: why cant people spend other's money
Post by: franky1 on May 15, 2016, 11:41:17 PM
I am quite new to bitcoin, still reading the guide, and being puzzled about this. For example, if somebody just create one million private keys and run one million wallet programs at the same time, he would much likely receive some output that paid to one or more private keys (addresses maybe) he generated, and thus steals others' money
Could this be a problem?

if you could make 1million addresses in a minute.. then you will have all the possible bitcoin addresses available when.. wait for it.

your great great great great great great great great great great great great great grand children have become great great great great great great great great great great great great great grand parents.

so goodluck

there are more bitcoin addresses available than grains of sand on the planet


Title: Re: why cant people spend other's money
Post by: coinzat on May 15, 2016, 11:55:39 PM
the percentage that someone may generate a used address by chance is very very low and it is impossible to make it with vanitygen. but it you are afraid, you can move your funds from address to another from time to time


Title: Re: why cant people spend other's money
Post by: odolvlobo on May 16, 2016, 04:08:46 AM
To be serious: one million accounts is not much compared to 2^32 possible accounts. So, it is very unlikely to spend other's money by guessing or calculating the private keys of accounts. A lot of people tried this before without success. This is why Bitcoin is considered very save.

I don't know where you get "232 possible accounts", but 1 million is 1/4295 of 232. Perhaps you meant 2160. Your laptop can easily test 232 private keys in a day.


Title: Re: why cant people spend other's money
Post by: Soros Shorts on May 16, 2016, 04:20:34 AM
I don't think that duplicate wallet address is virtually possible.

Its impossible.


As long as you don't use some broken random number generator to generate your private keys. Or even worse, manually pick a private key value of say 0x1.


Title: Re: why cant people spend other's money
Post by: cyberguy on May 16, 2016, 06:20:39 AM
I am quite new to bitcoin, still reading the guide, and being puzzled about this. For example, if somebody just create one million private keys and run one million wallet programs at the same time, he would much likely receive some output that paid to one or more private keys (addresses maybe) he generated, and thus steals others' money
Could this be a problem?

A private key is a 256 bit binary number. When written in hexadecimal this comes to a 64-digit hexadecimal number, which in decimal is approximately 1.158 x 10^77. Each private key will produce a unique public key and corresponding bitcoin address. So there are 2^256 possible combinations of private key, public keys and bitcoin addresses.

To get an idea of the numbers we are dealing with consider the following.

The world's fastest super computer is currently capable of performaing 33.6 quadrillion (33.6 x 10^15) calculations per second. Even if we assume that this makes it possible to check one private key per calculation (the actual number will be less since checking whether a particular private key agrees with a given bitcoin address will need much more than one calcultion), it would need 3.45 x 10^60 seconds or 1.1 x 10^53 years to try all possible private keys. So to try and steal bitcoins that are at a particular address by trying all possible addresses, though theoritically possible is computationally infeasible.


Title: Re: why cant people spend other's money
Post by: Kakmakr on May 16, 2016, 07:12:20 AM
There are some brilliant videos on Youtube explaining this, if you just search for the Math behind Bitcoin. In one video they compared private keys to the sand on earth and said, if you took all the sand on all the planets in our galaxy, then you will still not cover all the combinations that could be created with Bitcoins algorithm.

I think it is a bit extreme, but it gives you an idea what the probability will be for this to happen.


Title: Re: why cant people spend other's money
Post by: Amph on May 16, 2016, 07:43:00 AM
because your example is no where near the maximum number of private key and public key in existence, type 2^256 and see how big is that number

it maybe be possible in a very distant future, 1000 or 10k year from now, where new unprecedent technology are discovered


Title: Re: why cant people spend other's money
Post by: shorena on May 16, 2016, 11:24:29 AM
Its impossible.


Not impossible, just highly improbable  ;D
-snip-

Do you worry about the air in your room spontainously moving into a corner leading to your suffocation? Its the same realm of "improbable". Calling it improbable will give people the wrong impression.

I am quite new to bitcoin, still reading the guide, and being puzzled about this. For example, if somebody just create one million private keys and run one million wallet programs at the same time, he would much likely receive some output that paid to one or more private keys (addresses maybe) he generated, and thus steals others' money
Could this be a problem?

A private key is a 256 bit binary number. When written in hexadecimal this comes to a 64-digit hexadecimal number, which in decimal is approximately 1.158 x 10^77. Each private key will produce a unique public key and corresponding bitcoin address. So there are 2^256 possible combinations of private key, public keys and bitcoin addresses.

No, due to the use of RIPEMD160 there are only 2160 possible bitcoin addresses (of version 1).

To get an idea of the numbers we are dealing with consider the following.

The world's fastest super computer is currently capable of performaing 33.6 quadrillion (33.6 x 10^15) calculations per second. Even if we assume that this makes it possible to check one private key per calculation (the actual number will be less since checking whether a particular private key agrees with a given bitcoin address will need much more than one calcultion), it would need 3.45 x 10^60 seconds or 1.1 x 10^53 years to try all possible private keys. So to try and steal bitcoins that are at a particular address by trying all possible addresses, though theoritically possible is computationally infeasible.



Title: Re: why cant people spend other's money
Post by: cyberguy on May 16, 2016, 12:19:18 PM
A private key is a 256 bit binary number. When written in hexadecimal this comes to a 64-digit hexadecimal number, which in decimal is approximately 1.158 x 10^77. Each private key will produce a unique public key and corresponding bitcoin address. So there are 2^256 possible combinations of private key, public keys and bitcoin addresses.

No, due to the use of RIPEMD160 there are only 2160 possible bitcoin addresses (of version 1).


true, this is correct as far as the possible addresses are concerned, but someone who is trying to find the correct private key using brute force will have to try all 2256 private keys, since there is no way to determine which of these will not be linked to a valid address.

however i admit that my statement above is not entirely correct


Title: Re: why cant people spend other's money
Post by: gentlemand on May 16, 2016, 12:34:31 PM
Well, I hope someone somewhere's created a bot to monitor something like this. Astronomically improbable things do happens from time to time.


Title: Re: why cant people spend other's money
Post by: hv_ on May 16, 2016, 03:35:36 PM
With ETH this will be able to do.     via the DAO

 ;D


Title: Re: why cant people spend other's money
Post by: 2c0de on May 16, 2016, 03:36:47 PM
With ETH this will be able to do.     via the DAO

 ;D
;D


Title: Re: why cant people spend other's money
Post by: Supercrypt on May 17, 2016, 05:34:07 AM
I am mildly confused of the relation of the topic title to the content but any way, to answer your question, it has been clarified by posts before me that it is impossible for one key be duped in 1 million keys because there are roughly 2^160 possible unique keys that can be created. That's just huge of a number, trust me.


Title: Re: why cant people spend other's money
Post by: BitsandBites on May 17, 2016, 08:19:24 AM
Because it does not make sense to let someone else spend your money. That is the only reason why people cannot spend someone else his or hers money.


Title: Re: why cant people spend other's money
Post by: Oscoda on May 17, 2016, 10:27:01 AM
Because it does not make sense to let someone else spend your money. That is the only reason why people cannot spend someone else his or hers money.

Yeah it is obvious that you cannot spend other peoples money. Why would you let someone random make use of your money that is the dumbest think that you can do in this world.


Title: Re: why cant people spend other's money
Post by: quintiilieo on June 01, 2016, 04:41:43 PM
What the hell are you thinking about. Spend others money? are you crazy they make hard effort to gain profit and now you want to spent others money while you are just sitting around and do nothing eating junk foods watching tv? is so unfair if you think that will work it is nonsense question i dont know how old you are even a kid dont ask questions like that.


Title: Re: why cant people spend other's money
Post by: ~Bitcoin~ on June 01, 2016, 04:51:37 PM
Because it does not make sense to let someone else spend your money. That is the only reason why people cannot spend someone else his or hers money.

Not only sense but this is due to cryptographic security as well as due to this billions of bitcoin address can be generated so there is no any chance of getting same private key for two addresses.


Title: Re: why cant people spend other's money
Post by: vlad12 on June 01, 2016, 07:44:29 PM
I am quite new to bitcoin, still reading the guide, and being puzzled about this. For example, if somebody just create one million private keys and run one million wallet programs at the same time, he would much likely receive some output that paid to one or more private keys (addresses maybe) he generated, and thus steals others' money
Could this be a problem?

Why run a million wallets when all the possible private keys to all the possible bitcoin addresses are "stored" here:
    http://www.directory.io/?

Go ahead, flip through it, if you find my address you can have all my coins ;).


Title: Re: why cant people spend other's money
Post by: nanonymousx on June 02, 2016, 06:11:30 AM
With current computer architecture, it will take about 1 million year to calculate another person's private key from public key.
But, quantum computer, or some future completely different computer maybe can do that in a few days, then that will be the end of Bitcoin.


Title: Re: why cant people spend other's money
Post by: bladeandsoulguide on June 02, 2016, 08:13:07 AM
people spend other people's money

that calles hacker


Title: Re: why cant people spend other's money
Post by: Betwrong on June 02, 2016, 08:22:09 AM
Well, I hope someone somewhere's created a bot to monitor something like this. Astronomically improbable things do happens from time to time.

haha, yeah. But generally we don't think about what will happen if something which can happen once in a billion years happens. If the chances of an event are very small we consider it impossible.


Title: Re: why cant people spend other's money
Post by: StoreBit on June 16, 2016, 09:05:21 PM
because its belong to them. if i ask you that why people cannot think from other;s mind. why peoplenot see with other.s eyes. similary the money belong to them then how can other people will use it with out permission.