Knights
Knights are the core operational units within the W3.io network, serving as the decentralized execution layer for recipes. Each Knight contributes computing power to facilitate customer-defined business processes while maintaining cryptographic verification of all operations.

Knight Participation
Knight Operators uphold the security of W3.io, earning token rewards for decentralized verification and execution of recipe components. Starting from the testnet launch, anyone can rent or own a Knight, making it easier than ever to help scale programmable intelligence on Web3.
This democratic approach to node operation distinguishes W3.io from other systems that require costly specialized hardware or significant capital investment. By lowering barriers to entry, we ensure a more diverse, resilient network while creating economic opportunities for participants worldwide.
Core Functions
Knights perform several critical functions within the network:
Recipe Execution: Running the ingredients that make up recipes in response to triggers.
Consensus Participation: Working with other Knights to verify the correctness of operations.
State Management: Maintaining the state of variables within recipes during execution.
Verifiability: Generating cryptographic proofs that operations were performed correctly.
Distributed Task Queue: Participating in the decentralized task queue that distributes workloads.
Technical Architecture
Each Knight operates based on a uniform core code implemented in Rust, structured as an event-driven finite state machine. This architecture is optimized for efficiency, security, and reliability, with components including:
LibP2P Networking Stack: Facilitates node-to-node communication across the network.
Core State Machine: Manages operations based on incoming events.
Configuration System: Adapts to the hardware specifications of the node.
Metrics System: Monitors performance and participation in the network.
Plugins: Extends functionality based on available hardware resources.
Knights Network
The Knights Network forms a mesh of interconnected nodes that collectively execute recipes. As shown in the diagram, when a recipe is deployed to the network:
The recipe file (depicted as a red document) is distributed to the network.
Relevant Knights form consensus groups to execute different parts of the recipe.
As execution progresses, verification occurs at each step (shown as checkmark icons).
Token rewards (depicted as dollar signs) are distributed to Knights based on their contributions.
This process ensures that complex workflows can be executed in a decentralized, verifiable manner while maintaining the performance characteristics needed for business applications.