Skip to content

Nakomoto coefficient for different blockchains to understand levels of decentralization

License

Notifications You must be signed in to change notification settings

raduchis/nakomoto-coefficient-calculator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 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

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. Cosmos
  2. Polygon
  3. Binance Smart Chain
  4. Osmosis Zone
  5. Mina
  6. Solana
  7. Avalanche
  8. Terra
  9. Graph Protocol
  10. Thorchain
  11. Near
  12. Juno
  13. Ethereum 2
  14. Regen Network
  15. Agoric
  16. Stargaze
  17. Hedera
  18. Sui
  19. Pulsechain
  20. Celestia

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

Nakomoto coefficient for different blockchains to understand levels of decentralization

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 97.2%
  • Dockerfile 2.8%