specborn documentation contents ↓

Installation: building from source #

NOT FOR PRODUCTION. specborn is experimental research software. Do not use it to secure funds, do not run it as your only node, and do not use it with mainnet validator keys. Its validator client has run only on local devnets: do not use real validator keys with it on any network (Validators).

The source repository is not public yet, and no binaries, releases, packages or container images are published. Building from source (or building a container image yourself from the source, see below) is the only way to run specborn, and only people with access to the repository can do it today. Publishing the source and the container image is planned for when the repository is opened (decision D-26 in PROOF_LEDGER.md); versioned releases with checksums are planned (milestone M14).

1. Install the Lean toolchain manager #

specborn needs Lean 4 and its build tool Lake, installed through elan, the Lean toolchain manager. Follow the official elan instructions at https://github.com/leanprover/elan (on Linux this is a shell installer; read it before running it). You also need a C compiler available as cc (for example gcc from your distribution) and git. See System requirements.

You do not need to pick a Lean version: the repository pins it in lean-toolchain, and elan installs that exact toolchain the first time you run lake inside the checkout.

runnable offline; checked by scripts/docs/check.sh
cat lean-toolchain

2. Get the source #

From a checkout of the repository (the path below is an example):

cd ~/src/specborn
git log -1 --format='%H %cd'   # the commit you are about to build

Record that commit hash; it is the only version identifier there is today (specborn --version prints a development version string that does not change with every commit).

3. Build the executables #

runnable offline; checked by scripts/docs/check.sh
lake build specborn specborn-evm
.lake/build/bin/specborn --version

This builds the implementation (Specborn/) and the two executables, .lake/build/bin/specborn (the node) and .lake/build/bin/specborn-evm (the state-test tool for fuzzers, see specborn-evm). It does not build the proofs or the tests. Nothing is downloaded.

To put the node on your PATH, copy or link the binary, for example ln -s "$PWD/.lake/build/bin/specborn" ~/.local/bin/specborn. The examples in this guide call it by its build path.

