Bitcoin Forum
May 04, 2024, 09:54:44 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin Private Key vs. Alt-coin Private Key  (Read 633 times)
jeroenn13 (OP)
Hero Member
*****
Offline Offline

Activity: 644
Merit: 500



View Profile
June 06, 2017, 05:45:31 PM
 #1

Let's assume the alt-coin here is one that starts with 1, as Bitcoin does. But it is not Bitcoin. I have this question:

Assuming that you know how Bitcoin private keys are generated, and you also know how litecoin private keys are generated, is it possible to convert one to the other?

Assume you have this information:
Bitcoin private key
Bitcoin address
Alt-coin address

Is there a procedure to convert the Bitcoin private key into the corresponding alt-coin private key? Also assume that both the alt-coin address and bitcoin addresses are the exact same. e.g. if it is 1hHdv4... for Bitcoin, it is 1hHdv4... for the alt-coin as well. Yes, it is possible for this to exist.


..bustadice..         ▄▄████████████▄▄
     ▄▄████████▀▀▀▀████████▄▄
   ▄███████████    ███████████▄
  █████    ████▄▄▄▄████    █████
 ██████    ████████▀▀██    ██████
██████████████████   █████████████
█████████████████▌  ▐█████████████
███    ██████████   ███████    ███
███    ████████▀   ▐███████    ███
██████████████      ██████████████
██████████████      ██████████████
 ██████████████▄▄▄▄██████████████
  ▀████████████████████████████▀
                     ▄▄███████▄▄
                  ▄███████████████▄
   ███████████  ▄████▀▀       ▀▀████▄
               ████▀      ██     ▀████
 ███████████  ████        ██       ████
             ████         ██        ████
███████████  ████     ▄▄▄▄██        ████
             ████     ▀▀▀▀▀▀        ████
 ███████████  ████                 ████
               ████▄             ▄████
   ███████████  ▀████▄▄       ▄▄████▀
                  ▀███████████████▀
                     ▀▀███████▀▀
           ▄██▄
           ████
            ██
            ▀▀
 ▄██████████████████████▄
██████▀▀██████████▀▀██████
█████    ████████    █████
█████▄  ▄████████▄  ▄█████
██████████████████████████
██████████████████████████
    ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
    ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
       ████████████
......Play......
1714859684
Hero Member
*
Offline Offline

Posts: 1714859684

View Profile Personal Message (Offline)

Ignore
1714859684
Reply with quote  #2

1714859684
Report to moderator
1714859684
Hero Member
*
Offline Offline

Posts: 1714859684

View Profile Personal Message (Offline)

Ignore
1714859684
Reply with quote  #2

1714859684
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714859684
Hero Member
*
Offline Offline

Posts: 1714859684

View Profile Personal Message (Offline)

Ignore
1714859684
Reply with quote  #2

1714859684
Report to moderator
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3388
Merit: 6581


Just writing some code


View Profile WWW
June 06, 2017, 06:03:14 PM
 #2

Certainly. Bitcoin private keys are just 256-bit numbers. If the altcoin also uses ECDSA with 256-bit keys, then it is trivial to convert the key from Bitcoin to altcoin and vice versa. Just Base58 decode the private key and get its raw value. Then encode it with the altcoin's private key encoding and import.

TechPriest
Sr. Member
****
Offline Offline

Activity: 377
Merit: 282


Finis coronat opus


View Profile
June 06, 2017, 10:56:02 PM
 #3

Yeah, but resulting private key will be without any "balance" on it. Just raw, new generated private key.
Thanks for man above for his respond.

In science we trust!
jeroenn13 (OP)
Hero Member
*****
Offline Offline

Activity: 644
Merit: 500



View Profile
June 06, 2017, 11:32:09 PM
 #4

Yeah, but resulting private key will be without any "balance" on it. Just raw, new generated private key.
Thanks for man above for his respond.

If you know this information:

Bitcoin private key
Bitcoin address
Alt-coin address

You could not find the alt-coin private key that matches both the Bitcoin address and the alt-coin address?

..bustadice..         ▄▄████████████▄▄
     ▄▄████████▀▀▀▀████████▄▄
   ▄███████████    ███████████▄
  █████    ████▄▄▄▄████    █████
 ██████    ████████▀▀██    ██████
██████████████████   █████████████
█████████████████▌  ▐█████████████
███    ██████████   ███████    ███
███    ████████▀   ▐███████    ███
██████████████      ██████████████
██████████████      ██████████████
 ██████████████▄▄▄▄██████████████
  ▀████████████████████████████▀
                     ▄▄███████▄▄
                  ▄███████████████▄
   ███████████  ▄████▀▀       ▀▀████▄
               ████▀      ██     ▀████
 ███████████  ████        ██       ████
             ████         ██        ████
███████████  ████     ▄▄▄▄██        ████
             ████     ▀▀▀▀▀▀        ████
 ███████████  ████                 ████
               ████▄             ▄████
   ███████████  ▀████▄▄       ▄▄████▀
                  ▀███████████████▀
                     ▀▀███████▀▀
           ▄██▄
           ████
            ██
            ▀▀
 ▄██████████████████████▄
██████▀▀██████████▀▀██████
█████    ████████    █████
█████▄  ▄████████▄  ▄█████
██████████████████████████
██████████████████████████
    ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
    ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
       ████████████
......Play......
metacoin
Sr. Member
****
Offline Offline

Activity: 437
Merit: 260


balance


View Profile WWW
June 06, 2017, 11:53:44 PM
 #5

You could, but finding an address collision is quite uncommon. Statistically you would be better of trying to solo-mine a bitcoin block than trying to find an address collision. If you're generating the private key to purposely resolve to two public addresses in two different chains, well, it is not a great idea but there is no reason it would not work.

pin.org
TechPriest
Sr. Member
****
Offline Offline

Activity: 377
Merit: 282


Finis coronat opus


View Profile
June 07, 2017, 07:34:25 PM
 #6

You could not find the alt-coin private key that matches both the Bitcoin address and the alt-coin address?

It's very very rare sistuation, only if collision has been happened with addresses. 

In science we trust!
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!