128 points · by wslh · 3y ago · 76 comments
Computation is done by a Prover and duplicated by a Verifier. If the Verifier finds the computation result to be wrong, then they can identify a single gate (e.g. a NAND-gate) in the circuit doing the computation whose output bit(s) is wrong for its input bits, and expose this by engaging in an on-chain gate fraud proof, consisting of an alternation of transactions by Prover and Verifier that ends with one of them taking funds (the Prover in case the single gate computed correctly, the Verifier otherwise).
(Downvotes? I’m being serious.)
On-chain verification is the ideal though. On-chain computation is incredibly expensive and wasteful.
always a sham
As far as I understand, all possible settlement pathways have to be predetermined. They can't be chosen/constructed on the fly according to the circuit. It also has a pretty restrictive prover-verifier relationship. If the prover lies then the verifier can force a recovery pathway, but if the verifier fails to perform their duties then the prover can choose the settle the construction in any of the predetermined settlement pathways. The only ways that that would work would require some trusted third party to sign off on the other outcomes. They can also, of course, collude to settle the contract in any arbitrary way, meaning that the verifier has to be trusted by third parties. There's also no obvious way to chain instances of this construction in an arbitrary data-dependent way. There's also large communication costs, where two hashes have to be exchanged for each wire in the circuit, which adds up a lot when you'd want to do nontrivial circuits. Although I can imagine someone could invent some clever construction to deterministically generate wire commitments in a way that each party could agree on, but I'm not sure what it would look like though given the constraints Bitcoin has.
So it's only possible to build a "Bitcoin-on-Bitcoin" with it if you don't care about moving funds between it and the host Bitcoin ledger or being able to be trusted by anyone other than the parties actively involved in executing the construction (like you could do with a rollup), which means it's useless as a thing to improve throughput.
It states in the paper that a more practical construction should be used in a real use-case. I'm still a little bit fuzzy on the details so I might be slightly off here. It's a very cool construction, and it's pretty neat that it's doable on Bitcoin today without modifications to the core protocol. Bitcoin only needs a couple of very minor modifications in order to enable basically anything-on-Bitcoin, which I sketched out [1] a while back that got some attention and further work [2].
Not “truth” in the colloquial sense, which OP seemed to be implying, but not useless.
With bitcoin blocks as slow and small as they are, which is a good thing for security and decentralization, implementing bitcoin on top of the bitcoin chain would just slow this down even more.
Perhaps lightning is what you're thinking of.
It’s like a true classic computer science meme
On ethereum you get: ~3 gas per instruction 15 million gas per block 12s per block ~420000 instructions per second
From online sources of stable diffusion on a GTX 1050 at 20 steps: 40 seconds to generate 1.8 TFLOPS at full precision 70 trillion instructions
That's around 5.2 years.
If you account for a lack of floating point instructions (a ~34x instruction overhead) that's 180 years per image.
It's a fascinating trick, but not realistic for any practical use.
Since you chose to post this request here and not on the thread about playing chess with sed, I suspect you are imagining some form of real world effect from the energy expenditure from people doing this. I think that lacks a sense of perspective, a better approach would be to consider the change in state of the world after an extended period of expected use of the approach. Considering the considerable lack of practicality of calculating in Bitcoin (and indeed playing chess in SED) the expected use is negligible and consequently the impact would also be negligible.
This is the best way to take something that doesn't work at all for the environment and make it even worse.
A better question is what chain to use for efficient ( $/op or watts/op? ) verified Turing complete computation.
Avax?? I really have no idea.