• Stars
    star
    489
  • Rank 86,997 (Top 2 %)
  • Language
    Nim
  • License
    Other
  • Created almost 6 years ago
  • Updated 19 days ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Nim implementation of the Ethereum Beacon Chain

Nimbus Eth2 (Beacon Chain)

Github Actions CI License: Apache License: MIT

Discord: Nimbus Status: #nimbus-general gitpoap badge

Nimbus-eth2 is an extremely efficient consensus layer (eth2) client implementation. While it's optimised for embedded systems and resource-restricted devices -- including Raspberry Pis, its low resource usage also makes it an excellent choice for any server or desktop (where it simply takes up fewer resources).

Documentation

You can find the information you need to run a beacon node and operate as a validator in The Book.

The Quickstart in particular will help you quickly connect to either mainnet or the Prater testnet.

Quickly test your tooling against Nimbus

The Nimbus REST api is now available from:

Note that right now these are very much unstable testing instances. They may be unresponsive at times - so please do not rely on them for validating. We may also disable them at any time.

Migrate from another client

This guide will take you through the basics of how to migrate to Nimbus from another client. See here for advanced options.

Related projects

You can check where the beacon chain fits in the Ethereum ecosystem in our Two-Point-Oh series: https://our.status.im/tag/two-point-oh/

Donations

If you'd like to contribute to Nimbus development, our donation address is 0x70E47C843E0F6ab0991A3189c28F2957eb6d3842

Branch guide

  • stable - latest stable release - this branch is recommended for most users
  • testing - pre-release branch with features and bugfixes slated for the next stable release - this branch is suitable for use on testnets and for adventurous users that want to live on the edge.
  • unstable - main development branch against which PR's are merged - if you want to contribute to Nimbus, start here.

Developer resources

To get started with developing Nimbus itself, see the developer handbook.

Tooling and utilities

We provide several tools to interact with ETH2 and the data in the beacon chain:

  • ncli - command line tool with pretty printers, SSZ decoders, state transition helpers to interact with Eth2 data structures and functions
  • ncli_db - command line tool to perform surgery on the Nimbus sqlite database
  • multinet - a set of scripts to build and run several Eth2 clients locally

For researchers

State transition simulation

The state transition simulator can quickly run the Beacon chain state transition function in isolation and output JSON snapshots of the state. The simulation runs without networking and blocks are processed without slot time delays.

# build and run the state simulator, then display its help ("-d:release" speeds it
# up substantially, allowing the simulation of longer runs in reasonable time)
make NIMFLAGS="-d:release" state_sim
build/state_sim --help

Local network simulation

The local network simulation will create a full peer-to-peer network of beacon nodes and validators on a single machine, and run the beacon chain in real time. Parameters such as shard, validator counts, and data folders can be set in as environment variables before launching the simulation.

# Clear data files from your last run and start the simulation with a new genesis block:
make VALIDATORS=192 NUM_NODES=6 USER_NODES=1 local-testnet-minimal

# In another terminal, get a shell with the right environment variables set:
./env.sh bash

# In the above example, the network is prepared for 7 beacon nodes but one of
# them is not started by default (`USER_NODES`) - this is useful to test
# catching up to the consensus. The following command will start the missing node.
./tests/simulation/run_node.sh 0 # (or the index (0-based) of the missing node)

# Running a separate node allows you to test sync as well as see what the action
# looks like from a single nodes' perspective.

By default, validators will be split in half between beacon node and validator client processes (50/50), communicating through the common validator API (for example with 192 validators and 6 nodes you will roughly end up with 6 beacon node and 6 validator client processes, where each of them will handle 16 validators), but if you don't want to use external validator clients and instead want to have all the validators handled by the beacon nodes you may use USE_VC=0 as an additional argument to make local-testnet-minimal.

Alternatively, fire up our experimental Vagrant instance with Nim pre-installed and give us your feedback about the process!

Visualising simulation metrics

The generic instructions from the Nimbus repo apply here as well.

Specific steps:

# This will generate the Prometheus config on the fly, based on the number of nodes:
make REMOTE_VALIDATORS_COUNT=192 NUM_NODES=6 USER_NODES=0 local-testnet-minimal

# In another terminal tab, after the sim started:
cd tests/simulation/prometheus
prometheus

The dashboard you need to import in Grafana is grafana/beacon_nodes_Grafana_dashboard.json.

monitoring dashboard

CI setup

Local testnets run for 4 epochs each, to test finalization. That happens only on Jenkins Linux hosts, and their logs are available for download as artifacts, from the job's page. Don't expect these artifacts to be kept more than a day after the corresponding branch is deleted.