A plain lake build builds everything: the reference specification, the implementation, every proof (the Lean kernel checks each theorem as it is built), the test runners and sigscan-fixture, a never-shipped binary whose compile-time constructs the axiom audit must refuse (a negative control of scripts/audit-axioms.sh). It takes a long time and a lot of memory. On the project's shared 128-thread machine, a build from an empty .lake/ reached the last few modules after about 57 minutes. One proof module, Proofs/EL/Forks/Cancun/HoodiAlloc.lean (a kernel evaluation over Hoodi's genesis allocation), alone runs for about 36 minutes according to its own header, and its Lean process reached about 147 GiB of resident memory (sampled every 20 s during a successful build on the project's machine). A machine with less memory cannot build the proofs; the executables (step 3) do not need them.

lake build

Then the project's own checks. Each prints a final PASS line:

runnable offline; checked by scripts/docs/check.sh
scripts/scan-banned.sh      # no sorry/admit/native_decide; every foreign function registered in TRUST.md
scripts/spec-manifest.sh    # Spec/ unchanged against its hash manifest
scripts/audit-axioms.sh     # transitive axioms of every theorem (needs the full build)

The test suites need the official test vectors, about 22 GB, downloaded by scripts/fetch-fixtures.sh (it uses the GitHub CLI gh and the pinned release names in specs/pins.json). Then run the gate for a few suites, or all of them:

scripts/fetch-fixtures.sh
scripts/check.sh rlp keccak ssz     # build + spec manifest + banned scan + axiom audit + the named suites
scripts/check.sh                    # every suite

A full gate takes hours. Two recorded passing full gates of the parallel gate took 88 min 49 s and 93 min 57 s on the project's 128-thread machine, shared with other jobs (docs/pieces/gatepar.md ยง5); the latest full gate, 2026-11-16, ended CHECK: FAIL under host overload, and the failed suites passed when re-run on the quiet host (see Status).

scripts/check.sh prints CHECK: PASS only if every step passes, including every test case of every selected suite.

One step checks the test binary itself: right after the build, every gate runs spectest once with no suite selected and fails if that start-up needs more than 2048 MB resident or 30 s (it normally takes about 250 MB and 3.5 s). It prints SPECTEST STARTUP: PASS (x MB, y s). Every spectest process pays this start-up, because it runs the initialisation of every module the tests import. Review checklist: when a change adds an import Proofs.* (or another heavy import) to a module under Tests/, the reviewer compares the printed figures with the earlier ones and with the baseline. A PASS alone is not enough.

5. Updating #

There is no release channel. To update, check out a newer commit and build again:

git pull
lake build specborn specborn-evm

specborn is pre-alpha: there is no compatibility promise for the data directory between commits and no migration tooling. A node refuses a data directory of another chain; if a newer build cannot open your data directory, start with a fresh one (see Data directory).

Building a container image locally #

The repository contains a Dockerfile and a helper script, scripts/docker/build.sh. Nothing is downloaded from a specborn registry: the image is built on your machine from your checkout.

scripts/docker/build.sh          # builds and smoke-tests specborn:<version>-<commit>
docker run --rm specborn:<tag> --help

What the Dockerfile does (read it before building):

The build needs network access (Debian packages, elan, the Lean toolchain). The image contains the commands of the commit it was built from: an image of an older commit may lack commands this guide documents (for example, an image built at f2c9a00f has no specborn validator commands), so rebuild after updating your checkout.

Running the image #

The entrypoint is specborn, so arguments after the image name are specborn arguments, and the default command is --help:

docker run --rm specborn:<tag> --version
docker run --rm specborn:<tag>                 # prints the help

The container runs as uid 10001 (specborn), never as root, with /data as its working directory and declared volume. Keep the node's data in a named volume mounted at /data (Docker gives a new named volume the ownership of the image's /data, so the non-root user can write to it), and put the network files and the peers file where the container can read them, for example a read-only bind mount:

docker run --rm -v specborn-data:/data -v "$PWD/net:/net:ro" specborn:<tag> \
  run --datadir /data/node --network /net --el-genesis /net/genesis.rlp --peers /net/peers.txt

A host directory bind-mounted at /data instead must be writable by uid

  1. specborn run only dials out to its peers and listens on no port

for them, so no port needs to be published for peer-to-peer traffic. Discovery needs outbound UDP. The JSON-RPC and beacon API listen on 127.0.0.1 inside the container, so they cannot be reached from the host through a published port; use them from inside the container (or run it with the host's network). The container has the same limitations as the binary: see Current status; the flags are in the CLI reference.

Checked by hand on 2026-11-14 with an image the project's machine had built from f2c9a00f (offline, docker run --network none): --version prints specborn 0.0.2-dev, id inside the container prints uid=10001(specborn), /data is owned by specborn (also when a new named volume is mounted there, and the user can write to it), and the image's configuration has the volume /data, the entrypoint specborn and the command --help. The guide's author did not run scripts/docker/build.sh for this version.

No published image yet #

There is no specborn image on Docker Hub or any other registry. The name 0xfredrik/specborn on Docker Hub is the name planned for the image to be published when the source repository is opened (decision D-26); on 2026-11-14 Docker Hub answered that it does not exist (HTTP 404 for its tag list), so docker pull 0xfredrik/specborn fails. scripts/docker/publish.sh exists for publishing later and refuses to run while the source repository is private. Until then, build the image yourself as above, and treat any image under that name or another that claims to be specborn with suspicion.

Building this documentation #

The documentation you are reading is the Markdown in docs/book/, rendered by a standard-library-only Python script:

runnable offline; checked by scripts/docs/check.sh
python3 -I scripts/docs/build-site.py "$(mktemp -d)"

scripts/docs/check.sh checks it (links, the CLI reference against the binaries, and every block marked runnable).