Scruple Documentation
A minimalist, post-quantum, CPU-mineable UTXO cryptocurrency written in pure Rust. Run a validating node, solo-mine XSL with RandomX, manage a 24-word SQIsign HD wallet, cosign native xsl2: vaults, and build against the cookie-authenticated JSON-RPC API.
Scruple is at v0.1.0-alpha.1 and is a mainnet candidate. Treat it as experimental: back up your 24-word recovery phrase offline, test on devnet or testnet first, and do not put life-changing amounts on a single machine.
Start here
Build & first node
Compile the workspace, create a wallet, and run a two-node devnet in a few minutes.
OperateRun a node
Mainnet, testnet, and devnet presets, peer discovery, VPS deployment, pruning, and txindex.
MineSolo-mine XSL
RandomX Light or Full-Memory CPU mining with per-block payout rotation and a live hashrate view.
UseWallet
HD SQIsign wallets, BYOE entropy, encryption, coin control, fee bumps, and safe sending.
CosignMultisig
Native M-of-N xsl2: vaults with offline JSON cosigning and threshold finalization.
JSON-RPC API
Every node method, request and response schema, authentication, limits, and client examples.
Architecture at a glance
Scruple is designed around a deliberately small consensus surface: no general-purpose scripting VM, no OP_RETURN, no witness discount, and no premine. Every block pays a fixed 1 XSL subsidy forever, with difficulty recalculated per block by a 60-block LWMA and proof-of-work performed with RandomX.
Post-quantum signatures
SQIsign Round-3 Level 1 with 83-byte public keys and 176-byte compressed signatures. Address commitments and transaction IDs use domain-separated BLAKE3.
Native M-of-N multisig
xsl2: outputs support up to 15 cosigners and are enforced by the signature validator rather than a script interpreter.
Isolated networks
Mainnet, testnet, and devnet use distinct P2P magic, ports, genesis seeds, and coinbase maturity. Cross-network peers reject immediately.
Embedded storage and RPC
A redb-backed chainstate, undo logs, optional pruning, an optional transaction index, and a cookie-authenticated HTTP JSON-RPC server.
Quickstart
# Build both binaries (headless node/CLI and desktop GUI)
cargo build --release --workspace
# Create an encrypted HD wallet; write down the 24-word phrase offline
./target/release/scruple wallet new --wallet ./wallet.json --encrypt
# Start a local devnet node (easy mining target)
./target/release/scruple node \
--network devnet \
--data-dir ./data \
--p2p 127.0.0.1:18333 \
--rpc 127.0.0.1:18332
# Mine a block to your wallet
./target/release/scruple mine \
--data-dir ./data \
--rpc 127.0.0.1:18332 \
--wallet ./wallet.json \
--threads 2 \
--blocks 1
# Inspect chain status (reads ./data/.cookie automatically)
./target/release/scruple info --data-dir ./data --rpc 127.0.0.1:18332
Follow the Getting Started guide for a complete two-node devnet, then read Running a Node and JSON-RPC API when you are ready to operate or build.
Documentation map
| Guide | What it covers |
|---|---|
| Getting Started | Requirements, build, devnet quickstart, first wallet, GUI launch. |
| Running a Node | Network presets, ports, peer discovery, VPS/LAN setup, pruning, txindex, cookie lifecycle. |
| Mining | CLI and GUI solo mining, RandomX modes, payout rotation, external miner flow. |
| Desktop GUI | Tabs, wallet manager, embedded node, miner, send confirmation, coin control, multisig. |
| Wallet | HD derivation, recovery, BYOE entropy, encryption, sending, fee bumps, rescan. |
| Multisig | xsl2: vault derivation, propose/sign/finalize workflow, pending spends. |
| JSON-RPC API | Full method reference, auth, envelopes, errors, limits, client examples. |
| CLI Reference | Every command and flag for scruple and scruple-gui. |
| Protocol | Consensus constants, wire format, crypto, PoW, LWMA, genesis, transport. |
| Security | Threat model, RPC hardening, backups, lockfiles, pruning caveats. |
| FAQ & Troubleshooting | Common errors and fixes. |
Scruple elsewhere
scruple.money
The project overview: thesis, post-quantum cryptography, economics, fair launch, and node quickstart.
Explorerexplorer.scruple.money
Inspect blocks, transactions, addresses, and the mempool on the live testnet chain.
CodeGitHub
Source code, releases, and issues for the node, website, explorer, and documentation.
What Scruple is not
- Not a smart-contract platform. There is no general-purpose VM and no
OP_RETURN; outputs are fixed-format address commitments and amounts. - Not a GPU/ASIC-first chain. Proof-of-work is RandomX, optimized for CPUs, with automatic epoch rotation and no hard forks for seed changes.
- Not inflationary in the usual sense. Emission is a fixed 1 XSL per block forever, with no halving schedule and no premine.
- Not a hosted service. The node, wallet, miner, and GUI are local binaries; the RPC server is plaintext HTTP and should stay bound to localhost unless you add TLS termination.