Bitcoin Forum
June 24, 2024, 12:24:59 AM *
News: Voting for pizza day contest
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 [3] 4 5 6 7 8 9 10 »
41  Bitcoin / Bitcoin Discussion / Re: Bitcoin puzzle transaction ~32 BTC prize to who solves it on: June 19, 2023, 06:58:36 PM
Can anyone suggest a Python script to subtract compressed public keys, like in the keymath program from albertobsd's ecctools library?

https://github.com/WanderingPhilosopher/Windows-KeySubtractor



Of course thanks, but I need a library or a python script.

import secp256k1 as ice

def ECsubtract(Q1,Q2):# compressed or uncompressed pubkey
    Q1=ice.pub2upub(Q1)
    Q2=ice.pub2upub(Q2)
    sub=ice.point_negation(Q2)# -Q2
    return (ice.point_additioni(Q1,sub).hex()) #Q1 - Q2



Will this code work or are you looking for something more advanced?

Thank you.
Quite suitable. I just didn't even think that this library has such functions. ))
42  Bitcoin / Bitcoin Discussion / Re: Bitcoin puzzle transaction ~32 BTC prize to who solves it on: June 19, 2023, 02:51:54 PM
Can anyone suggest a Python script to subtract compressed public keys, like in the keymath program from albertobsd's ecctools library?

https://github.com/WanderingPhilosopher/Windows-KeySubtractor



Of course thanks, but I need a library or a python script.
43  Bitcoin / Bitcoin Discussion / Re: Bitcoin puzzle transaction ~32 BTC prize to who solves it on: June 19, 2023, 07:24:38 AM
Can anyone suggest a Python script to subtract compressed public keys, like in the keymath program from albertobsd's ecctools library?
44  Bitcoin / Bitcoin Discussion / Re: Bitcoin puzzle transaction ~32 BTC prize to who solves it on: June 16, 2023, 04:44:56 AM
Here is my vision of cuda kangaroo https://github.com/Etayson/Etarkangaroo
Range limited to 192 bit, detecting dead kangaroos during merge, fast kangaroo initialization on GPU...


How to compile on linux?
45  Bitcoin / Development & Technical Discussion / Re: Pollard's kangaroo ECDLP solver on: April 28, 2023, 07:49:18 AM
Quote
Hi Eter,
It is possible to automatically printed output number of decimal; which are reduced.
Yes, are you wanting to print all results to a .txt file?

Hi,
I wanted to automatically printed output number of decimal; which are reduced through bit range.
As like: https://github.com/iceland2k14/quick/blob/main/PubSub.py

Could you please help me.

This is impossible. you can print many keys, but the chance is small that it will be correct
46  Bitcoin / Bitcoin Discussion / Re: Bitcoin puzzle transaction ~32 BTC prize to who solves it on: April 28, 2023, 02:30:48 AM
There are over $30m in bitcoins waiting to be collected, though for someone like him, this is some change in his pocket, still it's a lot of money and nobody in the world would do this other than Satoshi.

Asking him directly for money will surely upset him as it would upset anyone! Imagine if he gave some money to  somebody around here and people find out about it, there will be no puzzle solving discussions anymore but just people asking constantly for BTC, you have stated your case once, and if he is reading these topics as you suggested, if he wants to help you out, he should/would contact you privately and ask for an anonymous address as well as asking you not to tell anyone.

I doubt he'd do that though, I just said what I would do, but not for any random guy saying he just needs it, I would investigate your situation first and if I know you have contributed to the system then I would consider to lift some of your financial burdens.

Hope the best for you all.


