Bitcoin Stack Exchange is a question and answer site for Bitcoin crypto-currency enthusiasts. It only takes a minute to sign up.
Sign up to join this communityAnybody can ask a question
Anybody can answer
The best answers are voted up and rise to the top
i try to generate list address bitcoin by code below but not worked, please help. Thanks
low = 0x2C45E9017ED4 #2^250 high = 0x2C45E9017fff #2^251 def prv(): while True: ran = (low,high,1) def doublehash(s): return sha256(sha256(s).digest()).digest() def hash160(s): return hashnew('ripemd160', sha256(s).digest()).digest() def doublehash_base58_checksum(s): return b58encode(s + doublehash(s)[:4]).decode("utf-8") def generate(): private_key = prv() wif = doublehash_base58_checksum(b'\x80' + private_key + b'\x01') pk = ecdsa.SigningKey.from_string(private_key, curve=ecdsa.curves.SECP256k1) public_key = pk.get_verifying_key().to_string(encoding="compressed") address = doublehash_base58_checksum(b'\x00' + hash160(public_key)) return private_key.hex(), wif, public_key.hex(), address private_key, wif, public_key, address = generate() print(f"Private Key : {private_key}") print(f"Private Key WIF : {wif}") print(f"Public Key : {public_key}") print(f"Bitcoin Address : {address}")
You can get bonuses upto $100 FREE BONUS when you:
π° Install these recommended apps:
π² SocialGood - 100% Crypto Back on Everyday Shopping
π² xPortal - The DeFi For The Next Billion
π² CryptoTab Browser - Lightweight, fast, and ready to mine!
π° Register on these recommended exchanges:
π‘ Binanceπ‘ Bitfinexπ‘ Bitmartπ‘ Bittrexπ‘ Bitget
π‘ CoinExπ‘ Crypto.comπ‘ Gate.ioπ‘ Huobiπ‘ Kucoin.
Comments