Pages:
Author

Topic: same private key? - page 5. (Read 1717 times)

hero member
Activity: 1778
Merit: 709
[Nope]No hype delivers more than hope
June 25, 2020, 04:07:03 PM
#16
I have another related question.
When I generate a new address/privkey through a custodian/non-custodian wallet even on the exchange, is it possible to get someone else's address or will it be skipped?
if at least 1% of the total privkey was generated, it's not impossible that one day someone will get someone else's privkey.
And I think this is more possible for people who want vanity addresses.
legendary
Activity: 2268
Merit: 18771
June 25, 2020, 02:09:04 PM
#15
I didn't get the first part. Why is it closer to 2236 rather than 2256?
Because you wrote the wrong number, and missed out the last 6 digits. 2256 is equivalent to 1.158*1077. The number you wrote is 1.158*1071.

You say that there are "only" 2160 addresses. Why their private keys aren't 2160 too?
Private keys are limited by the order of the secp256k1 elliptical curve used in bitcoin. The order n is as follows:
Code:
FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFE BAAE DCE6 AF48 A03B BFD2 5E8C D036 4141

Private keys can range from 0 to n-1. In hex, n-1 is:
Code:
FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFE BAAE DCE6 AF48 A03B BFD2 5E8C D036 4140

In decimal, it is:
Code:
115,792,089,237,316,195,423,570,985,008,687,907,852,837,564,279,074,904,382,605,163,141,518,161,494,336

This number is so close to 2256 that we often just say there are 2256 private keys for ease of communication. The difference between this number and 2256 is tiny.

Addresses, on the other hand, are limited by the RIPEMD160 hash function. To turn a public key in to an address, it is first hashed using SHA256 and then use RIPEMD160. The result of this will be a number which is 160 bits long, meaning the upper limit is 2160 unique addresses. (Assuming of course we are talking about 1 type of address. There are 2160 P2PKH "1" addresses, 2160 P2SH "3" addresses, and 2160 P2WPKH "bc1" addresses.)

So yes, there are many more private keys than there are addresses, meaning multiple private keys can lead to the same address.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
June 25, 2020, 01:42:12 PM
#14
Advanced answer: The possibility is so small that we should not even discuss it. It's like finding a random number between 1 and 115,792,089,237,316,195,423,570,985,008,687,907,853,269,984,665,640,564,039,457,584,007,913,129 that has already been chosen from another person.
That number is not right. You've taken 2256, but missed out the last 6 digits of 639,935, giving a number that is closer to 2236 rather than 2256.

However, 2256 isn't correct either. Because of the secp256k1 curve that bitcoin uses, the upper limit to the number of private keys is slightly less than 2256. In decimal, the number is:

Code:
115,792,089,237,316,195,423,570,985,008,687,907,852,837,564,279,074,904,382,605,163,141,518,161,494,336

However, that number isn't actually correct either. Although there are just less than 2256 private keys, there are "only" 2160 addresses, meaning on average there are around 296 private keys for each address.

I didn't get the first part. Why is it closer to 2236 rather than 2256?

You say that there are "only" 2160 addresses. Why their private keys aren't 2160 too?

Guide me.
legendary
Activity: 2268
Merit: 18771
June 13, 2020, 10:25:45 AM
#13
Advanced answer: The possibility is so small that we should not even discuss it. It's like finding a random number between 1 and 115,792,089,237,316,195,423,570,985,008,687,907,853,269,984,665,640,564,039,457,584,007,913,129 that has already been chosen from another person.
That number is not right. You've taken 2256, but missed out the last 6 digits of 639,935, giving a number that is closer to 2236 rather than 2256.

However, 2256 isn't correct either. Because of the secp256k1 curve that bitcoin uses, the upper limit to the number of private keys is slightly less than 2256. In decimal, the number is:

Code:
115,792,089,237,316,195,423,570,985,008,687,907,852,837,564,279,074,904,382,605,163,141,518,161,494,336

However, that number isn't actually correct either. Although there are just less than 2256 private keys, there are "only" 2160 addresses, meaning on average there are around 296 private keys for each address.
sr. member
Activity: 516
Merit: 250
kingcasino.io
June 13, 2020, 09:49:54 AM
#12
Cleared answer is yes, if he got your wallet and your private key then he can use all of your bitcoins. But if you mean that he can generate the same wallet and the same key in your own wallet then that is impossible to happen because bitcoin or any blockchain wallets are generated together as one. What i mean is they are encrypt and decrypt each other, means you can’t generate the same public key wallet without generating the same private key.
member
Activity: 1120
Merit: 68
June 13, 2020, 09:42:39 AM
#11
Private keys are generated uniquely, there is no way that there are 2 identical/ same pattern private keys. Same as the question " Is it possible to guess someone's private key?, the answer is nearly impossible because private keys are set of codes paired to public key which is used for encryption and decryption, for cryptography the common size of the private key is 256 bit, if someone wants to guess it he needs to perfectly guess each of it, it's like winning a toss coin for 256 times or more!
You are right,it is possible to have the same private key but it is possible to have only one number or letter different from other private like what happened to my own private key which i think i lost because i can't open my wallet using it but when i tried what Myetherwallet team told me to do,i recovered my own private key and open my wallet again and i found out that there is another wallet with private key almost the same with mine,only one number is different. But if you want to guess someones private key,it is difficult because every private key has a ramdom number with letters.
Indeed. It is impossible for someone to have the same private keys because it is generated uniquely. It is really possible for you to have the almost same letter and numbers in your private with another wallet that only one letter and number is different, yet it is still a unique private key because you are the only one who has that private key.
jr. member
Activity: 114
Merit: 1
June 13, 2020, 08:23:37 AM
#10
Simple answer: Yes.

