Guides

Operating the test network

Machine roles

Machine Role Key boundary
Windows workstation Origin ledger, local relay, signing, replica and outbound publisher Keep wallets and the publisher credential under .local
Linux x86-64 VPS HTTPS site, source archive, indexed explorer and validated append receiver Stores the public chain and a publisher credential digest
Linux ARM64 GX10 Independently replayed replica and on-demand CPU work tests Needs only public records and a reward address

The VPS and GX10 run systemd services. The Windows processes need restarting after logout or reboot. Reading the public history continues while the workstation is offline. New blocks require a running origin, work or transactions, and the outbound publisher.

Restart the origin

From the original workspace, use separate terminals. Stop with Ctrl+C. Substitute the existing miner address. Never initialize a replacement genesis to recover an existing node.

Plain text
python -m chain.network --db .local/devnet/chain.sqlite --site site --port 18764
python -m chain.network --db .local/follower.sqlite --site site --port 18763 --peer http://127.0.0.1:18764
python -m chain.relay serve MINER --interval 30
python -m deploy.publish --db .local/devnet/chain.sqlite --node https://bitkeelmark.org --follow

After a protocol upgrade, update every validating node before submitting new record types. Check /peer/v1/status on each node and compare genesis, height and hash. A queued share earns credit only after inclusion. Block 8 shows the 3-to-1 split. Block 9 contains four ARM64 worker shares.

ARM64 worker

Use an SSH reverse tunnel from the workstation to keep the relay on loopback. Replace USER, HOST and WORKER with your own values. The remote checkout below uses the installed layout on the GX10. SSH must already trust the host key.

Plain text
ssh -o ExitOnForwardFailure=yes -R 127.0.0.1:28766:127.0.0.1:8766 USER@HOST "cd ~/bitkeelmark/current && python3 -m chain.relay work WORKER --count 4 --pool http://127.0.0.1:28766"

The tunnel closes when the bounded job ends. The persistent replica runs under the user account. Inspect it with systemctl --user status bitkeelmark. The listener is local to that machine. This miner uses the CPU. No GPU miner was installed.

VPS layout and recovery

Caddy serves the site directory and separate public downloads. Only read endpoints reach the explorer. The authenticated append endpoint verifies each block and rejects conflicting history. The Python services run as an unprivileged account. Service templates and proxy rules are in deploy/. See Caddy HTTPS and upstream source.

Use the hosting console for administration. Check systemctl status caddy bitkeelmark bitkeelmark-publish and the corresponding journal. The release link is /opt/bitkeelmark/current. Public downloads live in /opt/bitkeelmark/public. The database lives in /var/lib/bitkeelmark. Back it up with SQLite's backup API. Keep independent encrypted backups of signing keys offline. Never upload a wallet to the mirror.

For a fresh mirror, export the complete public block list from the origin using Ledger.blocks(). Run python -m deploy.import_blocks DATABASE EXPORT.json as the service user from the release directory. This checks the pinned genesis and replays extensions. Verify the resulting hash independently. Restoring public history cannot restore signing keys.

Rotate the publisher credential by generating 32 random bytes locally, saving their lowercase hexadecimal encoding in .local/publisher, and installing only the SHA-256 hex digest of that ASCII text as PUBLISHER_DIGEST in /etc/bitkeelmark-publisher. Restrict the file to root and restart bitkeelmark-publish and the local sender. Never log the raw credential.