#include <iostream>
#include <iomanip>
#include <fstream>
#include <sstream>
#include <string>
#include <gmpxx.h>
#include <secp256k1.h>
#include <openssl/ripemd.h>
#include <openssl/sha.h>
#include <vector>
#include <thread>
#include <mutex>
#include <chrono>
#include <omp.h>
#include <atomic>
#include <openssl/ec.h>
#include <openssl/bn.h>
#include <openssl/obj_mac.h>
std::mutex mtx;
std::atomic<bool> found(false);
std::string target_hash160 = "20d45a6a762535700ce9e0b216e31994335db8a5";
int partial_match_length = 6; // The length of the partial match, adjust as needed
bool is_partial_match(const std::string &hash160, const std::string &target_hash160, int match_length) {
    return hash160.substr(0, match_length) == target_hash160.substr(0, match_length);
}
std::string private_key_to_hash160(const std::string &private_key_hex, std::string &compressed_pubkey_hex) {
    // Create an EC_KEY object
    EC_KEY *ec_key = EC_KEY_new_by_curve_name(NID_secp256k1);
    BIGNUM *private_key_bn = BN_new();
    // Convert private key from hex to BIGNUM
    BN_hex2bn(&private_key_bn, private_key_hex.c_str());
    // Set the private key
    EC_KEY_set_private_key(ec_key, private_key_bn);
    // Calculate the public key
    EC_POINT *pub_key = EC_POINT_new(EC_KEY_get0_group(ec_key));
    EC_POINT_mul(EC_KEY_get0_group(ec_key), pub_key, private_key_bn, nullptr, nullptr, nullptr);
    EC_KEY_set_public_key(ec_key, pub_key);
    // Get the compressed public key
    unsigned char compressed_pubkey[33];
    EC_POINT_point2oct(EC_KEY_get0_group(ec_key), pub_key, POINT_CONVERSION_COMPRESSED, compressed_pubkey, 33, nullptr);
    // Convert compressed public key to hex string
    std::stringstream cpk_ss;
    cpk_ss << std::hex << std::setfill('0');
    for (int i = 0; i < 33; i++) {
        cpk_ss << std::setw(2) << static_cast<int>(compressed_pubkey);
    }
    compressed_pubkey_hex = cpk_ss.str();
    // Hash the public key
    unsigned char sha256_digest[SHA256_DIGEST_LENGTH];
    SHA256(compressed_pubkey, 33, sha256_digest);
    unsigned char ripemd160_digest[RIPEMD160_DIGEST_LENGTH];
    RIPEMD160(sha256_digest, SHA256_DIGEST_LENGTH, ripemd160_digest);
    // Convert Hash160 to hex string
    std::stringstream ss;
    ss << std::hex << std::setfill('0');
    for (int i = 0; i < RIPEMD160_DIGEST_LENGTH; i++) {
        ss << std::setw(2) << static_cast<int>(ripemd160_digest);
    }
    // Free memory
    EC_POINT_free(pub_key);
    BN_free(private_key_bn);
    EC_KEY_free(ec_key);
    return ss.str();
}
void generate_random_number(const mpz_class &min_range, const mpz_class &max_range, unsigned long long seed, int num_threads) {
    if (found) {
        return;
    }
    mpz_class range = max_range - min_range + 1;
    mpz_class subrange_size = range / num_threads;
    std::ofstream output_file("Found.txt", std::ios_base::app);
    std::ofstream partial_match_file("part.txt", std::ios_base::app);
    omp_set_num_threads(num_threads);
    #pragma omp parallel
    {
        int thread_id = omp_get_thread_num();
        mpz_class subrange_min = min_range + (subrange_size * thread_id);
        mpz_class subrange_max = (thread_id == num_threads - 1) ? max_range : subrange_min + subrange_size - 1;
        gmp_randstate_t rand_state;
        gmp_randinit_default(rand_state);
        for (unsigned long long i = 0; !found && i < ULLONG_MAX; i++) {
            unsigned long long thread_seed = seed + i;
            gmp_randseed_ui(rand_state, thread_seed);
            mpz_class random_number;
            mpz_class subrange = subrange_max - subrange_min + 1;
            mpz_urandomm(random_number.get_mpz_t(), rand_state, subrange.get_mpz_t());
            random_number += subrange_min;
            std::string private_key_hex = random_number.get_str(16);
            std::string compressed_pubkey_hex;
            std::string hash160 = private_key_to_hash160(private_key_hex, compressed_pubkey_hex);
            if (hash160 == target_hash160) {
                mtx.lock();
                output_file << private_key_hex << " " << hash160 << " " << compressed_pubkey_hex << std::endl;
                std::cout << "Found in subrange: [" << subrange_min << ", " << subrange_max << "]" << std::endl;
                mtx.unlock();
                found = true;
            } else if (is_partial_match(hash160, target_hash160, partial_match_length)) {
                mtx.lock();
                std::cout << private_key_hex << " " << hash160 << " " << compressed_pubkey_hex << std::endl;
                partial_match_file << private_key_hex << " " << hash160 << " " << compressed_pubkey_hex << std::endl;
                mtx.unlock();
            }
        }
        gmp_randclear(rand_state);
    }
    output_file.close();
    partial_match_file.close();
}
int main() {
    const int num_threads = 64; // Set the fixed number of threads to 64
    mpz_class min_range("36965545741457031167");
    mpz_class max_range("73714918700800278528");
    auto seed = std::chrono::high_resolution_clock::now().time_since_epoch().count();
    generate_random_number(min_range, max_range, seed, num_threads);
    if (found) {
        std::cout << "Target address found. Check Found.txt for details." << std::endl;
    } else {
        std::cout << "Target address not found." << std::endl;
    }
    return 0;
}

