Skip to content

Storage

Kun edited this page Feb 24, 2020 · 4 revisions

The capacity of storage one candidate or validator provided will determine how much staking he can get associated.

Storage capacity

If you want to join the network as a candidate, you need to provide your TEE identity and declaim your capacity. The TEE of your local device will generate a proof of your storage capacity. Once the capacity proof been verified by the network, you will get a limitation of the staking you can receive from guarantors. The hand book for candidate onboarding is coming soon

Storage proof

Crust keep tracking storage status on every storage provider. To get consideration of both efficiency and justification, we designed tracking mechanism based on PoSt algorithm and TEE hardware local detector module. The detailed document of how Crust combined them is coming soon.

Staking limit calculation

NOTES: this following formula only used for our Alphanet, Mainnet may change in a better way

The staking limit is calculated by following formula, while:

  • v_stake_limit: the validator's stake limit;
  • v_workloads: the validator's workloads(aka. storage space);
  • total_CRUs: the current issued CRUs;
  • total_workloads: the current whole network's workloads;
v_stake_limit = v_workloads * (total_CRUs * 50%) / total_workloads

Storage Market

Storage Market subsystem is the data entry point into the network.

Storage order

User orders storage service from storage market by sign a storage order with storage provider. Meanwhile, user need to pay for storage rent. Consider to storage application user friendliness, the on chain payment accepts multiple currencies includes CRU, pLibra and other robust currencies.

Storage deposit

To keep the availability of storage network, when co-sign a storage rent order, storage provider needs to deposit a number of CRUs. The deposited CRU amount relates to the order amount.