Bitcoin Forum
November 07, 2024, 06:02:01 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Does dumpprivkey command output include public key?  (Read 1234 times)
xdaxdb (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
March 13, 2013, 02:06:46 AM
 #1

Does dumpprivkey command output include public key?

From what I understand about asymmetrical key encryption aside from the fact that their values are different there is nothing different about them. Either one could be the public or the private key. Does Elliptical Curve not function in this way as well?

I don't understand how when you use the command importprivkey you give it the output of the dumpprivkey command. I would think a private key would be useless without a knowing which public key it works with right? So the only thing I can think of is that dumpprivkey also outputs the public key.

I've been trying to figure out how many bits you can pack into the output of the dumpprivkey command but I don't think I have the math skills to do it. If anyone could enlighten me on that too i would appreciate it.
xdaxdb (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
March 13, 2013, 02:37:39 AM
 #2

Let me rephrase this.

How is it possible to import an address with only the private key? I thought it was not possible to derive the other key in the pair just by possessing one of the keys. Public key encryption wouldn't work if you could derive the private key from the public key. I thought it worked both ways.
CIYAM
Legendary
*
Offline Offline

Activity: 1890
Merit: 1086


Ian Knowles - CIYAM Lead Developer


View Profile WWW
March 13, 2013, 02:47:53 AM
 #3

Bitcoin does not use public key *encryption* but instead uses an ECDSA (Eliptical Curve Digital Signature Algorithm) and a Bitcoin address is indeed derived from the private key.

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

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
xdaxdb (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
March 13, 2013, 02:58:41 AM
 #4

So ECDSA is a Hashing function? Ok the term private key through me off track. So then I assume the Bitcoin Address is a hash (or multiple hashes) of the private key?

-Edit-

Also I have seen "Eliptical Curve" listed numerous times as an asymmetrical encryption method in networking textbooks... I didn't realize ECDSA was something else.
Stephen Gornick
Legendary
*
Offline Offline

Activity: 2506
Merit: 1010


View Profile
March 13, 2013, 11:43:10 AM
 #5

Let me rephrase this.

How is it possible to import an address with only the private key? I thought it was not possible to derive the other key in the pair just by possessing one of the keys. Public key encryption wouldn't work if you could derive the private key from the public key. I thought it worked both ways.

Steps to go from private key to Bitcoin address:
 - http://en.bitcoin.it/wiki/Technical_background_of_Bitcoin_addresses

Unichange.me

            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █


xdaxdb (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
March 14, 2013, 12:58:13 AM
 #6

thanks I read that but i'm still confused.

That entire method described taking the public key and hashing it and chopping it up to convert it into a bitcoin address. this still doesn't explain how having the private key you can derive the bitcoin address. because the bitcoin address is basicaly a series of hashes done on the public key. And I was almost certain that one cannot derive the other key in the pair simply by possessing one of the keys in the pair. If you could then people could digure out your private key by having your public key. At least that is how I understand it.
Stephen Gornick
Legendary
*
Offline Offline

Activity: 2506
Merit: 1010


View Profile
March 14, 2013, 03:15:38 AM
 #7

I was almost certain that one cannot derive the other key in the pair simply by possessing one of the keys in the pair.

Private key to public key: Yes.

Public key to private key: No.

Quote
This private key is converted to a public key by performing an EC point multiplication with the curve's base point. The result is an (x,y) coordinate pair, which constitutes the public key.
- http://bitcoin.stackexchange.com/a/3610/153

Unichange.me

            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █


xdaxdb (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
March 14, 2013, 03:20:23 AM
 #8

Well I guess i just learned something... do you know if this is unique to elliptic curve or is that true for say Diffie–Hellman as well?
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!