Developer Guide
Last updated
Last updated
Mind Network includes the following components and will be discussed in detail in the next chapters:
MindSubnet:
MindSubnetTask: to define FHE validation tasks, including Opt-in Criteria, Slash Criteria, RewardDistribution, and associated Keys:
MindSubnetManager: to maintain the records of subnet lifecycle, including registration, publishing and cancellation.
MindSubnetOwner: to own and manage subnet, including register, creditIn, submitTask, start and cancel task.
MindSubnetIndepedentValidator (SIV): to opt-in FHE validation task and conduct independent validation.
MindSubnetConsumer: individual consumer who wants to use subnet with FHE validation.
MindConsensus:
MindChain: backbone of automation for FHE validation and consensus.
FHE Validation Consensus Input Contract (POSIV_Input): placeholder for SIV private votes.
FHE Validation Consensus Output Contract (POSIV_Output): placeholder for FCN consensus results.
FHE Validation Consensus Node (FCN): a validator to perform the consensus computation
FHE Validation Decryption Node (FDN): a validator to perform the decryption
MindRestaking:
MindRemoteStaking: for stakers to stake or restake their token in source chain and sync messages to ledger.
MindDelegation: for stakers to delegate their token to SIV.
MindLedger: an immutable book keeper to consolidate token activities, including remote staking, delegation, rewards and slash.
MindXP: a rewards system before Mind Token issues.
Step 0. The Subnet Owner initiates a new Subnet for FHE validation and pays for the FHE validation. The Subnet Owner can set if to decrypt the consensus result by themselves or to delegate to Mind Network to decrypt
Step 1. Staker to stake/restake their tokens on source chains and consolidate to Remote Staking contract
Step 2. Staker to delegate their tokens to the subnet and operators for yields
Step 3. The independent validators in the subnet generate validation results (votes) and encrypt them with FHE public key in each epoch
Step 4. The independent validators submit the encrypted validation results (private votes) to MindChain
Step 5. The validation consensus (private voting calculation) is calculated by FHE Validation Consensus Nodes on encrypted validation results (private votes)
Step 6. The validation consensus result can be decrypted by the FHE Validation Decryption if it is required by the Subnet Owner
Step 7. The validation consensus result is sent back to or pulled by the subnet
Step 8. The validation fee will be distributed to the participants, including FHE validators, stakers, and Mind Network treasury.