Jenkins artifacts

License

Licensed and distributed under either of

or

at your option. These files may not be copied, modified, or distributed except according to those terms.

More Repositories

1

status-mobile

a free (libre) open source, mobile OS for Ethereum
Clojure
3,822
star
2

react-native-desktop-qt

A Desktop port of React Native, driven by Qt, forked from Canonical
JavaScript
1,194
star
3

status-go

The Status module that consumes go-ethereum
Go
715
star
4

nimbus-eth1

Nimbus: an Ethereum Execution Client for Resource-Restricted Devices
Nim
550
star
5

nim-chronos

Chronos - An efficient library for asynchronous programming
Nim
343
star
6

status-desktop

Status Desktop client made in Nim & QML
QML
259
star
7

status-keycard

Our Javacard Implementation for making secure transactions within Status and Ethereum
Java
195
star
8

status-network-token

Smart Contracts for the Status Contribution Period, along with Genesis and Network Tokens
JavaScript
148
star
9

nim-chronicles

A crafty implementation of structured logging for Nim.
Nim
138
star
10

open-bounty

Enable communities to distribute funds to push their cause forward.
JavaScript
119
star
11

nim-stew

stew is collection of utilities, std library extensions and budding libraries that are frequently used at Status, but are too small to deserve their own git repository.
Nim
119
star
12

doubleratchet

The Double Ratchet Algorithm implementation in Go
Go
108
star
13

nim-faststreams

Nearly zero-overhead input/output streams for Nim
Nim
107
star
14

nim-taskpools

Lightweight, energy-efficient, easily auditable threadpool
Nim
98
star
15

swarms

Swarm Home. New, completed and in-progress features for Status
HTML
92
star
16

contracts

Python
87
star
17

nim-json-rpc

Nim library for implementing JSON-RPC clients and servers
Nim
84
star
18

status-web

TypeScript
77
star
19

nim-websock

Websocket for Nim
Nim
74
star
20

questionable

Elegant optional types for Nim
Nim
73
star
21

nim-stint

Stack-based arbitrary-precision integers - Fast and portable with natural syntax for resource-restricted devices.
Nim
73
star
22

nim-eth

Common utilities for Ethereum
Nim
69
star
23

nim-graphql

Nim implementation of GraphQL with sugar and steroids
Nim
64
star
24

nim-drchaos

A powerful and easy-to-use fuzzing framework in Nim for C/C++/Obj-C targets
Nim
63
star
25

clj-rn

A utility for building ClojureScript-based React Native apps
Clojure
56
star
26

nim-confutils

Simplified handling of command line options and config files
Nim
56
star
27

nim-serialization

A modern and extensible serialization framework for Nim
Nim
54
star
28

nim-presto

REST API framework for Nim language
Nim
47
star
29

keycard-cli

A command line tool and shell to manage keycards
Go
45
star
30

nim-json-serialization

Flexible JSON serialization not relying on run-time type information
Nim
39
star
31

nim-quic

QUIC for Nim
Nim
39
star
32

keycard-go

Go pkg to interact with the Status Keycard
Go
39
star
33

nim-metrics

Nim metrics client library supporting the Prometheus monitoring toolkit, StatsD and Carbon
Nim
38
star
34

nim-web3

Nim
37
star
35

nim-bearssl

BearSSL wrapper in Nim
C
37
star
36

ETHPrize-interviews

A repository for the ETHPrize website.
HTML
36
star
37

nim-codex

Decentralized Durability Engine
Nim
36
star
38

nim-toml-serialization

Flexible TOML serialization [not] relying on run-time type information.
Nim
34
star
39

hackathon

Status API Hackathon
JavaScript
32
star
40

nim-rocksdb

Nim wrapper for RocksDB, a persistent key-value store for Flash and RAM Storage.
Nim
29
star
41

nim-daemon

Cross-platform process daemonization library for Nim language
Nim
28
star
42

status-electron

[OUTDATED NOT SUPPORTED] Status Electron (React Native Web and Electron)
Clojure
27
star
43

nim-style-guide

Status style guid for the Nim language
Nim
26
star
44

StatusQ

Reusable Status QML components
QML
26
star
45

status-teller-network

DApp which provides a platform for borderless, peer-to-peer, fiat-to-crypto echanges that allows Stakeholders to find nearby users to exchange their cash for digital assets and currency.
JavaScript
26
star
46

nim-decimal

A correctly-rounded arbitrary precision decimal floating point arithmetic library
C
26
star
47

codex-research

Codex durability engine research
Jupyter Notebook
25
star
48

