Module vid_disperse

Module vid_disperse 

Source
Expand description

This module provides types for VID disperse related data structures.

We have three types of VID disperse related structs:

  1. ADVZ*: VID V0, The most original VID scheme, which has guaranteed recovery but very inefficient.
  2. AvidM*: VID V1, the efficient VID scheme, where we use it after the epocn upgrade. It’s more efficient but doesn’t guarantee recovery. A VID V1 commitment could correspond to some junk data, there’ll be a proof of incorrect encoding in this case.
  3. AvidmGf2*: VID V2, almost the same as VID V1 but we have a much more efficient recovery implementation.

Structs§

ADVZDisperse
ADVZ dispersal data
ADVZDisperseShare
ADVZ share and associated metadata for a single node
AvidMDisperse
AvidM dispersal data
AvidMDisperseShare
VID share and associated metadata for a single node
AvidmGf2Disperse
AvidmGf2 dispersal data
AvidmGf2DisperseShare
VID share and associated metadata for a single node
Weights 🔒
The weights and total weight used in VID calculations

Constants§

VID_TARGET_TOTAL_STAKE
The target total stake to scale to for VID.

Functions§

approximate_weights 🔒
vid_total_weight