
challenger
io.github.LJ-XRPL/challenger
Rust XRPL Mainnet node: verified reads, tx simulation, Mainnet-fork sandboxes, key-free signing.
Documentation
Challenger
A Rust implementation of the XRP Ledger validator server, written against rippled as the reference: cryptography, the binary codec, SHAMap, a node store, the peer protocol, consensus, the transaction engine, the Bonneville flat-state engine, the Pitwall differential execution oracle, and the challenger validator binary that ties them together.
Status: experimental alpha — not externally audited and not ready for production Mainnet keys or real funds. See SECURITY.md for security boundaries and docs/STATUS.md for the single source of truth on what is verified offline in this repository (workspace tests,
rippledvectors, 136 E2E tests, and 62 committedxrpl-pitwallgolden fixtures including 10 Mainnet) versus open gaps.
Try it
You only need bash and curl (the script automatically installs stable Rust via rustup if not present).
git clone https://github.com/LJ-XRPL/challenger
cd challenger
./scripts/one-click-validator.sh --mainnet --telemetry
That builds the validator, generates keys and config, starts it with the live terminal TUI, and serves its web dashboard at http://127.0.0.1:5005/dashboard. Pass --mainnet, --testnet, or --devnet (or --network <name>) to connect to a live XRPL network, or --cluster 5 to spin up a five-node local TLS 1.3 mesh. Press q or Ctrl-C to stop cleanly.
- Opt-in Fleet Telemetry (
--telemetry): Off by default. When enabled, sends anonymous 60s performance beacons (OS/arch, CPU cores,git_sha, close/apply/persist ms, RSS/disk MB, tip lag, top stall handler — zero keys, zero IP storage, zero RPC queries) to the live timing sheet at challenger.lukejudges.com/fleet.
Then talk to it:
curl -s http://127.0.0.1:5005/ -d '{"method":"server_info","params":[{}]}'
The HTTP port has no password. submit, feature, and consensus_info require the caller to be on the admin allowlist. Generated configs allow loopback only and bind the listener to loopback. Read the security section before running this on a machine other people can reach.
Challenger Light — Zero-Trust XRPL on Your Phone or Laptop

