Search content
Sort by

Showing 7 of 7 results by mitkopasa
Post
Topic
Board Bitcoin Discussion
Re: Bitcoin puzzle transaction ~32 BTC prize to who solves it
by
mitkopasa
on 09/04/2025, 19:20:55 UTC
Could you please convert the following Python code to C++ using the libraries in Mutagen? In this code, I am creating a 69-bit binary, but 32 to 35 of them are 1's and 1's can come in a row at most 6 times.  This python speed is very low. I think i can search faster with sha256_avx2 and ripemd160_avx2. However, I don't know C++ and I couldn't figure out how to integrate the codes in the mutagen.

Code:
import random
import numpy as np
import time
import os
import multiprocessing
from multiprocessing import Pool
import secp256k1 as ice
from random import sample


r = 0
cores=1

def generate_random_bits(n, k):
    while True:
        # Initially all digits are 0
        bits = ['0'] * n
        # Generate random 1
        positions = random.sample(range(n), k)
        for pos in positions:
            bits[pos] = '1'
       
        # How many 1's can in a row?
        if is_valid_combination(bits,max_consecutive_ones):
            return ''.join(bits)

def is_valid_combination(bits,max_consecutive_ones):
    count = 0
    for bit in bits:
        if bit == '1':
            count += 1
            if count > max_consecutive_ones:  # limit for consecutive ones
                return False
        else:
            count = 0
    return True

def priv_key(n, k):
    while True:
        random_bits = generate_random_bits(n, k)
        decimal_representation = int(random_bits, 2)
        if 2**(n-1) < decimal_representation < 2**n:
           return decimal_representation

# Parameters
n = 69  # Puzzle number
max_consecutive_ones = 6  # limit for consecutive ones

def seek(r):
    global num_threads
    LOG_EVERY_N = 100000
    start_time = time.time()
    i = 0
    print("Core " + str(r) +":  Searching Private Key..")
    db = '61eb8a50c86b0584bb727dd65bed8d2400d6d5aa'
    while True:
        i=i+1
        k = random.randrange(32, 35) # How many 1's are there?
        private_key = priv_key(n,k)
        #print(private_key)
#public_key = privtopub(private_key)       
        addr = ice.privatekey_to_h160(0, True, private_key).hex()
        time_diff = time.time() - start_time
        if (i % LOG_EVERY_N) == 0:
            print('Itaration :'+str(i)+" K/s = "+ str(i / time_diff))

        if addr in db:
            f = open('KEYFOUND_KEYFOUND_KEYFOUND.txt','a')
            print ('------------------------------------------------------------------------- ')
            print ('!!! ---- KEYFOUND KEYFOUND KEYFOUND!!! ---- ' )
            print('Key: ', hex(private_key)[2:] )
            print('Adress: ', addr )
            f.write(hex(private_key)[2:])
            f.write('     ')
            f.write(addr)
            f.write('\n')
            f.close()
            time.sleep(10)
            print ('------------------------------------------------------------------------- ')


if __name__ == '__main__':
jobs = []
for r in range(cores):
p = multiprocessing.Process(target=seek, args=(r,))
jobs.append(p)
p.start() 
Post
Topic
Board Bitcoin Discussion
Re: Bitcoin puzzle transaction ~32 BTC prize to who solves it
by
mitkopasa
on 23/02/2025, 07:19:49 UTC
puzzle 66 was found by a newbie and stolen by bots.
Now Mara has been discovered. But there are not many people who know how to use it. So helping people
If anyone knows how to use Mara. A detailed explanation would be helpful. Maybe someone lucky will find it, don't let the bots lose it.

1- First, you perform the transaction here. You take raw TX out.
https://bitcoin.stackexchange.com/questions/103452/how-to-create-a-signed-transaction-offline-using-electrum

2- Go to slipstream.mara.com and paste it, and follow what is given to you.

It's that simple. Smiley

Thanks for the info. but according to the link you gave, won't the publickey be exposed when I sign raw tx in my electrum? in this way, aren't we actually broadcasting the transaction? Also, I didn't see such a step in the new version electrum. the question I asked may seem simple and funny to you, but I am trying to understand how people like me who don't know much can achieve this.

Did you read what I wrote, months back?

https://bitcointalk.org/index.php?topic=1306983.msg64379149#msg64379149

thank you WanderingPhilospher and bibilgin. I think I will test it first with a small amount of value.
Post
Topic
Board Bitcoin Discussion
Re: Bitcoin puzzle transaction ~32 BTC prize to who solves it
by
mitkopasa
on 22/02/2025, 14:15:46 UTC
puzzle 66 was found by a newbie and stolen by bots.
Now Mara has been discovered. But there are not many people who know how to use it. So helping people
If anyone knows how to use Mara. A detailed explanation would be helpful. Maybe someone lucky will find it, don't let the bots lose it.

1- First, you perform the transaction here. You take raw TX out.
https://bitcoin.stackexchange.com/questions/103452/how-to-create-a-signed-transaction-offline-using-electrum

2- Go to slipstream.mara.com and paste it, and follow what is given to you.

It's that simple. Smiley

Thanks for the info. but according to the link you gave, won't the publickey be exposed when I sign raw tx in my electrum? in this way, aren't we actually broadcasting the transaction? Also, I didn't see such a step in the new version electrum. the question I asked may seem simple and funny to you, but I am trying to understand how people like me who don't know much can achieve this.
Post
Topic
Board Bitcoin Discussion
Re: Bitcoin puzzle transaction ~32 BTC prize to who solves it
by
mitkopasa
on 21/02/2025, 12:48:05 UTC
Can anyone share how to create the raw tx for MARA step by step and what code I need to create this tx?
Post
Topic
Board Development & Technical Discussion
Re: Solving ECDLP with Kangaroos: Part 1 + 2 + RCKangaroo
by
mitkopasa
on 28/12/2024, 07:36:49 UTC
Because I am searching by dividing the whole range into smaller ranges. Even though I used -range option, it does not terminate and continues searching. However, the -max option in V3 can solve this problem. I haven't tried it yet, but I will try, thanks.

Hello, thank you very much for your work! Sir, could you also add the -end function to indicate the end of a range? I think many people here would like to break a large range into small ones and go through it)

Why don't you want to use "-range" for that?
Post
Topic
Board Development & Technical Discussion
Re: Solving ECDLP with Kangaroos: Part 1 + 2 + RCKangaroo
by
mitkopasa
on 26/12/2024, 19:14:01 UTC
Hi,

Can you add end range to the code? I want to search for narrower ranges.
Post
Topic
Board Bitcoin Discussion
Re: Bitcoin puzzle transaction ~32 BTC prize to who solves it
by
mitkopasa
on 24/09/2024, 05:29:46 UTC
i think that puzzle130 solved by albertobsd Smiley transfered adress very similar with his adress (1Prestige1zSYorBdz94KA2UbJW3hYLTn4).

1Coffee1
1Prestige1