Bitcoin Forum
June 20, 2024, 04:41:20 AM *
News: Voting for pizza day contest
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Bitcoin Discussion / Re: Bitcoin puzzle transaction ~32 BTC prize to who solves it on: May 29, 2024, 05:06:53 PM
I searched and couldn't find anything in C++. The computer is capable of generating at least 100 million keys per second. But all the scripts I found are very slow. You just need the hex to be in a separate file and the public keys to be in a separate file. Thank you very much in advance if anyone decides to help.

What world do you live in, in which the computer can generate "at least 100 million keys per second", I wanna move there.

If you are simply talking about a private key, then a "computer" can generate "number of cores" * "core frequency" private keys per second, but what the hell are you gonna do with a bunch of numbers?

Do you understand the difference between a public key and a private key, and how the first one is computed through the second one? I mean, all the math that's required is not some simple a + b.



I know how and what is generated. I need this for my experiment, but at this rate it's a perversion. And my hardware is quite powerful, 72 cores and 128GB of RAM. The same keyhunt, when brute force, produces 350 million keys at maximum load. But I need exactly this algorithm, hex separately from the public key. So that when I found a public key from the list, I knew its hex.
2  Bitcoin / Bitcoin Discussion / Re: Bitcoin puzzle transaction ~32 BTC prize to who solves it on: May 29, 2024, 02:53:08 PM
Tell me, is there a quick python code for generating a hex private key in the required range? So that the result is saved in a text file. Well, then maybe there is a script to create a public key from this text file, also with saving. I just found some, but they are very slow, they generate 100 million hex per day, as well as public keys.

I searched and couldn't find anything in C++. The computer is capable of generating at least 100 million keys per second. But all the scripts I found are very slow. You just need the hex to be in a separate file and the public keys to be in a separate file. Thank you very much in advance if anyone decides to help.

First I generate hex with this code.

Code:
import random
path = './file.txt'
start = 21778071482940061661655974875633165533184

stop = 27222589353675077077069968594541456916480


while start <= stop:
  step = random.randint(start,stop)
  start + step
  print('0000000000000000000000000000000' + hex(step).lstrip("0x"))
with open(path, 'w+') as f:
   f.write('0000000000000000000000000000000' + hex(step).lstrip("0x"))

Relatively fast, but still slow

Next, I generate wif from hex

Code:
import binascii, hashlib, base58, sys
arq = open('WIF.txt', 'w')

def convert(z):

    private_key_static = z

    extended_key = "80"+private_key_static+"01"

    first_sha256 = hashlib.sha256(binascii.unhexlify(extended_key)).hexdigest()

    second_sha256 = hashlib.sha256(binascii.unhexlify(first_sha256)).hexdigest()

    final_key = extended_key+second_sha256[:8]

    WIF = base58.b58encode(binascii.unhexlify(final_key)).decode ('ascii')


    arq.write("%s \n" % WIF)

with open("file.txt") as file:
    for line in file:
        print (str.strip(line))
        convert(str.strip(line))

And it's sooooo slow

And at the end I generate a public key from wif

from bitcoin import *

Code:
with open("WIF.txt") as f:
for line in f:
print(privtopub((line.strip())))

I won’t do anything this way even before retirement.
3  Bitcoin / Bitcoin Discussion / Re: Bitcoin puzzle transaction ~32 BTC prize to who solves it on: May 03, 2024, 03:21:27 PM
I have a question. Maybe someone will help.
How to do it like this.
Let's say the decimal is generated using multiplication. For example, multiply 10 by 2, we get 20 and convert it into a hex, and then into a public key and compare the resulting key with the one we are looking for. For example, you need to set 10 and the number needs to be multiplied from 1 to 10000 and then checked.
So is it possible to implement the script?
4  Local / Новички / Re: Как сгенерировать 150 000 000 адресов в кошельке on: January 08, 2020, 08:23:23 PM
Если поставить комиссию больше чем сайт, то сработает твоя транзакция
Наивность. Ты просто даже не узнаешь ,что на данной странице был ключ с битками.
Написаный скрипт автоматически подменит информацию.
5  Local / Кодеры / Пофиксить скрипт генерации и проверки on: December 18, 2019, 07:20:00 AM
Нашел вот в инете хороший скрипт для преобразования фраз в ключи и проверки их баланса.
Мне именно такой и нужен, что-бы каждую строку в моем файле он генерировал в ключ и проверял баланс.
многие что попадались, либо рандом всех строк и делали либо без проверки.
Cкрипт запускаю на windows, установлен Perl с необходимыми модулями и Python 2.7, но проблема в том, что возникает ошибка в работе,
и судя по ошибке мне кажется что дело либо в неправильном Python, либо Perl не до концы обрабатывает.
 В итоге следующие ошибки валятся на binascii.

Code:
Argument "63817377318837108703037619166999229600686146013463616320..." isn't numeric in addition (+) at C:/Strawberry/perl/lib/Math/BigRat.pm line 1955.
Traceback (most recent call last):
Traceback (most recent call last):
  File "keyfmt.py", line 63, in <module>
  File "keyfmt.py", line 63, in <module>
        chksum = binascii.hexlify(hashlib.sha256(hashlib.sha256(binascii.unhexlify('80'+line)).digest()).digest()[:4])
chksum = binascii.hexlify(hashlib.sha256(hashlib.sha256(binascii.unhexlify('80'+line)).digest()).digest()[:4])
TypeErrorTypeError: : NNon-hexadecimal digit foundon-hexadecimal digit found

Error GETing https://blockexplorer.com/api/addr//totalReceived: Not Found at btc_sweeper.pl line 157.
Error GETing https://blockexplorer.com/api/addr//totalReceived: Not Found at btc_sweeper.pl line 157.
No message received from child process -748!
No message received from child process -8144!
Argument "750/29" isn't numeric in addition (+) at C:/Strawberry/perl/lib/Math/BigRat.pm line 1955.
Use of uninitialized value in concatenation (.) or string at btc_sweeper.pl line 199.

Скрипт находится тут https://github.com/LR2/Bitcoin-Sweeper

Буду очень рад в вашей помощи ))
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!