Bitcoin Forum
June 21, 2024, 10:31:28 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Development & Technical Discussion / Re: Pywallet 2.2: manage your wallet [Update required] on: March 22, 2017, 07:07:45 PM

Oh it's for an altcoin! The problem must be this.
Please create a dummy address in your client then export the coresponding private key through the console and post it here.
I highly advise you to delete the address afterwards.
Thanks to this I'll be able to know which leading byte your altcoin uses to export private keys.

PS: without quotation marks

As you indicated me I made a dumpprivkey created and removed for the occasion wallet and this is what it returns me:

WnPrHA434nWat8CL131TTsZ3w2GYXm15ConQfcMjpNg2zwiG2kJB

I have taken other privatekeys and let you know that all start with W

It does not look anything like the PrivateKey to recover remanded me, 52 characters instead of 64 characters.

Let me know if you can do something about it.
greetings

Great!

I changed pywallet a bit to make a script for you
I just added those lines (do a diff before running it if you want):
Code:
	if len(sys.argv[1])==64:
print EncodeBase58Check(chr(201)+(sys.argv[1]).decode('hex')+'\x01')
else:
print 'bad private key length (%d)'%len(sys.argv[1])
exit()
The result is here: http://pastebin.com/raw.php?i=VYJkFfMc
Just save it to privkey.py then
Code:
python privkey.py 2a5b4c4e1d5f...(64 hexadecimal characters)

Hi!!

First of all, thank you to let me pass to this awesome bitcoin world. Although I know it since years I totally disconnected of it, and that is a big amount of time. I am totally outdated. So, I have a wallet.dat, I used the pywallet.py to extract the privkeys of the addresses I wanted, and now I want to do a transfer to another wallet (blockchain). So here comes the problem. Since blockchain seems to ask for a private key to manage the external adresses (otherwise they are watch-only mode), the privkeys I've got are hex. I'd like to convert them to base58. For that reason I quoted this message. Because I don't know where to put and how to run these few code lines  to obtain what I want Cry (I'm totally newbie in python).

Than k you very much for any help!
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!