It was the Bitcointalk forum that inspired us to create Bitcointalksearch.org - Bitcointalk is an excellent site that should be the default page for anybody dealing in cryptocurrency, since it is a virtual gold-mine of data. However, our experience and user feedback led us create our site; Bitcointalk's search is slow, and difficult to get the results you need, because you need to log in first to find anything useful - furthermore, there are rate limiters for their search functionality.
The aim of our project is to create a faster website that yields more results and faster without having to create an account and eliminate the need to log in - your personal data, therefore, will never be in jeopardy since we are not asking for any of your data and you don't need to provide them to use our site with all of its capabilities.
We created this website with the sole purpose of users being able to search quickly and efficiently in the field of cryptocurrency so they will have access to the latest and most accurate information and thereby assisting the crypto-community at large.
private_keys = list(map(secrets.randbelow,n))
#!/usr/bin/env python3
# 2023/Jan/01, citb0in_multicore_secrets.py
import concurrent.futures
import os
import secrets
import secp256k1 as ice
# how many cores to use
num_cores = 10
#num_cores = os.cpu_count()
# Set the number of addresses to generate
num_addresses = 10000000
# Define a worker function that generates a batch of addresses and returns them
def worker(start, end, i):
# Generate a list of random private keys using "secrets" library
n = [0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141] * (end - start) #n
one = [1] * (end - start)
my_secure_rng = secrets.SystemRandom()
private_keys = list(map(my_secure_rng.randrange,one,n)) #from 1 to n-1
# Use secp256k1 to convert the private keys to addresses
addr_type = [2] * (end - start)
is_compressed = [True] * (end - start)
thread_addresses = list(map(ice.privatekey_to_address, addr_type, is_compressed, private_keys))
# Write the addresses in the thread file
f = open("addresses_1M_multicore_secrets" + str(i) + ".txt", "w")
list(map(lambda x:f.write(x+"\n"),thread_addresses))
#####or, if you want to store the private keys, along with the addresses###############
#list(map(lambda x,y: f.write(hex(x)[2:].rjust(64,'0') + ' -> ' + y + '\n'),private_keys,thread_addresses)
f.close()
return
# Use a ProcessPoolExecutor to generate the addresses in parallel
with concurrent.futures.ProcessPoolExecutor() as executor:
# Divide the addresses evenly among the available CPU cores
addresses_per_core = num_addresses // num_cores
# Submit a task for each batch of addresses to the executor
tasks = []
for i in range(num_cores):
start = i * addresses_per_core
end = (i+1) * addresses_per_core
tasks.append(executor.submit(worker, start, end, i))
with open("addresses_1M_multicore_secrets" + str(i) + ".txt", "a") as f:
f.write(f'{thred_addresses}n')
private_keys = list(map(secrets.randbelow,n))
$ time python3 citb0in_multicore_secrets.py
$ time python3 citb0in_multicore_secrets_splitsave.py
#!/usr/bin/env python3
# 2023/Jan/01, citb0in_multicore_secrets.py
import concurrent.futures
import os
import secrets
import secp256k1 as ice
# how many cores to use
num_cores = 10
#num_cores = os.cpu_count()
# Set the number of addresses to generate
num_addresses = 10000000
# Define a worker function that generates a batch of addresses and returns them
def worker(start, end, i):
addr_type = [2] * (end - start)
is_compressed = [True] * (end - start)
n = [0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141] * (end - start)
f = open("addresses_1M_multicore_secrets" + str(i) + ".txt", "w")
# Generate a list of random private keys using "secrets" library
private_keys = list(map(secrets.randbelow,n))
# Use secp256k1 to convert the private keys to addresses
thread_addresses = list(map(ice.privatekey_to_address, addr_type, is_compressed, private_keys))
# Write the addresses in the thread file
list(map(lambda x:f.write(x+"\n"),thread_addresses))
f.close()
return
# Use a ProcessPoolExecutor to generate the addresses in parallel
with concurrent.futures.ProcessPoolExecutor() as executor:
# Divide the addresses evenly among the available CPU cores
addresses_per_core = num_addresses // num_cores
# Submit a task for each batch of addresses to the executor
tasks = []
for i in range(num_cores):
start = i * addresses_per_core
end = (i+1) * addresses_per_core
tasks.append(executor.submit(worker, start, end, i))
$ time python3 citb0in_multicore_secrets.py
$ time python3 citb0in_multicore_secrets_splitsave.py
[...]
np.savetxt('addresses_1M_multicore_secrets'+ str(i) +'.txt', thread_addresses, fmt='%s')
return
[...]
[...]
np.savetxt('addresses_1M_multicore_secrets'+ str(i) +'.txt', thread_addresses, fmt='%s')
return
[...]
#!/usr/bin/env python3
# 2022/Dec/26, [b]citb0in_seq.py[/b]
import concurrent.futures
import os
import numpy as np
import secp256k1 as ice
# how many cores to use
num_cores = 1
#num_cores = os.cpu_count()
# Number of addresses to generate
num_addresses = 1000000
# Starting point (decimal/integer) for private key
starting_point = 123456789
# Define a worker function that generates a batch of addresses and returns them
def worker(start, end, starting_point):
# Initialize the private key to the starting point
private_key = starting_point
# Initialize the list to hold to private keys
private_keys = []
# Generate a batch of private keys sequentially
for i in range(start, end):
# Increment the private key
private_key += 1
# Add the private key to the list
private_keys.append(private_key)
# Use secp256k1 to convert the private keys to addresses
thread_addresses = np.array([ice.privatekey_to_address(2, True, dec) for dec in private_keys])
return thread_addresses
#return (thread_addresses, private_keys, start_int)
# Use a ProcessPoolExecutor to generate the addresses in parallel
with concurrent.futures.ProcessPoolExecutor() as executor:
# Divide the addresses evenly among the available CPU cores
addresses_per_core = num_addresses // num_cores
# Submit a task for each batch of addresses to the executor
tasks = []
for i in range(num_cores):
start = i * addresses_per_core
end = (i+1) * addresses_per_core
tasks.append(executor.submit(worker, start, end, starting_point))
# Wait for the tasks to complete and retrieve the results
addresses = []
for task in concurrent.futures.as_completed(tasks):
addresses.extend(task.result())
# Write the addresses to a file
np.savetxt('addresses_1M_seq_singlecore.txt', addresses, fmt='%s')
# Starting point (decimal/integer) for private key
starting_point = 123456789
# Define a worker function that generates a batch of addresses and returns them
def worker(start, end, starting_point):
# Initialize the private key to the starting point
private_key = starting_point
# Initialize the list to hold to private keys
private_keys = []
# Generate a batch of private keys sequentially
for i in range(start, end):
# Increment the private key
private_key += 1 #TODO why not use a large prime number instead of 1? 1 is not random at all, but a few dozen bits varying at once can be made to look random to others.
#!/usr/bin/env python3
# 2023/Jan/01, citb0in_multicore_secrets.py
import concurrent.futures
import os
import numpy as np
import secrets
import secp256k1 as ice
# how many cores to use
#num_cores = 1
num_cores = os.cpu_count()
# Set the number of addresses to generate
num_addresses = 1000000
# Define a worker function that generates a batch of addresses and returns them
def worker(start, end):
# Generate a NumPy array of random private keys using "secrets" library
private_keys = np.array([secrets.randbelow(2**256) for _ in range(start, end)])
# Use secp256k1 to convert the private keys to addresses
thread_addresses = np.array([ice.privatekey_to_address(2, True, dec) for dec in private_keys])
return thread_addresses
# Use a ProcessPoolExecutor to generate the addresses in parallel
with concurrent.futures.ProcessPoolExecutor() as executor:
# Divide the addresses evenly among the available CPU cores
addresses_per_core = num_addresses // num_cores
# Submit a task for each batch of addresses to the executor
tasks = []
for i in range(num_cores):
start = i * addresses_per_core
end = (i+1) * addresses_per_core
tasks.append(executor.submit(worker, start, end))
# Wait for the tasks to complete and retrieve the results
addresses = []
for task in concurrent.futures.as_completed(tasks):
addresses.extend(task.result())
# Write the addresses to a file
np.savetxt('addresses_1M_multicore_secrets.txt', addresses, fmt='%s')
#!/usr/bin/env python3
# 2023/Jan/01, citb0in_multicore_secrets.py
import concurrent.futures
import os
import numpy as np
import secrets
import secp256k1 as ice
# how many cores to use
#num_cores = 1
num_cores = os.cpu_count()
# Set the number of addresses to generate
num_addresses = 1000000
# Define a worker function that generates a batch of addresses and returns them
def worker(start, end, i):
# Generate a NumPy array of random private keys using "secrets" library
private_keys = np.array([secrets.randbelow(2**256) for _ in range(start, end)])
# Use secp256k1 to convert the private keys to addresses
thread_addresses = np.array([ice.privatekey_to_address(2, True, dec) for dec in private_keys])
np.savetxt('addresses_1M_multicore_secrets'+ str(i) +'.txt', thread_addresses, fmt='%s')
return
# Use a ProcessPoolExecutor to generate the addresses in parallel
with concurrent.futures.ProcessPoolExecutor() as executor:
# Divide the addresses evenly among the available CPU cores
addresses_per_core = num_addresses // num_cores
# Submit a task for each batch of addresses to the executor
tasks = []
for i in range(num_cores):
start = i * addresses_per_core
end = (i+1) * addresses_per_core
tasks.append(executor.submit(worker, start, end, i))