Skip to content
Open app

Build and test

AI-generated

Keep the protocol, solver, and RandomX repositories in adjacent directories at compatible reviewed revisions. The source links below pin the versions documented here.

Component Version
Rust 1.97.1
SP1 6.3.1
Solidity 0.8.35, via-IR, Prague, 10,000 optimizer runs
Recorded Foundry release 1.7.1
Website Node.js 22.13+

From each Rust repository:

Terminal window
cargo fmt --all -- --check
cargo test --workspace --locked
cargo clippy --workspace --all-targets --locked -- -D warnings

Use --workspace to include the solver’s SP1 adapter. From the protocol repository root, also run:

Terminal window
forge test
forge lint

With Docker and the pinned SP1 toolchain installed, run from chainjump:

Terminal window
rebuild_dir="$(mktemp -d)"
cargo prove build --docker --tag v6.3.1 --locked \
--workspace-directory "$(cd .. && pwd)" \
-p chainjump-program --output-directory "$rebuild_dir"
sha256sum "$rebuild_dir/chainjump-program"
cargo prove vkey --elf "$rebuild_dir/chainjump-program"

Compare the ELF and key with the release identities. The manifest records two identical Docker builds. Historical proof costs and test results belong to their recorded revisions; consult the validation and provenance sources below.

From chainjump-website, with Playwright Chromium installed:

Terminal window
npm ci
npm run validate
npx tsc --project docs/tsconfig.json --noEmit
npm run test:e2e
Terminal window
npm run docs:verify-sources

This checks pinned file hashes, citations, contract/configuration coverage, identities, and arithmetic/ABI examples. It requires the sibling source repositories. Static and browser checks cover links, redirects, labels, and rendering. The repository README documents source-review and publication procedures; these checks do not constitute an independent protocol audit.