Skip to content
rbitcoin-orgPublic

About

Bitcoin full node in Rust: map-free relational archive, pure-Rust consensus, multi-peer IBD, Electrum for wallet backends

Topics

Resources

Contributing

Security policy

Stars

102 stars

Watchers

5 watching

Forks

Latest commit

 

History

8,997 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rbitcoin

coverage

Bitcoin full node in Rust for production server-side use. It runs multi-peer IBD, tip follow, and block/tx relay (tip mode). It serves optional Core-class JSON-RPC and in-process Electrum + optional Esplora REST. The scripthash index is --sh-index, default off. That Electrum and Esplora surface is a Core+electrs drop-in: COMPAT.md. The node is built around a relational archive (Class A/B/C) and a pure-Rust consensus/script path.

0.10.99 is the in-tree version (pre-0.11.0). The published GitHub Release is 0.10.0. The patch line is v0.10.x.

Mainnet is the network to run. A consensus split is vanishingly unlikely. 1.0 is where further hardening, a support window, and signed release binaries are planned. This release is not signed.

The default mainnet milestone is block 966143 (00000000000000000000748969ec33043c0e52a763c6dd5193861f559f2c72e3), Bitcoin Core 32.1’s defaultAssumeValid block. Script and signature checks skip only when that hash and the block being connected are the header-path occupants at their heights. Stored minimum chain work is not that gate.

--milestone 0 checks every script. An explicit height skips by height alone. Signet, testnet4, and testnet5 check every script by default.

Occupied 0.6.x stores refuse: wipe the datadir and sync again. A 0.7, 0.8, or 0.9 directory opens in place. The upgrade is one way: an older binary then refuses the directory (docs/operator/storage.md).

Electrum and Esplora need --sh-index (default off) for address history. Report security issues privately: SECURITY.md. Runbook: docs/operator/mainnet.md.

License MIT OR Apache-2.0 (LICENSE-MIT, LICENSE-APACHE)
Version 0.10.99 (pre-0.11.0) — CHANGELOG.md. Published release 0.10.0, patch line v0.10.x.
Platform Linux musl (x86_64 and aarch64) is the operator path. The container image is ghcr.io/rbitcoin-org/rbitcoin. Windows / Darwin are published snapshots (no IoRing; Darwin not notarized)
Security SECURITY.md — 0.10.x is the published line; support window and signed binaries are 1.0
Design docs/architecture.md — why this node is different
Develop rustup 1.99, no Nix — CONTRIBUTING.md
Coverage Production-file line coverage floor is 92% (LH*100 >= LF*92). TESTING.md

Why this node is different

Most full nodes center a UTXO set + block files (Bitcoin Core). Most Electrum backends are external indexers of another node. rbitcoin does neither: no UTXO set (relational archive), Electrum + txindex in-process.

Core / Fulcrum contrasts: docs/architecture.md. Product surface: COMPAT.md. RPC subset: docs/rpc.md.

Status

Core pipelines exist for the server-side / wallet-client backend role: store, consensus, P2P IBD, tip follow, scripthash, Electrum, Esplora REST, and libre mempool. Mainnet is that job. It is not a full Core RPC clone and not Fulcrum.

First hour on regtest (mine → Electrum → Esplora): docs/operator/operations.md. The mainnet runbook is docs/operator/mainnet.md. Ongoing test growth is docs/quality.md. A 1.0 tag is the support window and signed binaries in SECURITY.md.

0.8: drop-in for mempool/electrs or Blockstream electrs HTTP. It is not address-prefix, and not their /api/v1/ Node process. Core RPC for that stack is TCP plus an opt-in Core cookie (--rpc-cookie-file), so stock mempool CORE_RPC works unpatched; a unix-socket patch stays optional. Product surface: COMPAT.md.

Authorship: first-party code is AI-written (Grok / xAI) under Brandon Black (@reardencode) prompting. Details are in SECURITY.md. Default milestone and script skip: docs/operator/mainnet.md. Signet and a constrained host: docs/operator/field-notes.md.

Build

Develop (any OS, Nix optional)

Nix is not required. Rust 1.99 comes from rustup (rust-toolchain.toml). Clone, first build, --smoke, and Windows/macOS notes are in CONTRIBUTING.md (Getting started).

git clone https://github.com/rbitcoin-org/rbitcoin.git && cd rbitcoin
cargo build -p rbitcoin-node -p rbitcoin-cli

The Linux-only optional pin is nix develop / nix-shell, with the same flake.lock as release. Agents use one worktree per session (topic branch per PR) and let Actions run workspace/coverage gates — AGENTS.md.

Portable static release (Linux operator)

Pinned nixpkgs + Cargo.lock musl static binaries. Commands and byte-identity: docs/reproducible-builds.md. Day-to-day flags: docs/operator/. The task index is OPERATOR.md. Mainnet: docs/operator/mainnet.md.

Do not use cargo build --release inside nix-shell / nix develop as the operator binary. It links against the Nix store glibc and fails outside the store.

Crates

Workspace crate ownership and dependency orientation: docs/CRATES.md.

Documentation

Full map (one owner per fact): docs/README.md.

Audience Start
Operator OPERATOR.md
Product / interop COMPAT.md
Contributor CONTRIBUTING.md (getting started: rustup, Linux / macOS / Windows)
Agent AGENTS.md
On-disk SCHEMA.md
Tests TESTING.md

Design uniqueness: docs/architecture.md. Security contact: SECURITY.md.

Seqsigwit-window prune (--prune-seqsigwit), BIP158 filters, silent-payment tweaks, GBT, and the SV2 template provider are product.

What this is not

  • Production multi-tenant Electrum or “drop-in Core”
  • A wallet, a GUI, Core -prune of blk files, or a full Core RPC clone
  • A claim of complete mainnet script validation under the default milestone (use --milestone 0 for full scripts)
  • A multi-OS port — Linux is the supported IO target today

License

Licensed under either of:

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions. See CONTRIBUTING.md.

About

Bitcoin full node in Rust: map-free relational archive, pure-Rust consensus, multi-peer IBD, Electrum for wallet backends

Topics

Resources

Contributing

Security policy

Stars

102 stars

Watchers

5 watching

Forks

Releases

Packages

Used by

Contributors

Languages