MCPcopy Create free account
hub / github.com/devtooligan/MyBeaconChain

github.com/devtooligan/MyBeaconChain @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
31 symbols 56 edges 1 files 0 documented · 0% updated 3y ago★ 44

Browse by type

Functions 24 Types & classes 7
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

MyBeaconChain

╔═╗╔═╗───╔══╗───────────────╔═══╦╗
║║╚╝║║───║╔╗║───────────────║╔═╗║║
║╔╗╔╗╠╗─╔╣╚╝╚╦══╦══╦══╦══╦═╗║║─╚╣╚═╦══╦╦═╗
║║║║║║║─║║╔═╗║║═╣╔╗║╔═╣╔╗║╔╗╣║─╔╣╔╗║╔╗╠╣╔╗╗
║║║║║║╚═╝║╚═╝║║═╣╔╗║╚═╣╚╝║║║║╚═╝║║║║╔╗║║║║║
╚╝╚╝╚╩═╗╔╩═══╩══╩╝╚╩══╩══╩╝╚╩═══╩╝╚╩╝╚╩╩╝╚╝
─────╔═╝║
─────╚══╝

Beacon Chain from scratch, written in Python. Based on The Beacon Chain Ethereum 2.0 explainer you need to read first

Setup

git clone git@github.com:devtooligan/MyBeaconChain.git
cd MyBeaconChain

Usage

python3 src/main.py

The script will process one epoch. Hit enter to process another.

Features complete:

  • [x] Proposers selected randomly weighted by ETH balance
  • [x] Committees formed for each slot
  • [x] Proposals solicited
  • [x] LMD_GHOST and FFG votes solicited and tallied for each slot
  • [x] Blocks attested
  • [x] Checkpoints justified
  • [x] Checkpoints finalized
  • [ ] Rewards distributed

Core symbols most depended-on inside this repo

Shape

Method 24
Class 7

Languages

Python100%

Modules by API surface

src/main.py31 symbols

For agents

$ claude mcp add MyBeaconChain \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page