nim-http-utils

Nim language HTTP helper procedures
Nim
25
star
49

vyper-debug

Easy to use Vyper debugger | vdb (https://github.com/ethereum/vyper)
Python
24
star
50

react-native-status-keycard

React Native library to interact with Status Keycard using NFC connection
Java
24
star
51

nim-unittest2

Beautiful and efficient unit testing for Nim evolved from the standard library `unittest` module
Nim
24
star
52

mingw-windows10-uwp

Minimal Windows 10 Store ready sample of MinGW dll PInvoked from Windows 10 UWP application
C#
24
star
53

wiki.status.im

It's the wiki... for Status
HTML
24
star
54

nim-snappy

Nim implementation of Snappy compression algorithm
Nim
24
star
55

CryptoLife

A repo for all the #CryptoLife Hackathon submissions, The National House Smichov, Prague, 26-28th October 2018.
23
star
56

status-chat-widget

Easily embed a status chatroom in your website - outdated, please use https://github.com/status-im/js-waku
JavaScript
22
star
57

nim-blscurve

Nim implementation of BLS signature scheme (Boneh-Lynn-Shacham) over Barreto-Lynn-Scott (BLS) curve BLS12-381
C
22
star
58

keycard-connect

Keycard + WalletConnect
Kotlin
21
star
59

nimplay

Nim Ethereum Contract DSL. Targeting eWASM.
Nim
20
star
60

whisper-tutorial

Whisper Tutorial using web3js
JavaScript
20
star
61

nim-cookbook

Nim
20
star
62

ens-usernames

DApp to register usernames for Status Network
JavaScript
19
star
63

status-keycard-java

Java SDK for the Status Keycard
Java
19
star
64

Keycard.swift

Swift
19
star
65

account-contracts

Key managers, recovery, gas abstraction and self-sovereign identity for web3 universal login.
Solidity
19
star
66

ethereumj-personal

EthereumJ for Personal Devices DEPRECATED
Java
19
star
67

liquid-funding

Dapp for delegating donations to projects
JavaScript
19
star
68

nim-protobuf-serialization

Nim
17
star
69

nim-testutils

testrunner et al
Nim
17
star
70

general-market-framework

A Generalised Market Framework for Ethereum
Python
16
star
71

nim-libbacktrace

Nim wrapper for libbacktrace
C
16
star
72

wallet

CSS
16
star
73

react-native-transparent-video

React Native video player with alpha channel (alpha-packing) support.
Java
16
star
74

go-maven-resolver

Tool for resolving Java Maven dependencies
Go
15
star
75

murmur

WIP - Whisper node / client implementation built in javascript
JavaScript
15
star
76

bigbrother-specs

Research and specification for Big Brother protocol
14
star
77

status-dev-cli

Status command-line tools
JavaScript
14
star
78

nim-evmc

Nim EVMC - Ethereum VM binary compatible interface
Nim
14
star
79

keycard-installer-android

discontinued, use https://github.com/status-im/keycard-cli - Keycard applet installer over NFC
Java
14
star
80

specs

Specifications for Status clients.
HTML
14
star
81

nescience

A Zero-Knowledge Toolkit
Nim
13
star
82

move

MOVΞ - A Decentralised Ride Sharing DApp
JavaScript
13
star
83

geth_exporter

geth metrics exporter for Prometheus
Go
13
star
84

autobounty

Github bot that automatically funds https://openbounty.status.im bounties
JavaScript
13
star
85

status-security

Repository for all Status Network related security information
JavaScript
13
star
86

snt-gas-relay

SNT Gas Relay
JavaScript
13
star
87

nim-ttmath

C++
12
star
88

nim-eth-p2p

Nim Ethereum P2P protocol implementation
Nim
11
star
89

keycard-redeem

TypeScript
11
star
90

status-github-bot

A bot for github
JavaScript
11
star
91

syng-client

The Mobile Client for the Ethereum Network DEPRECATED
Java
11
star
92

dreddit-devcon

JavaScript
11
star
93

keycard-pro

WIP
C
11
star
94

embark-status

Provides an ability to debug Embark DApps in Status
JavaScript
11
star
95

pluto

Clojure
11
star
96

snt-voting

JavaScript
11
star
97

nimbus-launch

Jumpstart your Nim project at Status
Nim
11
star
98

nim-eth-contracts

Ethereum smart contracts in Nim
Nim
10
star
99

translate.status.im

Help translate Status into your language!
JavaScript
10
star
100

nim-ssz-serialization

Nim implementation of Simple Serialize (SSZ) serialization and merkleization
Nim
10
star