Pure Proof of Stake Decentralization Index
We finally apply the \(DEX\) index to Algorand’s PPoS, defining the \(PPoS DEX\) index.
Given the \(DEX\) index definition, we say Algorand PPoS is “completely decentralized” iff:
- Algorand Nodes Hardware is completely decentralized (\(d_N = 1\));
- Algorand Network Topology is completely decentralized (\(d_T = 1\));
- Algorand Validating Stake is completely decentralized (\(d_S = 1\)).
As pointed out in previous chapters, due to resource and time constraints, we assume complete decentralization both for Nodes Hardware and Network Topology, leaving the refinement of these assumptions to future works (community contributions are welcome).
The ALGO has a total supply of 10B, hardcoded in the genesis block, so the Stake Dynamics applies to ALGO.
The circulating supply is measured as the ledger’s participating supply (the
Algod total-money): the genesis supply minus the balances of the accounts
flagged as non-participating. It counts custodial, treasury and exchange
balances as circulating, so it is larger than the economic circulating supply.
We say Algorand Validating Stake is “completely decentralized” iff:
- All the ALGO genesis supply is circulating in the ecosystem (\(S_{dyn}\));
- All the ALGO circulating supply is taking part to the PPoS (\(S_{prt}\));
- All the accounts that owns ALGOs are taking part to PPoS (\(A_{prt}\));
- All the accounts participating in PPoS hold the same amount of ALGO (\(GI\) or \(HHI\));
Combining the 4 points above, we know “how far” PPoS is from its purely theoretical decentralization, being aware that the PPoS only tends to the ideal condition, never reaching it.
PPoS DEX v1
\[ PPoS DEX = d_N \cdot d_T \cdot S_{dyn} \cdot S_{prt} \cdot A_{prt} \cdot (1 - GI(S)) \]
PPoS DEX v2
\[ PPoS DEX = d_N \cdot d_T \cdot S_{dyn} \cdot S_{prt} \cdot (1 - HHI(S)) \]
Note
On Algorand data, each version mostly follows a single factor: from 2023 to 2026, 90% of the variation of v1 comes from the accounts participation, and 96% of the variation of v2 from the ALGO participation.
PPoS DEX v3
Instead of the distance from an ideal, v3 measures the stake against the thresholds of the consensus: it is a set of four Nakamoto Coefficients, the fewest online accounts holding together more than a share of the online stake.
\[ PPoS DEX = \left( NC_{10\%}, NC_{20\%}, NC_{33\%}, NC_{90\%} \right) \]
- Veto, \(NC_{10\%}\): a coalition above it can block protocol upgrades;
- Liveness, \(NC_{20\%}\): a coalition above it can stall the consensus;
- Nakamoto, \(NC_{33\%}\): a coalition above it breaks the honest majority assumption;
- Upgrade, \(NC_{90\%}\): how many accounts it takes to reach the broad supermajority that protocol upgrades need.
The higher each coefficient, the more decentralized. Being counts, they are not per-unit indexes, and they do not include the Nodes Hardware and Network Topology factors.
The same coefficients of operators, merging the accounts likely run by the same operator, are published alongside them.
Recomputed History
Some metrics were added after the first data points: the v3 coefficients, published since the CLI 4.0.0 (liveness) and 4.1.0 (all four), the HHI of the online stake, since 15 February 2021, and the PPoS Dex v2, since 9 September 2023. For the data points published before, they are recomputed.
The v3 coefficients and the HHI are recomputed from the ledger: the state of every online account at the round of each point, as Nodely Time Travel answers it. Only a key registration takes an account online, so the accounts that ever registered their keys, and those online from genesis, are the candidates. Each recomputed point is checked against the ledger and the published data:
- the online stake of the recomputed accounts equals the ledger online stake at the round;
- the online accounts, their Gini Index and their HHI match the published ones, but for the accounts changing in the few rounds between the reading of the publisher and its note.
The PPoS Dex v2 needs no ledger: it is computed from the ALGO supply, the online stake and its HHI, published with every point, as the published v2 is.
Where the Oracle published no data point for more than a day and a half, most of all from March 2022 to September 2023, the ledger gives one a day, at 00:00 UTC: the ALGO supply, the online stake, its inequality indexes, the PPoS Dex v2 and v3. The accounts holding more than the threshold, online or not, are not recomputed: they would take the balance of every account at the round. Neither are the metrics that count them: the Account Participation Index, the ALGO HHI and the PPoS Dex v1.
Recomputed values are not published on-chain: the charts draw them dashed, the monthly change hatched. The script and the data, with the checks of each point, are in the repository.
Metrics summary
| METRIC | SYMBOL | DESCRIPTION |
|---|---|---|
| ALGO Dynamics | \(S_{dyn}\) | 0 = no ALGO circulation, 1 = complete ALGO circulation |
| ALGO Participation | \(S_{prt}\) | 0 = no PPoS participation, 1 = complete PPoS participation |
| Accounts Participation | \(A_{prt}\) | 0 = no PPoS accounts participation, 1 = complete PPoS accounts participation |
| ALGO HHI | \(1 - HHI(A)\) | Considers all ALGO stakes, whether they participate in the PPoS or not |
| PPoS Gini | \(1 - GI(S)\) | PPoS staking inequality, regardless the number of participating accounts |
| PPoS Theil’L | \(TL(S)\) | PPoS staking inequality, sensitive to differences at the lower end of the distribution (small stakes) |
| PPoS Theil’T | \(TT(S)\) | PPoS staking inequality, sensitive to differences at the high end of the distribution (large stakes) |
| PPoS HHI | \(1 - HHI(S)\) | PPoS staking inequality, takes the number of participating accounts in consideration |
| Effective Validators | \(N_H, N_{HHI}\) | Equal-stake validators the PPoS stake is worth, by entropy and by HHI |
| PPoS Veto | \(NC_{10\%}(S)\) | Fewest online accounts holding more than 10% of the online stake: able to block upgrades |
| PPoS Liveness | \(NC_{20\%}(S)\) | Fewest online accounts holding more than 20% of the online stake: able to stall the consensus |
| PPoS Nakamoto | \(NC_{33\%}(S)\) | Fewest online accounts holding more than 1/3 of the online stake: able to break its honest majority |
| PPoS Upgrade | \(NC_{90\%}(S)\) | Fewest online accounts holding more than 90% of the online stake: the supermajority upgrades need |
| PPoS Dex v3 Operators | \(NC_{q}(O)\) | The four coefficients, merging the online accounts likely run by the same operator |
Note
Minimum balance filter
Due to the huge number of accounts already existing on Algorand (more than 30M at the time of writing, Sep 2023), fetching and processing all of them would be computationally heavy and resource demanding for this project. Therefore, PPoS Dex CLI applies an optional “minimum balance filter”, to ignore accounts with balances lower than a threshold (default 1000 ALGO). Such a filtering operation has a noise-canceling effect that makes the data retrieval and process lighter, without compromising data statistical significance of the stake indexes: less than 0.001% of the online stake belongs to accounts below the default threshold. The metrics counting accounts, like the Accounts Participation and the Gini Index, do depend on the threshold instead.