437 points · by mrb · 2y ago · 393 comments
Bitcoin puzzles are private keys with just a few unknown bits so that anyone can bruteforce them to collect a reward. Puzzle 66 contained 66 unknown bits and had 6.6 BTC deposited into it by the initial puzzle creator. The private key was 0x000000000000000000000000000000000000000000000002832ed74f2b5e35ee or 256 bits with mostly zeroes but 66 random ones.
The next Bitcoin puzzle, #67, has 67 unknown bits, and contains 6.7 BTC up for grabs: https://www.blockchain.com/explorer/addresses/btc/1BY8GQbnue...
The previous puzzle by order of difficulty was #64 (not #65, because see below) and was solved on 9/9/2022, so about 2 years ago. In other words, it took about 2 years of compute time to run the 2^66 bruteforcing task.
Puzzles that are multiple of 5 (#65 or #70) are special: they have twice more entropy. So that private key #65 doesn't have 65-bit of entropy but 130-bit of entropy. And the creator of the puzzle intentionally published their public key on the blockchain. When you know the public key, brutetforcing the n-bit private key only requires 2^(n/2) work. So puzzle #65 with a 130-bit key actually require bruteforcing up to only 2^65 keys.
Having the public key is easier than having an address because an address is the hash of a public key. So in order to crack an address, you must first find a public key that produces that address, and then find a private key corresponding to the public key.
Sure, finding a private key whose public key's hash is given might be 2x slower, but Pollard's rho algorithm is 2^128 times faster.
Asymptotically, an additional hash at the end doesn't matter when you brute force. But it prevents you from using Pollard's rho algorithm, which does make a difference asymptotically.
My new public key search system is almost ready. I had to reinvent my binary database system because, although the database was lightweight https://bitcointalk.org/index.php?topic=5475626, I had efficiency issues with binary search. This is now a thing of the past. I have designed a system that stores 100 million public keys in an 80 KB file, yes, what you read 80KB!(in the future it will be smaller) that meets maximum efficiency. We would only be limited by the current speed of Secp256k1 when generating the 100 million or more public keys while creating the database. I am finishing designing the search script after months of being stuck due to personal issues, I am finally back on track.
I love these kind of mad inventor rabbit hole corners of the Internet. Kind of brings back the 90s for me when everything was exciting.
That’s 0.0064 bits per public key - so either there are lots of duplicates, or something is amiss here?
Edit: they don’t actually store the keys, so the quote is misleading.
"Here's $400,000 sitting on the table, hope nobody takes it" which triggers an alarm telling us to replace all our old prequantum cryptography.
The $400,000 is an inducement for any participant in that engineering effort to break the conspiracy and take the bag. It's effective during the period between the time that a quantum Shor's solver has been achieved for a given algorithm in theory for 256 bits (and in practice for 66 bits), and the time that a practical solution at 256 bits has been implemented.
I just think maybe public key crypto is not broken so far because there is no motivation for enough people to work on that. What whould one get, without endangering himself, if he breaks integer factorization?
Or getting hacked. This is super common among people who are known to have high value wallets. Between physical attacks and zero days in everyday software, there's no chance to stay safe when you put that kind of target on your back.
If someone had a quantum-supreme solution they would go after the sitoshi wallets. Some addresses have like $1B+ and combined represent ~$200B.
The reason that we use elliptic curves these days, or if we must then something like 8k bit keys to get 128 bits of security over finite fields, is that for the old Z^*_q/Z_p setup, such a faster algorithm exists (index calculus).
Someone could in theory find a better calculus that works only for groups with some specific characteristics of Curve25519, for example. No quantum computers needed.
EDIT: we know that no _generic_ faster algorithm exists, that is one independent of the representation of the group involved, for the traditional computing model. But that doesn't exclude algorithms, as I said above, that work for very particular cases.
You don't even need to travel far. A second or so is enough to break all cryptography, even the post-quantum one.
(disclaimer, I don't know statistics, cryptography, bitcoin or chances)
I'm also unclear on where you got the 'multiple of 5' bit about. It seems the keys corresponding to numbers divisible by 5 were used in a spend transaction by the puzzle creator. Using those addresses in spend transactions reveals the public key and saves compute that would be wasted hashing. It also enables direct attacks using Pollard's rho (which someone already posted a link for above).
Src: https://bitcointalk.org/index.php?topic=1306983.msg51466379#... https://en.wikipedia.org/wiki/Pollard%27s_rho_algorithm_for_...
Another interesting discussion on bitcointalk about using Pollard's kangaroo: https://bitcointalk.org/index.php?topic=5244940.0
Obviously if you found a shortcut in the hash you might do other things first, but I think that's the idea.
But I think you are one of those people that threw out that baby with the bath water long ago.
Custom silicon and all kinds of related optimizations were likely used to successfully brute-force this number.
This is one of the reasons it is advised never to reuse an address. After using it once, your private key may still be private but your public key is exposed, reducing security.
You don't need the public key, and IIRC most algorithms allow you to derive the public key from the private key, though I'm not sure that's the case with Bitcoin. I have vague memories that there are algorithms where this is not that case, but it's been a while.
The main discussion thread on the bitcoin forum is this but it has a low signal-to-noise ratio: https://bitcointalk.org/index.php?topic=1306983.0
There is a secondary thread here: https://bitcointalk.org/index.php?topic=5218972.0
The point of the puzzle is indeed to brute force some private keys (not public keys), but not all, as 2^256 is computationally impossible. The private keys that have been discovered so far have obviously many zeros in them, so in practice you are never going to accidentally steal from a legitimate address with actually 256 bits of entropy.
The creator of the puzzle is anonymous and never came forward (to my knowledge). The point of the puzzle is (1) to be a fun game, and (2) to be a publicly observable way of measuring current brute forcing capabilities.
As shown by the graph [0], adoption slowed down after 2016 when BTC blocks got consistently full and transaction fees rose to $50 and more. I believe if BTC had scaled to support more transactions the price would be much higher today, as Bitcoin would likely be used as a means of payment across the Internet and in many physical stores at well.
Discussions regarding the decentralization of larger blocks aside, something that is not clear to many people is that scaling a blockchain to handle more transactions doesn't mean a linear increase in energy use. In the case of BTC its Proof-of-Work algorithm operates over the root of the last block's Merkle tree, which is a hash of all the transactions in the block. Being a fixed-size hash it doesn't matter if the block contains 1,000, 1 million or 1 billion transactions. Arguably a more popular Bitcoin would be more valuable and therefore would attract more miners, increasing its energy consumption, but that just reinforces my original point.
TX input:
Code:
1FuckUmT5yBAvozf6gT8GRQVbJ7iBDUnrH
TX outputs:
Code:
1Jvv4yWkE9MhbuwGU66666666669sugEF 0.00000001
1YouAreSoDumbLoL666666666667K5aR4 0.00000002
1WhatWereUThinking6666666662wkqq1 0.00000003
1YouDeserveNothing6666666665sbbBC 0.00000004
1YouEpicFaiLure66666666666688GSDA 0.00000005
1BitchAssLoser66666666666669dBUVg 0.00000006
1AndEveryoneELse666666666669Vnc8C 0.00000007
1ThisisALosingGame6666666667HAZdf 0.00000008
1JustGetAReaLJob666666666665vGKVD 0.00000009
1YoureWastingTimeAndMoney664CVExC 0.00000010
1AndCausingCLimateChange6666HK8Qc 0.00000011
13zb1hQbWVsc2S7ZTZnP2G4undNNpdh5so 0.00000012
1Jvv4yWkE9MhbuwGUoqFYzDjRVQHaLWuJd 0.00000013
1FK5PjPNARQmg94n2cNHTo9417kWfXUDBQ 0.00002125One of the really interesting thing about the blockchain, is that you can write a smart contract script that will permiate forever.
using a hashed transaction instead of a signed transaction is a wierd mistake to make, but not an uncommon one of people who are just learning to write blockchain code. I know we are talking about BTC here and opcode is rather limited, but this type of thing pervades on ETH.
Imagine writing a PWN script as a 14 year old and waking up when you are in your late 20's to a millions dollars in crypto.
Edit: typo
I think you might be confusing it with greenhouse gas emissions.
> https://bitcointalk.org/index.php?topic=1306983.msg64535839#...
I'm not super familiar with the concept (and I'm too lazy to look into it TBH), but I think the would-be winner posted the private key before enough (any?) blocks were mined, and the thief posted a transaction with a bigger fee, and the thief's transaction was in the block that got mined.
This is a well-known attack. The discoverer was sophisticated enough to brute force, but not enough to know about this risk :)
I believe the correlation is the other way around... at least once you get past some early local maxima near "people who don't understand how money can be in a computer."
P.S.: To digress (rant) a bit: The linchpin is whether your system needs to allow anybody to create and control any number of new participant-nodes at any time. That fundamental requirement is actually very rare, and it's also the root causing a cascading tree of workarounds, compromises, inefficiencies, and risks.
The only reason we're still talking about BTC is bag-holders. It's vastly technologically inferior on every metric.
Talking about BTC's failures as if they exemplify cryptocurrency is just like attacking solar panels on the basis of whale oil's flaws.
Note that this issue doesn't exist with puzzle numbers that are multiple of 5, because these addresses have their public key already known. So everyone is on a level playing field. The multiple of 5 have been solved up to #125: https://privatekeys.pw/puzzles/bitcoin-puzzle-tx
I'd be curious to know if it is possible at all to "securely" send the funds of these puzzles or if there is some hard limit that requires the pubkey to be published with the transaction.
So anybody that has sent a transaction can have their private key cracked just from their public address? How is this considered secure? That's absurd...
So this would not be possible with a normal Bitcoin transaction with regular entropy.
It's essentially MitM all the way down.
even the private mempool can attempt a double-spend with a larger fee, get one transaction ahead, then try to maintain an edge long enough to be the "longest branch" for consensus - the 51% attack only needs 33% in reality, much less when your the private mempool that can take advantage of the birthday paradox to jump two blocks ahead.
you have to literally mine your own coin with the reward transaction included.
of course, zpk+ would solve this issue entirely.
Alice and Bob wouldn't ever doubt each other again.
What specifically are you calling "so easy"?
If we're talking about "2^(n/2)", I don't see the problem. Why shouldn't it be that?
https://en.wikipedia.org/wiki/Pollard%27s_rho_algorithm_for_...
Given only a random public key, is it possible to quickly recognize when its corresponding private key has weak entropy?
No, but it is possible to quickly recognise that it matches a published puzzle address, which is derived from the public key. And the amount held by that address is public knowlege (it's on the blockchain).
If someone knows that a given address has a huge sum of money, they can create a bot to monitor that particular address, overriding any transactions to his own address?
Would that be possible???
The purpose of the puzzle is to find the private key given only 75% of it.
Let’s imagine that takes 1 year to brute force the last 25%. But if you have the public key as well, it only takes 1 minute.
As soon as the coins were sent, the private key was known since it inherently revealed the public key.
but are not the public keys anyway available on block chain? that means literally every thing can be brute forced?
1Jvv4yWkE9MhbuwGU66666666669sugEF 0.00000001 1YouAreSoDumbLoL666666666667K5aR4 0.00000002 1WhatWereUThinking6666666662wkqq1 0.00000003 1YouDeserveNothing6666666665sbbBC 0.00000004 1YouEpicFaiLure66666666666688GSDA 0.00000005 1BitchAssLoser66666666666669dBUVg 0.00000006 1AndEveryoneELse666666666669Vnc8C 0.00000007 1ThisisALosingGame6666666667HAZdf 0.00000008 1JustGetAReaLJob666666666665vGKVD 0.00000009 1YoureWastingTimeAndMoney664CVExC 0.00000010 1AndCausingCLimateChange6666HK8Qc 0.00000011 13zb1hQbWVsc2S7ZTZnP2G4undNNpdh5so 0.00000012 1Jvv4yWkE9MhbuwGUoqFYzDjRVQHaLWuJd 0.00000013 1FK5PjPNARQmg94n2cNHTo9417kWfXUDBQ 0.00002125
When you post a transaction, the public key is in the transaction (inside the field "sigscript") . With the public key known you only need 2^(66/2) checks (instead of 2^66), which can be done really fast.
So some bot watched the address, obtained the public key, computed the private key from it, and front-ran the original submitter probably with a deal from a mining pool to make sure his transaction is enforced.
Why doesn't this happen with every large transaction then? Someone tries to move 10 BTC, instantly stolen?
Basically you're saying that every single Bitcoin transaction can be stolen "really fast".
Am I missing a step here?
The second post on this thread[0] has a helpful chart that makes it easier to understand.
Is that true for every single Bitcoin transaction?
> With the public key known you only need 2^(66/2) checks (instead of 2^66), which can be done really fast.
Then how comes not all Bitcoin transactions are front-ran like that and Bitcoin is not worth zero already? 2^33 is indeed nothing: 8 billion (so I understand this can be easily cracked).
I think so, for outgoing transaction (aka to remove from the address), it's kind of needed to verify the signature.
The 2^66 is only for this game where only 66 bits were left unknown. In the general case obtaining the private key from the public key is much longer.
As a miner, if I see two conflicting transactions I will prioritize the one which pays more rather than the one I saw first.
https://www.blockchain.com/explorer/addresses/btc/173ujrhEVG...
the canaries that are left are worth several million of USD combined, if there's any incremental progress towards cracking them, that's a strong incentive not to leave the money on the table.
if someone comes up with a full crack sponteously, then yeah the canaries won't protect you, or anything else for that matter.
You can do actual useful stuff with electricity no matter where it came from, like smelting aluminium, training AI models or desalinating water. Wasting it on mining bitcoin is literally the last thing we should be doing with spare energy.
If that spare energy doesn’t have a use yet, negative pricing will find one… but allowing that use to be “computing mathematical puzzles to support a deregulated financial instrument whose chief uses are illicit transactions and speculative investment” is just absurd and we should regulate this away.
While that energy technically serves the purpose of letting a monetary system function, traditional monetary infrastructure requires vastly smaller amounts of energy, thus this is a wasteful use of it
https://cowboystatedaily.com/2024/09/03/giant-wyoming-carbon...
> CarbonCapture cited “intense competition from data centers” in the region for electricity as partially the reason why it is moving from Wyoming.
Wyoming is a very popular state for cryptocurrency mining due to substantial state support, cheap energy, cool climate, etc. Miners use a lot of clean energy that would have been used for more useful purposes, as shown by the article I linked.
Conclusion: yes, it's still a waste, unless that energy was surplus absolutely not going to be used for anything better or able to be stored, although even then the compute resources could have probably been used for more useful problems.
It is very much not: https://www.theguardian.com/technology/2022/feb/18/bitcoin-m...
Which as a whole is very limited scenario.
California uses green energy, but in doing so increases the mining reward, which increases the mining from countries like china and russia, who do not use green energy.
You'd just need to download the 6,505,548 TB list of keys and re-derive the public key for each to check that they're valid; unfortunately it would take in the ballpark of a kiloyear of compute time assuming you have 3x RTX 3090s.
>> First output: take random number from 2^0 upto 2^1-1, use it as private key >> Second output: take random number from 2^1 upto 2^2-1, use it as private key >> Third output: take random number from 2^2 upto 2^3-1, use it as private key
To me it sounds like that wallet #10 has a range from 2^9 to 2^10 - 1 - so you don't actually need to check previous bits. But somehow it seems like everyone is crawling through the whole range of possible private key. Doesn't make sense, does it? Am I missing something?
With each puzzle, you know that the top bit is 1, and nothing else. Every bit below that is unknown, and you need to go through the whole range of n-1 bits. Puzzle #10 has 9 bits to guess, because it's between 10_0000_0000 and 11_1111_1111. Puzzle #66 has 65 bits to guess. If someone says 66 unknown bits they've misspoken.
>> Puzzle #10 has 9 bits to guess, because it's between 10_0000_0000 and 11_1111_1111
means that I don't have to start at 0000 0000 0000 ... everytime, I can actually start at 2^5 and look up to 2^6 - 1, for example for the 6th address.
I thought cracking anything to steal bitcoin was impossible due to the keys sizes involved? Is this possible because a portion of the key is already available so there is less to crack?
Which key is known? The public or private? Another comment said the “now known public” but then also said the private key can now be recovered by cracking it? Two keys need to be cracked?
What kind computing power is needed to crack both keys and how long?
Thanks. Sorry, I’m an idiot when it comes to bitcoin.
This would normally be computationally intractable but these keys are much smaller than normal, with most of their leading digits intentionally zeroed out to make it easier to 'steal' the funds from the corresponding wallet. If anyone knows who set this up, or why, they aren't talking.
In the process of creating the transaction to claim the prize, the winner must generate a corresponding public key based on some sort of hash of the private key and wallet address. I don't know how they can tell when they've succeeded; hopefully someone else can clarify/correct this point. But once they do succeed, the transaction is then posted in public to allow miners to add it to the blockchain.
Unfortunately, due to mathematical witchfuckery, knowledge of both the private key and a valid public key makes it possible to solve the puzzle as if the already-shortened private key had half the number of bits. In that case, finding the wallet address might take only a minute or two on a standard GPU rather than the months of time on a whole warehouse full of them that the original winner had to spend.
Knowing this, people who are bad and who should feel bad set up bots to watch for the prize-claiming transactions. The bots are designed to recompute the source wallet address independently and front-run the winner's transaction by resubmitting it for the benefit of the thief, using a higher reward to incentivize miners to prioritize their transaction over their original one. Bitcoin blocks are mined about every 20 minutes, so on average the thief has about 10 minutes to create an overriding transaction once the original transaction is posted. Sucks to be the winner who expended so much effort to claim the prize, as they are now out about $400K. Nothing left but a huge electric bill.
https://bitcointalk.org/index.php?topic=1305887.0
Someone, back in the 2015, created this puzzle when BTC was cheap. He/she posted a couple of public keys (Wallet Addresses):
https://bitcointalk.org/index.php?topic=5218972.0
Though, I don't understand the actual task. It's a couple of transactions and one have to "guess" (aka bruteforce) the private key to a known public key. There's an increasing level of complexity, which makes it harder, the higher you get in this list.
Would appreciate any more details.
https://www.blockchain.com/explorer/transactions/btc/12f34b5...
Bitcoin was not cheap in 2023, this is someone with $50m to spare!
IANAL, etc.
I'm not into crypto and I do think Bitcoin is stupid and wasteful, but I don't find it "sick" or all what upsetting that this kind of puzzle exists, though I think some smart contract-based Ethereum puzzles could be much more interesting, demanding solutions to more interesting problems that don't directly relate to the blockchain itself. Imagine a smart contract with a pot anybody can pay into that pays out to whoever could crack a particular previously unsolvable problem. Basically a public bounty. The only downside is that it has to be a problem that can be validated algorithmically.
Bitcoin may be an inefficiency, but is it the? Most everyday things modern first-world people do are equivalent to burning oil and shredding trees for little to no reason. You just can’t see it as clearly as in PoW crypto.
What puzzles create something of value when they're solved today? A puzzle is typically a thing you do for fun and entertainment, not something you try to solve for the purpose of creating value.
I guess you're thinking more about logic/mathematical puzzles and alike? Would make sense in that case, but that's not the only type of puzzle.
But, as it happens, this one does: it offers economic incentive to develop more efficient attacks on elliptic curves. The curve Bitcoin uses isn't widely used outside of it, but that doesn't mean that an efficient attack on Secp256k1 wouldn't apply elsewhere.
Is this modest as positive externalities go? Probably yes. Could someone with a better attack on the curve just empty wallets? Not necessarily, and probably not: the point of the puzzle is that the entropy has been deliberately reduced to make it crackable with brute force, so, say someone worked out a factor of four improvement: that isn't going to get you into the Genesis Wallet, but it substantially lowers the price of claiming some of the puzzles.
Also, being a cryptographer and being a thief are unrelated professions. Some people might be inclined to both, but I would guess that most are not.
a lot of people created co2 to take part in a btc lottery and the winner was now randomly found.
I hate crypto :|
I think it’s worth noting that bitcoin uses a fraction of the energy required to mine gold for example.
It’s also a driving force in renewables, by stabilising energy grids (mining can use the spare capacity during quiet periods and switch off during peak hours).
So I don’t think it’s as black and white as “bitcoin uses energy = bad”
In NYC they bought a Gas power plant only for bitcoin. In Texas they had to pay millions to bitcoin miners for them to shut down. In china they stole power from normal people left and right.
It also allows to sell local limited energy globally and pushing energy into the trading/gambling area. Instead of giving local people cheap energy, some bitcoin miner will try to get as much of that cheap energy possible. It also incentivives using bitcoin miners to use flare gas instead of doing something to actually capture and use it as it is a limited resource.
Nonetheless PoW is stupid. its the worst scenario we can come up with in a society with scare resources and a very limited co2 budget by now ( have you watched the TED talk? ). And at the end bitcoins PoW system even still stand on our existing PoW system. Someone stole your bitcoins? You go to the police... Without our existing PoS System, you would need to keep your bitcoin wallet and address always anonyme otherwise you would trust our law and order (part of our PoS system) and you could literaly only send bitcoins around and nothing else. (Smart contracts are also not scalable and not stable solution to this issue).
Btw. yes gold need energy to be mined but its a one time cost YOU HAVE TO DO to use this material. Bitcoin is a Waste Resource all the time to use. And Gold has real value in science, manufacturing and in styling/model/art. Nonetheless we need to get the co2 production of Gold down and Bitcoin we just don't need. The best solution is to get rid of bitcoin and keep reducing co2 production for gold.
And yes i do have a lot more arguments on why bitcoin is useless.
It takes 3 seconds to look up the 24h volume for BTC and it is $9.6 Billion
https://news.ycombinator.com/newsguidelines.html
"Be kind. Don't be snarky. Converse curiously; don't cross-examine. Edit out swipes."
Plenty of banks will freeze your bank account instantly.
And good luck convincing them that you stumbled upon $400k by solving a puzzle - only takes one suspicious fraud/risk manager to conclude that there’s a higher chance of fraud than legitimacy.
(But you are right, no problem to find someone to pay you the market price. That’s a done deal in seconds)
Liquidity of less than a million worth of BTC hasn't been a problem for a long time
Then again, it may be serious trouble if you have serious issues explaining the source.
2. Deposit bitcoin
3. Market order sell all
4. Withdraw USD
Step 2.6 Coinbase blocks your account citing "Suspicious activity"
Step 2.7 Sign up to three other exchanges, split the loot across them
Step 5 Argue with the bank about the source of funds
Step 6 Argue with tax agency that you'll fill out your taxes correctly
Taxing this is super simple, you just mark as "other" - akin to finding money on the ground.
Arguing with bank - which specific bank would cause problems here?