Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

But no private keys,only public keys #1

Open
gclsoft opened this issue Dec 19, 2013 · 2 comments
Open

But no private keys,only public keys #1

gclsoft opened this issue Dec 19, 2013 · 2 comments

Comments

@gclsoft
Copy link

gclsoft commented Dec 19, 2013

The results:

D:\C\tool\vanitygen\pycoin>python vanitygen.py
Search string:  1g
Running vanitygen with 2 threads
1g4EByz4Pz2ZcqZYiZEiS9Tk7BK21t8Gx
1gH9UndQcgTj51ftp4sYoRKwvFbjQb1L9
414 Keys/s
0 Keys/s
0 Keys/s

! Received keyboard interrupt, quitting threads.

There's no privates keys.How to print privates keys?

I uncommented the source:

    def print_keys(self):
        print public_key_to_bc_address(point_to_public_key(self.point))
        print private_key_to_bc_format(point_to_private_key(self.point, self.secret))

But the private keys are not right:

Search string:  1g
Running vanitygen with 2 threads
1gEifBFGBwpYfXkbCY7jypv2CCGpK9PcC
2LaAwBmJ5qnsKcW94RXT3gwJH1K2LvErgHwa5zMi2ARUwJp2JsWe6ErYNLewSgWeqM6yKMdCsy52KqSp2EmrUxJDtrsTxZTpMCK6t3o5NMdXMQnbS937XtjEHL7AqXqyRjf6FpZN3426ibesYujorZzZQPeNhi9vkdjQCTA8K8WmbTRanbAh8SG5QTymfJ9JgY5BCjvp2epgKQGJtg62cVwqEBQrhaZiBvGSthoJ8UyCp2RpDyzWs1UQg5UEGZbCn6YjsLvvmHbdKXSemBTR64HRRzPLqRbQ9B7FdA1Cyrzi9gjfPvGKoBwhznyD5NMKkCadgNcPjCdkemTHrtcN4xayVgSxNaTLHMWYd4i3hdQV92qRxKfqpxw3iMuw3Ehytmx
1g3hmU7Ry1qF2p44bUBxFEeYeVrz5U1KT
2LaAwBmJ5qnsKcW94RXT3gwJH1K2LvErgHwawDv6SjDdwB2yMxPHwTcZx9TnCNapLeZnDdDiK2DmrW56X2t1NvhZS3KjzN37KCXWmLJRAXDjvy61pf7Jho8obeDK6GUMqYJo28cAW9L5nebyREWqb338kr22Bps4HpGo4rJu1V4ifu2BUyfe367B5ZaebZyjZwEreqpakGGh4dC8kXabWgTyHKfbo6Aoztxz5ac5os9SFxgekLUvHq4qzj2TzkyCcGHunGfB2nmz68Q4SAQ4oVvBHbZrz5ThNPBRmeLGm9iNp7E4gHKGD38dhrGqTWNEoaMHTMB3tggwRDrZSmxK3rS2Rosrug9ay6mUexnpDGUcsQ223hLQXnXCWBBnNWUeAKU
1059 Keys/s
0 Keys/s
0 Keys/s
0 Keys/s

Thanks very much!

@henrikssn
Copy link
Owner

They are correct, probably just using a format you are not used to. See the function point_to_private_key and change it to print the format you want.

Maybe these links are useful
https://en.bitcoin.it/wiki/Wallet_import_format
https://github.com/jackjack-jj/pywallet/blob/master/pywallet.py

@FaSan
Copy link

FaSan commented Apr 12, 2014

Generated Privkey are not in a Bitcoin compatible format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants