Validator (Architecture)

Validators are nodes in a subnet that validate miner output and provide gateway access to the network

πŸ“˜

This section focuses on the validator architecture inside a subnet.

The Validator Persona has details on how a validator can be run.

On each subnet there are a configurable number slots reserved for validation (default: 64). Validators have two primary roles in each subnet.

  1. Validation of miner output. This is usually done by sending regular requests to each miner and then assigning a value/score to the response. These scores are usually added to a moving average of the miners performance which enables a score (weights) to be set at regular intervals on the blockchain for all miners by that validator. These weights form part of the incentive landscape which when combined with the weights of the other validators using Yuma Consensus are then used to define and distribute emissions.
  2. Gateway access to the network. The only way a user or application can query a subnet is through the hotkey of an active validator - therefore validators also act as trusted gateways to the miners which in turn allows miners to prioritise queries based on a stake.

The amount of tao a validator has as delegated stake defines both the value of the weights they set for miners and as a result allows for a natural market prioritisation of access to form.

Validation

Validators must assess how well the miners are performing and the value they create on the network. Each subnet has a different Incentive Mechanism for determining how the validator interacts with the miner and scores the responses.

This is done by creating synthetic queries or tasks that are sent to the miners to respond to or perform. This is done in a way that the validator either knows the correct or best response the miner can give, or is able to score the response when compared to the responses of the other miners.

The incentive mechanism is not fixed and it is the possibility for design of unique and innovative incentive mechanisms that is one of the key values of the network allowing each subnet a different approach to validation.

Gateway Access

As miners are only scored by validators there is no incentive for them to receive or trust requests from anyone else except a valid validator. Any request to the miners must therefore pass through a validator which will be routed to a miner(s) who will generate the response to the validator, who returns the response to the external user.

This allows validators to build API infrastructure or allow their access to be valued by any other network participant providing API access to the network.

An example of this is Corcel who provide API access to a number of subnets via their validator, and on subnets running the code they are able to purchase bandwidth from multiple validators therefore 'load-balancing' the queries across multiple validators access promoting a healthy decentralisation of network traffic.

This is just one way of facilitating access to the network data via a validator and constant advancements a birthing new and innovative ways to interface with the commodities produced by subnets.

Validator Registration

Learn how to register a node on a subnet.

In addition to the steps in the above link, validators need to have a significant amount of TAO staked to their hotkey to be successful in validating miners. This is due to market dynamics incentivising miners to naturally prioritise requests from validators with more stake as their weights hold great influence over consensus of trust.

Although this varies from subnet to subnet there is a hard floor of 1k tao with a generally accepted competitive functional floor of around 20k tao at the time of writing. This means that whilst is is possible to validate with less than 20k tao, you may not achieve the same level of responses from all miners and as a result consensus in the weights you set, and as a result your appropriate share of emissions.

It should also be noted that in order to validate competitively you must be present on all subnets that have emissions, which means running 32 nodes. There is a real world cost to running this infrastructure which also makes it not profitable below a certain threshold of staked tao.

πŸ“˜

How can miners ignore validators?

If a validator has a very low amount of tao staked, their scoring has very little weight in Consensus - so a poor weight from this validator will not hurt the miner's trust score.

Some subnets hardcode a minimum stake number.

Emissions

Validators are awarded emission from the network based on their dividend score. Dividend is evaluated from the stake and Vtrust values. Vtrust describes how well their weights match the consensus of other validators. See Incentive for Validators for a detailed analysis.