Skip to content

xenowits/nakomoto-coefficient-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nakamoto Coefficient Calculator

AIM

The aim of this project is to calculate the nakamoto coefficients for various popular blockchains.

Nakamoto coefficient is a way to calculate the level of decentralization in a particular chain.

Read this amazing messari report on operational decentralization of Proof-of-stake networks.

Disclaimer

Please note that the values should be interpreted with context since the same objective treatment is applied for all the chains included here, ie, we simply calculate:

nakamoto-coefficient: no of validators controlling 33% of the total network stake

Note that the threshold may be different for some blockchains, for example, 50%. So, I would suggest users to understand the context, cross-verify and examine the results. For any feedback, please join this discord.

Programming Languages

Golang

Steps to run

  1. Build docker image
docker build . --platform=linux/amd64 -t xenowits/nc-calc:v0.1.4
  1. Run the image
docker run --rm \
-e "SOLANA_API_KEY=<YOUR_SOLANA_API_KEY_HERE>" \
-e "RATED_API_KEY=<YOUR_RATED_API_KEY_HERE>" \
-p 8080:8080 xenowits/nc-calc:v0.1.4

NOTE: You can get your API Key by signing up here.

Chains currently supported

  1. Agoric
  2. Aptos
  3. Avail
  4. Avalanche
  5. BNB Smart Chain
  6. Cardano
  7. Celestia
  8. Cosmos
  9. Graph Protocol
  10. Hedera
  11. Juno
  12. Mina
  13. MultiversX
  14. Nano
  15. Near
  16. Nimiq
  17. Osmosis Zone
  18. Polygon
  19. Polkadot
  20. Pulsechain
  21. Regen Network
  22. Sei
  23. Solana
  24. Stargaze
  25. Sui
  26. Terra
  27. Thorchain

Notes

The actual logic is present inside /core. A goroutine runs every 6 hours which updates the nakamoto coefficients for all the chains.

Future Work

To add support for multiple other chains in /v1.

About

Nakamoto Coefficient for different blockchains to understand levels of decentralization

Topics

Resources

License

Stars

45 stars

Watchers

2 watching

Forks

Packages

 
 
 

Contributors