Post
Topic
Board Development & Technical Discussion
Re: Simple Program to Reveal Bitcoin address from Private Keys
by
seoincorporation
on 22/07/2019, 19:33:26 UTC
I have thousands of old bitcoin private keys. Is there a program to reveal the bitcoins address on this private keys?
Or is there a simple programming code to convert the private keys to bitcoin address?

You can use this script

https://gist.github.com/dooglus/3b1fcbc2449063a1c3f7f1003ca26447

Good luck

note that this code doesn't give you "addresses" (which is what OP is looking for), instead it gives you public keys and that only in uncompressed form which you have to first decide whether you want to use the compressed or uncompressed type then you have to hash them and do the address encoding (base58 or bech32) to get the respective addresses.

If the goal is to only get the address i think OP should take a look to this link about how to generate a bitcoin address step by step, if OP understands the theory about it he will be able to code his own script to get the addys of all those privatekeys.

https://medium.com/coinmonks/how-to-generate-a-bitcoin-address-step-by-step-9d7fcbf1ad0b