Data and Validation Layer
Flex is a community-owned platform that rapidly boosts dApp user growth, ensuring the value generated directly benefits the Flex community.
The data and validation layer forms the cornerstone of the Flex Network, responsible for task execution, data processing, and primary validation.
Task assignment algorithm:
The task assignment process utilizes a complex algorithm that considers multiple factors to optimize network efficiency:
The calculate_assignment_score
function incorporates additional factors such as validator reputation and stake weight. The assign_task
function uses a softmax distribution to introduce a degree of randomness while still favoring higher-scoring validators.
Peer validation determination:
The number of peer validators (N_t) required for a task is dynamically calculated based on the task's complexity and the network's current state:
where:
V is the set of all validators
A(v) is the availability of validator v
Cˉ is the average task complexity
This formula ensures that more complex tasks or tasks during periods of low validator availability receive more peer validations.
We invite developers, researchers, and enthusiasts to work with our contributors for this section. Start contributing here.
Last updated