Bitcoin Forum
May 05, 2024, 02:13:25 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How private key works?  (Read 877 times)
RentGPU (OP)
Sr. Member
****
Offline Offline

Activity: 661
Merit: 258


View Profile
August 11, 2017, 06:44:03 AM
 #1

I want to ask a simple question , i will form it as example to make it clear
If we have 2 btc addresses with the exact same letters but in diffrenet order like 1.abcd. 2.bcda as i know private key is mathimatically connect to the public key so does one private key open both addresses or the order of letters is changing the private key??

2016 GPU Miner
1714875205
Hero Member
*
Offline Offline

Posts: 1714875205

View Profile Personal Message (Offline)

Ignore
1714875205
Reply with quote  #2

1714875205
Report to moderator
1714875205
Hero Member
*
Offline Offline

Posts: 1714875205

View Profile Personal Message (Offline)

Ignore
1714875205
Reply with quote  #2

1714875205
Report to moderator
The grue lurks in the darkest places of the earth. Its favorite diet is adventurers, but its insatiable appetite is tempered by its fear of light. No grue has ever been seen by the light of day, and few have survived its fearsome jaws to tell the tale.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
ranochigo
Legendary
*
Offline Offline

Activity: 2954
Merit: 4166


View Profile
August 11, 2017, 08:15:10 AM
 #2

If we have 2 btc addresses with the exact same letters but in diffrenet order like 1.abcd. 2.bcda as i know private key is mathimatically connect to the public key so does one private key open both addresses or the order of letters is changing the private key??
The answer is usually no. But I'll explain what I mean when I say its depends.

One private key can be take two different forms, the compressed and the uncompressed. Both of the forms corresponds to two different addresses. If the two different addresses happens to fit the kind of sequence you said, it will be possible for one private key to spend inputs in the two different addresses though you will have to convert the private key to compressed/uncompressed. It is highly unlikely for this to happen.

Else, 1Address and 1address don't have the same private key, even if the subsequent letters are the same. Changing the address by a letter would make the address invalid.

Eg. 192fqgb5aCKrjNkudGqSWR6Nuu4J8tEMB7 is my address.
129fqgb5aCKrjNkudGqSWR6Nuu4J8tEMB7 is invalid.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
Thirdspace
Hero Member
*****
Offline Offline

Activity: 1232
Merit: 738


Mixing reinvented for your privacy | chipmixer.com


View Profile
August 11, 2017, 09:29:13 AM
 #3

If we have 2 btc addresses with the exact same letters but in diffrenet order like 1.abcd. 2.bcda as i know private key is mathimatically connect to the public key so does one private key open both addresses or the order of letters is changing the private key??
The answer is usually no. But I'll explain what I mean when I say its depends.

One private key can be take two different forms, the compressed and the uncompressed. Both of the forms corresponds to two different addresses. If the two different addresses happens to fit the kind of sequence you said, it will be possible for one private key to spend inputs in the two different addresses though you will have to convert the private key to compressed/uncompressed. It is highly unlikely for this to happen.

Else, 1Address and 1address don't have the same private key, even if the subsequent letters are the same. Changing the address by a letter would make the address invalid.

Eg. 192fqgb5aCKrjNkudGqSWR6Nuu4J8tEMB7 is my address.
129fqgb5aCKrjNkudGqSWR6Nuu4J8tEMB7 is invalid.

I'm sorry not trying to takeover RentGPU thread but I have question related to the bolded words
Lets say 1Aaaa privkey is 5Kxxx and 1Bbbb privkey is L2yyy and 1Bbbb is compressed address of 1Aaaa
are you saying using L2yyy I can spend unspent outputs from 1Aaaa?
reason I asked is, long time ago I imported addresses to blockchain.info using the uncompressed form (5K...)
so I get the uncompressed addresses imported and displayed on my account
but today I clicked show privkey on menu, blockchain.info is showing me compressed privkey (L2...)
why is it showing me the compressed privkey while addresses that I use are uncompressed
I haven't tried making transaction but planning soon to figure this out


RentGPU (OP)
Sr. Member
****
Offline Offline

Activity: 661
Merit: 258


View Profile
August 11, 2017, 09:37:40 AM
 #4

If we have 2 btc addresses with the exact same letters but in diffrenet order like 1.abcd. 2.bcda as i know private key is mathimatically connect to the public key so does one private key open both addresses or the order of letters is changing the private key??
The answer is usually no. But I'll explain what I mean when I say its depends.

One private key can be take two different forms, the compressed and the uncompressed. Both of the forms corresponds to two different addresses. If the two different addresses happens to fit the kind of sequence you said, it will be possible for one private key to spend inputs in the two different addresses though you will have to convert the private key to compressed/uncompressed. It is highly unlikely for this to happen.

Else, 1Address and 1address don't have the same private key, even if the subsequent letters are the same. Changing the address by a letter would make the address invalid.

Eg. 192fqgb5aCKrjNkudGqSWR6Nuu4J8tEMB7 is my address.
129fqgb5aCKrjNkudGqSWR6Nuu4J8tEMB7 is invalid.
Thanks for your answer, what i am asking is if it does happen that two addresses have the same combination not order so they will share also private key , as i see you are saying that is right but it will not happen to find two addesses with the exact same combination

