import codecs import ecdsa from Crypto.Hash import keccak import binascii import random import secrets from joblib import Parallel, delayed import string_utils import streamlit as st f = open("Final.txt", "r") file_1_text = f.readlines() Result = open("Result.txt", "a") st.success("Result file loaded") wallet_len = 40 st.success("Address file loaded") st.success("Result file loaded") i = 0 for x in range(10000000): entropy = secrets.token_hex(32) i = i + 1 if (len(entropy) == 64): data = entropy.strip() data = binascii.unhexlify(data) if len(data) not in [16, 20, 24, 28, 32]: raise ValueError("Data length should be one of the following: [16, 20, 24, 28, 32], but it is not (%d)." % len(data)) else: continue private_key = entropy private_key_bytes = codecs.decode(private_key, 'hex') key = ecdsa.SigningKey.from_string(private_key_bytes, curve=ecdsa.SECP256k1).verifying_key key_bytes = key.to_string() key_hex = codecs.encode(key_bytes, 'hex') public_key_bytes = codecs.decode(key_hex, 'hex') keccak_hash = keccak.new(digest_bits=256) keccak_hash.update(public_key_bytes) keccak_digest = keccak_hash.hexdigest() wallet = '0x' + keccak_digest[-wallet_len:] print(i) for addr in file_1_text: addr = addr.strip() if addr.casefold() == wallet.casefold(): st.success("Private Key: " + private_key) st.success("Public Address: " + wallet) Result.write(wallet) Result.write("\n") Result.write(private_key) Result.write("\n") Result.write("\n") print("Congratulations") st.warning('Try again', icon="⚠️") f.close() Result.close()