Metrics
Each trilemma axis is measured through several metrics. Some apply to any blockchain system, others only to a specific consensus protocol. Where configurations with a differing number of validation nodes (VNs) are compared, an -based normalization is required so the values stay comparable.
Decentralization
Section titled “Decentralization”Block Proposal Randomness (H)
Section titled “Block Proposal Randomness (H)”Indicates how randomly the validation nodes that may propose a new block are selected — that is, how fairly the chances are distributed among the validation nodes. It uses Shannon entropy (in bits).
- : number of VNs
- : number of blocks that VN was allowed to propose
- : probability, derived from , that a block is proposed by VN
Let be the number of VNs with at least one block proposal, and let denote the set of all VNs. Then , and .
For comparing configurations with a differing number of VNs (differing ), an -based normalization is required:
holds when .
Geographical Diversity (GD)
Section titled “Geographical Diversity (GD)”The degree to which validation nodes in a blockchain system are located in different places.
If a large number of validation nodes are geographically close together, natural disasters or political influences such as bans can affect those nodes and therefore the blockchain as a whole.
- : the dispersion measure when all validation nodes operate in a single location
- : the dispersion measure when all validation nodes are distributed equally across all available locations
- : the measure for the observed distribution
These quantities are derived from an auxiliary dispersion term :
- : number of VNs
- : number of all locations
- : number of occupied locations
- : number of VNs in location
A higher implies an even cross-location dispersion of VNs and increases the degree of decentralization.
Hashing Power Distribution (PoW only)
Section titled “Hashing Power Distribution (PoW only)”Indicates the extent to which hashing power is distributed among all validating nodes that propose the next block. It uses the Nakamoto coefficient (NC):
- : share of hashing power held by VN
A high implies a higher degree of decentralization.
Token Concentration (PoS only)
Section titled “Token Concentration (PoS only)”Indicates the distribution of tokens held as stake among the validation nodes.
A node’s stake usually influences, roughly proportionally, the probability that it may validate a new block. If the stake is split such that, say, three nodes account for 60 % of it, those three nodes have decisive influence over the validation of new blocks and affect both the ability of other nodes to participate and the security of the blockchain.
This is measured with the Herfindahl–Hirschman Index (HHI):
- : the stake of VN
- : the total stake,
For comparing configurations with a differing number of VNs (differing ), an -based normalization is required:
indicates an equal stake distribution, and a monopolistic one.
Wealth Distribution (PoS only)
Section titled “Wealth Distribution (PoS only)”Indicates the inequality of the total tokens held by (validation) nodes.
This uses the Gini coefficient:
- : number of VNs
- : number of tokens held by VN
For comparing configurations with a differing number of VNs (differing ), an -based normalization is required:
Security
Section titled “Security”Cost of Attack (CoA)
Section titled “Cost of Attack (CoA)”Describes the cost, in fiat currency, of gaining control over a blockchain system through an attack.
A high CoA is intended to make attacking a blockchain system economically unattractive.
- : the minimum share of network resources required to gain control over consensus
- : monetary cost per unit of resource
- : the number of resources controlled by VN
Fault Tolerance (FT)
Section titled “Fault Tolerance (FT)”Describes the degree to which a blockchain system continues to operate consistently and correctly despite random or byzantine faults.
denotes the drop in the maximum achievable throughput under failure:
denotes the increase in confirmation latency under failure:
- : value during normal operation of the blockchain
- : value with faults occurring during operation
Reliability (R)
Section titled “Reliability (R)”Denotes the ability of a blockchain system to provide correct services continuously.
Reliability reflects the probability that the system keeps functioning correctly without interruption.
We assume exponentially distributed failure times with a constant hazard rate :
There is also the variant in which is expressed via the mean time between failures (MTBF):
Stale Block Rate (SBR)
Section titled “Stale Block Rate (SBR)”Indicates the proportion of blocks that were propagated in a blockchain system but not finalized into the main chain within a given period.
Scalability
Section titled “Scalability”Transaction Throughput (TPS)
Section titled “Transaction Throughput (TPS)”The rate of first inclusions of transactions over an observation window.
- : number of independent transactions
- : start of the observation window
- : end of the observation window
Transaction Finalization Latency (TFL)
Section titled “Transaction Finalization Latency (TFL)”The time span from submitting a transaction to its first inclusion in the blockchain.
- : timestamp when the transaction was issued
- : timestamp when the first block containing the transaction was validated
Confirmation Latency (CL)
Section titled “Confirmation Latency (CL)”The time span from proposing new blocks to their confirmation.
gives the estimated confirmation latency:
- : the point in time when the block was proposed
- : the point in time when the block was confirmed
computes the confirmation latency taking into account the number of safety confirmations and the average block creation interval:
Some blockchain systems (such as Ethereum) first justify a block and confirm it in the following epoch. For such procedures, describes the confirmation latency:
- : number of epochs until finalization
- : number of slots per epoch
- : duration of one slot
Availability
Section titled “Availability”Describes the degree to which a blockchain system is operational and delivers consistent, timely responses.
It is often measured as the ratio between confirmed and total transactions.
- : number of confirmed transactions
- : total number of transactions