Verify live XRPL Mainnet UNL manifests (MNF\0), validator signatures (VAL\0), live consensus proposals (PRP\0), 80% quorum, LWR\0 ledger headers, and 16-way SHAMap Merkle proofs (AccountRoot & tx finality) locally with zero database and zero trust in any server—either as an installable phone/tablet/desktop PWA (295 KB of Rust compiled to WebAssembly, with multi-relay failover & anti-censorship broadcast fan-out), via the drop-in xrpl.js adapter (sdk/challenger-light-xrpl), or as a standalone laptop local JSON-RPC server (127.0.0.1:5005) that peers directly with rippled hubs via 1-RTT TMGetLedger(LiAsNode) and supports on-device stateless proposing (--stateless-propose, zero third-party hub).
# Laptop / Desktop: install & run zero-trust local JSON-RPC on 127.0.0.1:5005 (no relay, no DB)
cargo install --git https://github.com/LJ-XRPL/challenger xrpl-light-client
challenger-light
# Or enable on-device stateless proposing / 0-DB shadow validation (zero third-party hub):
challenger-light --stateless-propose --stateless-verify
curl -s http://127.0.0.1:5005/ -d '{"method":"account_info","params":[{"account":"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"}]}'
# Phone PWA + 1-Command Self-Hosted Relay (deploy/relay/)
cargo install --git https://github.com/LJ-XRPL/challenger xrpl-light-relay
xrpl-light-relay --network mainnet --listen 0.0.0.0:8080
Read docs/LIGHT.md for live Mainnet verification receipts, on-device --stateless-propose & SparseSHAMap witness verification, Live Consensus Observer (PRP\0), multi-relay failover, the 1-command deploy/relay/ bundle, the drop-in sdk/challenger-light-xrpl package, and iOS/Android UniFFI bindings.
AI-Native XRPL Node (challenger-mcp)
Connect Claude.ai, Claude Desktop, ChatGPT Connectors / Custom GPTs, Claude Code, or Cursor directly to XRPL Mainnet via Challenger's native 6.2 MB Rust Model Context Protocol (MCP 2025-03-26) server:
- Hosted MCP (zero install):
https://challenger.lukejudges.com/mcp - OpenAPI 3.1 (ChatGPT Custom GPT Actions):
https://challenger.lukejudges.com/openapi.json - Local stdio (
challenger-mcp):cargo install --git https://github.com/LJ-XRPL/challenger xrpl-mcp challenger-mcp --stdio --rpc http://127.0.0.1:5005 - 10 AI-native tools: verified reads (
xrpl_network_status,xrpl_account_summary,xrpl_orderbook,xrpl_explain_tx), in-process Rust dry-run simulation (xrpl_simulate_tx), ephemeral live-Mainnet-fork sandboxes (xrpl_sandbox_create/exec/inspect/drop), and key-free signing handoff (xrpl_prepare_tx). See docs/AI_MCP.md anddeploy/mcp/.
Matched 8-Core Benchmarks (Challenger vs xrpld vs xahaud vs Clio)
Measured on an 8 vCPU AMD EPYC-Genoa host (Linux 6.8.0) with matched 8-thread configs (JobQueue: Using 8 threads on C++ nodes, warning log level) and a GIL-free 8-process async HTTP/1.1 keep-alive load generator (account_info, ledger_data, book_offers, ledger_closed, 0 errors):
| Concurrency / Metric | Challenger (bonneville, 8t) | xrpld 3.4.1 (NuDB, 8t) | xahaud (NuDB, 8t) | xahaud (rwdb RAM, 8t) | Clio 2.8.0 (Cassandra 5.0, 8t) |
|---|---|---|---|---|---|
| 1 client | 4,714 req/s (0.21 ms p50) | 2,275 req/s (0.43 ms) | 2,311 req/s (0.41 ms) | 2,522 req/s (0.38 ms) | 1,415 req/s (0.54 ms) |
| 8 clients | 33,499 req/s (0.18 ms p50) | 13,230 req/s (0.53 ms) | 14,934 req/s (0.42 ms) | 18,366 req/s (0.35 ms) | 4,943 req/s (1.07 ms) |
| 32 clients | 79,746 req/s (0.28 ms p50) | 14,151 req/s (2.07 ms) | 20,283 req/s (1.45 ms) | 22,254 req/s (1.31 ms) | 8,175 req/s (2.30 ms) |
| 64 clients | 109,799 req/s (0.42 ms p50 / 1.47 ms p99) | 13,739 req/s (4.20 ms) | 22,835 req/s (2.48 ms) | 23,580 req/s (2.43 ms) | 8,602 req/s (3.72 ms) |
| Peak RSS | 25.2 MB | 145.8 MB | ~298 MB | ~300 MB | 1,548 MB (total stack) |
Full timing details: challenger.lukejudges.com/benchmarks.
What is in the box
| Crate | What it does |
|---|---|
xrpl-crypto | SHA-512Half, hash prefixes, Base58Check, secp256k1 and Ed25519 keys and signatures |
xrpl-codec | Canonical binary serialization, field registry, STAmount arithmetic, signing digests |
xrpl-shamap | The 16-way Merkle radix tree, snapshots, diffs, proofs, SparseSHAMap witness tree, ledger header hashing |
xrpl-nodestore | Content-addressed object store (memory and append-only file) and ledger persistence |
xrpl-overlay | Peer framing, protobuf wire codec, XRPL/2.2 and XRPL/2.3 handshake, TLS 1.2/1.3 transport, peer manager |
xrpl-consensus | Consensus as a pure state machine: proposals, disputes, close time, validations |
xrpl-tx-engine | Ledger views, keylets, 78 transaction types, invariant checks, the amendment table |
xrpl-validator | The challenger node binary: config, ledger manager, sync, JSON-RPC, dashboard, init |
xrpl-bonneville | State objects, written once. The node opens this for a new database |
xrpl-pitwall | Differential execution oracle & auto-minimized reproducer harness against rippled |
xrpl-light-core | Pure-Rust zero-trust verifier shared by WASM, laptop local RPC, and mobile UniFFI |
xrpl-light-relay | Stateless, untrusted XRPL/2.3 peer-to-WebSocket relay for Challenger Light |
xrpl-light-client | challenger-light zero-trust local JSON-RPC (127.0.0.1:5005) + on-device --stateless-propose |
xrpl-light-wasm | 290 KB WebAssembly verifier + drop-in JS SDK (light/challenger-light.js) |
xrpl-light-ffi | UniFFI Swift (iOS) and Kotlin (Android) bindings around xrpl-light-core |
xrpl-mcp | Native Rust MCP (2025-03-26) & OpenAPI 3.1 server with in-process simulation and Mainnet-fork sandboxes |
xrpl-validator
┌───────────┬──────────┴──┬──────────────┐
nodestore overlay consensus tx-engine
└───────────┴──────┬──────┴──────────────┘
codec shamap
└── crypto ──┘
The four middle crates do not depend on each other. In particular consensus knows nothing about transactions: it asks the validator to close a ledger and gets a header back. docs/ARCHITECTURE.md walks through the design, the life of a transaction, and the state machines.
What is verified vs. what is not there yet
docs/STATUS.md is the single source of truth for verification scope and known gaps. In short:
- Offline reproducible verification: Workspace unit & integration tests,
rippledcrypto/codec/SHAMap vectors, 136 black-box E2E tests (e2e/run_e2e.py --tier all), and the committedxrpl-pitwallgolden fixture corpus (62 fixtures, 10 Mainnet) verified offline viacargo run -p xrpl-pitwall -- verify tools/xrpl-pitwall/fixtures. - Measured local throughput:
29.5 mshot-path close (33,921 TPS) /32.1 mswith NodeStore persist (31,202 TPS) on 1,000 Ed25519 Payment transactions (8 vCPU AMD EPYC, bit-for-bit identical ledger/state/tx hashes). - 18 JSON-RPC methods + RFC 6455 WebSocket RPC server (
ping,server_info,server_state,consensus_info,fee,ledger,ledger_closed,ledger_current,ledger_data,ledger_entry,tx,account_info,account_tx,account_objects,account_lines,book_offers,submit,feature, plusGET /wswithsubscribeledgerClosedevents), real-time SSE telemetry (GET /api/events), interactive dashboard (GET /dashboard), and Prometheus metrics (GET /metrics). Path-finding RPC is not yet implemented. - Bonneville + FileNodeStore: State objects go to
xrpl-bonneville; the transaction tree uses the local append-only log (nodes.log). ArippledNuDB or RocksDB directory is not opened. - Security: Read/write timeouts and a 64-connection cap are enforced; no password on the HTTP port. Admin methods require the client IP to be on the allowlist (loopback-only by default; empty list denies all). No external security audit yet; see SECURITY.md.
Verify it yourself
cargo fmt --all -- --check
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace --locked
cargo run --locked -p xrpl-pitwall -- verify tools/xrpl-pitwall/fixtures
cargo build --locked -p xrpl-validator
python3 e2e/run_e2e.py --tier all --bin target/debug/challenger -v
The end-to-end suite drives the compiled binary only through its config file, HTTP port and peer port, using an independent Python implementation of the codec and crypto. It needs python3 with the cryptography package. docs/TESTING.md explains what each layer covers and what is not tested.
Documentation
| Challenger Light | Trustless phone PWA (Rust/WASM), open-source relay, Docker & wire protocol |
| Operating guide | Build, run, the dashboard, restarts, troubleshooting, security |
| Configuration | Every config section, CLI flag and environment variable |
| Pitwall | Differential execution oracle, lazy state-slicing, and offline golden corpus |
| HTTP and JSON-RPC | Methods, telemetry schema, Prometheus metrics |
| Architecture | Crates, data flow, state machines |
| Transactions | Every supported transaction type and ledger invariant |
| Testing | Test layers, the end-to-end suite, how to add tests |
| Status | What is implemented, verified, and missing |
| Contributing · Security | How to change it and how to report a vulnerability |
Each crate's README is also its rustdoc front page: cargo doc --workspace --no-deps --open.
Licence
MIT. This is an independent project and is not affiliated with or endorsed by Ripple or the XRP Ledger Foundation.
No installation packages available.