Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: jeroenn13 on June 06, 2017, 05:45:31 PM



Title: Bitcoin Private Key vs. Alt-coin Private Key
Post by: jeroenn13 on June 06, 2017, 05:45:31 PM
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.



Title: Re: Bitcoin Private Key vs. Alt-coin Private Key
Post by: achow101 on June 06, 2017, 06:03:14 PM
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.


Title: Re: Bitcoin Private Key vs. Alt-coin Private Key
Post by: TechPriest on June 06, 2017, 10:56:02 PM
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.


Title: Re: Bitcoin Private Key vs. Alt-coin Private Key
Post by: jeroenn13 on June 06, 2017, 11:32:09 PM
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?


Title: Re: Bitcoin Private Key vs. Alt-coin Private Key
Post by: metacoin on June 06, 2017, 11:53:44 PM
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.


Title: Re: Bitcoin Private Key vs. Alt-coin Private Key
Post by: TechPriest on June 07, 2017, 07:34:25 PM
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.