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

Wrong bitcoin addresses #1

Open
geek-at opened this issue Jul 25, 2016 · 2 comments
Open

Wrong bitcoin addresses #1

geek-at opened this issue Jul 25, 2016 · 2 comments

Comments

@geek-at
Copy link

geek-at commented Jul 25, 2016

Hello I tried your script and I'm not sure if it works properly.

When I generate private keys it has a 1/3 chance to produce false addresses.

Even when I put your example private key into the calculator over at Offlinebitcoins.com it results in a different address (14zggAyXXCpjQA4mNLU7cbLs294RbpNM3D as oppose of your key from the README file: 1KzWzshpyzS4Udmr2RLLTaiMNtPTKTRewh)

Also if I import the private key into a wallet I also get the 14zggAyXXCpjQA4mNLU7cbLs294RbpNM3D address.

Am I missing something here?

@bomboem
Copy link

bomboem commented Jan 18, 2018

As far as I know, A bitcoin private key has a core public key, a "short" public key (the one most wallets use, i don't remeber the name, sorry) and A compressed key. Its could be this software returns the compressed key, and that's not the same. Not sure though. You could check it by transferring a small amount of btc to the wallet and check if ypu can reach it using the private key. And if not, you can still use any other php script to create the paired public key.

@vv01f
Copy link

vv01f commented Jul 21, 2018

@bomboem to check key to address you will just try signature and verification or other software to generate the pubkey from privkey – no risking of btc needed

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