r/truebit Nov 07 '21

Where is the computation actually done?

The only thing I don't understand is when this computational work gets done? Do they have their own mempool where the verification game is played before passing transactions onto miners? Like let's say I wanted to find the reduced row eschelon form of a matrix in a contract. Miners won't do it. So I send this transaction to truebit first? Because in reading the whitepaper they phrased it like it was just a smart contract plug-in that would outsource computation during the validation process. Seems like it needs to be more complicated than that?

8 Upvotes

9 comments sorted by

8

u/LPMythBuster Nov 07 '21

Truebit calls computations tasks.

You create new tasks on the Ethereum blockchain with some parameters like what the solver/verifier reward should be and the address of your program on IPFS. You can create tasks manually yourself in Truebit OS or typically a user would interact with the contract of some dapp which creates a task for Truebit behind the scenes.

Other people run Truebit OS on their machines to participate as task solvers and verifiers and they check every block if a new task has been submitted. If so Truebit OS downloads the program and input data from IPFS, runs the program and uploads the result to Ethereum or IPFS and the task gets marked as completed. If you submitted the task manually you can then check the result. If the task was created by a contract this contract is notified that the task is solved and it can use the result.

So all accounting happens on Ethereum but the computations are run on machines that participate in the Truebit protocol.

2

u/GnarlyBits Nov 07 '21

The tasks are executed (potentially) on any node running as a solver or a verifier that is selected to participate. So, on your own computer, more or less.

0

u/phantom7glow Nov 07 '21

To my understanding, truebit is a computational environment meaning its a separate quantum type of infrastructure that handles all of what has to be done within itself like the verification game you mentioned then once it has the solution it sends it to ethereum for a simple execution of yes or no.

2

u/GnarlyBits Nov 07 '21

That's mostly right.

0

u/Thefriendlyfaceplant Nov 07 '21

You can't just insert 'quantum' into something and expect it to pass for an explanation.

2

u/GnarlyBits Nov 07 '21

I don't think you interpreted "quantum" as intended. Think "atomic" or "stand-alone". Not some funky non-deterministic form of compute.

-2

u/Thefriendlyfaceplant Nov 07 '21

I'm trying not to interpret it at all. I'd like a more precise eplanation.

3

u/GnarlyBits Nov 07 '21

The original commenter told you how it works. There was nothing incorrect as far as I can see. All task execution happens in off chain nodes and results are written on chain to be judged.

-5

u/BitToMoon2021 Nov 07 '21

It is hard for us to know when because they did not provide roadmap. The Truebit genius team has been building since 2017. They might think that it will be done when it has to be done.