tronprotocol / tron-deployment

tron main net conf
169 stars 363 forks source link

python import hashlib def hash_bitcoin_address(address): # Convert the address to bytes address_bytes = bytes(address, 'utf-8') # Perform double SHA256 hash sha256_hash = hashlib.sha256(address_bytes).digest() double_sha256_hash = hashlib.sha256(sha256_hash).digest() # Return the hash as a hexadecimal string return double_sha256_hash.hex() # Example usage bitcoin_address = "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa" hashed_address = hash_bitcoin_address() print(":bc1q9f526ypqvtxam6d09yjr387kymhjr4pzt4vvhw", hashed_address) ``` 62e907b15cbf27d5425399ebf6f0fb50ebb88f18 #112

Closed Notmanhero closed 4 months ago

Notmanhero commented 4 months ago

Done