Giter Club home page Giter Club logo

nakomoto-coefficient-calculator's Introduction

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. Regen Network
  14. Agoric
  15. Stargaze
  16. Hedera
  17. Sui
  18. Pulsechain
  19. Celestia
  20. MultiversX
  21. Polkadot
  22. Aptos

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.

nakomoto-coefficient-calculator's People

Contributors

xenowits avatar rachel-bousfield avatar es92 avatar korkey128k avatar perryjrandall avatar etienne-napoleone avatar jhernandezb avatar swirlds-matt avatar urtho avatar raduchis avatar romainua avatar ruiparitydata avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.