2016 GPU Miner
ranochigo
Legendary
*
Offline Offline

Activity: 2954
Merit: 4166


View Profile
August 11, 2017, 09:48:12 AM
 #5

I'm sorry not trying to takeover RentGPU thread but I have question related to the bolded words
Lets say 1Aaaa privkey is 5Kxxx and 1Bbbb privkey is L2yyy and 1Bbbb is compressed address of 1Aaaa
are you saying using L2yyy I can spend unspent outputs from 1Aaaa?
Somewhat correct.

Both of the WIF keys comes from the same private key, albeit with a different prefix to signal your wallet on how to treat the address. You have to convert the compressed key back to uncompressed key first so that you can import it into your wallet to get 1Aaaa. Bitaddress.org does this for you in their "wallet details" tab. I would highly recommend you to download the script offline for more security.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
cr1776
Legendary
*
Offline Offline

Activity: 4032
Merit: 1299


View Profile
August 11, 2017, 12:16:23 PM
 #6

If we have 2 btc addresses with the exact same letters but in diffrenet order like 1.abcd. 2.bcda as i know private key is mathimatically connect to the public key so does one private key open both addresses or the order of letters is changing the private key??
The answer is usually no. But I'll explain what I mean when I say its depends.

One private key can be take two different forms, the compressed and the uncompressed. Both of the forms corresponds to two different addresses. If the two different addresses happens to fit the kind of sequence you said, it will be possible for one private key to spend inputs in the two different addresses though you will have to convert the private key to compressed/uncompressed. It is highly unlikely for this to happen.

Else, 1Address and 1address don't have the same private key, even if the subsequent letters are the same. Changing the address by a letter would make the address invalid.

Eg. 192fqgb5aCKrjNkudGqSWR6Nuu4J8tEMB7 is my address.
129fqgb5aCKrjNkudGqSWR6Nuu4J8tEMB7 is invalid.
Thanks for your answer, what i am asking is if it does happen that two addresses have the same combination not order so they will share also private key , as i see you are saying that is right but it will not happen to find two addesses with the exact same combination

Order does indeed matter as they are, at root, just representations of numbers.  So 12345 and 54321 while having the same component integers are different numbers and so correspond to different points on a curve. (Simplified explanation, of course.). And 12345 and 54321 would be points on the curve, but not random enough to be safe.

Also since they are just numbers, you could create two private keys that swap the last two "digits" (and then re-encode the new one - there are checksums in there to decrease the chance that a typo would result in a valid address) to verify this for yourself.



Katashi
Sr. Member
****
Offline Offline

Activity: 672
Merit: 250


CryptoTalk.Org - Get Paid for every Post!


View Profile
August 13, 2017, 05:17:38 PM
 #7

If we have 2 btc addresses with the exact same letters but in diffrenet order like 1.abcd. 2.bcda as i know private key is mathimatically connect to the public key so does one private key open both addresses or the order of letters is changing the private key??
The answer is usually no. But I'll explain what I mean when I say its depends.

One private key can be take two different forms, the compressed and the uncompressed. Both of the forms corresponds to two different addresses. If the two different addresses happens to fit the kind of sequence you said, it will be possible for one private key to spend inputs in the two different addresses though you will have to convert the private key to compressed/uncompressed. It is highly unlikely for this to happen.

Else, 1Address and 1address don't have the same private key, even if the subsequent letters are the same. Changing the address by a letter would make the address invalid.

Eg. 192fqgb5aCKrjNkudGqSWR6Nuu4J8tEMB7 is my address.
129fqgb5aCKrjNkudGqSWR6Nuu4J8tEMB7 is invalid.

nice this is a very precise explanation i was also wondering and finding answer for the same question glad someone had posted it. Thank you by the way now i know hoe this private key works. Godbless to both of you.

 
                                . ██████████.
                              .████████████████.
                           .██████████████████████.
                        -█████████████████████████████
                     .██████████████████████████████████.
                  -█████████████████████████████████████████
               -███████████████████████████████████████████████
           .-█████████████████████████████████████████████████████.
        .████████████████████████████████████████████████████████████
       .██████████████████████████████████████████████████████████████.
       .██████████████████████████████████████████████████████████████.
       ..████████████████████████████████████████████████████████████..
       .   .██████████████████████████████████████████████████████.
       .      .████████████████████████████████████████████████.

       .       .██████████████████████████████████████████████
       .    ██████████████████████████████████████████████████████
       .█████████████████████████████████████████████████████████████.
        .███████████████████████████████████████████████████████████
           .█████████████████████████████████████████████████████
              .████████████████████████████████████████████████
                   ████████████████████████████████████████
                      ██████████████████████████████████
                          ██████████████████████████
                             ████████████████████
                               ████████████████
                                   █████████
YoBit InvestBox| 
BUY X10 AND EARN 10% DAILY
🏆
coder0x15
Jr. Member
*
Offline Offline

Activity: 36
Merit: 3


View Profile
August 13, 2017, 05:55:11 PM
 #8

Private key (32b number, random) --1--> Public key (64byte number, elliptic curve point) --2--> Hash (20byte number) --3--> Address (Base58 string).

1. Elliptic curve point multiplication
2. SHA256, ripemd160
3. Hex converts to Base58
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!