Bitcoin Forum
June 21, 2024, 02:55:07 AM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Public key + private key  (Read 617 times)
dirtmcgirt (OP)
Newbie
*
Offline Offline

Activity: 24
Merit: 0



View Profile
November 29, 2013, 09:34:54 PM
 #1

If I have a BITCOIN public key + private key pair (wallet), this pair is good for litecoin too? (or for other crypto)
bitcoin44me
Full Member
***
Offline Offline

Activity: 252
Merit: 100


MARKETPLACE FOR PAID ADVICE LIVE BROADCASTS


View Profile
November 29, 2013, 09:36:17 PM
 #2

No, it will only work for btc.

SeaBoundRhino
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
November 29, 2013, 09:38:42 PM
 #3

If I have a BITCOIN public key + private key pair (wallet), this pair is good for litecoin too? (or for other crypto)

No this is not valid for Lite Coin. for litecoin you need to  download a  seperate Litecoin wallet and generate an new key pair.
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1079


Gerald Davis


View Profile
November 29, 2013, 09:41:21 PM
 #4

Well not exactly.

You could use the same private key and public key for Litecoin (or any coin which uses ECDSA public keys and the same curve, which AFAIK is every clone coin to date).  However LiteCoin uses a different ADDRESS structure so you would need to compute the proper address for those keypairs.


Remember address =/= public key.  

There are three distinct elements:
Private key = random (or deterministic) 256 bit number.
Private key + ECDSA "magic" + particular ECC curve = public key.
Hashed public key with checksum, version information, and encoded into base 58 = public address.


bitcoin44me
Full Member
***
Offline Offline

Activity: 252
Merit: 100


MARKETPLACE FOR PAID ADVICE LIVE BROADCASTS


View Profile
November 29, 2013, 09:43:11 PM
 #5

Well not exactly.

You could use the same private key and public key for Litecoin (or any coin which uses ECDSA public keys and the same curve, which AFAIK is every clone coin to date).  However LiteCoin uses a different ADDRESS structure so you would need to compute the proper address for those keypairs.


Remember address =/= public key.  

There are three distinct elements:
Private key = random (or deterministic) 256 bit number.
Private key + ECDSA "magic" + particular ECC curve = public key.
Hashed public key with checksum, version information, and encoded into base 58 = public address.




It was obvious that he meant the address.Roll Eyes

pand70
Sr. Member
****
Offline Offline

Activity: 476
Merit: 250



View Profile
November 29, 2013, 09:43:33 PM
 #6

Although litecoin addresses are generated with the same way they have a different version number and so they start with an "L"

DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1079


Gerald Davis


View Profile
November 29, 2013, 09:44:29 PM
 #7

Or not but even if so the answer your provided is incomplete.  The same private key could be used for LiteCoin without issue.  Someone might want to do exactly that to simplify backups.  Have the exact same private keys in multiple wallets on different chains.  Another option would be to generate a paper wallet for both Bitcoin and LiteCoin using the same private key.   If you lost either one you could still recover funds by using the other one.
jackjack
Legendary
*
Offline Offline

Activity: 1176
Merit: 1255


May Bitcoin be touched by his Noodly Appendage


View Profile
November 29, 2013, 09:50:56 PM
 #8

Yes, you will have the same private key and a corresponding address for Litecoin (both the bitcoin and litecoin addresses will be "unlocked" by the private key)

See https://bitcointalk.org/index.php?topic=238776.0
For example, if you send 1BTC to 1oSYxNPiC7Mubb8Hexjg3qv7ZSCb37MLj and 1LTC to LL2PpAgDnrMRAQHHTnx2x4ugKmoUhP5odz, you are ABSOLUTELY SURE that the guy who controls one also controls the other one

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
leowse
Newbie
*
Offline Offline

Activity: 11
Merit: 0


View Profile
November 30, 2013, 07:28:10 AM
 #9

I know that the address allows others to send you bitcoin, and the private key allows you to spend the bitcoin.
What does the public key do then?
CIYAM
Legendary
*
Offline Offline

Activity: 1890
Merit: 1078


Ian Knowles - CIYAM Lead Developer


View Profile WWW
November 30, 2013, 07:35:30 AM
 #10

What does the public key do then?

The public key is included in the script for spending UTXOs (inputs) so that anyone can verify that you do have the private key (an important reason why it is not a good idea to re-use addresses).

With CIYAM anyone can create 100% generated C++ web applications in literally minutes.

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
Andyye
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
November 30, 2013, 07:45:56 AM
 #11

What does the public key do then?

The public key is included in the script for spending UTXOs (inputs) so that anyone can verify that you do have the private key (an important reason why it is not a good idea to re-use addresses).


Sorry if this is a stupid question.

I have seen quite a lot of sites such as faucets and casinos keep reusing their hot wallet addresses.
So, will reusing address pose any real threat on the bitcoin in that address? How dangerous would it be?

CIYAM
Legendary
*
Offline Offline

Activity: 1890
Merit: 1078


Ian Knowles - CIYAM Lead Developer


View Profile WWW
November 30, 2013, 07:53:37 AM
 #12

So, will reusing address pose any real threat on the bitcoin in that address? How dangerous would it be?

The danger is that if the ECDSA that Bitcoin uses is somehow able to be broken (and so far it would appear not to have been) then it might turn out to be relatively easy for someone to determine your private key from your public key.

As an address is not your public key but is instead an irreversible hash of it then provided you never re-use an address the likelihood of being able to lose funds even if the ECDSA is broken would still be very, very low.

With CIYAM anyone can create 100% generated C++ web applications in literally minutes.

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
dtsoiw
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
November 30, 2013, 08:35:09 AM
 #13

I thought the answer is no, but I quickly find myself misunderstanding the keys and the address.
Just by reading the above posts (esp. the posts by DeathAndTaxes and CIYAM Open) help me learn a lot.

Thanks Smiley
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!