Selection of the notary set size
As mention in our consensus algorithm, we follow the hypergeometric distribution to decide the size of notary set.
Given a node set of size N, the ratio R of Byzantine nodes, and the notary set of size n, then, the probability that more than 1/3 of notary set is Byzantine nodes is
We set the probability to be 10^-8; that is, there is less than one fault during 10000 years in expectation (notary set is re-selected every hour). Assume R=1/5. We can derive the proper size of the notary set according to the equation and the result is shown in the following figure.
For convenience, we give two curves to approximate the data points. The first one is y = 70.5 ln(x) - 264, which is the purple dash line and the second one is y = 74 ln(x) - 264, which is the green dash line. The following table is the resilience ratio to the Byzantine given the size of notary set and probability 10^-8.
|node set size||notary set size||resilience||notary set size||resilience|
DEXON mainnet will use y = 70.5 ln(x) - 264 to decide the size of the notary set under different sizes of the node set.