Truebit Verify Nodes
Last updated
Was this helpful?
Last updated
Was this helpful?
The serves a dual purpose within the Truebit ecosystem.
First, it functions as a "Development Environment" tailored to . This aspect enables developers to and Truebit tasks during their development process. They can safely and test their code locally, ensuring it's readiness before it to the .
Second, the Truebit node can be utilized by the seeking to contribute their computer's processing power to the Truebit network. These users have the opportunity to earn by executing tasks for other users on the network.
In essence, the Truebit node accommodates both Task Developers and Node Providers to participate and earn rewards within the Truebit network.
When the Truebit node is used by the Node Provider, the event-adapter acts as the communication link between the Truebit node and the Verify hub when executing tasks on behalf of other users.
Imagine the Message Bus as a super-smart messenger that helps all the different parts of the Truebit node to share information without confusion. It lets services talk to each other, even if they're busy with their own jobs.
When one service has something to say, it just sends a message into the Message-Bus, and the bus makes sure the right service gets it.
The filesystem-adapter service plays a crucial role in our network. Its main responsibility is to manage the flow of tasks between The Truebit node and the Verify hub.
The api-adapter is used to run API Tasks on a node. It is the one in charge of making the API calls to the defined endpoints.
For development, it is used to ensure tasks are working correctly.
For production, we rely on the api-adapter service located within the Truebit Verify Hub.
The ledger adapter abstracts interaction with the various ledgers from the rest of the Node. This service is the one in charge of communication with the different blockchains
To make sure the Truebit Verify Hub behaves in a trustworthy way, all the nodes store every message sent to and from the Hub. This way, if something goes wrong, like an incorrect payment to the node, it has all the information needed to dispute it.
All the messages are stored within the folder app/datadb.
The file names are defined as:
${process.env.LOCALSTORE}/${process.env.NODE_ENV}-${process.env.ADDRESS}-eventDB.json
This is the list of stored messages:
invoice (Only for Function Tasks execution)
The http-adapter service serves as a vital bridge connecting the Truebit node and the .
This crucial component plays the role of an orchestrator, responsibly managing and mediating a diverse array of commands that can be executed within the node by the when building the Tasks.
The event-adapter service serves as a vital bridge connecting the Truebit node and the .
The wasm-runner requests the task to the based on the received . Then, it connects to the wasm-interpreter to execute the Task. Finally, it cleans resouces and shuts itself down.
The wasm-instrumenter is responsible for instrument Truebit tasks to guarantee a execution.
The local code storage acts as a secure vault designed to store and manage Truebit tasks efficiently. Each Truebit task is assigned a unique identifier known as a . With the local code storage, you can trust that your Truebit tasks are stored safely, making it easy to retrieve and work on them seamlessly.