I just bought a new PC a couple of days ago and I am writing my own tool.
The tools I have seen here do not get 100% of the potential.
Some of the failures I see are:
Bad resource distribution (optimization)
misuse of CUDA+CPU+RAM


Very bad in Random Mode (is it intentional?)


it will be better this way?
47  Bitcoin / Development & Technical Discussion / Re: Pollard's kangaroo ECDLP solver on: April 27, 2023, 11:00:18 AM

That AI-generated version of my shiftdown is horseshit and will promptly be reported for spam.

Chat gpt version 4 considers the second option to be more visual and productive in terms of using intermediate results.  Grin
48  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN]🔥🔥🔥[ABTC] Alefaa-Bitcoin -🔥 Pre-ICO Started🔥🔥🔥 on: August 10, 2022, 06:47:32 PM

Why do you ask for the IP address in the application?
We are using the service of cloudflare.com, which allow us to authorize the IP address to visit a specific weblink, this means, only authorized IP addresses can mine as we only people who have access to a pool can mine ABTC. This will avoid the 51% attack, as each miner is registered, anyone using a higher hash rate to attack the ABTC blockchain, the company will sue him/her for the potential loss. And this will save the mining power, as we force all miners to use CPU to mine ABTC, not GPU or ASICs.
Is it safe to share the IP address?
Yes, it’s just for mining authorization purposes, and we will keep the IP address confidential. And it’s safe to share the IP address, you can ask your ISP to confirm the risk to share your IP, you will get the same answer.
How can I submit my application form as a miner?
Please use the following form to submit your application:
https://[Suspicious link removed]/3PHzzg5
When will I know if my application is approved?
We will contact you by email when your application is approved.
What email should I contact if I have any questions?
info@alefaa.com


Not all people have a white IP address.
Most providers provide a "gray" IP address.
What to do in this case?
And your link has been removed by the forum as suspicious.
49  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN]🔥🔥🔥[ABTC] Alefaa-Bitcoin -🔥 Pre-ICO Started🔥🔥🔥 on: August 10, 2022, 06:40:21 PM
Welcome to join the official channel in Discord.

https://discord.gg/AEDAjtdA

For the bounty program of TalkiHero, pls join the channel of Discord
For learners: https://discord.gg/zNJdEnJM
For tutors:   https://discord.com/invite/Dhn3tH7Ght

The invitation is invalid.
50  Bitcoin / Development & Technical Discussion / Re: BitCrack - A tool for brute-forcing private keys on: May 11, 2022, 05:02:40 AM

my idea try to calculate sort can possible
1. random X
2. calculate Y from X
3. hash SHA-256
4. hash RIPEMD-160
5. check the match search


There are already 2 Tools out there which can do exactly the same.