Advanced answer: The possibility is so small that we should not even discuss it. It's like finding a random number between 1 and 115,792,089,237,316,195,423,570,985,008,687,907,853,269,984,665,640,564,039,457,584,007,913,129 that has already been chosen from another person.

Sounds interesting. Some times even mad things in terms of probability really could happen, it would be interesting for researchers.
legendary
Activity: 2170
Merit: 1789
June 13, 2020, 08:21:28 AM
#9
i recovered my own private key and open my wallet again and i found out that there is another wallet with private key almost the same with mine,only one number is different.

Of course it is. Which means if you have one unknown variable then it will be much easier to crack/brute force it. However, finding/guessing private key of a given address is another story.
member
Activity: 994
Merit: 11
Daxetoken.net
June 13, 2020, 08:01:41 AM
#8
Private keys are generated uniquely, there is no way that there are 2 identical/ same pattern private keys. Same as the question " Is it possible to guess someone's private key?, the answer is nearly impossible because private keys are set of codes paired to public key which is used for encryption and decryption, for cryptography the common size of the private key is 256 bit, if someone wants to guess it he needs to perfectly guess each of it, it's like winning a toss coin for 256 times or more!
You are right,it is possible to have the same private key but it is possible to have only one number or letter different from other private like what happened to my own private key which i think i lost because i can't open my wallet using it but when i tried what Myetherwallet team told me to do,i recovered my own private key and open my wallet again and i found out that there is another wallet with private key almost the same with mine,only one number is different. But if you want to guess someones private key,it is difficult because every private key has a ramdom number with letters.
full member
Activity: 1028
Merit: 144
Diamond Hands 💎HODL
June 13, 2020, 07:19:15 AM
#7
Indeed. But chances are not that high and one out of million times. But there are cases of stolen funds by guessing.

The private key is really important. These are things that are must not be shared. But then there are also times that it may be guessed.
Bitcoin transactions are traceable, public, and stored permanently in networks of bitcoin. If you have an account anyone may see your transactions and can see your balance. If one address are used, in every transaction it can be involved with. I think the answers are yes just like what the other says but the private key is just so many letters and numbers so we could assume that there is only a very small chance it having the same private, maybe a small percentage of users only could have the same private key but it would never happened in the same wallet or platform I assumed.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
June 13, 2020, 07:08:50 AM
#6
Private keys are generated uniquely, there is no way that there are 2 identical/ same pattern private keys. Same as the question " Is it possible to guess someone's private key?, the answer is nearly impossible because private keys are set of codes paired to public key which is used for encryption and decryption, for cryptography the common size of the private key is 256 bit, if someone wants to guess it he needs to perfectly guess each of it, it's like winning a toss coin for 256 times or more!

Yeah that. Think the coin, OP.
If we toss it once then you have 1:1 possibilities. H or T.
If we toss it 2 times then you have 1:4. HH, TT, TH, HT
3 times even bigger.

It becomes HHH, TTT, HHT, TTH, HTH, THT, THH, HTT.

Imagine tossing it for 256 times
legendary
Activity: 2576
Merit: 1252
Leading Crypto Sports Betting & Casino Platform
June 13, 2020, 06:46:53 AM
#5
Private keys are generated uniquely, there is no way that there are 2 identical/ same pattern private keys. Same as the question " Is it possible to guess someone's private key?, the answer is nearly impossible because private keys are set of codes paired to public key which is used for encryption and decryption, for cryptography the common size of the private key is 256 bit, if someone wants to guess it he needs to perfectly guess each of it, it's like winning a toss coin for 256 times or more!
sr. member
Activity: 1498
Merit: 326
20BET - Premium Casino & Sportsbook
June 13, 2020, 06:31:31 AM
#4
Indeed. But chances are not that high and one out of million times. But there are cases of stolen funds by guessing.

Check out these articles:
[1]Guess My Bitcoin Private Key
[2]A 'Blockchain Bandit' Is Guessing Private Keys and Scoring Millions

newbie
Activity: 10
Merit: 2
June 13, 2020, 06:29:04 AM
#3
@BlackHatCoiner
thank you
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
June 13, 2020, 06:20:34 AM
#2
Simple answer: Yes.

Advanced answer: The possibility is so small that we should not even discuss it. It's like finding a random number between 1 and 115,792,089,237,316,195,423,570,985,008,687,907,853,269,984,665,640,564,039,457,584,007,913,129 that has already been chosen from another person.

It's more possible to win 10 jack pots on a row than finding the same private key with someone else.

Except if you choose a number that is not random. Like 5, because you can. Then some developers may steal your bitcoins because there are people who do that kind of researches.

Although everything is possible. The problem is that it's very unlikely to happen.
newbie
Activity: 10
Merit: 2
June 13, 2020, 06:13:21 AM
#1
hey,
I wonder, even if the probability so small is, if someone else get the same private key as me could he/she spend my Bitcoins and viceversa? would we have the same Bitcoin Adress?
Pages:
Jump to: