![blockchain wallet private key blockchain wallet private key](https://i.ytimg.com/vi/zbEoRGiONCs/maxresdefault.jpg)
It takes 0.0032457721 seconds for this progam to brute force a single Bitcoin address. This program also utilizes multiprocessing through the multiprocessing.Process() function in order to make concurrent calculations. The generated address is searched within the database, and if it is found that the address has a balance, then the private key, public key and wallet address are saved to the text file plutus.txt on the user's hard drive.
![blockchain wallet private key blockchain wallet private key](https://cyberbump.net/wp-content/uploads/2021/12/1638771080_maxresdefault.jpg)
Then the public keys are converted into their Bitcoin wallet addresses using the binascii and hashlib standard libraries.Ī pre-calculated database of every P2PKH Bitcoin address with a positive balance is included in this project. The private keys are converted into their respective public keys using the starkbank-ecdsa Python module. Private keys are generated randomly to create a 32 byte hexidecimal string using the cryptographically secure os.urandom() function. The ultimate goal is to randomly find a wallet with a balance out of the 2 160 possible wallets in existence. If a wallet with a balance is found, then the private key, public key and wallet address are saved to the text file plutus.txt on the user's hard drive. It continuously generates random Bitcoin private keys, converts the private keys into their respective wallet addresses, then checks the balance of the addresses. This program is essentially a brute forcing algorithm. However, because it is impossible to know which private keys control wallets with money and which private keys control empty wallets, we have to randomly look at every possible private key that exists and hope to find one that has a balance.
![blockchain wallet private key blockchain wallet private key](https://i.pinimg.com/originals/f9/2e/1f/f92e1ff84c414ae251858d362120688f.png)
So this program attempts to find Bitcoin private keys that correlate to wallets with positive balances. If a wallet has Bitcoins in it, then the private key will allow a person to control the wallet and spend whatever balance the wallet has. A private key is a secret number that allows Bitcoins to be spent.