1. https://github.com/albertobsd/keyhunt in the pub2rmd mode. This is for CPU.
Code:
./keyhunt -m pub2rmd

2. https://github.com/kanhavishva/PubHunt This is for GPU

The problem is that in this way it is impossible to set the range for generation. It's like pointing your finger at the sky to find the one star you need out of billions.
51  Bitcoin / Bitcoin Discussion / Re: == Bitcoin challenge transaction: ~100 BTC total bounty to solvers! ==UPDATED== on: March 27, 2021, 03:53:45 AM
Add this to your collection  Wink between 63 and 65
000000000000000000000000000000000000000000000001A838B13505AF4FE3
1NBPhFPhptwNuhBTbbjtE1qHLTtkt5MLw2
KwDiBf89QgGbjEhKnhXJuH7LrciVrZi3qZM21gaY8VqzJLGd9Uu3



For what? I alone can throw billions of addresses, but why are they empty?
52  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] Stipendium | X11 | Private | Bounties | ICO | Payments Driven | POW/MN | on: August 25, 2020, 07:59:37 AM
Hi @OP can you please post our Exchange listing?



added to the Original Post

Will there be a listing on a normal exchange? There is no turnover on this exchange and on your website at all, so what's the point in such exchangers?
53  Bitcoin / Development & Technical Discussion / Re: BitCrack - A tool for brute-forcing private keys on: June 19, 2020, 06:03:45 PM
Can someone throw off the working version of pikachunakapika / bitcrack??? I searched the Internet and cannot find anywhere. need a random function. on https://github.com/ deleted. Please friends help.
Your best bet is to create a batch file that does the random for you. The random function in the version you are speaking about is slower because it takes more time to regen the randomness than to just go in sequential order. A batch function lets you jump in and out of ranges randomly. I have python script that writes batch script with random ranges. You can select the low and high of the range for example:
Low:  8B00000
High: 8BFFFFF

So the script will randomly generate a start and end range inside of that range. Or, use the --share option for "randomness"

