specborn documentation contents ↓

System requirements #

specborn is pre-alpha, so these are the conditions under which it has been built and run, not tuned recommendations. Where a number is given, it is a measurement with its source.

Operating system and CPU #

Build tools #

ToolWhyNotes
elan with the Lean toolchain pinned in lean-toolchain (Lean 4.33.1)compiles everythingelan installs the pinned toolchain automatically on the first lake call
a C compiler available as cc (gcc is what the project uses)Lake compiles native/netio.c with ccLean's own generated C is compiled by the toolchain's bundled compiler. Removing this need (no C of the project's own) is deferred until Lean offers what the C file provides (decision D-27)
gitto obtain the source

There are no other dependencies: no Mathlib, no Lean packages (lake-manifest.json lists none), no C libraries beyond libc. lake build downloads nothing.

At run time the node needs /usr/bin/sync (GNU or uutils coreutils, present on ordinary Linux installations): its storage engine calls it to make each commit durable, because Lean's standard library has no fsync (Data directory). The keystore import also runs /usr/bin/stat, only to warn about key files that others can read (it continues without the warning if stat is missing).

Optional tools:

ToolNeeded for
Python 3the devnet helper scripts in testnet/kurtosis/, the test-transcript checkers, and rendering this documentation (scripts/docs/)
Docker and the Kurtosis CLIrunning a local multi-client devnet (quick start)
Dockerbuilding a specborn container image locally (scripts/docker/build.sh, see Installation)
curlthe devnet scripts (they query the devnet clients' local APIs)
about 22 GB of diskthe official test vectors fetched by scripts/fetch-fixtures.sh, needed only to run the test suites

Memory #

Measured so far:

Mainnet has not been run, so there is no mainnet figure.

Decrypting validator keystores (specborn validator keys import, specborn run --validator-keys) uses up to about 1.2 to 1.4 GB at its peak, measured, for any number of standard scrypt keystores (they are decrypted up to four at a time within a 1 GiB scrypt budget; docs/pieces/vkeys.md §16, §26.4), and about 600 MB for the most expensive single keystore the bounds admit. The memory is used during start-up only, before the node syncs.

Building the proofs (a plain lake build, not needed to run the node) needs far more memory than running the node: one proof module's Lean process reached about 147 GiB of resident memory (Installation).

Disk #

Network #

Clock #

The node derives the current slot from the system clock, as every consensus client does. Keep the clock synchronised (NTP or similar); a node whose clock is off by more than a fraction of a slot will judge blocks as early or late.