Bitcoin Forum
May 05, 2024, 08:22:18 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: dumpprivkey problem (resolved. compressed address <> uncompressed address)  (Read 735 times)
Krona Rev (OP)
Full Member
***
Offline Offline

Activity: 129
Merit: 100



View Profile
December 15, 2014, 11:20:33 AM
Last edit: December 15, 2014, 04:06:30 PM by Krona Rev
 #1

I need the private key for an address in my wallet. I unlocked the wallet, used dumpprivkey and it gave me something of the form

Kzb...

My understanding is that this is the WIF for a "compressed" private key and is base58 for

x80 (prefix byte) [32 bytes (actual private key)] x01 [4 bytes (checksum)]

However, when I extract those 32 bytes as a big-endian 256-bit number and compute the public key and address from it, I do not get the address I started with.

Am I misunderstanding the format of the private key? If not, maybe I'll generate a fresh empty wallet and post full details with an unused address and the result of dumpprivkey.

I'm using bitcoin-qt 0.9.3 on linux (Tails).
---------------------
Edit: Never mind. I get the right public key. I was computing an "uncompressed address" from it though. I need to compute a "compressed address."

Promechard: Proprietary Metablock Chains for Arbitrary Data: https://bitcointalk.org/index.php?topic=411974.0
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!