Post
Topic
Board Bitcoin Discussion
Re: Bitcoin puzzle transaction ~32 BTC prize to who solves it
by
kTimesG
on 25/04/2025, 14:40:47 UTC
That's it, basically.
In the end, we came up with a sort of Frankenstein code together, and this is it:

Code:
        // Generate public keys in batches
        for (; localBatchCount < HASH_BATCH_SIZE && currentKey <= threadRangeEnd; ++localBatchCount, ++currentKey) {
            if (!secp256k1_ec_pubkey_create(ctx, &pubkey, priv)) {
                std::cerr << "Failed to derive public key.\n";
                continue;
            }

            size_t len = 33;
            secp256k1_ec_pubkey_serialize(ctx, localPubKeys[localBatchCount], &len, &pubkey, SECP256K1_EC_COMPRESSED);
        }
}

Fastest way to faster code: screw batch addition altogether, compute from pvt.

But I forgive you - after all, this is what happens when two kinds of gibberish code collide.

 Grin