Share the script. Itself could not write as it should.
54  Bitcoin / Development & Technical Discussion / Re: BitCrack - A tool for brute-forcing private keys on: June 16, 2020, 07:54:31 AM
sssergy2705 Thank you friend. But I don’t even know how to compile a file (((for me an unattainable search for keys from a puzzle. Sorry

In releases the latest version with random mode. For nvidia, windows.
https://prnt.sc/t0kr4i
55  Bitcoin / Development & Technical Discussion / Re: BitCrack - A tool for brute-forcing private keys on: June 15, 2020, 11:21:54 AM
Can someone throw off the working version of pikachunakapika / bitcrack??? I searched the Internet and cannot find anywhere. need a random function. on https://github.com/ deleted. Please friends help.

https://github.com/djarumlights/BitCrack I found it here, it seems to work.

56  Bitcoin / Development & Technical Discussion / Re: Pollard's kangaroo ECDLP solver on: June 13, 2020, 08:35:13 AM

how are you subtracting 80000.... from 037e.... and getting 033aeb....
edit: I guess you meant 80000...from the priv key
037e....  - 80000....*G = 033aeb....
(7e1238f7b1ce757df94faa9a2eb261bf0aeb9f84dbf81212104e78931c2a19dc,65c7118f1c29cb92d28ce0dfd0dc58144fe5572effebc7fee54c4fce3333a6b2)
-
(769bc75842bff58edc8366ecd78f8950ee4ab2e81359d90f9921fa3d2c4561be,4bf817362fe783bac8dce4cef73f5d4741a177767b7873add5920bffb0d9685f)
=
3aeb4f818ca91912a3e50d1b3db196696f82713bae00ba2b53c09a23f1d284a085b2197137256de f6c05a0f105e1b1eee9c10d23b7a4911040a23e891ebb3dc9
Sorry, I'm still not tracking. Where is *G in the above?

037e....  - (80000....*G) = 033aeb....
what are these?

pubkey compressed     03769bc75842bff58edc8366ecd78f8950ee4ab2e81359d90f9921fa3d2c4561be
pubkey uncompressed 04769bc75842bff58edc8366ecd78f8950ee4ab2e81359d90f9921fa3d2c4561be65c7118f1c29cb92d28ce0dfd0dc58144fe5572effebc7fee54c4fce3333a6b2

57  Bitcoin / Development & Technical Discussion / Re: Pollard's kangaroo ECDLP solver on: June 13, 2020, 07:47:24 AM

how are you subtracting 80000.... from 037e.... and getting 033aeb....
edit: I guess you meant 80000...from the priv key
037e....  - 80000....*G = 033aeb....
(7e1238f7b1ce757df94faa9a2eb261bf0aeb9f84dbf81212104e78931c2a19dc,625c7118f1c29cb92d28ce0dfd0dc58144fe5572effebc7fee54c4fce3333a6b)
-
(769bc75842bff58edc8366ecd78f8950ee4ab2e81359d90f9921fa3d2c4561be,4bf817362fe783bac8dce4cef73f5d4741a177767b7873add5920bffb0d9685f)
=
3aeb4f818ca91912a3e50d1b3db196696f82713bae00ba2b53c09a23f1d284a085b2197137256de f6c05a0f105e1b1eee9c10d23b7a4911040a23e891ebb3dc9
Sorry, I'm still not tracking. Where is *G in the above?

037e....  - (80000....*G) = 033aeb....
58  Bitcoin / Development & Technical Discussion / Re: Pollard's kangaroo ECDLP solver on: June 13, 2020, 07:45:22 AM

how are you subtracting 80000.... from 037e.... and getting 033aeb....
edit: I guess you meant 80000...from the priv key
037e....  - 80000....*G = 033aeb....
(7e1238f7b1ce757df94faa9a2eb261bf0aeb9f84dbf81212104e78931c2a19dc,625c7118f1c29cb92d28ce0dfd0dc58144fe5572effebc7fee54c4fce3333a6b)
-
(769bc75842bff58edc8366ecd78f8950ee4ab2e81359d90f9921fa3d2c4561be,4bf817362fe783bac8dce4cef73f5d4741a177767b7873add5920bffb0d9685f)
=
3aeb4f818ca91912a3e50d1b3db196696f82713bae00ba2b53c09a23f1d284a085b2197137256de f6c05a0f105e1b1eee9c10d23b7a4911040a23e891ebb3dc9

What tool do you use to subtract coordinates? Share the code please.
59  Bitcoin / Development & Technical Discussion / Re: BitCrack - A tool for brute-forcing private keys on: June 12, 2020, 01:59:05 PM
I am trying to run cuBitCrack.exe -s 6BBF8CCF80F8E184D1D300EF2CE45F7260E56766519C977831678F0000000000 1FshYsUh3mqgsG29XpZ23eLjWV8Ur3VwH
but every time I am getting [Error] Invalid address '-s'
Even try cubitcrack.exe -b 32 -t 256 -p 16 -c -i addr.txt -o out.txt -s 0000000000000000000000000000000000000000000000000000000000000001 -r 100000000000

But keep getting same error. Anyone help me fix this.

What kind of team -s??? not in command description. https://github.com/brichard19/BitCrack

I saw -s here in many post, I am trying to check with specific range on addresss. Also my bitcrack check very slow  i only take 10-15% resources from CPU & RAM there is no GPU resources use.
If there is any other program let me know.

https://github.com/brichard19/BitCrack/issues/188

vanitysearch 1.15 2_bitcrack Commands from this version
60  Bitcoin / Development & Technical Discussion / Re: Pollard's kangaroo ECDLP solver on: June 11, 2020, 11:12:04 AM
Thank you very much for the help. I was able to finally run the program. Community tell me how to open a 65save answer file? The file does not have an extension, I open notepad there are hieroglyphs, squares. I tried to open Bred3.0.3, I didn’t open it. Thank you very much in advance.

HxD Hex Editor, Winhex, Cygnus Hex Editor, etc
Pages: « 1 2 [3] 4 5 6 7 8 9 10 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!