Bitcoin Forum

Other => Beginners & Help => Topic started by: soma13 on October 13, 2012, 02:13:48 AM



Title: Problem with private key import/export.
Post by: soma13 on October 13, 2012, 02:13:48 AM
I'm having private key issues.  I dumped some devcoins on a cold bitcoin address expecting to import the key into the devcoin client at a later date. Unfortunately it wasn't what I expected.

--For demonstration purposes on a throw-away address--

Using joric's pywallet with password on encrypted wallet, or rpc on both encrypted and unencrypted wallets I get:

        {
            "addr": "13E4sDkWHMBJqFe9yFWM1JyBmJz5LZKUEL",
            "label": "p2pmining",
            "sec": "L5iyipTyQ6kHHcumG2ihbBnqJFGBq9nXY53Mmp3uPBg5FE82vNTC"
        },

   

with jackjack's pywallet on unencrypted backup
 
       {
            "addr": "13E4sDkWHMBJqFe9yFWM1JyBmJz5LZKUEL",
            "hexsec": "c17449119f6cc1857f07d3cb53868b8df79b20d8c5a282d88ae19cb7d67ceba0",
            "label": "p2pmining",
            "sec": "5KHV7MizuJ9FXfoK1jongbYeAHiDL49FAQphAyoUgJ8jUrJi56i"
        },

when entering jackjack's keys in pywallet or bitcoin address utility, sec and hexsec match but return 1GHBZWaFFMfRh7AebRagZzkB7McaCZ5DPs as address instead of the 13E4sDkWHMBJqFe9yFWM1JyBmJz5LZKUEL address.  The key from the other methods only gets error messages.  I've imported keys from vanitygen before and everything was fine.  What am I doing wrong?


Title: Re: Problem with private key import/export.
Post by: Joric on October 27, 2012, 07:47:40 AM
L5iyipTyQ6kHHcumG2ihbBnqJFGBq9nXY53Mmp3uPBg5FE82vNTC is a valid private key for the "compressed" pubkey of 13E4sDkWHMBJqFe9yFWM1JyBmJz5LZKUEL (secret exponent fdc17449119f6cc1857f07d3cb53868b8df79b20d8c5a282d88ae19cb7d67ceb). Blockchain.info imports it just fine.

Both 5KHV7MizuJ9FXfoK1jongbYeAHiDL49FAQphAyoUgJ8jUrJi56i and c17449119f6cc1857f07d3cb53868b8df79b20d8c5a282d88ae19cb7d67ceba0 are wrong.