Attestation
Attestation Verification Process:
When a tee submits an attestation, the service contract requests a random number from Chainlink VRF. Upon receiving the random number, it selects up to 200 nodes from the active online node list as verification nodes for the attestation.
Random Node Selection Rules:
Determine the number of verification nodes C based on the current number of online nodes.
If the number of online nodes is greater than 100, the verification nodes will be 10% of the online nodes.
If the number of online nodes is between 10 and 100, the verification nodes will be 10 nodes.
If the number of online nodes is fewer than 10, all online nodes will be verification nodes.
Using the random number R obtained from VRF, calculate the starting index:
𝐼𝑛𝑑𝑒𝑥𝑏𝑒𝑔𝑖𝑛=𝑅𝑚𝑜𝑑𝐶
Index
begin
=RmodC.
From the starting index, select the next C nodes in the active node list as verification nodes (wrapping around to the beginning of the list if necessary).
The selected verification nodes must submit their verifications within the specified time frame. If more than half of the selected nodes submit their verifications, and a majority validate the attestation as valid, the attestation is approved.
Last updated